Файл инициализации модулей

This commit is contained in:
Whyverum
2024-12-18 07:11:47 +07:00
parent f519fbf5ac
commit 75705e3984
19 changed files with 250 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
# BotCode/routers/commands/__init__.py
# Инициализация пакета commands, для работы с командами бота
from aiogram import Router
from .bot_command import router as bot_command_router
from .user_cmd import router as user_cmd_router
# Объявление роутера и настройка экспорта модулей
__all__ = ("router",)
router = Router(name="commands_head_router")
# Список подключаемых роутеров сверху-вниз
router.include_routers(
bot_command_router,
user_cmd_router,
)