How granit1004/bot-loterry works
This is a Telegram lottery bot: users browse and enter free or paid raffles, while administrators create raffles and draw winners. The README also describes a button-based interface, an admin panel, and privacy options. The sampled code is a single monolithic module; its excerpts show raffle participation, winner selection, notifications, and persistence calls, but not the full payment flow or privacy implementation. Accordingly, those documented capabilities are represented without guessing their internal wiring.
Main entry points: bot.py Winner selection
Components 11
Bot interaction
- Button interface
Bot_Antihrist1/bot.py - Privacy options
Bot_Antihrist1/bot.py
Lottery operations
- Browse raffles
Bot_Antihrist1/bot.py - Raffle entry
Bot_Antihrist1/bot.py - Paid entry
Bot_Antihrist1/bot.py - Winner selection
Bot_Antihrist1/bot.py
Administration
- Raffle management
Bot_Antihrist1/bot.py - Channel management
Bot_Antihrist1/bot.py
Bot state
- Raffle state
Bot_Antihrist1/bot.py
Other components
- Telegram users
- Telegram platform
Connections 11
- Telegram users → Button interface: use buttons
README.md - Telegram users → Raffle entry: enter raffle
README.md - Telegram users → Paid entry: pay to enter
README.md - Telegram users → Privacy options: set options
README.md - Raffle entry → Raffle state: save participants
Bot_Antihrist1/bot.py - Winner selection → Raffle state: read participants
Bot_Antihrist1/bot.py - Winner selection → Telegram platform: notify winners
Bot_Antihrist1/bot.py - Winner selection → Browse raffles: refresh details
Bot_Antihrist1/bot.py - Telegram users → Raffle management: administer
README.md - Raffle management → Raffle state: save raffle
Bot_Antihrist1/bot.py - Channel management → Telegram platform: broadcast
Bot_Antihrist1/bot.py