This is a CLI tool created for downloading animated stickers (*.tgs) from Telegram, and output them in WebP format.
- Install Node.js 14+
- Install command-line version of Gifsk
For first time user, please create .env
file in the project root with the following content:
BOT_TOKEN=<TELEGRAM_BOT_TOKEN>
To get a bot token, simply follow the below steps:
- In Telegram, search for the user
@BotFather
. - Use the command
\newbot
and choose a name and username for your bot. @BotFather
will return you the token of the bot created. Remember to keep it safe!
yarn install
Simply run the command below. The stickers will be download to output
directory in WebP format.
node src/index ANIMATED_STICKER_SET_1 ANIMATED_STICKER_SET_2 ANIMATED_STICKER_SET_3