Telegram bot that validates new users that enter supergroup. Validation works like a simple captcha. Bot written in Go (Golang).
This bot has been tested on several large supergroups (1000+ people) for a long time and has shown its effectiveness against spammers.
- Add a bot to your supergroup
- Promote the bot for administrator privileges
- A new user enters your supergroup
- Bot restricts the user's ability to send messages
- Bot shows a welcome message and a captcha button to the user
- If the user doesn't press the button within 30 seconds then the user is banned by the bot
- Obtain bot token from @BotFather
- The main method to run this bot is Docker container
- Install Docker
- Install Docker Compose
- Clone the repo
git clone https://github.com/mxssl/tg-captcha-bot.git
cd tg-captcha-bot
- Add a token from BotFather to env variable in docker-compose.yml
version: '3'
services:
tg-captcha-bot:
build:
context: .
dockerfile: Dockerfile
image: tg-captcha-bot:latest
volumes:
- ./config.toml:/config.toml
environment:
- TGTOKEN=your_token
- 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
You can change several bot's settings through the configuration file config.toml
If you have questions feel free to ask me in TG @mxssl