From 37b8eb29a457ee9cf043d88d1038dc9a90fae1f0 Mon Sep 17 00:00:00 2001 From: geekiot Date: Sat, 1 Nov 2025 15:10:05 +0500 Subject: [PATCH] Hoxfix: fix all bugs with imports --- src/bot/handlers/callbacks/menu.py | 4 ++-- src/bot/handlers/commands/help.py | 2 +- src/bot/handlers/commands/menu.py | 4 ++-- src/bot/utils/__init__.py | 1 + 4 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 src/bot/utils/__init__.py diff --git a/src/bot/handlers/callbacks/menu.py b/src/bot/handlers/callbacks/menu.py index ac8ca01..a6a42d9 100644 --- a/src/bot/handlers/callbacks/menu.py +++ b/src/bot/handlers/callbacks/menu.py @@ -1,8 +1,8 @@ from aiogram.types import CallbackQuery, Message from bot.handlers import registry -from bot.handlers.utils.keyboards import get_menu_markup -from bot.handlers.utils.types import ChatType +from bot.utils.keyboards import get_menu_markup +from bot.utils.types import ChatType @registry.register( diff --git a/src/bot/handlers/commands/help.py b/src/bot/handlers/commands/help.py index 38edafc..3dadc15 100644 --- a/src/bot/handlers/commands/help.py +++ b/src/bot/handlers/commands/help.py @@ -1,8 +1,8 @@ from aiogram.types import Message from bot.handlers import registry -from bot.handlers.utils.types import ChatType from bot.services.database import check_telegram_user +from bot.utils.types import ChatType @registry.register( diff --git a/src/bot/handlers/commands/menu.py b/src/bot/handlers/commands/menu.py index 3df72e9..873c6a3 100644 --- a/src/bot/handlers/commands/menu.py +++ b/src/bot/handlers/commands/menu.py @@ -1,8 +1,8 @@ from aiogram.types import Message from bot.handlers import registry -from bot.handlers.utils.keyboards import get_menu_markup -from bot.handlers.utils.types import ChatType +from bot.utils.keyboards import get_menu_markup +from bot.utils.types import ChatType @registry.register( diff --git a/src/bot/utils/__init__.py b/src/bot/utils/__init__.py new file mode 100644 index 0000000..a9a2c5b --- /dev/null +++ b/src/bot/utils/__init__.py @@ -0,0 +1 @@ +__all__ = []