A simple Telegram bot template that handles user registration with an emoji-based CAPTCHA system and stores user data in an SQLite database.
- Private chat registration
- Inline button CAPTCHA (emoji-based verification)
- User data storage (
id,username,registration date,blockedstatus) - CAPTCHA retry limit (3 attempts)
- Admin-only user list access
- Clean structure in a single file
- Python 3
- pyTelegramBotAPI
- SQLite3
-
Install dependencies:
pip install pyTelegramBotAPI
-
Replace
'YOUR_TOKEN_HERE'with your Telegram bot token. -
(Optional) Add your Telegram user ID(s) to the
admins_idlist to access/listcommand. -
Run the bot:
python main.py
/start: Begin the CAPTCHA verification process./list: Admin command to view all registered users.
This project is open source and available under the MIT License.