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.
Files changed (155) hide show
  1. {pybotx-0.76.2 → pybotx-0.76.3}/PKG-INFO +1 -1
  2. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/__init__.py +2 -0
  3. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/create_chat.py +2 -0
  4. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/enums.py +29 -0
  5. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/message/incoming_message.py +2 -0
  6. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/sync_smartapp_event.py +13 -2
  7. {pybotx-0.76.2 → pybotx-0.76.3}/pyproject.toml +1 -1
  8. {pybotx-0.76.2 → pybotx-0.76.3}/LICENSE +0 -0
  9. {pybotx-0.76.2 → pybotx-0.76.3}/README.md +0 -0
  10. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/async_buffer.py +0 -0
  11. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/auth.py +0 -0
  12. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/__init__.py +0 -0
  13. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/api/__init__.py +0 -0
  14. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/api/exceptions.py +0 -0
  15. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/api/responses/__init__.py +0 -0
  16. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/api/responses/bot_disabled.py +0 -0
  17. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/api/responses/command_accepted.py +0 -0
  18. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/api/responses/unverified_request.py +0 -0
  19. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/bot.py +0 -0
  20. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/bot_accounts_storage.py +0 -0
  21. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/callbacks/__init__.py +0 -0
  22. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/callbacks/callback_manager.py +0 -0
  23. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/callbacks/callback_memory_repo.py +0 -0
  24. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/callbacks/callback_repo_proto.py +0 -0
  25. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/contextvars.py +0 -0
  26. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/exceptions.py +0 -0
  27. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/handler.py +0 -0
  28. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/handler_collector.py +0 -0
  29. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/middlewares/__init__.py +0 -0
  30. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/middlewares/exception_middleware.py +0 -0
  31. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/bot/testing.py +0 -0
  32. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/__init__.py +0 -0
  33. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/authorized_botx_method.py +0 -0
  34. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/bots_api/__init__.py +0 -0
  35. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/bots_api/bot_catalog.py +0 -0
  36. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/bots_api/get_token.py +0 -0
  37. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/botx_method.py +0 -0
  38. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/__init__.py +0 -0
  39. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/add_admin.py +0 -0
  40. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/add_user.py +0 -0
  41. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/chat_info.py +0 -0
  42. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/create_chat_link.py +0 -0
  43. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/create_thread.py +0 -0
  44. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/disable_stealth.py +0 -0
  45. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/list_chats.py +0 -0
  46. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/personal_chat.py +0 -0
  47. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/pin_message.py +0 -0
  48. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/remove_user.py +0 -0
  49. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/set_stealth.py +0 -0
  50. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/chats_api/unpin_message.py +0 -0
  51. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/events_api/__init__.py +0 -0
  52. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/events_api/delete_event.py +0 -0
  53. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/events_api/edit_event.py +0 -0
  54. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/events_api/message_status_event.py +0 -0
  55. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/events_api/reply_event.py +0 -0
  56. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/events_api/stop_typing_event.py +0 -0
  57. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/events_api/typing_event.py +0 -0
  58. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/exceptions/__init__.py +0 -0
  59. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/exceptions/base.py +0 -0
  60. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/exceptions/callbacks.py +0 -0
  61. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/exceptions/chats.py +0 -0
  62. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/exceptions/common.py +0 -0
  63. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/exceptions/event.py +0 -0
  64. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/exceptions/files.py +0 -0
  65. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/exceptions/http.py +0 -0
  66. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/exceptions/message.py +0 -0
  67. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/exceptions/notifications.py +0 -0
  68. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/exceptions/users.py +0 -0
  69. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/files_api/__init__.py +0 -0
  70. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/files_api/download_file.py +0 -0
  71. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/files_api/upload_file.py +0 -0
  72. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/get_token.py +0 -0
  73. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/mertics_api/__init__.py +0 -0
  74. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/mertics_api/collect_bot_function.py +0 -0
  75. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/notifications_api/__init__.py +0 -0
  76. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/notifications_api/direct_notification.py +0 -0
  77. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/notifications_api/internal_bot_notification.py +0 -0
  78. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/openid_api/__init__.py +0 -0
  79. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/openid_api/refresh_access_token.py +0 -0
  80. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/smartapps_api/__init__.py +0 -0
  81. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/smartapps_api/exceptions.py +0 -0
  82. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/smartapps_api/smartapp_custom_notification.py +0 -0
  83. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/smartapps_api/smartapp_event.py +0 -0
  84. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/smartapps_api/smartapp_manifest.py +0 -0
  85. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/smartapps_api/smartapp_notification.py +0 -0
  86. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/smartapps_api/smartapp_unread_counter.py +0 -0
  87. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/smartapps_api/smartapps_list.py +0 -0
  88. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/smartapps_api/upload_file.py +0 -0
  89. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/stickers_api/__init__.py +0 -0
  90. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/stickers_api/add_sticker.py +0 -0
  91. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/stickers_api/create_sticker_pack.py +0 -0
  92. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/stickers_api/delete_sticker.py +0 -0
  93. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/stickers_api/delete_sticker_pack.py +0 -0
  94. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/stickers_api/edit_sticker_pack.py +0 -0
  95. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/stickers_api/exceptions.py +0 -0
  96. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/stickers_api/get_sticker.py +0 -0
  97. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/stickers_api/get_sticker_pack.py +0 -0
  98. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/stickers_api/get_sticker_packs.py +0 -0
  99. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/stickers_api/sticker_pack.py +0 -0
  100. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/users_api/__init__.py +0 -0
  101. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/users_api/search_user_by_email.py +0 -0
  102. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/users_api/search_user_by_emails.py +0 -0
  103. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/users_api/search_user_by_huid.py +0 -0
  104. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/users_api/search_user_by_login.py +0 -0
  105. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/users_api/search_user_by_other_id.py +0 -0
  106. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/users_api/update_user_profile.py +0 -0
  107. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/users_api/user_from_csv.py +0 -0
  108. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/users_api/user_from_search.py +0 -0
  109. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/client/users_api/users_as_csv.py +0 -0
  110. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/constants.py +0 -0
  111. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/converters.py +0 -0
  112. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/image_validators.py +0 -0
  113. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/logger.py +0 -0
  114. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/missing.py +0 -0
  115. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/__init__.py +0 -0
  116. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/api_base.py +0 -0
  117. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/async_files.py +0 -0
  118. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/attachments.py +0 -0
  119. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/base_command.py +0 -0
  120. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/bot_account.py +0 -0
  121. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/bot_catalog.py +0 -0
  122. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/bot_sender.py +0 -0
  123. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/chats.py +0 -0
  124. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/commands.py +0 -0
  125. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/message/__init__.py +0 -0
  126. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/message/edit_message.py +0 -0
  127. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/message/forward.py +0 -0
  128. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/message/markup.py +0 -0
  129. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/message/mentions.py +0 -0
  130. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/message/message_status.py +0 -0
  131. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/message/outgoing_message.py +0 -0
  132. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/message/reply.py +0 -0
  133. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/message/reply_message.py +0 -0
  134. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/method_callbacks.py +0 -0
  135. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/smartapps.py +0 -0
  136. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/status.py +0 -0
  137. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/stickers.py +0 -0
  138. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/__init__.py +0 -0
  139. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/added_to_chat.py +0 -0
  140. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/chat_created.py +0 -0
  141. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/chat_deleted_by_user.py +0 -0
  142. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/conference_changed.py +0 -0
  143. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/conference_created.py +0 -0
  144. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/conference_deleted.py +0 -0
  145. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/cts_login.py +0 -0
  146. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/cts_logout.py +0 -0
  147. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/deleted_from_chat.py +0 -0
  148. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/event_delete.py +0 -0
  149. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/event_edit.py +0 -0
  150. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/internal_bot_notification.py +0 -0
  151. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/left_from_chat.py +0 -0
  152. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/smartapp_event.py +0 -0
  153. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/system_events/user_joined_to_chat.py +0 -0
  154. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/models/users.py +0 -0
  155. {pybotx-0.76.2 → pybotx-0.76.3}/pybotx/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pybotx
3
- Version: 0.76.2
3
+ Version: 0.76.3
4
4
  Summary: A python library for interacting with eXpress BotX API
5
5
  License-File: LICENSE
6
6
  Author: Sidnev Nikolay
@@ -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
  )
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pybotx"
3
- version = "0.76.2"
3
+ version = "0.76.3"
4
4
  description = "A python library for interacting with eXpress BotX API"
5
5
  authors = [
6
6
  "Sidnev Nikolay <nsidnev@ccsteam.ru>",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes