From 6369eae78bdb8faa3ec1375f0d0134fe4e67bae7 Mon Sep 17 00:00:00 2001 From: Verum Date: Wed, 26 Feb 2025 11:16:49 +0700 Subject: [PATCH] =?UTF-8?q?1.3=20=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B3=D0=BB=D0=B0=D0=B2=D0=BD=D0=BD?= =?UTF-8?q?=D1=8B=D1=85=20=D0=BF=D0=BE=D0=B4=D0=BA=D0=BB=D1=8E=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BotCode/routers/__init__.py | 2 ++ BotCode/routers/commands/adm_cmd/__init__.py | 0 BotCode/routers/common/__init__.py | 2 +- BotCode/routers/handlers/__init__.py | 12 ++++++++++++ BotCode/utils/notification/__init__.py | 0 BotLibrary/analytics/__init__.py | 1 + 6 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 BotCode/routers/commands/adm_cmd/__init__.py create mode 100644 BotCode/routers/handlers/__init__.py create mode 100644 BotCode/utils/notification/__init__.py diff --git a/BotCode/routers/__init__.py b/BotCode/routers/__init__.py index 8d330c6..2e91620 100644 --- a/BotCode/routers/__init__.py +++ b/BotCode/routers/__init__.py @@ -4,6 +4,7 @@ from aiogram import Router from .commands import router as commands_head_router from .common import router as common_head_router +from .handlers import router as handlers_head_router # Объявление главного роутера и настройка экспорта модулей __all__ = ("router",) @@ -12,6 +13,7 @@ router = Router(name="all_routers") # Список подключаемых роутеров сверху-вниз router.include_routers( +handlers_head_router, commands_head_router, ) diff --git a/BotCode/routers/commands/adm_cmd/__init__.py b/BotCode/routers/commands/adm_cmd/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/BotCode/routers/common/__init__.py b/BotCode/routers/common/__init__.py index c4174c8..b80fa8c 100644 --- a/BotCode/routers/common/__init__.py +++ b/BotCode/routers/common/__init__.py @@ -10,4 +10,4 @@ __all__ = ("router",) router = Router(name="common_head_router") # Идет самым последним, если другие роутеры не сработали -router.include_router(common_messages_router) \ No newline at end of file +router.include_router(common_messages_router) diff --git a/BotCode/routers/handlers/__init__.py b/BotCode/routers/handlers/__init__.py new file mode 100644 index 0000000..ff3175f --- /dev/null +++ b/BotCode/routers/handlers/__init__.py @@ -0,0 +1,12 @@ +# BotCode/routers/handlers/__init__.py +# Инициализация пакета handlers, для работы со всеми сообщениями + +from aiogram import Router +from .new_member_notification import router as member_notification_router + +# Объявление роутера и настройка экспорта модулей +__all__ = ("router",) +router = Router(name="handlers_head_router") + +# Идет самым последним, если другие роутеры не сработали +router.include_router(member_notification_router) diff --git a/BotCode/utils/notification/__init__.py b/BotCode/utils/notification/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/BotLibrary/analytics/__init__.py b/BotLibrary/analytics/__init__.py index f64cb57..22bee1a 100644 --- a/BotLibrary/analytics/__init__.py +++ b/BotLibrary/analytics/__init__.py @@ -3,3 +3,4 @@ # Экспортирование модулей во внешние слои проекта from .type_msg import * +from .type_chat import *