Files
PrimoWorldsBot/BotCode/__init__.py

19 lines
564 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# BotCode/__init__.py
# Инициализация пакета BotCode, для работы с главными частями кода
from aiogram import Router
from .routers import router as all_routers
from .inline import router as inline_routers
from .inline import *
from .keyboards import *
from .utils import *
# Объявление главного роутера
router = Router(name="main_router")
# Список подключаемых роутеров сверху-вниз
router.include_routers(
all_routers,
inline_routers,
)