make the bot.

This commit is contained in:
2026-07-02 20:51:08 +03:00
parent 382c345961
commit 330cbcecd3
22 changed files with 315 additions and 97 deletions
+3 -1
View File
@@ -8,7 +8,8 @@ from aiogram.enums import ParseMode
from bot.config import settings
from bot.handlers import get_handlers_router
from bot.middlewares import LoggingMiddleware
from bot.middlewares import LoggingMiddleware, I18nMiddleware
from bot.utils.db import db
from bot.ui_commands import set_bot_commands
# Setup logging
@@ -36,6 +37,7 @@ async def main():
# Register middlewares (e.g. LoggingMiddleware)
dp.update.outer_middleware(LoggingMiddleware())
dp.update.outer_middleware(I18nMiddleware())
# Register routers (handlers)
dp.include_router(get_handlers_router())