Convert Telegram Stickers (tgs) to Apng (<300) kb for Signal And uploads it while you grab a coffee and makes sure you have it to send it to friends when you are back :")
What do I need to run this program? Linux , Windows (only for Rust program)
Look for Script folder on details about script
For Rust program , you would need
- Apngasm and Apngdis
- Tgs2Png
- Ffmpeg
- Python for singalstickers_client in uploader.py
Intial setup
- Get Telegram Bot token ready
- Install and launch Signal Desktop BETA VERSION
- Goto Menu
- Toggle Developers tools
- On there open Console
- Store somehwere output of
window.SignalDebug.getReduxState().items.uuid_id
- Also store output of
window.SignalDebug.getReduxState().items.password
- Goto Menu
cat packs
For v3, v2 and binary you need just the link to stickerpack, NO NEED TO DOWNLOAD TGS FILES Just have links like "https://t.me/addstickers/HalloUtya" and that's enough !!!!
For bot to upload on your behalf, using your account credentials given above.
If you want telegram bot token get it using BotFather :")
Once Intial setup , from next time just sending link would be enough.
./script_v3_beta.sh
./script_v3_beta.sh <filename>
Where file has list of Telegram sticker links
cargo r --release <link> <link> <link>
Internal working of v1 and v2
Usage of v1 of script./script_v1.sh
Converts tgs in current diretory to apng within ./outut
You could use it to :
- To create custom stickerpack from group of tgs files
- You don't need to have telegram account , although you need source of tgs files Dependencies of v1 of script
- gifsicle
- imagemagick
- apngasm
- tgs-to-gif
Prefer v2 since it does job automated.
What do this script do? (Just v1 )
- Convert tgs to gif
- optimize that gif
- breaks gif into frames
- Make apng out of those frames
How do i do this? (For v2 )
- Install above mentioned packages and python modules
- Copy script_v2 , bot.py , download.py to a folder.
- For first time you will be asked bot token and authentican info from Signal-Desktop
- Do you have link to Telegram-Sticker ? Enter it when prompted eg : https://t.me/addstickers/MsWitchCat
- Grab a coffee , Because you will now get link to signalstickerpack after wizardry is done !!!!
How do i do this? (For v1 )
- Install above mentioned packages
- Copy your tgs into a folder
- Copy this script_v1 to same folder
- Run it!!
- Wait for cpu to cook your apngs
- Look for all apngs in ./output/
- Create stickerpack using those apngs all are below 300kb !!!
You say so, but what have you done???
Contains 80+ stickerpack as of now ported from Telegram
Mastodon Owwww, That's nice , How can I help you
- Suggestions , Signal +919519873721
- Donations , PayPal or UPI 9519873721@ybl
- If you are using brave you can donate me directly.