How cbamit/titumir-physics-bot works
This is a Telegram bot for a university Physics department. Students verify through a passcode and admin moderation, then use the dashboard to browse notices, course resources, and routines or contact the help desk; admins manage verification, publishing, contributions, and replies. The graph includes the documented capabilities and the SQLite repository layer. Some handler internals were not sampled, so those documented workflows are cited to the README rather than inferred from unseen code.
Main entry points: verification.py Student verification · repository.py Data repository · help_desk.py Help desk relay · auth.py Access control
Components 20
Bot runtime
- Bot application
bot/main.py - Configuration
bot/config.py - Inline keyboards
bot/utils/keyboards.py - Physics greetings
bot/utils/physics_quotes.py
Student access
- Student verification
bot/handlers/verification.py - Access control
bot/utils/auth.py
Department services
- Main dashboard
bot/handlers/menu.py - Notices
bot/handlers/notices.py - Notes and contributions
bot/handlers/resources.py - Class and lab routine
bot/handlers/routine.py - Help desk relay
bot/handlers/help_desk.py - Admin tools
bot/handlers/admin.py
Persistence
- Data repository
bot/database/repository.py - SQLite database
bot/database/db.py
Other components
- Student
- Department admin
- Telegram
- Notice channel
- Document channel
- Admin group
Connections 30
- Student → Telegram: sends updates
README.md - Telegram → Bot application: delivers updates
README.md - Bot application → SQLite database: initializes
bot/main.py - Bot application → Student verification: registers flow
bot/main.py - Bot application → Configuration: reads settings
bot/main.py - Student → Student verification: starts onboarding
README.md - Student verification → Data repository: stores applicant
bot/handlers/verification.py - Student verification → Admin group: requests moderation
bot/handlers/verification.py - Department admin → Student verification: approves or rejects
README.md - Student verification → Student: activates account
README.md - Student verification → Physics greetings: creates welcome
README.md - Main dashboard → Inline keyboards: builds dashboard
bot/handlers/menu.py - Main dashboard → Access control: checks access
bot/handlers/menu.py - Student → Main dashboard: opens dashboard
README.md - Notices → Data repository: reads and stores notices
bot/handlers/notices.py - Notice channel → Notices: publishes posts
- Notes and contributions → Data repository: manages resources
bot/handlers/resources.py - Document channel → Notes and contributions: indexes documents
- Notes and contributions → Admin group: forwards contributions
README.md - Class and lab routine → Data repository: reads and updates schedule
bot/handlers/routine.py - Help desk relay → Data repository: stores ticket mapping
bot/handlers/help_desk.py - Help desk relay → Admin group: forwards questions
bot/handlers/help_desk.py - Admin group → Help desk relay: replies to ticket
README.md - Help desk relay → Student: relays answer
bot/handlers/help_desk.py - Admin tools → Data repository: manages department data
bot/handlers/admin.py - Notices → Access control: checks access
bot/handlers/notices.py - Notes and contributions → Access control: checks access
bot/handlers/resources.py - Class and lab routine → Access control: checks access
bot/handlers/routine.py - Help desk relay → Access control: checks access
bot/handlers/help_desk.py - Data repository → SQLite database: queries SQLite
bot/database/repository.py