Bots & AutomationOpen source
Telegram Lein Bot
An automated Telegram assistant equipped with custom command trees and a competitive, state-tracking trivia module.
Tech stack
- Languages
- Frameworks & libraries
- Tools
Why I built it
To adapt previous Discord-based automation architectures into the Telegram ecosystem, exploring its unique inline query and command structure.
Architecture & decisions
Developed in Python. The bot relies on asynchronous polling to monitor chat groups. It implements an interactive 'Guess the Philosopher' mini-game, where state and scores are tracked per user ID, ensuring isolated interactions within chaotic group chats.
Key features
- 01Asynchronous Telegram API polling
- 02In-memory state management for active mini-games
- 03User-specific score tracking algorithms