Telegram bot for creating stickers from messages. The bot allows users to create personalized stickers by rendering messages as if they were sent from a Telegram client.
Application requires specific environment variable to run correctly:
- bot_token – your Telegram Bot API token
- admin_ids – Telegram user ID as an application admin
- sticker_owner_id – Telegram user ID as sticker pack owner
Run mvn clean compile exec:exec
- Works on Java 9-17 only
On Windows: run docker-install.bat
- WSL and Docker must be installed to run the project.
- 'env.list' file with environment variables is required in root directory.
-
On Windows: run
deploy-image.bat <name> <version>
, name – your Docker account name; version – any- WSL, Apache Maven, and Docker must be installed to run the script.
- You must have an actual Docker account to run the script.
- You must have a present remote host to run the project.
-
Start your remote host with installed Docker
-
Create 'docker-compose.yaml' file with following content:
version: "3" volumes: logs: services: telegram_bot: image: <name>/telegram-sticker-bot:<version> volumes: - logs:/logs restart: always environment: - admin_ids=<admin_ids> - bot_token=<bot_token> - sticker_owner_id=<admin_ids>
Fill all <*> tags with correct data
-
Run
docker-compose up -d
on your remote host