- Obtain bot token from @BotFather
- Install Docker
- Clone the repo
git clone https://github.com/momai/tg-captcha-bot.git
cd tg-captcha-bot
- Add a token from BotFather to env variable in docker-compose.yml
services:
tg-captcha-bot:
build:
context: .
dockerfile: Dockerfile
image: tg-captcha-bot:latest
volumes:
- ./config.toml:/config.toml
- ./help_message.txt:/help_message.txt
restart: unless-stopped
environment:
TGTOKEN: <your_telegram_bot_token_here>
- Build a Docker container
docker compose build
- Run the container
docker compose up -d
- Check that the bot started correctly
docker compose ps
docker compose logs
- Add the bot to your supergroup and give it administrator privileges