Download all your stickers into a local directory.
(from Amada Kokoro stickerpack)
./stick_export.sh <stickerpack name or URL>
Will download all stickers in the stickerset to a <stickername>
dir, which
contains two subdirs: webp and png, for respective file formats.
Be sure to insert your bot token (see below) before use.
In order to get the stickerpack URL, do the following (using TDesktop):
- Find the stickerset in your stickers panel
- Click on its name
- Click 'Share stickers'
- Paste the link as an argument to this script
- bash or something compatible (zsh)
- curl (for http requests)
- ffmpeg (for convertation to png)
- jq (!) (for json parsing)
You need to get a bot token. Go talk to https://t.me/BotFather, write
/newbot
and follow its instructions. Eventually you get a token.
You can just wait for something scary to appear in the chat and that is a token.
- a nice README
- settings to decide wether to convert stickers to png or leave in webp
- a token checker which will tell the user if something's wrong with it
- cli flags like help or to specify the output directory
- make it quiet? and use a flag for verbosity
- [your feature here]
Pull requests are welcome!