refactored bot code

This commit is contained in:
Hosein
2025-12-30 18:57:48 +03:30
parent 67a76250ab
commit a52d62c0fc
15 changed files with 328 additions and 149 deletions
+14
View File
@@ -0,0 +1,14 @@
from . import start, students, teachers, common
from bot.callbacks.init import register_all_callbacks
def register_all_handlers(bot):
"""Register all handlers and callbacks"""
# Message handlers
start.register(bot)
students.register(bot)
teachers.register(bot)
common.register(bot) # Must be last (catch-all)
# Callback handlers
register_all_callbacks(bot)