botapi-py 1.5.8__tar.gz → 1.5.10__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.
- {botapi_py-1.5.8 → botapi_py-1.5.10}/PKG-INFO +1 -1
- {botapi_py-1.5.8 → botapi_py-1.5.10}/pyproject.toml +1 -1
- {botapi_py-1.5.8 → botapi_py-1.5.10}/src/botapi/enums.py +4 -0
- {botapi_py-1.5.8 → botapi_py-1.5.10}/src/botapi/methods.py +415 -41
- {botapi_py-1.5.8 → botapi_py-1.5.10}/src/botapi/types.py +1087 -189
- {botapi_py-1.5.8 → botapi_py-1.5.10}/src/botapi/__init__.py +0 -0
- {botapi_py-1.5.8 → botapi_py-1.5.10}/src/botapi/__init__.pyi +0 -0
- {botapi_py-1.5.8 → botapi_py-1.5.10}/src/botapi/bot.py +0 -0
- {botapi_py-1.5.8 → botapi_py-1.5.10}/src/botapi/core.py +0 -0
- {botapi_py-1.5.8 → botapi_py-1.5.10}/src/botapi/dispatchers/__init__.py +0 -0
- {botapi_py-1.5.8 → botapi_py-1.5.10}/src/botapi/dispatchers/__init__.pyi +0 -0
- {botapi_py-1.5.8 → botapi_py-1.5.10}/src/botapi/dispatchers/common.py +0 -0
- {botapi_py-1.5.8 → botapi_py-1.5.10}/src/botapi/dispatchers/get_updates_handler.py +0 -0
- {botapi_py-1.5.8 → botapi_py-1.5.10}/src/botapi/dispatchers/redis_pubsub_handler.py +0 -0
- {botapi_py-1.5.8 → botapi_py-1.5.10}/src/botapi/errors.py +0 -0
- {botapi_py-1.5.8 → botapi_py-1.5.10}/src/botapi/internals.py +0 -0
|
@@ -42,6 +42,8 @@ class UpdateType(enum.StrEnum):
|
|
|
42
42
|
EDITED_BUSINESS_MESSAGE = 'edited_business_message'
|
|
43
43
|
DELETED_BUSINESS_MESSAGES = 'deleted_business_messages'
|
|
44
44
|
PURCHASED_PAID_MEDIA = 'purchased_paid_media'
|
|
45
|
+
MANAGED_BOT = 'managed_bot'
|
|
46
|
+
GUEST_MESSAGE = 'guest_message'
|
|
45
47
|
|
|
46
48
|
class MediaType(enum.StrEnum):
|
|
47
49
|
'''
|
|
@@ -59,6 +61,7 @@ class MediaType(enum.StrEnum):
|
|
|
59
61
|
VOICE = 'voice'
|
|
60
62
|
STORY = 'story' # does not have `file_id`, only `id`
|
|
61
63
|
PAID_MEDIA = 'paid_media' # this contains a `photo` attribute that is a list of `PhotoSize` objects
|
|
64
|
+
LIVE_PHOTO = 'live_photo'
|
|
62
65
|
|
|
63
66
|
class ServiceMessage(enum.StrEnum):
|
|
64
67
|
'''
|
|
@@ -130,6 +133,7 @@ class OtherMessageType(enum.StrEnum):
|
|
|
130
133
|
multimedia nor service content.
|
|
131
134
|
'''
|
|
132
135
|
TEXT = 'text'
|
|
136
|
+
RICH_MESSAGE = 'rich_message'
|
|
133
137
|
CHECKLIST = 'checklist'
|
|
134
138
|
POLL = 'poll'
|
|
135
139
|
GAME = 'game'
|