Telegram group chat bot that detects similar memes (images)
- WebHooks instead of polling
- all chat images importing
- statistics
How to deploy your own Bayan Bot
- Create bot (see https://core.telegram.org/bots/tutorial)
- Add bot to group chat
- Give bot admin rights (otherwise it would not see all messages)
- Get chat ID
- Write something to chat
- Go to
https://api.telegram.org/bot{BOT_TOKEN}/getUpdates
with tokenBotFather
gave you - Find chat ID in JSON response you received
- Move this repo to your server
- Docker and Docker Compose v2 MUST be installed
- Run
./scripts/build_bot_image
script (usessudo
) - Create
/opt/CHAT_NAME
folder on server - Replace variables and paths in
.cd/docker-compose.yml
BOT_TOKEN
value should be the tokenBotFather
gave youGROUP_CHAT_ID
value should be the ID of the chat bot should monitor- replace
CHAT_NAME
placeholder inDATABASE_URL
- replace
CHAT_NAME
placeholder in volumes to folder you created in step 7
- Run
./scripts/deploy_bot
script (usessudo
) - Check logs via
docker logs -t -f bayan_bot