Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 896 Bytes

README.md

File metadata and controls

38 lines (25 loc) · 896 Bytes

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!!!