Skip to content

tech-savvy-guy/telebot-captcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

telebot-captcha

A telegram bot that manages CAPTCHA verification for new group members.

Features

  • Automatic verification prompts for new members
  • Web-based CAPTCHA interface
  • Time-limited verification (5 minutes default)
  • Temporary message restrictions during verification
  • Database tracking of verification attempts

Requirements

  • Python 3.7+
  • Telegram Bot API token
  • Environment variables configured (see Setup)

Setup

  1. Install dependencies:

    pip install -r requirements.txt
    
  2. Set environment variables:

    API_TOKEN=your_bot_token
    GROUP_ID=your_group_id
    BOT_USERNAME=your_bot_username
    
  3. Initialize the database and run the bot:

    python bot.py
    python server.py
    python timeout.py
    

Deployment

Use the provided Procfile for Heroku deployment:

heroku create your-app-name
git push heroku main

License

This project is licensed under the MIT License. See the LICENSE file for details.