PySPlusthon 0.5.3__py3-none-any.whl

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 (284) hide show
  1. PySPlusthon/__init__.py +3 -0
  2. PySPlusthon/client/__init__.py +1 -0
  3. PySPlusthon/client/attachments/__init__.py +29 -0
  4. PySPlusthon/client/attachments/get_file.py +22 -0
  5. PySPlusthon/client/attachments/send_animation.py +71 -0
  6. PySPlusthon/client/attachments/send_audio.py +54 -0
  7. PySPlusthon/client/attachments/send_contact.py +47 -0
  8. PySPlusthon/client/attachments/send_document.py +63 -0
  9. PySPlusthon/client/attachments/send_location.py +45 -0
  10. PySPlusthon/client/attachments/send_media_group.py +88 -0
  11. PySPlusthon/client/attachments/send_photo.py +67 -0
  12. PySPlusthon/client/attachments/send_sticker.py +51 -0
  13. PySPlusthon/client/attachments/send_video.py +56 -0
  14. PySPlusthon/client/attachments/send_voice.py +52 -0
  15. PySPlusthon/client/attachments/upload_file.py +82 -0
  16. PySPlusthon/client/chats/__init__.py +43 -0
  17. PySPlusthon/client/chats/ban_chat_member.py +24 -0
  18. PySPlusthon/client/chats/delete_chat_photo.py +32 -0
  19. PySPlusthon/client/chats/get_chat.py +69 -0
  20. PySPlusthon/client/chats/get_chat_administrators.py +18 -0
  21. PySPlusthon/client/chats/get_chat_history.py +39 -0
  22. PySPlusthon/client/chats/get_chat_member.py +16 -0
  23. PySPlusthon/client/chats/get_chat_members.py +29 -0
  24. PySPlusthon/client/chats/get_chat_members_count.py +21 -0
  25. PySPlusthon/client/chats/join_chat.py +31 -0
  26. PySPlusthon/client/chats/leave_chat.py +22 -0
  27. PySPlusthon/client/chats/pin_chat_message.py +31 -0
  28. PySPlusthon/client/chats/promote_chat_member.py +64 -0
  29. PySPlusthon/client/chats/restrict_chat_member.py +25 -0
  30. PySPlusthon/client/chats/set_chat_description.py +23 -0
  31. PySPlusthon/client/chats/set_chat_photo.py +33 -0
  32. PySPlusthon/client/chats/set_chat_title.py +23 -0
  33. PySPlusthon/client/chats/unban_chat_member.py +24 -0
  34. PySPlusthon/client/chats/unpin_all_chat_messages.py +38 -0
  35. PySPlusthon/client/chats/unpin_chat_message.py +33 -0
  36. PySPlusthon/client/client.py +223 -0
  37. PySPlusthon/client/invite_links/__init__.py +7 -0
  38. PySPlusthon/client/invite_links/create_chat_invite_link.py +14 -0
  39. PySPlusthon/client/invite_links/export_chat_invite_link.py +21 -0
  40. PySPlusthon/client/invite_links/revoke_chat_invite_link.py +23 -0
  41. PySPlusthon/client/messages/__init__.py +21 -0
  42. PySPlusthon/client/messages/answer_callback_query.py +12 -0
  43. PySPlusthon/client/messages/copy_message.py +43 -0
  44. PySPlusthon/client/messages/delete_message.py +29 -0
  45. PySPlusthon/client/messages/edit_message_caption.py +40 -0
  46. PySPlusthon/client/messages/edit_message_reply_markup.py +17 -0
  47. PySPlusthon/client/messages/edit_message_text.py +40 -0
  48. PySPlusthon/client/messages/forward_message.py +35 -0
  49. PySPlusthon/client/messages/send_message.py +39 -0
  50. PySPlusthon/client/stickers/__init__.py +9 -0
  51. PySPlusthon/client/stickers/add_sticker_to_set.py +15 -0
  52. PySPlusthon/client/stickers/create_new_sticker_set.py +16 -0
  53. PySPlusthon/client/stickers/delete_sticker_from_set.py +10 -0
  54. PySPlusthon/client/stickers/get_sticker_set.py +11 -0
  55. PySPlusthon/client/stickers/upload_sticker_file.py +16 -0
  56. PySPlusthon/client/updates/__init__.py +8 -0
  57. PySPlusthon/client/updates/delete_webhook.py +9 -0
  58. PySPlusthon/client/updates/get_updates.py +14 -0
  59. PySPlusthon/client/updates/get_webhook_info.py +10 -0
  60. PySPlusthon/client/updates/set_webhook.py +10 -0
  61. PySPlusthon/client/users/__init__.py +6 -0
  62. PySPlusthon/client/users/ask_review.py +14 -0
  63. PySPlusthon/client/users/get_me.py +16 -0
  64. PySPlusthon/conditions/__init__.py +43 -0
  65. PySPlusthon/conditions/all.py +6 -0
  66. PySPlusthon/conditions/animation.py +7 -0
  67. PySPlusthon/conditions/at_state.py +18 -0
  68. PySPlusthon/conditions/audio.py +7 -0
  69. PySPlusthon/conditions/author.py +13 -0
  70. PySPlusthon/conditions/caption.py +7 -0
  71. PySPlusthon/conditions/channel.py +11 -0
  72. PySPlusthon/conditions/channel_chat_created.py +7 -0
  73. PySPlusthon/conditions/chat.py +14 -0
  74. PySPlusthon/conditions/click.py +24 -0
  75. PySPlusthon/conditions/command.py +23 -0
  76. PySPlusthon/conditions/condition.py +88 -0
  77. PySPlusthon/conditions/contact.py +7 -0
  78. PySPlusthon/conditions/content.py +7 -0
  79. PySPlusthon/conditions/delete_chat_photo.py +7 -0
  80. PySPlusthon/conditions/document.py +7 -0
  81. PySPlusthon/conditions/entities.py +7 -0
  82. PySPlusthon/conditions/equals.py +14 -0
  83. PySPlusthon/conditions/forward.py +7 -0
  84. PySPlusthon/conditions/group.py +11 -0
  85. PySPlusthon/conditions/group_chat_created.py +7 -0
  86. PySPlusthon/conditions/is_admin.py +17 -0
  87. PySPlusthon/conditions/is_instance.py +10 -0
  88. PySPlusthon/conditions/is_joined.py +61 -0
  89. PySPlusthon/conditions/left_chat_member.py +7 -0
  90. PySPlusthon/conditions/location.py +7 -0
  91. PySPlusthon/conditions/media.py +7 -0
  92. PySPlusthon/conditions/media_group.py +7 -0
  93. PySPlusthon/conditions/new_chat_members.py +7 -0
  94. PySPlusthon/conditions/new_chat_photo.py +7 -0
  95. PySPlusthon/conditions/new_chat_title.py +7 -0
  96. PySPlusthon/conditions/number.py +12 -0
  97. PySPlusthon/conditions/photo.py +7 -0
  98. PySPlusthon/conditions/pinned_message.py +7 -0
  99. PySPlusthon/conditions/poll.py +7 -0
  100. PySPlusthon/conditions/private.py +11 -0
  101. PySPlusthon/conditions/regex.py +17 -0
  102. PySPlusthon/conditions/reply.py +7 -0
  103. PySPlusthon/conditions/sticker.py +7 -0
  104. PySPlusthon/conditions/supergroup_chat_created.py +7 -0
  105. PySPlusthon/conditions/text.py +7 -0
  106. PySPlusthon/conditions/video.py +7 -0
  107. PySPlusthon/conditions/voice.py +7 -0
  108. PySPlusthon/dispatcher/__init__.py +5 -0
  109. PySPlusthon/dispatcher/chain.py +165 -0
  110. PySPlusthon/dispatcher/dispatcher.py +124 -0
  111. PySPlusthon/dispatcher/logging_chain.py +36 -0
  112. PySPlusthon/dispatcher/monitoring_chain.py +19 -0
  113. PySPlusthon/dispatcher/printing_chain.py +21 -0
  114. PySPlusthon/enums/__init__.py +7 -0
  115. PySPlusthon/enums/chat_member_status.py +9 -0
  116. PySPlusthon/enums/chat_type.py +9 -0
  117. PySPlusthon/enums/message_media_type.py +16 -0
  118. PySPlusthon/enums/name_enum.py +13 -0
  119. PySPlusthon/enums/peer_type.py +8 -0
  120. PySPlusthon/enums/poll_type.py +8 -0
  121. PySPlusthon/enums/transaction_status.py +10 -0
  122. PySPlusthon/errors/__init__.py +11 -0
  123. PySPlusthon/errors/dispatching_errors/__init__.py +2 -0
  124. PySPlusthon/errors/dispatching_errors/break_dispatching.py +2 -0
  125. PySPlusthon/errors/dispatching_errors/continue_dispatching.py +2 -0
  126. PySPlusthon/errors/rpc_errors/__init__.py +8 -0
  127. PySPlusthon/errors/rpc_errors/bad_request_error.py +6 -0
  128. PySPlusthon/errors/rpc_errors/flood_error.py +6 -0
  129. PySPlusthon/errors/rpc_errors/forbidden_error.py +6 -0
  130. PySPlusthon/errors/rpc_errors/internal_error.py +6 -0
  131. PySPlusthon/errors/rpc_errors/not_found_error.py +6 -0
  132. PySPlusthon/errors/rpc_errors/rpc_error.py +23 -0
  133. PySPlusthon/errors/rpc_errors/too_many_requests.py +10 -0
  134. PySPlusthon/errors/rpc_errors/unauthorized_error.py +6 -0
  135. PySPlusthon/event_handlers/__init__.py +12 -0
  136. PySPlusthon/event_handlers/callback_query_handler.py +16 -0
  137. PySPlusthon/event_handlers/command_handler.py +46 -0
  138. PySPlusthon/event_handlers/connect_handler.py +19 -0
  139. PySPlusthon/event_handlers/disconnect_handler.py +18 -0
  140. PySPlusthon/event_handlers/edited_message_handler.py +16 -0
  141. PySPlusthon/event_handlers/error_handler.py +15 -0
  142. PySPlusthon/event_handlers/event_handler.py +53 -0
  143. PySPlusthon/event_handlers/initialize_handler.py +18 -0
  144. PySPlusthon/event_handlers/message_handler.py +16 -0
  145. PySPlusthon/event_handlers/shipping_query_handler.py +16 -0
  146. PySPlusthon/event_handlers/shutdown_handler.py +18 -0
  147. PySPlusthon/event_handlers/update_handler.py +16 -0
  148. PySPlusthon/network/__init__.py +1 -0
  149. PySPlusthon/network/httpconnection.py +74 -0
  150. PySPlusthon/objects/__init__.py +43 -0
  151. PySPlusthon/objects/animation.py +44 -0
  152. PySPlusthon/objects/audio.py +36 -0
  153. PySPlusthon/objects/callback_query.py +37 -0
  154. PySPlusthon/objects/chat.py +118 -0
  155. PySPlusthon/objects/chat_member.py +53 -0
  156. PySPlusthon/objects/chat_permissions.py +26 -0
  157. PySPlusthon/objects/chat_photo.py +24 -0
  158. PySPlusthon/objects/contact.py +18 -0
  159. PySPlusthon/objects/date.py +35 -0
  160. PySPlusthon/objects/document.py +36 -0
  161. PySPlusthon/objects/edited_message.py +27 -0
  162. PySPlusthon/objects/entity.py +21 -0
  163. PySPlusthon/objects/file.py +21 -0
  164. PySPlusthon/objects/forward_origin.py +22 -0
  165. PySPlusthon/objects/inline_keyboard.py +65 -0
  166. PySPlusthon/objects/inline_keyboard_button.py +30 -0
  167. PySPlusthon/objects/input_media.py +44 -0
  168. PySPlusthon/objects/input_media_photo.py +14 -0
  169. PySPlusthon/objects/input_media_video.py +14 -0
  170. PySPlusthon/objects/invite_link.py +32 -0
  171. PySPlusthon/objects/list.py +24 -0
  172. PySPlusthon/objects/location.py +14 -0
  173. PySPlusthon/objects/message.py +478 -0
  174. PySPlusthon/objects/message_id.py +31 -0
  175. PySPlusthon/objects/object.py +154 -0
  176. PySPlusthon/objects/order_info.py +19 -0
  177. PySPlusthon/objects/photo.py +31 -0
  178. PySPlusthon/objects/poll.py +34 -0
  179. PySPlusthon/objects/poll_option.py +16 -0
  180. PySPlusthon/objects/reply_keyboard.py +79 -0
  181. PySPlusthon/objects/reply_keyboard_button.py +27 -0
  182. PySPlusthon/objects/reply_keyboard_remove.py +10 -0
  183. PySPlusthon/objects/reply_markup.py +12 -0
  184. PySPlusthon/objects/shipping_address.py +22 -0
  185. PySPlusthon/objects/shipping_query.py +20 -0
  186. PySPlusthon/objects/sticker.py +54 -0
  187. PySPlusthon/objects/sticker_set.py +29 -0
  188. PySPlusthon/objects/transaction.py +25 -0
  189. PySPlusthon/objects/update.py +33 -0
  190. PySPlusthon/objects/user.py +60 -0
  191. PySPlusthon/objects/video.py +45 -0
  192. PySPlusthon/objects/voice.py +31 -0
  193. PySPlusthon/objects/webhook_info.py +16 -0
  194. PySPlusthon/proto/__init__.py +2 -0
  195. PySPlusthon/proto/enums_pb2.py +46 -0
  196. PySPlusthon/proto/enums_pb2.pyi +99 -0
  197. PySPlusthon/proto/enums_pb2_grpc.py +24 -0
  198. PySPlusthon/proto/requests/__init__.py +209 -0
  199. PySPlusthon/proto/requests/abacus_pb2.py +40 -0
  200. PySPlusthon/proto/requests/abacus_pb2.pyi +31 -0
  201. PySPlusthon/proto/requests/abacus_pb2_grpc.py +24 -0
  202. PySPlusthon/proto/requests/auth_pb2.py +49 -0
  203. PySPlusthon/proto/requests/auth_pb2.pyi +67 -0
  204. PySPlusthon/proto/requests/auth_pb2_grpc.py +24 -0
  205. PySPlusthon/proto/requests/configs_pb2.py +37 -0
  206. PySPlusthon/proto/requests/configs_pb2.pyi +15 -0
  207. PySPlusthon/proto/requests/configs_pb2_grpc.py +24 -0
  208. PySPlusthon/proto/requests/files_pb2.py +40 -0
  209. PySPlusthon/proto/requests/files_pb2.pyi +34 -0
  210. PySPlusthon/proto/requests/files_pb2_grpc.py +24 -0
  211. PySPlusthon/proto/requests/groups_pb2.py +82 -0
  212. PySPlusthon/proto/requests/groups_pb2.pyi +213 -0
  213. PySPlusthon/proto/requests/groups_pb2_grpc.py +24 -0
  214. PySPlusthon/proto/requests/messaging_pb2.py +56 -0
  215. PySPlusthon/proto/requests/messaging_pb2.pyi +119 -0
  216. PySPlusthon/proto/requests/messaging_pb2_grpc.py +24 -0
  217. PySPlusthon/proto/requests/presence_pb2.py +40 -0
  218. PySPlusthon/proto/requests/presence_pb2.pyi +24 -0
  219. PySPlusthon/proto/requests/presence_pb2_grpc.py +24 -0
  220. PySPlusthon/proto/requests/request_pb2.py +42 -0
  221. PySPlusthon/proto/requests/request_pb2.pyi +35 -0
  222. PySPlusthon/proto/requests/request_pb2_grpc.py +24 -0
  223. PySPlusthon/proto/requests/users_pb2.py +43 -0
  224. PySPlusthon/proto/requests/users_pb2.pyi +34 -0
  225. PySPlusthon/proto/requests/users_pb2_grpc.py +24 -0
  226. PySPlusthon/proto/responses/__init__.py +6 -0
  227. PySPlusthon/proto/responses/abacus_pb2.py +37 -0
  228. PySPlusthon/proto/responses/abacus_pb2.pyi +14 -0
  229. PySPlusthon/proto/responses/abacus_pb2_grpc.py +24 -0
  230. PySPlusthon/proto/responses/auth_pb2.py +42 -0
  231. PySPlusthon/proto/responses/auth_pb2.pyi +40 -0
  232. PySPlusthon/proto/responses/auth_pb2_grpc.py +24 -0
  233. PySPlusthon/proto/responses/files_pb2.py +39 -0
  234. PySPlusthon/proto/responses/files_pb2.pyi +27 -0
  235. PySPlusthon/proto/responses/files_pb2_grpc.py +24 -0
  236. PySPlusthon/proto/responses/groups_pb2.py +59 -0
  237. PySPlusthon/proto/responses/groups_pb2.pyi +90 -0
  238. PySPlusthon/proto/responses/groups_pb2_grpc.py +24 -0
  239. PySPlusthon/proto/responses/messaging_pb2.py +44 -0
  240. PySPlusthon/proto/responses/messaging_pb2.pyi +37 -0
  241. PySPlusthon/proto/responses/messaging_pb2_grpc.py +24 -0
  242. PySPlusthon/proto/responses/users_pb2.py +41 -0
  243. PySPlusthon/proto/responses/users_pb2.pyi +28 -0
  244. PySPlusthon/proto/responses/users_pb2_grpc.py +24 -0
  245. PySPlusthon/proto/structs/__init__.py +7 -0
  246. PySPlusthon/proto/structs/collections_pb2.py +54 -0
  247. PySPlusthon/proto/structs/collections_pb2.pyi +79 -0
  248. PySPlusthon/proto/structs/collections_pb2_grpc.py +24 -0
  249. PySPlusthon/proto/structs/files_pb2.py +52 -0
  250. PySPlusthon/proto/structs/files_pb2.pyi +93 -0
  251. PySPlusthon/proto/structs/files_pb2_grpc.py +24 -0
  252. PySPlusthon/proto/structs/groups_pb2.py +49 -0
  253. PySPlusthon/proto/structs/groups_pb2.pyi +144 -0
  254. PySPlusthon/proto/structs/groups_pb2_grpc.py +24 -0
  255. PySPlusthon/proto/structs/messaging_pb2.py +81 -0
  256. PySPlusthon/proto/structs/messaging_pb2.pyi +296 -0
  257. PySPlusthon/proto/structs/messaging_pb2_grpc.py +24 -0
  258. PySPlusthon/proto/structs/peers_pb2.py +47 -0
  259. PySPlusthon/proto/structs/peers_pb2.pyi +56 -0
  260. PySPlusthon/proto/structs/peers_pb2_grpc.py +24 -0
  261. PySPlusthon/proto/structs/set_updates_pb2.py +37 -0
  262. PySPlusthon/proto/structs/set_updates_pb2.pyi +15 -0
  263. PySPlusthon/proto/structs/set_updates_pb2_grpc.py +24 -0
  264. PySPlusthon/proto/structs/users_pb2.py +54 -0
  265. PySPlusthon/proto/structs/users_pb2.pyi +122 -0
  266. PySPlusthon/proto/structs/users_pb2_grpc.py +24 -0
  267. PySPlusthon/proto/updates/__init__.py +1 -0
  268. PySPlusthon/proto/updates/messaging_pb2.py +38 -0
  269. PySPlusthon/proto/updates/messaging_pb2.pyi +26 -0
  270. PySPlusthon/proto/updates/messaging_pb2_grpc.py +24 -0
  271. PySPlusthon/proto/ws_pb2.py +52 -0
  272. PySPlusthon/proto/ws_pb2.pyi +76 -0
  273. PySPlusthon/proto/ws_pb2_grpc.py +24 -0
  274. PySPlusthon/smart_call.py +73 -0
  275. PySPlusthon/states/__init__.py +3 -0
  276. PySPlusthon/states/state.py +11 -0
  277. PySPlusthon/states/state_group.py +13 -0
  278. PySPlusthon/states/state_machine.py +83 -0
  279. PySPlusthon/sync_support.py +48 -0
  280. pysplusthon-0.5.3.dist-info/METADATA +65 -0
  281. pysplusthon-0.5.3.dist-info/RECORD +284 -0
  282. pysplusthon-0.5.3.dist-info/WHEEL +5 -0
  283. pysplusthon-0.5.3.dist-info/licenses/LICENSE +19 -0
  284. pysplusthon-0.5.3.dist-info/top_level.txt +1 -0
@@ -0,0 +1,90 @@
1
+ from ..structs import groups_pb2 as _groups_pb2
2
+ from ..structs import files_pb2 as _files_pb2
3
+ from ..structs import peers_pb2 as _peers_pb2
4
+ from google.protobuf.internal import containers as _containers
5
+ from google.protobuf import descriptor as _descriptor
6
+ from google.protobuf import message as _message
7
+ from collections.abc import Iterable as _Iterable, Mapping as _Mapping
8
+ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
9
+
10
+ DESCRIPTOR: _descriptor.FileDescriptor
11
+
12
+ class GetGroupPreview(_message.Message):
13
+ __slots__ = ("group", "action")
14
+ GROUP_FIELD_NUMBER: _ClassVar[int]
15
+ ACTION_FIELD_NUMBER: _ClassVar[int]
16
+ group: _groups_pb2.FullGroup
17
+ action: int
18
+ def __init__(self, group: _Optional[_Union[_groups_pb2.FullGroup, _Mapping]] = ..., action: _Optional[int] = ...) -> None: ...
19
+
20
+ class LoadGroupAvatars(_message.Message):
21
+ __slots__ = ("avatars",)
22
+ AVATARS_FIELD_NUMBER: _ClassVar[int]
23
+ avatars: _files_pb2.Avatars
24
+ def __init__(self, avatars: _Optional[_Union[_files_pb2.Avatars, _Mapping]] = ...) -> None: ...
25
+
26
+ class JoinGroup(_message.Message):
27
+ __slots__ = ("group", "seq")
28
+ GROUP_FIELD_NUMBER: _ClassVar[int]
29
+ SEQ_FIELD_NUMBER: _ClassVar[int]
30
+ group: _groups_pb2.Group
31
+ seq: int
32
+ def __init__(self, group: _Optional[_Union[_groups_pb2.Group, _Mapping]] = ..., seq: _Optional[int] = ...) -> None: ...
33
+
34
+ class JoinPublicGroup(_message.Message):
35
+ __slots__ = ("group", "seq")
36
+ GROUP_FIELD_NUMBER: _ClassVar[int]
37
+ SEQ_FIELD_NUMBER: _ClassVar[int]
38
+ group: _groups_pb2.Group
39
+ seq: int
40
+ def __init__(self, group: _Optional[_Union[_groups_pb2.Group, _Mapping]] = ..., seq: _Optional[int] = ...) -> None: ...
41
+
42
+ class GetFullGroup(_message.Message):
43
+ __slots__ = ("full_group",)
44
+ FULL_GROUP_FIELD_NUMBER: _ClassVar[int]
45
+ full_group: _groups_pb2.FullGroup
46
+ def __init__(self, full_group: _Optional[_Union[_groups_pb2.FullGroup, _Mapping]] = ...) -> None: ...
47
+
48
+ class GetGroupMembersCount(_message.Message):
49
+ __slots__ = ("members_count",)
50
+ MEMBERS_COUNT_FIELD_NUMBER: _ClassVar[int]
51
+ members_count: int
52
+ def __init__(self, members_count: _Optional[int] = ...) -> None: ...
53
+
54
+ class InviteUsers(_message.Message):
55
+ __slots__ = ("not_added_user_peers",)
56
+ NOT_ADDED_USER_PEERS_FIELD_NUMBER: _ClassVar[int]
57
+ not_added_user_peers: _containers.RepeatedCompositeFieldContainer[_peers_pb2.UserOutPeer]
58
+ def __init__(self, not_added_user_peers: _Optional[_Iterable[_Union[_peers_pb2.UserOutPeer, _Mapping]]] = ...) -> None: ...
59
+
60
+ class LoadMembers(_message.Message):
61
+ __slots__ = ("members", "next")
62
+ MEMBERS_FIELD_NUMBER: _ClassVar[int]
63
+ NEXT_FIELD_NUMBER: _ClassVar[int]
64
+ members: _containers.RepeatedCompositeFieldContainer[_groups_pb2.Member]
65
+ next: bytes
66
+ def __init__(self, members: _Optional[_Iterable[_Union[_groups_pb2.Member, _Mapping]]] = ..., next: _Optional[bytes] = ...) -> None: ...
67
+
68
+ class GetGroupInviteUrl(_message.Message):
69
+ __slots__ = ("url",)
70
+ URL_FIELD_NUMBER: _ClassVar[int]
71
+ url: str
72
+ def __init__(self, url: _Optional[str] = ...) -> None: ...
73
+
74
+ class RevokeInviteUrl(_message.Message):
75
+ __slots__ = ("url",)
76
+ URL_FIELD_NUMBER: _ClassVar[int]
77
+ url: str
78
+ def __init__(self, url: _Optional[str] = ...) -> None: ...
79
+
80
+ class EditGroupAvatar(_message.Message):
81
+ __slots__ = ("avatar", "seq", "state", "date")
82
+ AVATAR_FIELD_NUMBER: _ClassVar[int]
83
+ SEQ_FIELD_NUMBER: _ClassVar[int]
84
+ STATE_FIELD_NUMBER: _ClassVar[int]
85
+ DATE_FIELD_NUMBER: _ClassVar[int]
86
+ avatar: _files_pb2.Avatar
87
+ seq: int
88
+ state: bytes
89
+ date: int
90
+ def __init__(self, avatar: _Optional[_Union[_files_pb2.Avatar, _Mapping]] = ..., seq: _Optional[int] = ..., state: _Optional[bytes] = ..., date: _Optional[int] = ...) -> None: ...
@@ -0,0 +1,24 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+ import warnings
5
+
6
+
7
+ GRPC_GENERATED_VERSION = '1.80.0'
8
+ GRPC_VERSION = grpc.__version__
9
+ _version_not_supported = False
10
+
11
+ try:
12
+ from grpc._utilities import first_version_is_lower
13
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14
+ except ImportError:
15
+ _version_not_supported = True
16
+
17
+ if _version_not_supported:
18
+ raise RuntimeError(
19
+ f'The grpc package installed is at version {GRPC_VERSION},'
20
+ + ' but the generated code in responses/groups_pb2_grpc.py depends on'
21
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
22
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24
+ )
@@ -0,0 +1,44 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: responses/messaging.proto
5
+ # Protobuf Python Version: 6.31.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 1,
17
+ '',
18
+ 'responses/messaging.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from ..structs import messaging_pb2 as structs_dot_messaging__pb2
26
+ from ..structs import groups_pb2 as structs_dot_groups__pb2
27
+ from ..structs import users_pb2 as structs_dot_users__pb2
28
+ from ..structs import peers_pb2 as structs_dot_peers__pb2
29
+
30
+
31
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19responses/messaging.proto\x12\tresponses\x1a\x17structs/messaging.proto\x1a\x14structs/groups.proto\x1a\x13structs/users.proto\x1a\x13structs/peers.proto\"9\n\x0bLoadHistory\x12*\n\x07history\x18\x01 \x03(\x0b\x32\x19.structs.MessageContainer\"\xc3\x01\n\x0bLoadDialogs\x12\x1e\n\x06groups\x18\x01 \x03(\x0b\x32\x0e.structs.Group\x12\x1c\n\x05users\x18\x02 \x03(\x0b\x32\r.structs.User\x12 \n\x07\x64ialogs\x18\x03 \x03(\x0b\x32\x0f.structs.Dialog\x12(\n\nuser_peers\x18\x04 \x03(\x0b\x32\x14.structs.UserOutPeer\x12*\n\x0bgroup_peers\x18\x05 \x03(\x0b\x32\x15.structs.GroupOutPeer\"H\n\x12LoadPinnedMessages\x12\x32\n\x0fpinned_messages\x18\x01 \x03(\x0b\x32\x19.structs.MessageContainerb\x06proto3')
32
+
33
+ _globals = globals()
34
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
35
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'responses.messaging_pb2', _globals)
36
+ if not _descriptor._USE_C_DESCRIPTORS:
37
+ DESCRIPTOR._loaded_options = None
38
+ _globals['_LOADHISTORY']._serialized_start=129
39
+ _globals['_LOADHISTORY']._serialized_end=186
40
+ _globals['_LOADDIALOGS']._serialized_start=189
41
+ _globals['_LOADDIALOGS']._serialized_end=384
42
+ _globals['_LOADPINNEDMESSAGES']._serialized_start=386
43
+ _globals['_LOADPINNEDMESSAGES']._serialized_end=458
44
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,37 @@
1
+ from ..structs import messaging_pb2 as _messaging_pb2
2
+ from ..structs import groups_pb2 as _groups_pb2
3
+ from ..structs import users_pb2 as _users_pb2
4
+ from ..structs import peers_pb2 as _peers_pb2
5
+ from google.protobuf.internal import containers as _containers
6
+ from google.protobuf import descriptor as _descriptor
7
+ from google.protobuf import message as _message
8
+ from collections.abc import Iterable as _Iterable, Mapping as _Mapping
9
+ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
10
+
11
+ DESCRIPTOR: _descriptor.FileDescriptor
12
+
13
+ class LoadHistory(_message.Message):
14
+ __slots__ = ("history",)
15
+ HISTORY_FIELD_NUMBER: _ClassVar[int]
16
+ history: _containers.RepeatedCompositeFieldContainer[_messaging_pb2.MessageContainer]
17
+ def __init__(self, history: _Optional[_Iterable[_Union[_messaging_pb2.MessageContainer, _Mapping]]] = ...) -> None: ...
18
+
19
+ class LoadDialogs(_message.Message):
20
+ __slots__ = ("groups", "users", "dialogs", "user_peers", "group_peers")
21
+ GROUPS_FIELD_NUMBER: _ClassVar[int]
22
+ USERS_FIELD_NUMBER: _ClassVar[int]
23
+ DIALOGS_FIELD_NUMBER: _ClassVar[int]
24
+ USER_PEERS_FIELD_NUMBER: _ClassVar[int]
25
+ GROUP_PEERS_FIELD_NUMBER: _ClassVar[int]
26
+ groups: _containers.RepeatedCompositeFieldContainer[_groups_pb2.Group]
27
+ users: _containers.RepeatedCompositeFieldContainer[_users_pb2.User]
28
+ dialogs: _containers.RepeatedCompositeFieldContainer[_messaging_pb2.Dialog]
29
+ user_peers: _containers.RepeatedCompositeFieldContainer[_peers_pb2.UserOutPeer]
30
+ group_peers: _containers.RepeatedCompositeFieldContainer[_peers_pb2.GroupOutPeer]
31
+ def __init__(self, groups: _Optional[_Iterable[_Union[_groups_pb2.Group, _Mapping]]] = ..., users: _Optional[_Iterable[_Union[_users_pb2.User, _Mapping]]] = ..., dialogs: _Optional[_Iterable[_Union[_messaging_pb2.Dialog, _Mapping]]] = ..., user_peers: _Optional[_Iterable[_Union[_peers_pb2.UserOutPeer, _Mapping]]] = ..., group_peers: _Optional[_Iterable[_Union[_peers_pb2.GroupOutPeer, _Mapping]]] = ...) -> None: ...
32
+
33
+ class LoadPinnedMessages(_message.Message):
34
+ __slots__ = ("pinned_messages",)
35
+ PINNED_MESSAGES_FIELD_NUMBER: _ClassVar[int]
36
+ pinned_messages: _containers.RepeatedCompositeFieldContainer[_messaging_pb2.MessageContainer]
37
+ def __init__(self, pinned_messages: _Optional[_Iterable[_Union[_messaging_pb2.MessageContainer, _Mapping]]] = ...) -> None: ...
@@ -0,0 +1,24 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+ import warnings
5
+
6
+
7
+ GRPC_GENERATED_VERSION = '1.80.0'
8
+ GRPC_VERSION = grpc.__version__
9
+ _version_not_supported = False
10
+
11
+ try:
12
+ from grpc._utilities import first_version_is_lower
13
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14
+ except ImportError:
15
+ _version_not_supported = True
16
+
17
+ if _version_not_supported:
18
+ raise RuntimeError(
19
+ f'The grpc package installed is at version {GRPC_VERSION},'
20
+ + ' but the generated code in responses/messaging_pb2_grpc.py depends on'
21
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
22
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24
+ )
@@ -0,0 +1,41 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: responses/users.proto
5
+ # Protobuf Python Version: 6.31.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 1,
17
+ '',
18
+ 'responses/users.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from ..structs import users_pb2 as structs_dot_users__pb2
26
+ from ..structs import peers_pb2 as structs_dot_peers__pb2
27
+ from ..structs import groups_pb2 as structs_dot_groups__pb2
28
+
29
+
30
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15responses/users.proto\x12\tresponses\x1a\x13structs/users.proto\x1a\x13structs/peers.proto\x1a\x14structs/groups.proto\")\n\tLoadUsers\x12\x1c\n\x05users\x18\x01 \x03(\x0b\x32\r.structs.User\"\xa4\x01\n\x0eSearchContacts\x12\x1c\n\x05users\x18\x01 \x03(\x0b\x32\r.structs.User\x12(\n\nuser_peers\x18\x02 \x03(\x0b\x32\x14.structs.UserOutPeer\x12\x1e\n\x06groups\x18\x04 \x03(\x0b\x32\x0e.structs.Group\x12*\n\x0bgroup_peers\x18\x05 \x03(\x0b\x32\x15.structs.GroupOutPeerb\x06proto3')
31
+
32
+ _globals = globals()
33
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
34
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'responses.users_pb2', _globals)
35
+ if not _descriptor._USE_C_DESCRIPTORS:
36
+ DESCRIPTOR._loaded_options = None
37
+ _globals['_LOADUSERS']._serialized_start=100
38
+ _globals['_LOADUSERS']._serialized_end=141
39
+ _globals['_SEARCHCONTACTS']._serialized_start=144
40
+ _globals['_SEARCHCONTACTS']._serialized_end=308
41
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,28 @@
1
+ from ..structs import users_pb2 as _users_pb2
2
+ from ..structs import peers_pb2 as _peers_pb2
3
+ from ..structs import groups_pb2 as _groups_pb2
4
+ from google.protobuf.internal import containers as _containers
5
+ from google.protobuf import descriptor as _descriptor
6
+ from google.protobuf import message as _message
7
+ from collections.abc import Iterable as _Iterable, Mapping as _Mapping
8
+ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
9
+
10
+ DESCRIPTOR: _descriptor.FileDescriptor
11
+
12
+ class LoadUsers(_message.Message):
13
+ __slots__ = ("users",)
14
+ USERS_FIELD_NUMBER: _ClassVar[int]
15
+ users: _containers.RepeatedCompositeFieldContainer[_users_pb2.User]
16
+ def __init__(self, users: _Optional[_Iterable[_Union[_users_pb2.User, _Mapping]]] = ...) -> None: ...
17
+
18
+ class SearchContacts(_message.Message):
19
+ __slots__ = ("users", "user_peers", "groups", "group_peers")
20
+ USERS_FIELD_NUMBER: _ClassVar[int]
21
+ USER_PEERS_FIELD_NUMBER: _ClassVar[int]
22
+ GROUPS_FIELD_NUMBER: _ClassVar[int]
23
+ GROUP_PEERS_FIELD_NUMBER: _ClassVar[int]
24
+ users: _containers.RepeatedCompositeFieldContainer[_users_pb2.User]
25
+ user_peers: _containers.RepeatedCompositeFieldContainer[_peers_pb2.UserOutPeer]
26
+ groups: _containers.RepeatedCompositeFieldContainer[_groups_pb2.Group]
27
+ group_peers: _containers.RepeatedCompositeFieldContainer[_peers_pb2.GroupOutPeer]
28
+ def __init__(self, users: _Optional[_Iterable[_Union[_users_pb2.User, _Mapping]]] = ..., user_peers: _Optional[_Iterable[_Union[_peers_pb2.UserOutPeer, _Mapping]]] = ..., groups: _Optional[_Iterable[_Union[_groups_pb2.Group, _Mapping]]] = ..., group_peers: _Optional[_Iterable[_Union[_peers_pb2.GroupOutPeer, _Mapping]]] = ...) -> None: ...
@@ -0,0 +1,24 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+ import warnings
5
+
6
+
7
+ GRPC_GENERATED_VERSION = '1.80.0'
8
+ GRPC_VERSION = grpc.__version__
9
+ _version_not_supported = False
10
+
11
+ try:
12
+ from grpc._utilities import first_version_is_lower
13
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14
+ except ImportError:
15
+ _version_not_supported = True
16
+
17
+ if _version_not_supported:
18
+ raise RuntimeError(
19
+ f'The grpc package installed is at version {GRPC_VERSION},'
20
+ + ' but the generated code in responses/users_pb2_grpc.py depends on'
21
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
22
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24
+ )
@@ -0,0 +1,7 @@
1
+ from .collections_pb2 import *
2
+ from .files_pb2 import *
3
+ from .groups_pb2 import *
4
+ from .messaging_pb2 import *
5
+ from .peers_pb2 import *
6
+ from .set_updates_pb2 import *
7
+ from .users_pb2 import *
@@ -0,0 +1,54 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: structs/collections.proto
5
+ # Protobuf Python Version: 6.31.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 1,
17
+ '',
18
+ 'structs/collections.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+
26
+
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19structs/collections.proto\x12\x07structs\"\x1b\n\nInt64Value\x12\r\n\x05value\x18\x01 \x01(\x03\"\x1a\n\tBoolValue\x12\r\n\x05value\x18\x01 \x01(\x08\"\x1c\n\x0bStringValue\x12\r\n\x05value\x18\x01 \x01(\t\"\x1b\n\nBytesValue\x12\r\n\x05Value\x18\x01 \x01(\t\"\x1c\n\x0b\x44oubleValue\x12\r\n\x05value\x18\x01 \x01(\x01\"\x1b\n\nArrayValue\x12\r\n\x05\x61rray\x18\x01 \x03(\x0c\"\xa1\x01\n\x08RawValue\x12\x14\n\x0cstring_value\x18\x01 \x01(\t\x12\x15\n\rboolean_value\x18\x02 \x01(\x08\x12\x13\n\x0bint32_value\x18\x03 \x01(\x05\x12\x13\n\x0bint64_value\x18\x04 \x01(\x03\x12\x14\n\x0c\x64ouble_value\x18\x05 \x01(\x01\x12(\n\x0b\x61rray_value\x18\x06 \x01(\x0b\x32\x13.structs.ArrayValue\"=\n\x0cMapValueItem\x12\x0b\n\x03key\x18\x01 \x01(\t\x12 \n\x05value\x18\x02 \x01(\x0b\x32\x11.structs.RawValue\"0\n\x08MapValue\x12$\n\x05items\x18\x01 \x03(\x0b\x32\x15.structs.MapValueItem\"\x1b\n\nInt32Value\x12\r\n\x05value\x18\x01 \x01(\x05\x62\x06proto3')
28
+
29
+ _globals = globals()
30
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'structs.collections_pb2', _globals)
32
+ if not _descriptor._USE_C_DESCRIPTORS:
33
+ DESCRIPTOR._loaded_options = None
34
+ _globals['_INT64VALUE']._serialized_start=38
35
+ _globals['_INT64VALUE']._serialized_end=65
36
+ _globals['_BOOLVALUE']._serialized_start=67
37
+ _globals['_BOOLVALUE']._serialized_end=93
38
+ _globals['_STRINGVALUE']._serialized_start=95
39
+ _globals['_STRINGVALUE']._serialized_end=123
40
+ _globals['_BYTESVALUE']._serialized_start=125
41
+ _globals['_BYTESVALUE']._serialized_end=152
42
+ _globals['_DOUBLEVALUE']._serialized_start=154
43
+ _globals['_DOUBLEVALUE']._serialized_end=182
44
+ _globals['_ARRAYVALUE']._serialized_start=184
45
+ _globals['_ARRAYVALUE']._serialized_end=211
46
+ _globals['_RAWVALUE']._serialized_start=214
47
+ _globals['_RAWVALUE']._serialized_end=375
48
+ _globals['_MAPVALUEITEM']._serialized_start=377
49
+ _globals['_MAPVALUEITEM']._serialized_end=438
50
+ _globals['_MAPVALUE']._serialized_start=440
51
+ _globals['_MAPVALUE']._serialized_end=488
52
+ _globals['_INT32VALUE']._serialized_start=490
53
+ _globals['_INT32VALUE']._serialized_end=517
54
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,79 @@
1
+ from google.protobuf.internal import containers as _containers
2
+ from google.protobuf import descriptor as _descriptor
3
+ from google.protobuf import message as _message
4
+ from collections.abc import Iterable as _Iterable, Mapping as _Mapping
5
+ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
6
+
7
+ DESCRIPTOR: _descriptor.FileDescriptor
8
+
9
+ class Int64Value(_message.Message):
10
+ __slots__ = ("value",)
11
+ VALUE_FIELD_NUMBER: _ClassVar[int]
12
+ value: int
13
+ def __init__(self, value: _Optional[int] = ...) -> None: ...
14
+
15
+ class BoolValue(_message.Message):
16
+ __slots__ = ("value",)
17
+ VALUE_FIELD_NUMBER: _ClassVar[int]
18
+ value: bool
19
+ def __init__(self, value: bool = ...) -> None: ...
20
+
21
+ class StringValue(_message.Message):
22
+ __slots__ = ("value",)
23
+ VALUE_FIELD_NUMBER: _ClassVar[int]
24
+ value: str
25
+ def __init__(self, value: _Optional[str] = ...) -> None: ...
26
+
27
+ class BytesValue(_message.Message):
28
+ __slots__ = ("Value",)
29
+ VALUE_FIELD_NUMBER: _ClassVar[int]
30
+ Value: str
31
+ def __init__(self, Value: _Optional[str] = ...) -> None: ...
32
+
33
+ class DoubleValue(_message.Message):
34
+ __slots__ = ("value",)
35
+ VALUE_FIELD_NUMBER: _ClassVar[int]
36
+ value: float
37
+ def __init__(self, value: _Optional[float] = ...) -> None: ...
38
+
39
+ class ArrayValue(_message.Message):
40
+ __slots__ = ("array",)
41
+ ARRAY_FIELD_NUMBER: _ClassVar[int]
42
+ array: _containers.RepeatedScalarFieldContainer[bytes]
43
+ def __init__(self, array: _Optional[_Iterable[bytes]] = ...) -> None: ...
44
+
45
+ class RawValue(_message.Message):
46
+ __slots__ = ("string_value", "boolean_value", "int32_value", "int64_value", "double_value", "array_value")
47
+ STRING_VALUE_FIELD_NUMBER: _ClassVar[int]
48
+ BOOLEAN_VALUE_FIELD_NUMBER: _ClassVar[int]
49
+ INT32_VALUE_FIELD_NUMBER: _ClassVar[int]
50
+ INT64_VALUE_FIELD_NUMBER: _ClassVar[int]
51
+ DOUBLE_VALUE_FIELD_NUMBER: _ClassVar[int]
52
+ ARRAY_VALUE_FIELD_NUMBER: _ClassVar[int]
53
+ string_value: str
54
+ boolean_value: bool
55
+ int32_value: int
56
+ int64_value: int
57
+ double_value: float
58
+ array_value: ArrayValue
59
+ def __init__(self, string_value: _Optional[str] = ..., boolean_value: bool = ..., int32_value: _Optional[int] = ..., int64_value: _Optional[int] = ..., double_value: _Optional[float] = ..., array_value: _Optional[_Union[ArrayValue, _Mapping]] = ...) -> None: ...
60
+
61
+ class MapValueItem(_message.Message):
62
+ __slots__ = ("key", "value")
63
+ KEY_FIELD_NUMBER: _ClassVar[int]
64
+ VALUE_FIELD_NUMBER: _ClassVar[int]
65
+ key: str
66
+ value: RawValue
67
+ def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[RawValue, _Mapping]] = ...) -> None: ...
68
+
69
+ class MapValue(_message.Message):
70
+ __slots__ = ("items",)
71
+ ITEMS_FIELD_NUMBER: _ClassVar[int]
72
+ items: _containers.RepeatedCompositeFieldContainer[MapValueItem]
73
+ def __init__(self, items: _Optional[_Iterable[_Union[MapValueItem, _Mapping]]] = ...) -> None: ...
74
+
75
+ class Int32Value(_message.Message):
76
+ __slots__ = ("value",)
77
+ VALUE_FIELD_NUMBER: _ClassVar[int]
78
+ value: int
79
+ def __init__(self, value: _Optional[int] = ...) -> None: ...
@@ -0,0 +1,24 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+ import warnings
5
+
6
+
7
+ GRPC_GENERATED_VERSION = '1.80.0'
8
+ GRPC_VERSION = grpc.__version__
9
+ _version_not_supported = False
10
+
11
+ try:
12
+ from grpc._utilities import first_version_is_lower
13
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14
+ except ImportError:
15
+ _version_not_supported = True
16
+
17
+ if _version_not_supported:
18
+ raise RuntimeError(
19
+ f'The grpc package installed is at version {GRPC_VERSION},'
20
+ + ' but the generated code in structs/collections_pb2_grpc.py depends on'
21
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
22
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24
+ )
@@ -0,0 +1,52 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: structs/files.proto
5
+ # Protobuf Python Version: 6.31.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 1,
17
+ '',
18
+ 'structs/files.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from ..structs import collections_pb2 as structs_dot_collections__pb2
26
+ from .. import enums_pb2 as enums__pb2
27
+
28
+
29
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13structs/files.proto\x12\x07structs\x1a\x19structs/collections.proto\x1a\x0b\x65nums.proto\"0\n\tFastThumb\x12\t\n\x01w\x18\x01 \x01(\x05\x12\t\n\x01h\x18\x02 \x01(\x05\x12\r\n\x05thumb\x18\x03 \x01(\x0c\"o\n\rImageLocation\x12,\n\rfile_location\x18\x01 \x01(\x0b\x32\x15.structs.FileLocation\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12\x11\n\tfile_size\x18\x04 \x01(\x05\"g\n\x0c\x46ileLocation\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\x04\x12\x13\n\x0b\x61\x63\x63\x65ss_hash\x18\x02 \x01(\x03\x12\x31\n\x14\x66ile_storage_version\x18\x03 \x01(\x0b\x32\x13.structs.Int32Value\"m\n\x0b\x41vatarImage\x12,\n\rfile_location\x18\x01 \x01(\x0b\x32\x15.structs.FileLocation\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12\x11\n\tfile_size\x18\x04 \x01(\x05\"\xcc\x01\n\x06\x41vatar\x12)\n\x0bsmall_image\x18\x01 \x01(\x0b\x32\x14.structs.AvatarImage\x12)\n\x0blarge_image\x18\x02 \x01(\x0b\x32\x14.structs.AvatarImage\x12(\n\nfull_image\x18\x03 \x01(\x0b\x32\x14.structs.AvatarImage\x12\x1f\n\x02id\x18\x04 \x01(\x0b\x32\x13.structs.Int64Value\x12!\n\x04\x64\x61te\x18\x05 \x01(\x0b\x32\x13.structs.Int64Value\".\n\rSendTypeValue\x12\x1d\n\x04type\x18\x01 \x01(\x0e\x32\x0f.enums.SendType\"+\n\x07\x41vatars\x12 \n\x07\x61vatars\x18\x01 \x03(\x0b\x32\x0f.structs.Avatar\"\x82\x01\n\x12\x46ileUrlDescription\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\x03\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x05\x12\x14\n\x0cunsigned_url\x18\x06 \x01(\t\x12\'\n\nchunk_size\x18\x07 \x01(\x0b\x32\x13.structs.Int32Valueb\x06proto3')
30
+
31
+ _globals = globals()
32
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'structs.files_pb2', _globals)
34
+ if not _descriptor._USE_C_DESCRIPTORS:
35
+ DESCRIPTOR._loaded_options = None
36
+ _globals['_FASTTHUMB']._serialized_start=72
37
+ _globals['_FASTTHUMB']._serialized_end=120
38
+ _globals['_IMAGELOCATION']._serialized_start=122
39
+ _globals['_IMAGELOCATION']._serialized_end=233
40
+ _globals['_FILELOCATION']._serialized_start=235
41
+ _globals['_FILELOCATION']._serialized_end=338
42
+ _globals['_AVATARIMAGE']._serialized_start=340
43
+ _globals['_AVATARIMAGE']._serialized_end=449
44
+ _globals['_AVATAR']._serialized_start=452
45
+ _globals['_AVATAR']._serialized_end=656
46
+ _globals['_SENDTYPEVALUE']._serialized_start=658
47
+ _globals['_SENDTYPEVALUE']._serialized_end=704
48
+ _globals['_AVATARS']._serialized_start=706
49
+ _globals['_AVATARS']._serialized_end=749
50
+ _globals['_FILEURLDESCRIPTION']._serialized_start=752
51
+ _globals['_FILEURLDESCRIPTION']._serialized_end=882
52
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,93 @@
1
+ from ..structs import collections_pb2 as _collections_pb2
2
+ from .. import enums_pb2 as _enums_pb2
3
+ from google.protobuf.internal import containers as _containers
4
+ from google.protobuf import descriptor as _descriptor
5
+ from google.protobuf import message as _message
6
+ from collections.abc import Iterable as _Iterable, Mapping as _Mapping
7
+ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
8
+
9
+ DESCRIPTOR: _descriptor.FileDescriptor
10
+
11
+ class FastThumb(_message.Message):
12
+ __slots__ = ("w", "h", "thumb")
13
+ W_FIELD_NUMBER: _ClassVar[int]
14
+ H_FIELD_NUMBER: _ClassVar[int]
15
+ THUMB_FIELD_NUMBER: _ClassVar[int]
16
+ w: int
17
+ h: int
18
+ thumb: bytes
19
+ def __init__(self, w: _Optional[int] = ..., h: _Optional[int] = ..., thumb: _Optional[bytes] = ...) -> None: ...
20
+
21
+ class ImageLocation(_message.Message):
22
+ __slots__ = ("file_location", "width", "height", "file_size")
23
+ FILE_LOCATION_FIELD_NUMBER: _ClassVar[int]
24
+ WIDTH_FIELD_NUMBER: _ClassVar[int]
25
+ HEIGHT_FIELD_NUMBER: _ClassVar[int]
26
+ FILE_SIZE_FIELD_NUMBER: _ClassVar[int]
27
+ file_location: FileLocation
28
+ width: int
29
+ height: int
30
+ file_size: int
31
+ def __init__(self, file_location: _Optional[_Union[FileLocation, _Mapping]] = ..., width: _Optional[int] = ..., height: _Optional[int] = ..., file_size: _Optional[int] = ...) -> None: ...
32
+
33
+ class FileLocation(_message.Message):
34
+ __slots__ = ("file_id", "access_hash", "file_storage_version")
35
+ FILE_ID_FIELD_NUMBER: _ClassVar[int]
36
+ ACCESS_HASH_FIELD_NUMBER: _ClassVar[int]
37
+ FILE_STORAGE_VERSION_FIELD_NUMBER: _ClassVar[int]
38
+ file_id: int
39
+ access_hash: int
40
+ file_storage_version: _collections_pb2.Int32Value
41
+ def __init__(self, file_id: _Optional[int] = ..., access_hash: _Optional[int] = ..., file_storage_version: _Optional[_Union[_collections_pb2.Int32Value, _Mapping]] = ...) -> None: ...
42
+
43
+ class AvatarImage(_message.Message):
44
+ __slots__ = ("file_location", "width", "height", "file_size")
45
+ FILE_LOCATION_FIELD_NUMBER: _ClassVar[int]
46
+ WIDTH_FIELD_NUMBER: _ClassVar[int]
47
+ HEIGHT_FIELD_NUMBER: _ClassVar[int]
48
+ FILE_SIZE_FIELD_NUMBER: _ClassVar[int]
49
+ file_location: FileLocation
50
+ width: int
51
+ height: int
52
+ file_size: int
53
+ def __init__(self, file_location: _Optional[_Union[FileLocation, _Mapping]] = ..., width: _Optional[int] = ..., height: _Optional[int] = ..., file_size: _Optional[int] = ...) -> None: ...
54
+
55
+ class Avatar(_message.Message):
56
+ __slots__ = ("small_image", "large_image", "full_image", "id", "date")
57
+ SMALL_IMAGE_FIELD_NUMBER: _ClassVar[int]
58
+ LARGE_IMAGE_FIELD_NUMBER: _ClassVar[int]
59
+ FULL_IMAGE_FIELD_NUMBER: _ClassVar[int]
60
+ ID_FIELD_NUMBER: _ClassVar[int]
61
+ DATE_FIELD_NUMBER: _ClassVar[int]
62
+ small_image: AvatarImage
63
+ large_image: AvatarImage
64
+ full_image: AvatarImage
65
+ id: _collections_pb2.Int64Value
66
+ date: _collections_pb2.Int64Value
67
+ def __init__(self, small_image: _Optional[_Union[AvatarImage, _Mapping]] = ..., large_image: _Optional[_Union[AvatarImage, _Mapping]] = ..., full_image: _Optional[_Union[AvatarImage, _Mapping]] = ..., id: _Optional[_Union[_collections_pb2.Int64Value, _Mapping]] = ..., date: _Optional[_Union[_collections_pb2.Int64Value, _Mapping]] = ...) -> None: ...
68
+
69
+ class SendTypeValue(_message.Message):
70
+ __slots__ = ("type",)
71
+ TYPE_FIELD_NUMBER: _ClassVar[int]
72
+ type: _enums_pb2.SendType
73
+ def __init__(self, type: _Optional[_Union[_enums_pb2.SendType, str]] = ...) -> None: ...
74
+
75
+ class Avatars(_message.Message):
76
+ __slots__ = ("avatars",)
77
+ AVATARS_FIELD_NUMBER: _ClassVar[int]
78
+ avatars: _containers.RepeatedCompositeFieldContainer[Avatar]
79
+ def __init__(self, avatars: _Optional[_Iterable[_Union[Avatar, _Mapping]]] = ...) -> None: ...
80
+
81
+ class FileUrlDescription(_message.Message):
82
+ __slots__ = ("file_id", "url", "timeout", "unsigned_url", "chunk_size")
83
+ FILE_ID_FIELD_NUMBER: _ClassVar[int]
84
+ URL_FIELD_NUMBER: _ClassVar[int]
85
+ TIMEOUT_FIELD_NUMBER: _ClassVar[int]
86
+ UNSIGNED_URL_FIELD_NUMBER: _ClassVar[int]
87
+ CHUNK_SIZE_FIELD_NUMBER: _ClassVar[int]
88
+ file_id: int
89
+ url: str
90
+ timeout: int
91
+ unsigned_url: str
92
+ chunk_size: _collections_pb2.Int32Value
93
+ def __init__(self, file_id: _Optional[int] = ..., url: _Optional[str] = ..., timeout: _Optional[int] = ..., unsigned_url: _Optional[str] = ..., chunk_size: _Optional[_Union[_collections_pb2.Int32Value, _Mapping]] = ...) -> None: ...
@@ -0,0 +1,24 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+ import warnings
5
+
6
+
7
+ GRPC_GENERATED_VERSION = '1.80.0'
8
+ GRPC_VERSION = grpc.__version__
9
+ _version_not_supported = False
10
+
11
+ try:
12
+ from grpc._utilities import first_version_is_lower
13
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14
+ except ImportError:
15
+ _version_not_supported = True
16
+
17
+ if _version_not_supported:
18
+ raise RuntimeError(
19
+ f'The grpc package installed is at version {GRPC_VERSION},'
20
+ + ' but the generated code in structs/files_pb2_grpc.py depends on'
21
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
22
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24
+ )