Due to Telegrams Update to Invite Links the Resolve Invite Snippet is currently broken.
I have no idea when a fix will be coming. We first need to know how these new invite links are built to be able to unpack them.
Until then, you'll just get an error message when you run that snippet: unpack requires a buffer of 16 bytes
.
Here is a list of all Snippets for better overview and a clearer top-level Readme.
All snippets assume you have a config.ini
with your api id and hash set up.
# | Name | Description |
---|---|---|
1. | Delete Migrated | Delete all chats from your list that have been migrated to a supergroup. |
2. | Photo Size Threshold | Count the amount of photos above or below a given size. |
3. | Nekobin | Paste a message to Nekobin by replying .neko to it. |
4. | Block New PMs | Block new private messages from coming through. Instantly block and report the offender. |
5. | Participant% | Get the % of people who have participated in the last 5000 messages.1 |
6. | Word Count | Get a list of the 50 most used words in the chat.1 |
7. | Sticker Sets | Get a count of all saved stickers across all saved packs. |
8. | Unicode Names | Get all members whose name contains unicode. Display their name with and without unicode characters. |
9. | Left Channels | Retrieve a list of all Channels2 you've created and left. |
10. | Thanos | You already know (mutes half the chat for 24 hours) |
11. | Deleted Account | Remove deleted accounts from the chat, without cluttering the ban list. |
12. | Unread | Mark a chat as unread and go back to the chatlist. |
13. | FloodWatch | Count the messages of people and warn them, if they send too many too quickly3 |
14. | Session String | Create a session string and save it to a session.txt . Handy when you use Heroku for hosting.4 |
15. | Flip Text | Flip text upside down (.flip My text -> Wʎ ʇǝxʇ )5 |
16. | Recent Actions | Get a full list of all recent actions of a specified group.6 |
17. | Profile Photos | Download all profile folder from a supplied username and save them to a folder.7 |
18. | Resolve Invite | |
19. | Delete Messages | Delete all your messages by iterating through all messages in all chats.8 |
20. | Auto Scroll | Send .autoscroll to auto-read all new messages in a chat in case you don't have Telegram in focus. |
21. | Filter Toggle | Send .com to disable the .hi handler. Helpful if you want to completely disable a handler on command.9 |
22. | Screenshot | Send a Screenshot Notification. Works only in Private Chats. |
23. | Joined Date | Get a list of all members sorted by date joined. |
24. | Get Authorizations | Get a list of your active sessions, sorted by their creation date. |
1: Iterating through a lot of messages might take some time.
2: This includes Supergroups, as Telegram handles them the same internally.
3: This has been shared by !null in the Pyrogram Inn.
4: Disclaimer: Keep that Session String SAFE. Anyone who has that key, can log in as you.
5: This has been shared by James Santagato in the Pyrogram Lounge.
6: Useful if you need the ID of people who have no messages left in your chat (eg join-message removed by bot).
7: This will download profile photos individually, which creates a LOT of requests to Telegram. You might find yourself flood-limited.
8: If you are not absolutely sure you want to delete all your messages, do NOT use this!
9: This has been shared by Dan in the Inn.