Skip to content

telegram bot for group chats/ showing capcha to new users

Notifications You must be signed in to change notification settings

kvrvgixzis/telegram-dice-captcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram captcha bot

image

Bot takes away permissions to write messages from new users, rolls a die and offers to choose value. If user chooses the wrong answer, he gets a ban for 30 seconds, if he chooses the right answer, he gets access to write messages in chat.

Installation

1. Install dependencies

# create virtual environment
python3 -m venv venv

# enable virtual environment
source venv/bin/activate 

# install dependencies
pip3 install -r ./requirements.txt

2. Create .env file

Copy example.env to .env file and put API_KEY from your bot in https://t.me/BotFather

# ./.env
API_TOKEN=https://t.me/BotFather

3. Run bot

python3 main.py

4. Add bot to your chat as admin

5. Profit!!!

About

telegram bot for group chats/ showing capcha to new users

Topics

Resources

Stars

Watchers

Forks

Languages