This is a Telegram bot that creates stickers based on messages forwarded to it.
Headless-Chrome and Selenium are used to draw stickers, allowing you to create beautiful stickers of any complexity using HTML, CSS, and even JavaScript.
To run the bot, you need to install Docker and follow the instructions below.
- Clone the repository
- Copy the template environment file
cp ./docker/.env.template ./docker/.env
- Edit the
./docker/.env
file and add your bot token:$ cat ./docker/.env TOKEN=INSERT_TOKEN_HERE
- Start the bot
This runs the bot in the background.
make start
- Done, you can now forward messages to your bot
- To stop the bot, run:
make stop
- You can edit
quote.html
to change the design of the sticker - You can change
font.ttf
to modify the sticker's text font - You can replace
avatar-placeholder.png
to change the user's avatar stub when it cannot be obtained
You can also put your files in the ./override/
folder to avoid modifying files tracked by the version control system.