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