pybotx 0.76.2__tar.gz → 0.76.3__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.
- {pybotx-0.76.2 → pybotx-0.76.3}/PKG-INFO +1 -1
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/__init__.py +2 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/create_chat.py +2 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/enums.py +29 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/message/incoming_message.py +2 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/sync_smartapp_event.py +13 -2
- {pybotx-0.76.2 → pybotx-0.76.3}/pyproject.toml +1 -1
- {pybotx-0.76.2 → pybotx-0.76.3}/LICENSE +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/README.md +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/async_buffer.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/auth.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/__init__.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/api/__init__.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/api/exceptions.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/api/responses/__init__.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/api/responses/bot_disabled.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/api/responses/command_accepted.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/api/responses/unverified_request.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/bot.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/bot_accounts_storage.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/callbacks/__init__.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/callbacks/callback_manager.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/callbacks/callback_memory_repo.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/callbacks/callback_repo_proto.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/contextvars.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/exceptions.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/handler.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/handler_collector.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/middlewares/__init__.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/middlewares/exception_middleware.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/testing.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/__init__.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/authorized_botx_method.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/bots_api/__init__.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/bots_api/bot_catalog.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/bots_api/get_token.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/botx_method.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/__init__.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/add_admin.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/add_user.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/chat_info.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/create_chat_link.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/create_thread.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/disable_stealth.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/list_chats.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/personal_chat.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/pin_message.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/remove_user.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/set_stealth.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/unpin_message.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/events_api/__init__.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/events_api/delete_event.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/events_api/edit_event.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/events_api/message_status_event.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/events_api/reply_event.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/events_api/stop_typing_event.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/events_api/typing_event.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/exceptions/__init__.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/exceptions/base.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/exceptions/callbacks.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/exceptions/chats.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/exceptions/common.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/exceptions/event.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/exceptions/files.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/exceptions/http.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/exceptions/message.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/exceptions/notifications.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/exceptions/users.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/files_api/__init__.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/files_api/download_file.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/files_api/upload_file.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/get_token.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/mertics_api/__init__.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/mertics_api/collect_bot_function.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/notifications_api/__init__.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/notifications_api/direct_notification.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/notifications_api/internal_bot_notification.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/openid_api/__init__.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/openid_api/refresh_access_token.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/smartapps_api/__init__.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/smartapps_api/exceptions.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/smartapps_api/smartapp_custom_notification.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/smartapps_api/smartapp_event.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/smartapps_api/smartapp_manifest.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/smartapps_api/smartapp_notification.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/smartapps_api/smartapp_unread_counter.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/smartapps_api/smartapps_list.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/smartapps_api/upload_file.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/stickers_api/__init__.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/stickers_api/add_sticker.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/stickers_api/create_sticker_pack.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/stickers_api/delete_sticker.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/stickers_api/delete_sticker_pack.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/stickers_api/edit_sticker_pack.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/stickers_api/exceptions.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/stickers_api/get_sticker.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/stickers_api/get_sticker_pack.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/stickers_api/get_sticker_packs.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/stickers_api/sticker_pack.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/users_api/__init__.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/users_api/search_user_by_email.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/users_api/search_user_by_emails.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/users_api/search_user_by_huid.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/users_api/search_user_by_login.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/users_api/search_user_by_other_id.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/users_api/update_user_profile.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/users_api/user_from_csv.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/users_api/user_from_search.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/users_api/users_as_csv.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/constants.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/converters.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/image_validators.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/logger.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/missing.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/__init__.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/api_base.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/async_files.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/attachments.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/base_command.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/bot_account.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/bot_catalog.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/bot_sender.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/chats.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/commands.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/message/__init__.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/message/edit_message.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/message/forward.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/message/markup.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/message/mentions.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/message/message_status.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/message/outgoing_message.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/message/reply.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/message/reply_message.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/method_callbacks.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/smartapps.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/status.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/stickers.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/__init__.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/added_to_chat.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/chat_created.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/chat_deleted_by_user.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/conference_changed.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/conference_created.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/conference_deleted.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/cts_login.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/cts_logout.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/deleted_from_chat.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/event_delete.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/event_edit.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/internal_bot_notification.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/left_from_chat.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/smartapp_event.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/user_joined_to_chat.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/users.py +0 -0
- {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/py.typed +0 -0
|
@@ -102,6 +102,7 @@ from pybotx.models.enums import (
|
|
|
102
102
|
AttachmentTypes,
|
|
103
103
|
ChatLinkTypes,
|
|
104
104
|
ChatTypes,
|
|
105
|
+
ClientNetworkContours,
|
|
105
106
|
ClientPlatforms,
|
|
106
107
|
ConferenceLinkTypes,
|
|
107
108
|
MentionTypes,
|
|
@@ -221,6 +222,7 @@ __all__ = (
|
|
|
221
222
|
"ChatNotFoundError",
|
|
222
223
|
"ChatLinkTypes",
|
|
223
224
|
"ChatTypes",
|
|
225
|
+
"ClientNetworkContours",
|
|
224
226
|
"ClientPlatforms",
|
|
225
227
|
"ConferenceChangedEvent",
|
|
226
228
|
"ConferenceCreatedEvent",
|
|
@@ -39,6 +39,8 @@ class BotXAPICreateChatRequestPayload(UnverifiedPayloadBaseModel):
|
|
|
39
39
|
@model_validator(mode="before")
|
|
40
40
|
def _convert_chat_type(cls, values: dict[str, Any]) -> dict[str, Any]:
|
|
41
41
|
chat_type = values.get("chat_type")
|
|
42
|
+
if isinstance(chat_type, APIChatTypes) and chat_type == APIChatTypes.VOEX_CALL:
|
|
43
|
+
raise ValueError("Bot cannot create a chat of type 'voex_call'")
|
|
42
44
|
if isinstance(chat_type, ChatTypes):
|
|
43
45
|
values["chat_type"] = convert_chat_type_from_domain(chat_type)
|
|
44
46
|
return values
|
|
@@ -39,6 +39,11 @@ class ClientPlatforms(AutoName):
|
|
|
39
39
|
AURORA = auto()
|
|
40
40
|
|
|
41
41
|
|
|
42
|
+
class ClientNetworkContours(AutoName):
|
|
43
|
+
INTERNAL = auto()
|
|
44
|
+
EXTERNAL = auto()
|
|
45
|
+
|
|
46
|
+
|
|
42
47
|
class MentionTypes(AutoName):
|
|
43
48
|
CONTACT = auto()
|
|
44
49
|
CHAT = auto()
|
|
@@ -103,6 +108,7 @@ class APIChatTypes(Enum):
|
|
|
103
108
|
GROUP_CHAT = "group_chat"
|
|
104
109
|
CHANNEL = "channel"
|
|
105
110
|
THREAD = "thread"
|
|
111
|
+
VOEX_CALL = "voex_call"
|
|
106
112
|
|
|
107
113
|
|
|
108
114
|
class BotAPICommandTypes(StrEnum):
|
|
@@ -136,6 +142,11 @@ class BotAPIClientPlatforms(Enum):
|
|
|
136
142
|
AURORA = "aurora"
|
|
137
143
|
|
|
138
144
|
|
|
145
|
+
class BotAPIClientNetworkContours(StrEnum):
|
|
146
|
+
INTERNAL = "internal"
|
|
147
|
+
EXTERNAL = "external"
|
|
148
|
+
|
|
149
|
+
|
|
139
150
|
class BotAPIEntityTypes(StrEnum):
|
|
140
151
|
MENTION = "mention"
|
|
141
152
|
FORWARD = "forward"
|
|
@@ -208,6 +219,23 @@ def convert_client_platform_to_domain(
|
|
|
208
219
|
return converted_type
|
|
209
220
|
|
|
210
221
|
|
|
222
|
+
def convert_client_network_contour_to_domain(
|
|
223
|
+
client_network_contour: BotAPIClientNetworkContours,
|
|
224
|
+
) -> ClientNetworkContours:
|
|
225
|
+
client_network_contours_mapping = {
|
|
226
|
+
BotAPIClientNetworkContours.INTERNAL: ClientNetworkContours.INTERNAL,
|
|
227
|
+
BotAPIClientNetworkContours.EXTERNAL: ClientNetworkContours.EXTERNAL,
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
converted_type = client_network_contours_mapping.get(client_network_contour)
|
|
231
|
+
if converted_type is None:
|
|
232
|
+
raise NotImplementedError(
|
|
233
|
+
f"Unsupported client network contour: {client_network_contour}",
|
|
234
|
+
)
|
|
235
|
+
|
|
236
|
+
return converted_type
|
|
237
|
+
|
|
238
|
+
|
|
211
239
|
def convert_mention_type_from_domain(
|
|
212
240
|
mention_type: MentionTypes,
|
|
213
241
|
) -> BotAPIMentionTypes:
|
|
@@ -338,6 +366,7 @@ def convert_chat_type_to_domain(
|
|
|
338
366
|
APIChatTypes.GROUP_CHAT: ChatTypes.GROUP_CHAT,
|
|
339
367
|
APIChatTypes.CHANNEL: ChatTypes.CHANNEL,
|
|
340
368
|
APIChatTypes.THREAD: ChatTypes.THREAD,
|
|
369
|
+
APIChatTypes.VOEX_CALL: ChatTypes.GROUP_CHAT,
|
|
341
370
|
}
|
|
342
371
|
|
|
343
372
|
converted_type: IncomingChatTypes | None
|
|
@@ -26,6 +26,7 @@ from pybotx.models.chats import Chat
|
|
|
26
26
|
from pybotx.models.enums import (
|
|
27
27
|
BotAPIEntityTypes,
|
|
28
28
|
BotAPIMentionTypes,
|
|
29
|
+
ClientNetworkContours,
|
|
29
30
|
ClientPlatforms,
|
|
30
31
|
convert_chat_type_to_domain,
|
|
31
32
|
convert_client_platform_to_domain,
|
|
@@ -68,6 +69,7 @@ class UserSender:
|
|
|
68
69
|
is_chat_admin: bool | None
|
|
69
70
|
is_chat_creator: bool | None
|
|
70
71
|
device: UserDevice
|
|
72
|
+
client_network_contour: ClientNetworkContours | None = None
|
|
71
73
|
|
|
72
74
|
@property
|
|
73
75
|
def upn(self) -> str | None:
|
|
@@ -14,7 +14,9 @@ from pybotx.models.bot_account import BotAccount
|
|
|
14
14
|
from pybotx.models.chats import Chat
|
|
15
15
|
from pybotx.models.enums import (
|
|
16
16
|
BotAPIClientPlatforms,
|
|
17
|
+
BotAPIClientNetworkContours,
|
|
17
18
|
ChatTypes,
|
|
19
|
+
convert_client_network_contour_to_domain,
|
|
18
20
|
convert_client_platform_to_domain,
|
|
19
21
|
)
|
|
20
22
|
from pybotx.models.message.incoming_message import UserDevice, UserSender
|
|
@@ -25,6 +27,7 @@ class BotAPISyncSmartAppSender(VerifiedPayloadBaseModel):
|
|
|
25
27
|
user_huid: UUID
|
|
26
28
|
udid: UUID | None
|
|
27
29
|
platform: BotAPIClientPlatforms | None
|
|
30
|
+
client_network_contour: BotAPIClientNetworkContours | None = None
|
|
28
31
|
|
|
29
32
|
|
|
30
33
|
class BotAPISyncSmartAppPayload(VerifiedPayloadBaseModel):
|
|
@@ -59,6 +62,14 @@ class BotAPISyncSmartAppEvent(VerifiedPayloadBaseModel):
|
|
|
59
62
|
locale=None,
|
|
60
63
|
)
|
|
61
64
|
|
|
65
|
+
client_network_contour = (
|
|
66
|
+
convert_client_network_contour_to_domain(
|
|
67
|
+
self.sender_info.client_network_contour,
|
|
68
|
+
)
|
|
69
|
+
if self.sender_info.client_network_contour
|
|
70
|
+
else None
|
|
71
|
+
)
|
|
72
|
+
|
|
62
73
|
sender = UserSender(
|
|
63
74
|
huid=self.sender_info.user_huid,
|
|
64
75
|
udid=self.sender_info.udid,
|
|
@@ -68,6 +79,7 @@ class BotAPISyncSmartAppEvent(VerifiedPayloadBaseModel):
|
|
|
68
79
|
username=None,
|
|
69
80
|
is_chat_admin=None,
|
|
70
81
|
is_chat_creator=None,
|
|
82
|
+
client_network_contour=client_network_contour,
|
|
71
83
|
)
|
|
72
84
|
|
|
73
85
|
return SmartAppEvent(
|
|
@@ -143,6 +155,5 @@ class BotAPISyncSmartAppEventErrorResponse(UnverifiedPayloadBaseModel):
|
|
|
143
155
|
|
|
144
156
|
|
|
145
157
|
BotAPISyncSmartAppEventResponse = (
|
|
146
|
-
BotAPISyncSmartAppEventResultResponse
|
|
147
|
-
| BotAPISyncSmartAppEventErrorResponse
|
|
158
|
+
BotAPISyncSmartAppEventResultResponse | BotAPISyncSmartAppEventErrorResponse
|
|
148
159
|
)
|
|
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
|
{pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/notifications_api/internal_bot_notification.py
RENAMED
|
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
|