maxapi 0.6__tar.gz → 0.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {maxapi-0.6/maxapi.egg-info → maxapi-0.7}/PKG-INFO +1 -1
- {maxapi-0.6 → maxapi-0.7}/maxapi/bot.py +22 -23
- {maxapi-0.6 → maxapi-0.7}/maxapi/context/__init__.py +1 -1
- {maxapi-0.6 → maxapi-0.7/maxapi.egg-info}/PKG-INFO +1 -1
- {maxapi-0.6 → maxapi-0.7}/maxapi.egg-info/SOURCES.txt +0 -1
- {maxapi-0.6 → maxapi-0.7}/pyproject.toml +2 -2
- maxapi-0.6/LICENSE.md +0 -21
- {maxapi-0.6 → maxapi-0.7}/MANIFEST.in +0 -0
- {maxapi-0.6 → maxapi-0.7}/README.md +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/__init__.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/connection/__init__.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/connection/base.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/context/state_machine.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/dispatcher.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/enums/__init__.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/enums/api_path.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/enums/attachment.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/enums/button_type.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/enums/chat_permission.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/enums/chat_status.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/enums/chat_type.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/enums/http_method.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/enums/intent.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/enums/message_link_type.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/enums/parse_mode.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/enums/sender_action.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/enums/text_style.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/enums/update.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/enums/upload_type.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/filters/__init__.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/filters/handler.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/loggers.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/__init__.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/add_admin_chat.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/add_members_chat.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/change_info.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/delete_bot_from_chat.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/delete_chat.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/delete_message.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/delete_pin_message.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/edit_chat.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/edit_message.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/get_chat_by_id.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/get_chat_by_link.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/get_chats.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/get_list_admin_chat.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/get_me.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/get_me_from_chat.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/get_members_chat.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/get_messages.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/get_pinned_message.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/get_updates.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/get_upload_url.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/get_video.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/pin_message.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/remove_admin.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/remove_member_chat.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/send_action.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/send_callback.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/send_message.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/__init__.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/added_admin_chat.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/added_members_chat.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/deleted_bot_from_chat.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/deleted_chat.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/deleted_message.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/deleted_pin_message.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/edited_message.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/getted_list_admin_chat.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/getted_members_chat.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/getted_pineed_message.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/getted_updates.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/getted_upload_url.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/pinned_message.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/removed_admin.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/removed_member_chat.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/sended_action.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/sended_callback.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/sended_message.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/__init__.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/__init__.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/attachment.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/audio.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/buttons/__init__.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/buttons/attachment_button.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/buttons/button.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/buttons/callback_button.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/buttons/chat_button.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/buttons/link_button.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/buttons/request_contact.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/buttons/request_geo_location_button.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/contact.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/file.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/image.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/location.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/share.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/sticker.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/upload.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/video.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/callback.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/chats.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/command.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/errors.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/input_media.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/message.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/__init__.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/bot_added.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/bot_removed.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/bot_started.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/chat_title_changed.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/message_callback.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/message_chat_created.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/message_created.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/message_edited.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/message_removed.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/update.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/user_added.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/user_removed.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/types/users.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/utils/__init__.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi/utils/inline_keyboard.py +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi.egg-info/dependency_links.txt +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi.egg-info/requires.txt +0 -0
- {maxapi-0.6 → maxapi-0.7}/maxapi.egg-info/top_level.txt +0 -0
- {maxapi-0.6 → maxapi-0.7}/setup.cfg +0 -0
- {maxapi-0.6 → maxapi-0.7}/setup.py +0 -0
|
@@ -33,6 +33,7 @@ from .enums.parse_mode import ParseMode
|
|
|
33
33
|
from .enums.sender_action import SenderAction
|
|
34
34
|
from .enums.upload_type import UploadType
|
|
35
35
|
|
|
36
|
+
from .types.message import Message
|
|
36
37
|
from .types.attachments.attachment import Attachment
|
|
37
38
|
from .types.attachments.image import PhotoAttachmentRequestPayload
|
|
38
39
|
from .types.message import Messages, NewMessageLink
|
|
@@ -41,29 +42,27 @@ from .types.command import BotCommand
|
|
|
41
42
|
|
|
42
43
|
from .connection.base import BaseConnection
|
|
43
44
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
from maxapi.types.updates import UpdateUnion
|
|
66
|
-
|
|
45
|
+
from .methods.types.added_admin_chat import AddedListAdminChat
|
|
46
|
+
from .methods.types.added_members_chat import AddedMembersChat
|
|
47
|
+
from .methods.types.deleted_bot_from_chat import DeletedBotFromChat
|
|
48
|
+
from .methods.types.deleted_chat import DeletedChat
|
|
49
|
+
from .methods.types.deleted_message import DeletedMessage
|
|
50
|
+
from .methods.types.deleted_pin_message import DeletedPinMessage
|
|
51
|
+
from .methods.types.edited_message import EditedMessage
|
|
52
|
+
from .methods.types.getted_list_admin_chat import GettedListAdminChat
|
|
53
|
+
from .methods.types.getted_members_chat import GettedMembersChat
|
|
54
|
+
from .methods.types.getted_pineed_message import GettedPin
|
|
55
|
+
from .methods.types.getted_upload_url import GettedUploadUrl
|
|
56
|
+
from .methods.types.pinned_message import PinnedMessage
|
|
57
|
+
from .methods.types.removed_admin import RemovedAdmin
|
|
58
|
+
from .methods.types.removed_member_chat import RemovedMemberChat
|
|
59
|
+
from .methods.types.sended_action import SendedAction
|
|
60
|
+
from .methods.types.sended_callback import SendedCallback
|
|
61
|
+
from .methods.types.sended_message import SendedMessage
|
|
62
|
+
from .types.attachments.video import Video
|
|
63
|
+
from .types.chats import Chat, ChatMember, Chats
|
|
64
|
+
from .types.updates import UpdateUnion
|
|
65
|
+
|
|
67
66
|
|
|
68
67
|
class Bot(BaseConnection):
|
|
69
68
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "maxapi"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.7"
|
|
4
4
|
description = "Библиотека для разработки чат-ботов с помощью API мессенджера MAX"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.10"
|
|
@@ -24,7 +24,7 @@ dependencies = [
|
|
|
24
24
|
Homepage = "https://github.com/love-apples/maxapi"
|
|
25
25
|
|
|
26
26
|
[tool.setuptools]
|
|
27
|
-
license-files = []
|
|
27
|
+
license-files = []
|
|
28
28
|
|
|
29
29
|
[build-system]
|
|
30
30
|
requires = ["setuptools>=68.0.0", "wheel"]
|
maxapi-0.6/LICENSE.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Denis
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|