See below for a step-by-step tutorial on how to use TStickers
- Step 1 - Send a message to @BotFather
- Step 2 - Create a file called 'env'
- Step 3 - Get the URL of the telegram sticker pack(s)
- Step 4 - Use TStickers
- You must have a telegram account to use this
- Send a message to @BotFather to get started.
- Send a message containing
/newbot
- Send a message containing the name of the bot e.g.
/test
- Send a message containing the username of the bot e.g.
/test_bot
- @BotFather will send a message with the token
Create a file called 'env' (or env.txt) and paste your token from part 1.
e.g. env.txt
14************
-
Use a browser and search for the pack e.g.
telegram donut the dog
-
Click on the link
-
Copy the url: e.g.
https://t.me/addstickers/DonutTheDog
-
Open telegram, find the desired sticker pack and share the pack (on mobile pick copy link). An example of sharing a pack is below
-
Click on share stickers/ link - this will copy the url: e.g.
https://t.me/addstickers/DonutTheDog
- Run the program
python -m tstickers
- Enter the URL of the sticker pack
- Get the output in the
downloads
folder.
$ tstickers
Enter sticker_set url (leave blank to stop): https://t.me/addstickers/DonutTheDog
Enter sticker_set url (leave blank to stop):
INFO | ============================================================
INFO | Starting to scrape "DonutTheDog" ..
INFO | Time taken to scrape 31 stickers - 0.044s
INFO |
INFO | ------------------------------------------------------------
INFO | Starting download of "donutthedog" into downloads\donutthedog
INFO | Time taken to download 31 stickers - 0.157s
INFO |
INFO | ------------------------------------------------------------
INFO | -> Cache miss for DonutTheDog!
INFO | Converting stickers "DonutTheDog"...
INFO | Time taken to convert 31 stickers (tgs) - 60.970s
INFO |
INFO | Time taken to convert 31 stickers (webp) - 0.447s
INFO |
INFO | Time taken to convert 62 stickers (total) - 61.434s
INFO |