How ay1nesk/project works
HabitBot is a Telegram habit-tracking bot. Users interact through Telegram to create habits, receive reminders, mark habits complete, and review history and statistics. The tree assigns these capabilities to separate handlers and includes database, scheduling, middleware, and keyboard modules. Source excerpts are empty, so internal calls, database operations, and startup wiring cannot be confirmed; dashed edges mark only the documented product-level interactions.
Main entry points: main.py Bot entry point · habits.py Habit management · reminders.py Reminders · stats.py Progress statistics
Components 13
Telegram interaction
- Bot entry point
app/bot/main.py - Start handler
app/bot/handlers/start.py - Inline keyboards
app/bot/keyboards/inline.py
Habit tracking
- Habit management
app/bot/handlers/habits.py - Reminders
app/bot/handlers/reminders.py - Progress statistics
app/bot/handlers/stats.py - Subscription handler
app/bot/handlers/subscription.py
Bot runtime
- Database access
app/bot/database/dp.py - DB middleware
app/bot/middlewares/db.py - Reminder scheduler
app/bot/utils/scheduler.py - Bot configuration
app/bot/config.py
Other components
- Telegram user
- Telegram
Connections 5
- Telegram user → Telegram: uses
README.md - Telegram → Bot entry point: reaches bot
README.md - Telegram user → Habit management: creates habits
README.md - Telegram user → Reminders: receives reminders
README.md - Telegram user → Progress statistics: views progress
README.md