Separate staff roles and protect message delivery with operator guides
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-09-13 21:00:53 +09:00
parent d5a9c13b68
commit 3c1a6a02a5
25 changed files with 916 additions and 548 deletions

View File

@@ -306,6 +306,10 @@ def configure_dispatcher():
# Подключаем роутеры в правильном порядке
# 1. Основной роутер main.py с базовыми командами (/start, /help, /admin)
dp.include_router(router)
from src.handlers.operator_help import operator_help_router
from src.handlers.staff_handlers import staff_router
dp.include_router(operator_help_router)
dp.include_router(staff_router)
from src.handlers.cashier_handlers import cashier_router
dp.include_router(cashier_router)
@@ -367,6 +371,8 @@ async def main():
HEARTBEAT.unlink(missing_ok=True)
# Останавливаем планировщик
bot_scheduler.shutdown()
from src.utils.broadcast_jobs import shutdown_broadcasts
await shutdown_broadcasts()
await bot.session.close()
await storage.close()
await close_db()