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.
Files changed (126) hide show
  1. {maxapi-0.6/maxapi.egg-info → maxapi-0.7}/PKG-INFO +1 -1
  2. {maxapi-0.6 → maxapi-0.7}/maxapi/bot.py +22 -23
  3. {maxapi-0.6 → maxapi-0.7}/maxapi/context/__init__.py +1 -1
  4. {maxapi-0.6 → maxapi-0.7/maxapi.egg-info}/PKG-INFO +1 -1
  5. {maxapi-0.6 → maxapi-0.7}/maxapi.egg-info/SOURCES.txt +0 -1
  6. {maxapi-0.6 → maxapi-0.7}/pyproject.toml +2 -2
  7. maxapi-0.6/LICENSE.md +0 -21
  8. {maxapi-0.6 → maxapi-0.7}/MANIFEST.in +0 -0
  9. {maxapi-0.6 → maxapi-0.7}/README.md +0 -0
  10. {maxapi-0.6 → maxapi-0.7}/maxapi/__init__.py +0 -0
  11. {maxapi-0.6 → maxapi-0.7}/maxapi/connection/__init__.py +0 -0
  12. {maxapi-0.6 → maxapi-0.7}/maxapi/connection/base.py +0 -0
  13. {maxapi-0.6 → maxapi-0.7}/maxapi/context/state_machine.py +0 -0
  14. {maxapi-0.6 → maxapi-0.7}/maxapi/dispatcher.py +0 -0
  15. {maxapi-0.6 → maxapi-0.7}/maxapi/enums/__init__.py +0 -0
  16. {maxapi-0.6 → maxapi-0.7}/maxapi/enums/api_path.py +0 -0
  17. {maxapi-0.6 → maxapi-0.7}/maxapi/enums/attachment.py +0 -0
  18. {maxapi-0.6 → maxapi-0.7}/maxapi/enums/button_type.py +0 -0
  19. {maxapi-0.6 → maxapi-0.7}/maxapi/enums/chat_permission.py +0 -0
  20. {maxapi-0.6 → maxapi-0.7}/maxapi/enums/chat_status.py +0 -0
  21. {maxapi-0.6 → maxapi-0.7}/maxapi/enums/chat_type.py +0 -0
  22. {maxapi-0.6 → maxapi-0.7}/maxapi/enums/http_method.py +0 -0
  23. {maxapi-0.6 → maxapi-0.7}/maxapi/enums/intent.py +0 -0
  24. {maxapi-0.6 → maxapi-0.7}/maxapi/enums/message_link_type.py +0 -0
  25. {maxapi-0.6 → maxapi-0.7}/maxapi/enums/parse_mode.py +0 -0
  26. {maxapi-0.6 → maxapi-0.7}/maxapi/enums/sender_action.py +0 -0
  27. {maxapi-0.6 → maxapi-0.7}/maxapi/enums/text_style.py +0 -0
  28. {maxapi-0.6 → maxapi-0.7}/maxapi/enums/update.py +0 -0
  29. {maxapi-0.6 → maxapi-0.7}/maxapi/enums/upload_type.py +0 -0
  30. {maxapi-0.6 → maxapi-0.7}/maxapi/filters/__init__.py +0 -0
  31. {maxapi-0.6 → maxapi-0.7}/maxapi/filters/handler.py +0 -0
  32. {maxapi-0.6 → maxapi-0.7}/maxapi/loggers.py +0 -0
  33. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/__init__.py +0 -0
  34. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/add_admin_chat.py +0 -0
  35. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/add_members_chat.py +0 -0
  36. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/change_info.py +0 -0
  37. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/delete_bot_from_chat.py +0 -0
  38. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/delete_chat.py +0 -0
  39. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/delete_message.py +0 -0
  40. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/delete_pin_message.py +0 -0
  41. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/edit_chat.py +0 -0
  42. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/edit_message.py +0 -0
  43. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/get_chat_by_id.py +0 -0
  44. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/get_chat_by_link.py +0 -0
  45. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/get_chats.py +0 -0
  46. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/get_list_admin_chat.py +0 -0
  47. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/get_me.py +0 -0
  48. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/get_me_from_chat.py +0 -0
  49. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/get_members_chat.py +0 -0
  50. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/get_messages.py +0 -0
  51. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/get_pinned_message.py +0 -0
  52. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/get_updates.py +0 -0
  53. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/get_upload_url.py +0 -0
  54. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/get_video.py +0 -0
  55. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/pin_message.py +0 -0
  56. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/remove_admin.py +0 -0
  57. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/remove_member_chat.py +0 -0
  58. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/send_action.py +0 -0
  59. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/send_callback.py +0 -0
  60. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/send_message.py +0 -0
  61. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/__init__.py +0 -0
  62. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/added_admin_chat.py +0 -0
  63. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/added_members_chat.py +0 -0
  64. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/deleted_bot_from_chat.py +0 -0
  65. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/deleted_chat.py +0 -0
  66. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/deleted_message.py +0 -0
  67. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/deleted_pin_message.py +0 -0
  68. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/edited_message.py +0 -0
  69. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/getted_list_admin_chat.py +0 -0
  70. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/getted_members_chat.py +0 -0
  71. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/getted_pineed_message.py +0 -0
  72. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/getted_updates.py +0 -0
  73. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/getted_upload_url.py +0 -0
  74. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/pinned_message.py +0 -0
  75. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/removed_admin.py +0 -0
  76. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/removed_member_chat.py +0 -0
  77. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/sended_action.py +0 -0
  78. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/sended_callback.py +0 -0
  79. {maxapi-0.6 → maxapi-0.7}/maxapi/methods/types/sended_message.py +0 -0
  80. {maxapi-0.6 → maxapi-0.7}/maxapi/types/__init__.py +0 -0
  81. {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/__init__.py +0 -0
  82. {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/attachment.py +0 -0
  83. {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/audio.py +0 -0
  84. {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/buttons/__init__.py +0 -0
  85. {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/buttons/attachment_button.py +0 -0
  86. {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/buttons/button.py +0 -0
  87. {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/buttons/callback_button.py +0 -0
  88. {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/buttons/chat_button.py +0 -0
  89. {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/buttons/link_button.py +0 -0
  90. {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/buttons/request_contact.py +0 -0
  91. {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/buttons/request_geo_location_button.py +0 -0
  92. {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/contact.py +0 -0
  93. {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/file.py +0 -0
  94. {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/image.py +0 -0
  95. {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/location.py +0 -0
  96. {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/share.py +0 -0
  97. {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/sticker.py +0 -0
  98. {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/upload.py +0 -0
  99. {maxapi-0.6 → maxapi-0.7}/maxapi/types/attachments/video.py +0 -0
  100. {maxapi-0.6 → maxapi-0.7}/maxapi/types/callback.py +0 -0
  101. {maxapi-0.6 → maxapi-0.7}/maxapi/types/chats.py +0 -0
  102. {maxapi-0.6 → maxapi-0.7}/maxapi/types/command.py +0 -0
  103. {maxapi-0.6 → maxapi-0.7}/maxapi/types/errors.py +0 -0
  104. {maxapi-0.6 → maxapi-0.7}/maxapi/types/input_media.py +0 -0
  105. {maxapi-0.6 → maxapi-0.7}/maxapi/types/message.py +0 -0
  106. {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/__init__.py +0 -0
  107. {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/bot_added.py +0 -0
  108. {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/bot_removed.py +0 -0
  109. {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/bot_started.py +0 -0
  110. {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/chat_title_changed.py +0 -0
  111. {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/message_callback.py +0 -0
  112. {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/message_chat_created.py +0 -0
  113. {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/message_created.py +0 -0
  114. {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/message_edited.py +0 -0
  115. {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/message_removed.py +0 -0
  116. {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/update.py +0 -0
  117. {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/user_added.py +0 -0
  118. {maxapi-0.6 → maxapi-0.7}/maxapi/types/updates/user_removed.py +0 -0
  119. {maxapi-0.6 → maxapi-0.7}/maxapi/types/users.py +0 -0
  120. {maxapi-0.6 → maxapi-0.7}/maxapi/utils/__init__.py +0 -0
  121. {maxapi-0.6 → maxapi-0.7}/maxapi/utils/inline_keyboard.py +0 -0
  122. {maxapi-0.6 → maxapi-0.7}/maxapi.egg-info/dependency_links.txt +0 -0
  123. {maxapi-0.6 → maxapi-0.7}/maxapi.egg-info/requires.txt +0 -0
  124. {maxapi-0.6 → maxapi-0.7}/maxapi.egg-info/top_level.txt +0 -0
  125. {maxapi-0.6 → maxapi-0.7}/setup.cfg +0 -0
  126. {maxapi-0.6 → maxapi-0.7}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maxapi
3
- Version: 0.6
3
+ Version: 0.7
4
4
  Summary: Библиотека для разработки чат-ботов с помощью API мессенджера MAX
5
5
  Author-email: Denis <your-email@example.com>
6
6
  Project-URL: Homepage, https://github.com/love-apples/maxapi
@@ -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
- if TYPE_CHECKING:
45
- from .types.message import Message
46
- from .methods.types.added_admin_chat import AddedListAdminChat
47
- from .methods.types.added_members_chat import AddedMembersChat
48
- from .methods.types.deleted_bot_from_chat import DeletedBotFromChat
49
- from .methods.types.deleted_chat import DeletedChat
50
- from .methods.types.deleted_message import DeletedMessage
51
- from .methods.types.deleted_pin_message import DeletedPinMessage
52
- from .methods.types.edited_message import EditedMessage
53
- from .methods.types.getted_list_admin_chat import GettedListAdminChat
54
- from .methods.types.getted_members_chat import GettedMembersChat
55
- from .methods.types.getted_pineed_message import GettedPin
56
- from .methods.types.getted_upload_url import GettedUploadUrl
57
- from .methods.types.pinned_message import PinnedMessage
58
- from .methods.types.removed_admin import RemovedAdmin
59
- from .methods.types.removed_member_chat import RemovedMemberChat
60
- from .methods.types.sended_action import SendedAction
61
- from .methods.types.sended_callback import SendedCallback
62
- from .methods.types.sended_message import SendedMessage
63
- from maxapi.types.attachments.video import Video
64
- from maxapi.types.chats import Chat, ChatMember, Chats
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
 
@@ -2,7 +2,7 @@ import asyncio
2
2
 
3
3
  from typing import Any, Dict
4
4
 
5
- from ..context.state_machine import State
5
+ from ..context.state_machine import State, StatesGroup
6
6
 
7
7
 
8
8
  class MemoryContext:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maxapi
3
- Version: 0.6
3
+ Version: 0.7
4
4
  Summary: Библиотека для разработки чат-ботов с помощью API мессенджера MAX
5
5
  Author-email: Denis <your-email@example.com>
6
6
  Project-URL: Homepage, https://github.com/love-apples/maxapi
@@ -1,4 +1,3 @@
1
- LICENSE.md
2
1
  MANIFEST.in
3
2
  README.md
4
3
  pyproject.toml
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "maxapi"
3
- version = "0.6"
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 = [] # Явно отключаем автоматическое добавление license-file
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