From 63af42177792ef34911f96ce91385735a67aaeb0 Mon Sep 17 00:00:00 2001 From: Denis Date: Mon, 23 Jun 2025 09:51:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20=D0=B8=D0=BC=D0=BF=D0=BE=D1=80=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maxapi/bot.py | 3 +-- maxapi/dispatcher.py | 3 +-- maxapi/types/attachments/buttons/chat_button.py | 2 +- maxapi/utils/inline_keyboard.py | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/maxapi/bot.py b/maxapi/bot.py index 7d182f4..c188715 100644 --- a/maxapi/bot.py +++ b/maxapi/bot.py @@ -1,8 +1,7 @@ from datetime import datetime from typing import Any, Dict, List, TYPE_CHECKING, Optional -from maxapi.methods.download_media import DownloadMedia - +from .methods.download_media import DownloadMedia from .methods.get_upload_url import GetUploadURL from .methods.get_updates import GetUpdates from .methods.remove_member_chat import RemoveMemberChat diff --git a/maxapi/dispatcher.py b/maxapi/dispatcher.py index 4b5d83a..43d1a30 100644 --- a/maxapi/dispatcher.py +++ b/maxapi/dispatcher.py @@ -6,8 +6,7 @@ from magic_filter import MagicFilter from uvicorn import Config, Server from aiohttp import ClientConnectorError -from maxapi.filters.middleware import BaseMiddleware - +from .filters.middleware import BaseMiddleware from .filters.handler import Handler from .context import MemoryContext diff --git a/maxapi/types/attachments/buttons/chat_button.py b/maxapi/types/attachments/buttons/chat_button.py index b012515..d65452e 100644 --- a/maxapi/types/attachments/buttons/chat_button.py +++ b/maxapi/types/attachments/buttons/chat_button.py @@ -1,6 +1,6 @@ from typing import Optional -from maxapi.enums.button_type import ButtonType +from ....enums.button_type import ButtonType from .button import Button diff --git a/maxapi/utils/inline_keyboard.py b/maxapi/utils/inline_keyboard.py index 1335e77..0efe03f 100644 --- a/maxapi/utils/inline_keyboard.py +++ b/maxapi/utils/inline_keyboard.py @@ -1,4 +1,4 @@ -from maxapi.types.attachments.buttons import InlineButtonUnion +from ..types.attachments.buttons import InlineButtonUnion from ..enums.attachment import AttachmentType from ..types.attachments.attachment import Attachment, ButtonsPayload