How doniyorakromjonov/ustozim-nurim-bot works
Ustozim Quiz Bot is a Telegram quiz and learning bot. Users enter through Telegram and can take a daily quiz, choose a category, practice at their own pace, or progress through a 14-stage book marathon. Answers and progress are stored in SQLite and surfaced through personal statistics and leaderboards. Scheduled jobs send reminders and publish rankings. The README documents these capabilities; sampled excerpts show quiz generation, poll handling, persistence, and ranking queries. Other handler and scheduler details were not sampled, so those links rely on README documentation.
Main entry points: main.py Commands and handlers · quiz_bank.json Quiz question bank · kitob_bank.json Book question bank
Components 21
Bot entry
- Commands and handlers
main.py
Quiz and learning
- Daily quiz
main.py - Category quizzes
main.py - Self-paced practice
main.py - Book marathon
main.py - Quiz question bank
quiz_bank.json - Book question bank
kitob_bank.json - Quiz polls
main.py
Progress and results
- SQLite progress store
main.py - Answer tracking
main.py - Personal statistics
main.py - Daily and category rankings
main.py - Marathon ranking
main.py
Scheduled operations
- Scheduled jobs
main.py - Personal reminders
main.py
Other components
- Telegram user
- Telegram Bot API
- OpenRouter API
- Telegram group
- Telegram channel
- Administrator
Connections 31
- Telegram user → Commands and handlers: sends commands
README.md - Commands and handlers → Telegram Bot API: polls updates
README.md - Commands and handlers → Daily quiz: starts mode
main.py - Commands and handlers → Category quizzes: starts mode
main.py - Commands and handlers → Self-paced practice: starts mode
README.md - Commands and handlers → Book marathon: starts marathon
main.py - Daily quiz → OpenRouter API: generates questions
main.py - Daily quiz → Quiz question bank: uses fallback
main.py - Category quizzes → Quiz question bank: selects questions
main.py - Category quizzes → Book question bank: selects questions
main.py - Book marathon → Book question bank: loads questions
README.md - Daily quiz → Quiz polls: sends questions
main.py - Category quizzes → Quiz polls: sends questions
main.py - Self-paced practice → Quiz polls: sends questions
README.md - Book marathon → Quiz polls: sends questions
README.md - Quiz polls → Telegram Bot API: sends polls
main.py - Telegram Bot API → Answer tracking: delivers poll results
main.py - Answer tracking → SQLite progress store: records progress
main.py - Personal statistics → SQLite progress store: reads progress
main.py - Daily and category rankings → SQLite progress store: queries results
main.py - Marathon ranking → SQLite progress store: reads marathon progress
README.md - Commands and handlers → Personal statistics: shows results
main.py - Commands and handlers → Daily and category rankings: shows rankings
main.py - Scheduled jobs → Daily quiz: prepares quiz
README.md - Scheduled jobs → Personal reminders: sends reminders
README.md - Personal reminders → Telegram Bot API: messages users
README.md - Scheduled jobs → Daily and category rankings: publishes rankings
README.md - Scheduled jobs → Marathon ranking: publishes ranking
README.md - Daily and category rankings → Telegram group: posts rankings
README.md - Marathon ranking → Telegram channel: posts ranking
README.md - Administrator → Commands and handlers: sends admin commands
README.md