Skip to content

FinalBuild-Studio/tg-captcha-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Captcha Bot

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.

How it works

  1. Add a bot to your supergroup
  2. Promote the bot for administrator privileges
  3. A new user enters your supergroup
  4. Bot restricts the user's ability to send messages
  5. Bot shows a welcome message and a captcha button to the user
  6. If the user doesn't press the button within 30 seconds then the user is banned by the bot

How to run

  1. Obtain bot token from @BotFather
  2. The main method to run this bot is Docker container
  3. Install Docker

Instructions

  1. Clone the repo
git clone https://github.com/mxssl/tg-captcha-bot.git
cd tg-captcha-bot
  1. Build docker image and run
docker build . -t tg-bot
docker run -idt -e TGTOKEN={TGTOKEN} tg-bot
  1. Add the bot to your supergroup and give it administrator privileges

Сustomization

You can change several bot's settings through the configuration file config.toml

Contacts

If you have questions feel free to ask me in TG @mxssl

About

Telegram Сaptcha Bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 89.6%
  • Dockerfile 6.8%
  • Makefile 3.6%