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,49 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: structs/groups.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/groups.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 ..structs import files_pb2 as structs_dot_files__pb2
27
+ from ..structs import messaging_pb2 as structs_dot_messaging__pb2
28
+ from ..structs import peers_pb2 as structs_dot_peers__pb2
29
+ from .. import enums_pb2 as enums__pb2
30
+
31
+
32
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14structs/groups.proto\x12\x07structs\x1a\x19structs/collections.proto\x1a\x13structs/files.proto\x1a\x17structs/messaging.proto\x1a\x13structs/peers.proto\x1a\x0b\x65nums.proto\"V\n\x05Group\x12\n\n\x02id\x18\x01 \x01(\x05\x12\r\n\x05title\x18\x03 \x01(\t\x12\x15\n\rmembers_count\x18\x14 \x01(\x05\x12\x1b\n\x13\x61vailable_reactions\x18! \x03(\t\"\xf7\x05\n\tFullGroup\x12\n\n\x02id\x18\x01 \x01(\x05\x12\r\n\x05title\x18\x03 \x01(\t\x12\x1f\n\x06\x61vatar\x18\x04 \x01(\x0b\x32\x0f.structs.Avatar\x12\x11\n\towner_uid\x18\x05 \x01(\x05\x12\x13\n\x0b\x63reate_date\x18\x06 \x01(\x03\x12$\n\ngroup_type\x18\x07 \x01(\x0e\x32\x10.enums.GroupType\x12%\n\tis_member\x18\x08 \x01(\x0b\x32\x12.structs.BoolValue\x12*\n\rmembers_count\x18\n \x01(\x0b\x32\x13.structs.Int32Value\x12\"\n\x04nick\x18\x0b \x01(\x0b\x32\x14.structs.StringValue\x12)\n\x0bpermissions\x18\r \x01(\x0b\x32\x14.structs.Permissions\x12\x31\n\x13\x64\x65\x66\x61ult_permissions\x18\x0e \x01(\x0b\x32\x14.structs.Permissions\x12#\n\x05theme\x18\x0f \x01(\x0b\x32\x14.structs.StringValue\x12#\n\x05\x61\x62out\x18\x10 \x01(\x0b\x32\x14.structs.StringValue\x12 \n\x07members\x18\x11 \x03(\x0b\x32\x0f.structs.Member\x12 \n\x07\x65x_info\x18\x12 \x01(\x0b\x32\x0f.structs.ExInfo\x12&\n\x03pin\x18\x13 \x01(\x0b\x32\x19.structs.MessageContainer\x12\'\n\x0brestriction\x18\x14 \x01(\x0e\x32\x12.enums.Restriction\x12\x1b\n\x13\x61vailable_reactions\x18\x18 \x03(\t\x12&\n\nis_suspend\x18\x19 \x01(\x0b\x32\x12.structs.BoolValue\x12\x31\n\x14linked_group_peer_id\x18\x1a \x01(\x0b\x32\x13.structs.Int32Value\x12\x34\n\x18\x64iscussion_group_enabled\x18\x1b \x01(\x0b\x32\x12.structs.BoolValue\"\xd6\x03\n\x0bPermissions\x12\x13\n\x0bsee_message\x18\x01 \x01(\x08\x12\x16\n\x0e\x64\x65lete_message\x18\x02 \x01(\x08\x12\x11\n\tkick_user\x18\x03 \x01(\x08\x12\x13\n\x0bpin_message\x18\x04 \x01(\x08\x12\x13\n\x0binvite_user\x18\x05 \x01(\x08\x12\x11\n\tadd_admin\x18\x06 \x01(\x08\x12\x13\n\x0b\x63hange_info\x18\x07 \x01(\x08\x12\x14\n\x0csend_message\x18\x08 \x01(\x08\x12\x13\n\x0bsee_members\x18\t \x01(\x08\x12\x14\n\x0c\x65\x64it_message\x18\n \x01(\x08\x12\x12\n\nsend_media\x18\x0b \x01(\x08\x12\x19\n\x11send_gif_stickers\x18\x0c \x01(\x08\x12\x16\n\x0ereply_to_story\x18\r \x01(\x08\x12\x1c\n\x14\x66orward_message_from\x18\x0e \x01(\x08\x12\x18\n\x10send_gift_packet\x18\x0f \x01(\x08\x12\x12\n\nstart_call\x18\x10 \x01(\x08\x12\x19\n\x11send_link_message\x18\x11 \x01(\x08\x12\x1e\n\x16send_forwarded_message\x18\x12 \x01(\x08\x12\x11\n\tadd_story\x18\x13 \x01(\x08\x12\x13\n\x0bmanage_call\x18\x14 \x01(\x08\"U\n\x14LoadMembersCondition\x12\x1c\n\x14\x65xcepted_permissions\x18\x01 \x01(\x08\x12\x10\n\x08\x63ontacts\x18\x02 \x01(\x08\x12\r\n\x05query\x18\x03 \x01(\t\"\xc7\x01\n\x06Member\x12\x0b\n\x03uid\x18\x01 \x01(\x05\x12\x13\n\x0binviter_uid\x18\x02 \x01(\x05\x12\x0c\n\x04\x64\x61te\x18\x03 \x01(\x03\x12$\n\x08is_admin\x18\x04 \x01(\x0b\x32\x12.structs.BoolValue\x12\x18\n\x10promoter_user_id\x18\x05 \x01(\x05\x12\x13\n\x0bpromoted_at\x18\x06 \x01(\x03\x12)\n\x0bpermissions\x18\x07 \x01(\x0b\x32\x14.structs.Permissions\x12\r\n\x05title\x18\x08 \x01(\tb\x06proto3')
33
+
34
+ _globals = globals()
35
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
36
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'structs.groups_pb2', _globals)
37
+ if not _descriptor._USE_C_DESCRIPTORS:
38
+ DESCRIPTOR._loaded_options = None
39
+ _globals['_GROUP']._serialized_start=140
40
+ _globals['_GROUP']._serialized_end=226
41
+ _globals['_FULLGROUP']._serialized_start=229
42
+ _globals['_FULLGROUP']._serialized_end=988
43
+ _globals['_PERMISSIONS']._serialized_start=991
44
+ _globals['_PERMISSIONS']._serialized_end=1461
45
+ _globals['_LOADMEMBERSCONDITION']._serialized_start=1463
46
+ _globals['_LOADMEMBERSCONDITION']._serialized_end=1548
47
+ _globals['_MEMBER']._serialized_start=1551
48
+ _globals['_MEMBER']._serialized_end=1750
49
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,144 @@
1
+ from ..structs import collections_pb2 as _collections_pb2
2
+ from ..structs import files_pb2 as _files_pb2
3
+ from ..structs import messaging_pb2 as _messaging_pb2
4
+ from ..structs import peers_pb2 as _peers_pb2
5
+ from .. import enums_pb2 as _enums_pb2
6
+ from google.protobuf.internal import containers as _containers
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import message as _message
9
+ from collections.abc import Iterable as _Iterable, Mapping as _Mapping
10
+ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
11
+
12
+ DESCRIPTOR: _descriptor.FileDescriptor
13
+
14
+ class Group(_message.Message):
15
+ __slots__ = ("id", "title", "members_count", "available_reactions")
16
+ ID_FIELD_NUMBER: _ClassVar[int]
17
+ TITLE_FIELD_NUMBER: _ClassVar[int]
18
+ MEMBERS_COUNT_FIELD_NUMBER: _ClassVar[int]
19
+ AVAILABLE_REACTIONS_FIELD_NUMBER: _ClassVar[int]
20
+ id: int
21
+ title: str
22
+ members_count: int
23
+ available_reactions: _containers.RepeatedScalarFieldContainer[str]
24
+ def __init__(self, id: _Optional[int] = ..., title: _Optional[str] = ..., members_count: _Optional[int] = ..., available_reactions: _Optional[_Iterable[str]] = ...) -> None: ...
25
+
26
+ class FullGroup(_message.Message):
27
+ __slots__ = ("id", "title", "avatar", "owner_uid", "create_date", "group_type", "is_member", "members_count", "nick", "permissions", "default_permissions", "theme", "about", "members", "ex_info", "pin", "restriction", "available_reactions", "is_suspend", "linked_group_peer_id", "discussion_group_enabled")
28
+ ID_FIELD_NUMBER: _ClassVar[int]
29
+ TITLE_FIELD_NUMBER: _ClassVar[int]
30
+ AVATAR_FIELD_NUMBER: _ClassVar[int]
31
+ OWNER_UID_FIELD_NUMBER: _ClassVar[int]
32
+ CREATE_DATE_FIELD_NUMBER: _ClassVar[int]
33
+ GROUP_TYPE_FIELD_NUMBER: _ClassVar[int]
34
+ IS_MEMBER_FIELD_NUMBER: _ClassVar[int]
35
+ MEMBERS_COUNT_FIELD_NUMBER: _ClassVar[int]
36
+ NICK_FIELD_NUMBER: _ClassVar[int]
37
+ PERMISSIONS_FIELD_NUMBER: _ClassVar[int]
38
+ DEFAULT_PERMISSIONS_FIELD_NUMBER: _ClassVar[int]
39
+ THEME_FIELD_NUMBER: _ClassVar[int]
40
+ ABOUT_FIELD_NUMBER: _ClassVar[int]
41
+ MEMBERS_FIELD_NUMBER: _ClassVar[int]
42
+ EX_INFO_FIELD_NUMBER: _ClassVar[int]
43
+ PIN_FIELD_NUMBER: _ClassVar[int]
44
+ RESTRICTION_FIELD_NUMBER: _ClassVar[int]
45
+ AVAILABLE_REACTIONS_FIELD_NUMBER: _ClassVar[int]
46
+ IS_SUSPEND_FIELD_NUMBER: _ClassVar[int]
47
+ LINKED_GROUP_PEER_ID_FIELD_NUMBER: _ClassVar[int]
48
+ DISCUSSION_GROUP_ENABLED_FIELD_NUMBER: _ClassVar[int]
49
+ id: int
50
+ title: str
51
+ avatar: _files_pb2.Avatar
52
+ owner_uid: int
53
+ create_date: int
54
+ group_type: _enums_pb2.GroupType
55
+ is_member: _collections_pb2.BoolValue
56
+ members_count: _collections_pb2.Int32Value
57
+ nick: _collections_pb2.StringValue
58
+ permissions: Permissions
59
+ default_permissions: Permissions
60
+ theme: _collections_pb2.StringValue
61
+ about: _collections_pb2.StringValue
62
+ members: _containers.RepeatedCompositeFieldContainer[Member]
63
+ ex_info: _peers_pb2.ExInfo
64
+ pin: _messaging_pb2.MessageContainer
65
+ restriction: _enums_pb2.Restriction
66
+ available_reactions: _containers.RepeatedScalarFieldContainer[str]
67
+ is_suspend: _collections_pb2.BoolValue
68
+ linked_group_peer_id: _collections_pb2.Int32Value
69
+ discussion_group_enabled: _collections_pb2.BoolValue
70
+ def __init__(self, id: _Optional[int] = ..., title: _Optional[str] = ..., avatar: _Optional[_Union[_files_pb2.Avatar, _Mapping]] = ..., owner_uid: _Optional[int] = ..., create_date: _Optional[int] = ..., group_type: _Optional[_Union[_enums_pb2.GroupType, str]] = ..., is_member: _Optional[_Union[_collections_pb2.BoolValue, _Mapping]] = ..., members_count: _Optional[_Union[_collections_pb2.Int32Value, _Mapping]] = ..., nick: _Optional[_Union[_collections_pb2.StringValue, _Mapping]] = ..., permissions: _Optional[_Union[Permissions, _Mapping]] = ..., default_permissions: _Optional[_Union[Permissions, _Mapping]] = ..., theme: _Optional[_Union[_collections_pb2.StringValue, _Mapping]] = ..., about: _Optional[_Union[_collections_pb2.StringValue, _Mapping]] = ..., members: _Optional[_Iterable[_Union[Member, _Mapping]]] = ..., ex_info: _Optional[_Union[_peers_pb2.ExInfo, _Mapping]] = ..., pin: _Optional[_Union[_messaging_pb2.MessageContainer, _Mapping]] = ..., restriction: _Optional[_Union[_enums_pb2.Restriction, str]] = ..., available_reactions: _Optional[_Iterable[str]] = ..., is_suspend: _Optional[_Union[_collections_pb2.BoolValue, _Mapping]] = ..., linked_group_peer_id: _Optional[_Union[_collections_pb2.Int32Value, _Mapping]] = ..., discussion_group_enabled: _Optional[_Union[_collections_pb2.BoolValue, _Mapping]] = ...) -> None: ...
71
+
72
+ class Permissions(_message.Message):
73
+ __slots__ = ("see_message", "delete_message", "kick_user", "pin_message", "invite_user", "add_admin", "change_info", "send_message", "see_members", "edit_message", "send_media", "send_gif_stickers", "reply_to_story", "forward_message_from", "send_gift_packet", "start_call", "send_link_message", "send_forwarded_message", "add_story", "manage_call")
74
+ SEE_MESSAGE_FIELD_NUMBER: _ClassVar[int]
75
+ DELETE_MESSAGE_FIELD_NUMBER: _ClassVar[int]
76
+ KICK_USER_FIELD_NUMBER: _ClassVar[int]
77
+ PIN_MESSAGE_FIELD_NUMBER: _ClassVar[int]
78
+ INVITE_USER_FIELD_NUMBER: _ClassVar[int]
79
+ ADD_ADMIN_FIELD_NUMBER: _ClassVar[int]
80
+ CHANGE_INFO_FIELD_NUMBER: _ClassVar[int]
81
+ SEND_MESSAGE_FIELD_NUMBER: _ClassVar[int]
82
+ SEE_MEMBERS_FIELD_NUMBER: _ClassVar[int]
83
+ EDIT_MESSAGE_FIELD_NUMBER: _ClassVar[int]
84
+ SEND_MEDIA_FIELD_NUMBER: _ClassVar[int]
85
+ SEND_GIF_STICKERS_FIELD_NUMBER: _ClassVar[int]
86
+ REPLY_TO_STORY_FIELD_NUMBER: _ClassVar[int]
87
+ FORWARD_MESSAGE_FROM_FIELD_NUMBER: _ClassVar[int]
88
+ SEND_GIFT_PACKET_FIELD_NUMBER: _ClassVar[int]
89
+ START_CALL_FIELD_NUMBER: _ClassVar[int]
90
+ SEND_LINK_MESSAGE_FIELD_NUMBER: _ClassVar[int]
91
+ SEND_FORWARDED_MESSAGE_FIELD_NUMBER: _ClassVar[int]
92
+ ADD_STORY_FIELD_NUMBER: _ClassVar[int]
93
+ MANAGE_CALL_FIELD_NUMBER: _ClassVar[int]
94
+ see_message: bool
95
+ delete_message: bool
96
+ kick_user: bool
97
+ pin_message: bool
98
+ invite_user: bool
99
+ add_admin: bool
100
+ change_info: bool
101
+ send_message: bool
102
+ see_members: bool
103
+ edit_message: bool
104
+ send_media: bool
105
+ send_gif_stickers: bool
106
+ reply_to_story: bool
107
+ forward_message_from: bool
108
+ send_gift_packet: bool
109
+ start_call: bool
110
+ send_link_message: bool
111
+ send_forwarded_message: bool
112
+ add_story: bool
113
+ manage_call: bool
114
+ def __init__(self, see_message: bool = ..., delete_message: bool = ..., kick_user: bool = ..., pin_message: bool = ..., invite_user: bool = ..., add_admin: bool = ..., change_info: bool = ..., send_message: bool = ..., see_members: bool = ..., edit_message: bool = ..., send_media: bool = ..., send_gif_stickers: bool = ..., reply_to_story: bool = ..., forward_message_from: bool = ..., send_gift_packet: bool = ..., start_call: bool = ..., send_link_message: bool = ..., send_forwarded_message: bool = ..., add_story: bool = ..., manage_call: bool = ...) -> None: ...
115
+
116
+ class LoadMembersCondition(_message.Message):
117
+ __slots__ = ("excepted_permissions", "contacts", "query")
118
+ EXCEPTED_PERMISSIONS_FIELD_NUMBER: _ClassVar[int]
119
+ CONTACTS_FIELD_NUMBER: _ClassVar[int]
120
+ QUERY_FIELD_NUMBER: _ClassVar[int]
121
+ excepted_permissions: bool
122
+ contacts: bool
123
+ query: str
124
+ def __init__(self, excepted_permissions: bool = ..., contacts: bool = ..., query: _Optional[str] = ...) -> None: ...
125
+
126
+ class Member(_message.Message):
127
+ __slots__ = ("uid", "inviter_uid", "date", "is_admin", "promoter_user_id", "promoted_at", "permissions", "title")
128
+ UID_FIELD_NUMBER: _ClassVar[int]
129
+ INVITER_UID_FIELD_NUMBER: _ClassVar[int]
130
+ DATE_FIELD_NUMBER: _ClassVar[int]
131
+ IS_ADMIN_FIELD_NUMBER: _ClassVar[int]
132
+ PROMOTER_USER_ID_FIELD_NUMBER: _ClassVar[int]
133
+ PROMOTED_AT_FIELD_NUMBER: _ClassVar[int]
134
+ PERMISSIONS_FIELD_NUMBER: _ClassVar[int]
135
+ TITLE_FIELD_NUMBER: _ClassVar[int]
136
+ uid: int
137
+ inviter_uid: int
138
+ date: int
139
+ is_admin: _collections_pb2.BoolValue
140
+ promoter_user_id: int
141
+ promoted_at: int
142
+ permissions: Permissions
143
+ title: str
144
+ def __init__(self, uid: _Optional[int] = ..., inviter_uid: _Optional[int] = ..., date: _Optional[int] = ..., is_admin: _Optional[_Union[_collections_pb2.BoolValue, _Mapping]] = ..., promoter_user_id: _Optional[int] = ..., promoted_at: _Optional[int] = ..., permissions: _Optional[_Union[Permissions, _Mapping]] = ..., title: _Optional[str] = ...) -> 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/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,81 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: structs/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
+ 'structs/messaging.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 ..structs import files_pb2 as structs_dot_files__pb2
27
+ from ..structs import peers_pb2 as structs_dot_peers__pb2
28
+
29
+
30
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17structs/messaging.proto\x12\x07structs\x1a\x19structs/collections.proto\x1a\x13structs/files.proto\x1a\x13structs/peers.proto\"\'\n\x0f\x44ocumentExPhoto\x12\t\n\x01w\x18\x01 \x01(\x05\x12\t\n\x01h\x18\x02 \x01(\x05\"9\n\x0f\x44ocumentExVideo\x12\t\n\x01w\x18\x01 \x01(\x05\x12\t\n\x01h\x18\x02 \x01(\x05\x12\x10\n\x08\x64uration\x18\x03 \x01(\x05\"M\n\x0f\x44ocumentExVoice\x12\x10\n\x08\x64uration\x18\x01 \x01(\x05\x12(\n\ntranscript\x18\x02 \x01(\x0b\x32\x14.structs.StringValue\"7\n\rDocumentExGif\x12\t\n\x01w\x18\x01 \x01(\x05\x12\t\n\x01h\x18\x02 \x01(\x05\x12\x10\n\x08\x64uration\x18\x03 \x01(\x05\"\x84\x01\n\x0f\x44ocumentExAudio\x12\x10\n\x08\x64uration\x18\x01 \x01(\x05\x12\r\n\x05\x61lbum\x18\x02 \x01(\t\x12\x0e\n\x06\x61rtist\x18\x03 \x01(\t\x12\r\n\x05genre\x18\x04 \x01(\t\x12\r\n\x05track\x18\x05 \x01(\t\x12\"\n\x05\x63over\x18\x06 \x01(\x0b\x32\x13.structs.BytesValue\"\x91\x02\n\nDocumentEx\x12\x33\n\x11\x64ocument_ex_photo\x18\x01 \x01(\x0b\x32\x18.structs.DocumentExPhoto\x12\x33\n\x11\x64ocument_ex_video\x18\x02 \x01(\x0b\x32\x18.structs.DocumentExVideo\x12\x33\n\x11\x64ocument_ex_voice\x18\x03 \x01(\x0b\x32\x18.structs.DocumentExVoice\x12/\n\x0f\x64ocument_ex_gif\x18\x04 \x01(\x0b\x32\x16.structs.DocumentExGif\x12\x33\n\x11\x64ocument_ex_audio\x18\x05 \x01(\x0b\x32\x18.structs.DocumentExAudio\"\xd7\x01\n\x0f\x44ocumentMessage\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\x03\x12\x13\n\x0b\x61\x63\x63\x65ss_hash\x18\x02 \x01(\x03\x12\x11\n\tfile_size\x18\x03 \x01(\x05\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x11\n\tmime_type\x18\x05 \x01(\t\x12!\n\x05thumb\x18\x06 \x01(\x0b\x32\x12.structs.FastThumb\x12 \n\x03\x65xt\x18\x07 \x01(\x0b\x32\x13.structs.DocumentEx\x12%\n\x07\x63\x61ption\x18\x08 \x01(\x0b\x32\x14.structs.TextMessage\"-\n\x0bTextMessage\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x10\n\x08mentions\x18\x02 \x03(\x03\"\x1f\n\x0bJsonMessage\x12\x10\n\x08raw_json\x18\x01 \x01(\t\"\xa9\x02\n\x0eStickerMessage\x12\'\n\nsticker_id\x18\x01 \x01(\x0b\x32\x13.structs.Int32Value\x12)\n\x0c\x66\x61st_preview\x18\x02 \x01(\x0b\x32\x13.structs.BytesValue\x12(\n\x08image512\x18\x03 \x01(\x0b\x32\x16.structs.ImageLocation\x12(\n\x08image256\x18\x04 \x01(\x0b\x32\x16.structs.ImageLocation\x12\x32\n\x15sticker_collection_id\x18\x05 \x01(\x0b\x32\x13.structs.Int32Value\x12;\n\x1esticker_collection_access_hash\x18\x06 \x01(\x0b\x32\x13.structs.Int64Value\"\xc7\x01\n\x07Message\x12\x32\n\x10\x64ocument_message\x18\x04 \x01(\x0b\x32\x18.structs.DocumentMessage\x12*\n\x0cjson_message\x18\x07 \x01(\x0b\x32\x14.structs.JsonMessage\x12\x30\n\x0fsticker_message\x18\x0c \x01(\x0b\x32\x17.structs.StickerMessage\x12*\n\x0ctext_message\x18\x0f \x01(\x0b\x32\x14.structs.TextMessage\"\x1c\n\x0b\x44\x65leteDates\x12\r\n\x05\x64\x61tes\x18\x01 \x03(\x03\"3\n\tMessageId\x12\x0c\n\x04\x64\x61te\x18\x01 \x01(\x03\x12\x0b\n\x03rid\x18\x02 \x01(\x03\x12\x0b\n\x03seq\x18\x03 \x01(\x03\"o\n\x11MessageAttributes\x12\x14\n\x0cis_mentioned\x18\x01 \x01(\x08\x12\x16\n\x0eis_highlighted\x18\x02 \x01(\x08\x12\x13\n\x0bis_notified\x18\x03 \x01(\x08\x12\x17\n\x0fis_only_for_you\x18\x04 \x01(\x08\"y\n\x07Replies\x12\x15\n\rreplies_count\x18\x01 \x01(\x05\x12-\n\x0frecent_repliers\x18\x02 \x03(\x0b\x32\x14.structs.UserOutPeer\x12(\n\x0clast_message\x18\x03 \x01(\x0b\x32\x12.structs.MessageId\"X\n\x0fMessageReaction\x12\r\n\x05users\x18\x01 \x03(\x05\x12\x0c\n\x04\x63ode\x18\x02 \x01(\t\x12(\n\x0b\x63\x61rdinality\x18\x03 \x01(\x0b\x32\x13.structs.Int64Value\"\xed\x01\n\rQuotedMessage\x12\'\n\nmessage_id\x18\x01 \x01(\x0b\x32\x13.structs.Int64Value\x12,\n\x0fpublic_group_id\x18\x02 \x01(\x0b\x32\x13.structs.Int32Value\x12\x16\n\x0esender_user_id\x18\x03 \x01(\x05\x12\x14\n\x0cmessage_date\x18\x04 \x01(\x03\x12\x30\n\x16quoted_message_content\x18\x05 \x01(\x0b\x32\x10.structs.Message\x12%\n\x0bquoted_peer\x18\x06 \x01(\x0b\x32\x10.structs.OutPeer\"\xe2\x04\n\x10MessageContainer\x12\x12\n\nsender_uid\x18\x01 \x01(\x05\x12\x0b\n\x03rid\x18\x02 \x01(\x03\x12\x0c\n\x04\x64\x61te\x18\x03 \x01(\x03\x12!\n\x07message\x18\x04 \x01(\x0b\x32\x10.structs.Message\x12\r\n\x05state\x18\x05 \x01(\x05\x12+\n\treactions\x18\x06 \x03(\x0b\x32\x18.structs.MessageReaction\x12-\n\tattribute\x18\x07 \x01(\x0b\x32\x1a.structs.MessageAttributes\x12.\n\x0equoted_message\x18\x08 \x01(\x0b\x32\x16.structs.QuotedMessage\x12 \n\x03seq\x18\t \x01(\x0b\x32\x13.structs.Int64Value\x12/\n\x13previous_message_id\x18\n \x01(\x0b\x32\x12.structs.MessageId\x12+\n\x0fnext_message_id\x18\x0b \x01(\x0b\x32\x12.structs.MessageId\x12&\n\tedited_at\x18\x0c \x01(\x0b\x32\x13.structs.Int64Value\x12+\n\x0e\x65\x64itor_user_id\x18\r \x01(\x0b\x32\x13.structs.Int32Value\x12\'\n\ngrouped_id\x18\x0e \x01(\x0b\x32\x13.structs.Int64Value\x12\x13\n\x0bhas_comment\x18\x0f \x01(\x08\x12!\n\x07replies\x18\x10 \x01(\x0b\x32\x10.structs.Replies\x12+\n\x0freply_to_top_id\x18\x11 \x01(\x0b\x32\x12.structs.MessageId\"?\n\rMessagesViews\x12\x1f\n\x03mid\x18\x01 \x01(\x0b\x32\x12.structs.MessageId\x12\r\n\x05views\x18\x02 \x03(\x03\"[\n\x18HistoryMessageIdentifier\x12\x1e\n\x04peer\x18\x01 \x01(\x0b\x32\x10.structs.OutPeer\x12\x11\n\trandom_id\x18\x02 \x01(\x03\x12\x0c\n\x04\x64\x61te\x18\x03 \x01(\x03\"I\n\x0bSingleMedia\x12\x11\n\trandom_id\x18\x01 \x01(\x03\x12\'\n\x05media\x18\x02 \x01(\x0b\x32\x18.structs.DocumentMessage\"\xca\x02\n\x06\x44ialog\x12\x1b\n\x04peer\x18\x01 \x01(\x0b\x32\r.structs.Peer\x12\x14\n\x0cunread_count\x18\x02 \x01(\x05\x12\x11\n\tsort_date\x18\x03 \x01(\x03\x12\x12\n\nsender_uid\x18\x04 \x01(\x05\x12\x0b\n\x03rid\x18\x05 \x01(\x03\x12\x0c\n\x04\x64\x61te\x18\x06 \x01(\x03\x12!\n\x07message\x18\x07 \x01(\x0b\x32\x10.structs.Message\x12\r\n\x05state\x18\x08 \x01(\x05\x12.\n\x11\x66irst_unread_date\x18\t \x01(\x0b\x32\x13.structs.Int64Value\x12 \n\x07\x65x_info\x18\r \x01(\x0b\x32\x0f.structs.ExInfo\x12\x1c\n\x14is_message_forwarded\x18\x0e \x01(\x08\x12\x18\n\x10marked_as_unread\x18\x11 \x01(\x08\x12\x0f\n\x07is_mute\x18\x12 \x01(\x08\x62\x06proto3')
31
+
32
+ _globals = globals()
33
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
34
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'structs.messaging_pb2', _globals)
35
+ if not _descriptor._USE_C_DESCRIPTORS:
36
+ DESCRIPTOR._loaded_options = None
37
+ _globals['_DOCUMENTEXPHOTO']._serialized_start=105
38
+ _globals['_DOCUMENTEXPHOTO']._serialized_end=144
39
+ _globals['_DOCUMENTEXVIDEO']._serialized_start=146
40
+ _globals['_DOCUMENTEXVIDEO']._serialized_end=203
41
+ _globals['_DOCUMENTEXVOICE']._serialized_start=205
42
+ _globals['_DOCUMENTEXVOICE']._serialized_end=282
43
+ _globals['_DOCUMENTEXGIF']._serialized_start=284
44
+ _globals['_DOCUMENTEXGIF']._serialized_end=339
45
+ _globals['_DOCUMENTEXAUDIO']._serialized_start=342
46
+ _globals['_DOCUMENTEXAUDIO']._serialized_end=474
47
+ _globals['_DOCUMENTEX']._serialized_start=477
48
+ _globals['_DOCUMENTEX']._serialized_end=750
49
+ _globals['_DOCUMENTMESSAGE']._serialized_start=753
50
+ _globals['_DOCUMENTMESSAGE']._serialized_end=968
51
+ _globals['_TEXTMESSAGE']._serialized_start=970
52
+ _globals['_TEXTMESSAGE']._serialized_end=1015
53
+ _globals['_JSONMESSAGE']._serialized_start=1017
54
+ _globals['_JSONMESSAGE']._serialized_end=1048
55
+ _globals['_STICKERMESSAGE']._serialized_start=1051
56
+ _globals['_STICKERMESSAGE']._serialized_end=1348
57
+ _globals['_MESSAGE']._serialized_start=1351
58
+ _globals['_MESSAGE']._serialized_end=1550
59
+ _globals['_DELETEDATES']._serialized_start=1552
60
+ _globals['_DELETEDATES']._serialized_end=1580
61
+ _globals['_MESSAGEID']._serialized_start=1582
62
+ _globals['_MESSAGEID']._serialized_end=1633
63
+ _globals['_MESSAGEATTRIBUTES']._serialized_start=1635
64
+ _globals['_MESSAGEATTRIBUTES']._serialized_end=1746
65
+ _globals['_REPLIES']._serialized_start=1748
66
+ _globals['_REPLIES']._serialized_end=1869
67
+ _globals['_MESSAGEREACTION']._serialized_start=1871
68
+ _globals['_MESSAGEREACTION']._serialized_end=1959
69
+ _globals['_QUOTEDMESSAGE']._serialized_start=1962
70
+ _globals['_QUOTEDMESSAGE']._serialized_end=2199
71
+ _globals['_MESSAGECONTAINER']._serialized_start=2202
72
+ _globals['_MESSAGECONTAINER']._serialized_end=2812
73
+ _globals['_MESSAGESVIEWS']._serialized_start=2814
74
+ _globals['_MESSAGESVIEWS']._serialized_end=2877
75
+ _globals['_HISTORYMESSAGEIDENTIFIER']._serialized_start=2879
76
+ _globals['_HISTORYMESSAGEIDENTIFIER']._serialized_end=2970
77
+ _globals['_SINGLEMEDIA']._serialized_start=2972
78
+ _globals['_SINGLEMEDIA']._serialized_end=3045
79
+ _globals['_DIALOG']._serialized_start=3048
80
+ _globals['_DIALOG']._serialized_end=3378
81
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,296 @@
1
+ from ..structs import collections_pb2 as _collections_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 DocumentExPhoto(_message.Message):
13
+ __slots__ = ("w", "h")
14
+ W_FIELD_NUMBER: _ClassVar[int]
15
+ H_FIELD_NUMBER: _ClassVar[int]
16
+ w: int
17
+ h: int
18
+ def __init__(self, w: _Optional[int] = ..., h: _Optional[int] = ...) -> None: ...
19
+
20
+ class DocumentExVideo(_message.Message):
21
+ __slots__ = ("w", "h", "duration")
22
+ W_FIELD_NUMBER: _ClassVar[int]
23
+ H_FIELD_NUMBER: _ClassVar[int]
24
+ DURATION_FIELD_NUMBER: _ClassVar[int]
25
+ w: int
26
+ h: int
27
+ duration: int
28
+ def __init__(self, w: _Optional[int] = ..., h: _Optional[int] = ..., duration: _Optional[int] = ...) -> None: ...
29
+
30
+ class DocumentExVoice(_message.Message):
31
+ __slots__ = ("duration", "transcript")
32
+ DURATION_FIELD_NUMBER: _ClassVar[int]
33
+ TRANSCRIPT_FIELD_NUMBER: _ClassVar[int]
34
+ duration: int
35
+ transcript: _collections_pb2.StringValue
36
+ def __init__(self, duration: _Optional[int] = ..., transcript: _Optional[_Union[_collections_pb2.StringValue, _Mapping]] = ...) -> None: ...
37
+
38
+ class DocumentExGif(_message.Message):
39
+ __slots__ = ("w", "h", "duration")
40
+ W_FIELD_NUMBER: _ClassVar[int]
41
+ H_FIELD_NUMBER: _ClassVar[int]
42
+ DURATION_FIELD_NUMBER: _ClassVar[int]
43
+ w: int
44
+ h: int
45
+ duration: int
46
+ def __init__(self, w: _Optional[int] = ..., h: _Optional[int] = ..., duration: _Optional[int] = ...) -> None: ...
47
+
48
+ class DocumentExAudio(_message.Message):
49
+ __slots__ = ("duration", "album", "artist", "genre", "track", "cover")
50
+ DURATION_FIELD_NUMBER: _ClassVar[int]
51
+ ALBUM_FIELD_NUMBER: _ClassVar[int]
52
+ ARTIST_FIELD_NUMBER: _ClassVar[int]
53
+ GENRE_FIELD_NUMBER: _ClassVar[int]
54
+ TRACK_FIELD_NUMBER: _ClassVar[int]
55
+ COVER_FIELD_NUMBER: _ClassVar[int]
56
+ duration: int
57
+ album: str
58
+ artist: str
59
+ genre: str
60
+ track: str
61
+ cover: _collections_pb2.BytesValue
62
+ def __init__(self, duration: _Optional[int] = ..., album: _Optional[str] = ..., artist: _Optional[str] = ..., genre: _Optional[str] = ..., track: _Optional[str] = ..., cover: _Optional[_Union[_collections_pb2.BytesValue, _Mapping]] = ...) -> None: ...
63
+
64
+ class DocumentEx(_message.Message):
65
+ __slots__ = ("document_ex_photo", "document_ex_video", "document_ex_voice", "document_ex_gif", "document_ex_audio")
66
+ DOCUMENT_EX_PHOTO_FIELD_NUMBER: _ClassVar[int]
67
+ DOCUMENT_EX_VIDEO_FIELD_NUMBER: _ClassVar[int]
68
+ DOCUMENT_EX_VOICE_FIELD_NUMBER: _ClassVar[int]
69
+ DOCUMENT_EX_GIF_FIELD_NUMBER: _ClassVar[int]
70
+ DOCUMENT_EX_AUDIO_FIELD_NUMBER: _ClassVar[int]
71
+ document_ex_photo: DocumentExPhoto
72
+ document_ex_video: DocumentExVideo
73
+ document_ex_voice: DocumentExVoice
74
+ document_ex_gif: DocumentExGif
75
+ document_ex_audio: DocumentExAudio
76
+ def __init__(self, document_ex_photo: _Optional[_Union[DocumentExPhoto, _Mapping]] = ..., document_ex_video: _Optional[_Union[DocumentExVideo, _Mapping]] = ..., document_ex_voice: _Optional[_Union[DocumentExVoice, _Mapping]] = ..., document_ex_gif: _Optional[_Union[DocumentExGif, _Mapping]] = ..., document_ex_audio: _Optional[_Union[DocumentExAudio, _Mapping]] = ...) -> None: ...
77
+
78
+ class DocumentMessage(_message.Message):
79
+ __slots__ = ("file_id", "access_hash", "file_size", "name", "mime_type", "thumb", "ext", "caption")
80
+ FILE_ID_FIELD_NUMBER: _ClassVar[int]
81
+ ACCESS_HASH_FIELD_NUMBER: _ClassVar[int]
82
+ FILE_SIZE_FIELD_NUMBER: _ClassVar[int]
83
+ NAME_FIELD_NUMBER: _ClassVar[int]
84
+ MIME_TYPE_FIELD_NUMBER: _ClassVar[int]
85
+ THUMB_FIELD_NUMBER: _ClassVar[int]
86
+ EXT_FIELD_NUMBER: _ClassVar[int]
87
+ CAPTION_FIELD_NUMBER: _ClassVar[int]
88
+ file_id: int
89
+ access_hash: int
90
+ file_size: int
91
+ name: str
92
+ mime_type: str
93
+ thumb: _files_pb2.FastThumb
94
+ ext: DocumentEx
95
+ caption: TextMessage
96
+ def __init__(self, file_id: _Optional[int] = ..., access_hash: _Optional[int] = ..., file_size: _Optional[int] = ..., name: _Optional[str] = ..., mime_type: _Optional[str] = ..., thumb: _Optional[_Union[_files_pb2.FastThumb, _Mapping]] = ..., ext: _Optional[_Union[DocumentEx, _Mapping]] = ..., caption: _Optional[_Union[TextMessage, _Mapping]] = ...) -> None: ...
97
+
98
+ class TextMessage(_message.Message):
99
+ __slots__ = ("text", "mentions")
100
+ TEXT_FIELD_NUMBER: _ClassVar[int]
101
+ MENTIONS_FIELD_NUMBER: _ClassVar[int]
102
+ text: str
103
+ mentions: _containers.RepeatedScalarFieldContainer[int]
104
+ def __init__(self, text: _Optional[str] = ..., mentions: _Optional[_Iterable[int]] = ...) -> None: ...
105
+
106
+ class JsonMessage(_message.Message):
107
+ __slots__ = ("raw_json",)
108
+ RAW_JSON_FIELD_NUMBER: _ClassVar[int]
109
+ raw_json: str
110
+ def __init__(self, raw_json: _Optional[str] = ...) -> None: ...
111
+
112
+ class StickerMessage(_message.Message):
113
+ __slots__ = ("sticker_id", "fast_preview", "image512", "image256", "sticker_collection_id", "sticker_collection_access_hash")
114
+ STICKER_ID_FIELD_NUMBER: _ClassVar[int]
115
+ FAST_PREVIEW_FIELD_NUMBER: _ClassVar[int]
116
+ IMAGE512_FIELD_NUMBER: _ClassVar[int]
117
+ IMAGE256_FIELD_NUMBER: _ClassVar[int]
118
+ STICKER_COLLECTION_ID_FIELD_NUMBER: _ClassVar[int]
119
+ STICKER_COLLECTION_ACCESS_HASH_FIELD_NUMBER: _ClassVar[int]
120
+ sticker_id: _collections_pb2.Int32Value
121
+ fast_preview: _collections_pb2.BytesValue
122
+ image512: _files_pb2.ImageLocation
123
+ image256: _files_pb2.ImageLocation
124
+ sticker_collection_id: _collections_pb2.Int32Value
125
+ sticker_collection_access_hash: _collections_pb2.Int64Value
126
+ def __init__(self, sticker_id: _Optional[_Union[_collections_pb2.Int32Value, _Mapping]] = ..., fast_preview: _Optional[_Union[_collections_pb2.BytesValue, _Mapping]] = ..., image512: _Optional[_Union[_files_pb2.ImageLocation, _Mapping]] = ..., image256: _Optional[_Union[_files_pb2.ImageLocation, _Mapping]] = ..., sticker_collection_id: _Optional[_Union[_collections_pb2.Int32Value, _Mapping]] = ..., sticker_collection_access_hash: _Optional[_Union[_collections_pb2.Int64Value, _Mapping]] = ...) -> None: ...
127
+
128
+ class Message(_message.Message):
129
+ __slots__ = ("document_message", "json_message", "sticker_message", "text_message")
130
+ DOCUMENT_MESSAGE_FIELD_NUMBER: _ClassVar[int]
131
+ JSON_MESSAGE_FIELD_NUMBER: _ClassVar[int]
132
+ STICKER_MESSAGE_FIELD_NUMBER: _ClassVar[int]
133
+ TEXT_MESSAGE_FIELD_NUMBER: _ClassVar[int]
134
+ document_message: DocumentMessage
135
+ json_message: JsonMessage
136
+ sticker_message: StickerMessage
137
+ text_message: TextMessage
138
+ def __init__(self, document_message: _Optional[_Union[DocumentMessage, _Mapping]] = ..., json_message: _Optional[_Union[JsonMessage, _Mapping]] = ..., sticker_message: _Optional[_Union[StickerMessage, _Mapping]] = ..., text_message: _Optional[_Union[TextMessage, _Mapping]] = ...) -> None: ...
139
+
140
+ class DeleteDates(_message.Message):
141
+ __slots__ = ("dates",)
142
+ DATES_FIELD_NUMBER: _ClassVar[int]
143
+ dates: _containers.RepeatedScalarFieldContainer[int]
144
+ def __init__(self, dates: _Optional[_Iterable[int]] = ...) -> None: ...
145
+
146
+ class MessageId(_message.Message):
147
+ __slots__ = ("date", "rid", "seq")
148
+ DATE_FIELD_NUMBER: _ClassVar[int]
149
+ RID_FIELD_NUMBER: _ClassVar[int]
150
+ SEQ_FIELD_NUMBER: _ClassVar[int]
151
+ date: int
152
+ rid: int
153
+ seq: int
154
+ def __init__(self, date: _Optional[int] = ..., rid: _Optional[int] = ..., seq: _Optional[int] = ...) -> None: ...
155
+
156
+ class MessageAttributes(_message.Message):
157
+ __slots__ = ("is_mentioned", "is_highlighted", "is_notified", "is_only_for_you")
158
+ IS_MENTIONED_FIELD_NUMBER: _ClassVar[int]
159
+ IS_HIGHLIGHTED_FIELD_NUMBER: _ClassVar[int]
160
+ IS_NOTIFIED_FIELD_NUMBER: _ClassVar[int]
161
+ IS_ONLY_FOR_YOU_FIELD_NUMBER: _ClassVar[int]
162
+ is_mentioned: bool
163
+ is_highlighted: bool
164
+ is_notified: bool
165
+ is_only_for_you: bool
166
+ def __init__(self, is_mentioned: bool = ..., is_highlighted: bool = ..., is_notified: bool = ..., is_only_for_you: bool = ...) -> None: ...
167
+
168
+ class Replies(_message.Message):
169
+ __slots__ = ("replies_count", "recent_repliers", "last_message")
170
+ REPLIES_COUNT_FIELD_NUMBER: _ClassVar[int]
171
+ RECENT_REPLIERS_FIELD_NUMBER: _ClassVar[int]
172
+ LAST_MESSAGE_FIELD_NUMBER: _ClassVar[int]
173
+ replies_count: int
174
+ recent_repliers: _containers.RepeatedCompositeFieldContainer[_peers_pb2.UserOutPeer]
175
+ last_message: MessageId
176
+ def __init__(self, replies_count: _Optional[int] = ..., recent_repliers: _Optional[_Iterable[_Union[_peers_pb2.UserOutPeer, _Mapping]]] = ..., last_message: _Optional[_Union[MessageId, _Mapping]] = ...) -> None: ...
177
+
178
+ class MessageReaction(_message.Message):
179
+ __slots__ = ("users", "code", "cardinality")
180
+ USERS_FIELD_NUMBER: _ClassVar[int]
181
+ CODE_FIELD_NUMBER: _ClassVar[int]
182
+ CARDINALITY_FIELD_NUMBER: _ClassVar[int]
183
+ users: _containers.RepeatedScalarFieldContainer[int]
184
+ code: str
185
+ cardinality: _collections_pb2.Int64Value
186
+ def __init__(self, users: _Optional[_Iterable[int]] = ..., code: _Optional[str] = ..., cardinality: _Optional[_Union[_collections_pb2.Int64Value, _Mapping]] = ...) -> None: ...
187
+
188
+ class QuotedMessage(_message.Message):
189
+ __slots__ = ("message_id", "public_group_id", "sender_user_id", "message_date", "quoted_message_content", "quoted_peer")
190
+ MESSAGE_ID_FIELD_NUMBER: _ClassVar[int]
191
+ PUBLIC_GROUP_ID_FIELD_NUMBER: _ClassVar[int]
192
+ SENDER_USER_ID_FIELD_NUMBER: _ClassVar[int]
193
+ MESSAGE_DATE_FIELD_NUMBER: _ClassVar[int]
194
+ QUOTED_MESSAGE_CONTENT_FIELD_NUMBER: _ClassVar[int]
195
+ QUOTED_PEER_FIELD_NUMBER: _ClassVar[int]
196
+ message_id: _collections_pb2.Int64Value
197
+ public_group_id: _collections_pb2.Int32Value
198
+ sender_user_id: int
199
+ message_date: int
200
+ quoted_message_content: Message
201
+ quoted_peer: _peers_pb2.OutPeer
202
+ def __init__(self, message_id: _Optional[_Union[_collections_pb2.Int64Value, _Mapping]] = ..., public_group_id: _Optional[_Union[_collections_pb2.Int32Value, _Mapping]] = ..., sender_user_id: _Optional[int] = ..., message_date: _Optional[int] = ..., quoted_message_content: _Optional[_Union[Message, _Mapping]] = ..., quoted_peer: _Optional[_Union[_peers_pb2.OutPeer, _Mapping]] = ...) -> None: ...
203
+
204
+ class MessageContainer(_message.Message):
205
+ __slots__ = ("sender_uid", "rid", "date", "message", "state", "reactions", "attribute", "quoted_message", "seq", "previous_message_id", "next_message_id", "edited_at", "editor_user_id", "grouped_id", "has_comment", "replies", "reply_to_top_id")
206
+ SENDER_UID_FIELD_NUMBER: _ClassVar[int]
207
+ RID_FIELD_NUMBER: _ClassVar[int]
208
+ DATE_FIELD_NUMBER: _ClassVar[int]
209
+ MESSAGE_FIELD_NUMBER: _ClassVar[int]
210
+ STATE_FIELD_NUMBER: _ClassVar[int]
211
+ REACTIONS_FIELD_NUMBER: _ClassVar[int]
212
+ ATTRIBUTE_FIELD_NUMBER: _ClassVar[int]
213
+ QUOTED_MESSAGE_FIELD_NUMBER: _ClassVar[int]
214
+ SEQ_FIELD_NUMBER: _ClassVar[int]
215
+ PREVIOUS_MESSAGE_ID_FIELD_NUMBER: _ClassVar[int]
216
+ NEXT_MESSAGE_ID_FIELD_NUMBER: _ClassVar[int]
217
+ EDITED_AT_FIELD_NUMBER: _ClassVar[int]
218
+ EDITOR_USER_ID_FIELD_NUMBER: _ClassVar[int]
219
+ GROUPED_ID_FIELD_NUMBER: _ClassVar[int]
220
+ HAS_COMMENT_FIELD_NUMBER: _ClassVar[int]
221
+ REPLIES_FIELD_NUMBER: _ClassVar[int]
222
+ REPLY_TO_TOP_ID_FIELD_NUMBER: _ClassVar[int]
223
+ sender_uid: int
224
+ rid: int
225
+ date: int
226
+ message: Message
227
+ state: int
228
+ reactions: _containers.RepeatedCompositeFieldContainer[MessageReaction]
229
+ attribute: MessageAttributes
230
+ quoted_message: QuotedMessage
231
+ seq: _collections_pb2.Int64Value
232
+ previous_message_id: MessageId
233
+ next_message_id: MessageId
234
+ edited_at: _collections_pb2.Int64Value
235
+ editor_user_id: _collections_pb2.Int32Value
236
+ grouped_id: _collections_pb2.Int64Value
237
+ has_comment: bool
238
+ replies: Replies
239
+ reply_to_top_id: MessageId
240
+ def __init__(self, sender_uid: _Optional[int] = ..., rid: _Optional[int] = ..., date: _Optional[int] = ..., message: _Optional[_Union[Message, _Mapping]] = ..., state: _Optional[int] = ..., reactions: _Optional[_Iterable[_Union[MessageReaction, _Mapping]]] = ..., attribute: _Optional[_Union[MessageAttributes, _Mapping]] = ..., quoted_message: _Optional[_Union[QuotedMessage, _Mapping]] = ..., seq: _Optional[_Union[_collections_pb2.Int64Value, _Mapping]] = ..., previous_message_id: _Optional[_Union[MessageId, _Mapping]] = ..., next_message_id: _Optional[_Union[MessageId, _Mapping]] = ..., edited_at: _Optional[_Union[_collections_pb2.Int64Value, _Mapping]] = ..., editor_user_id: _Optional[_Union[_collections_pb2.Int32Value, _Mapping]] = ..., grouped_id: _Optional[_Union[_collections_pb2.Int64Value, _Mapping]] = ..., has_comment: bool = ..., replies: _Optional[_Union[Replies, _Mapping]] = ..., reply_to_top_id: _Optional[_Union[MessageId, _Mapping]] = ...) -> None: ...
241
+
242
+ class MessagesViews(_message.Message):
243
+ __slots__ = ("mid", "views")
244
+ MID_FIELD_NUMBER: _ClassVar[int]
245
+ VIEWS_FIELD_NUMBER: _ClassVar[int]
246
+ mid: MessageId
247
+ views: _containers.RepeatedScalarFieldContainer[int]
248
+ def __init__(self, mid: _Optional[_Union[MessageId, _Mapping]] = ..., views: _Optional[_Iterable[int]] = ...) -> None: ...
249
+
250
+ class HistoryMessageIdentifier(_message.Message):
251
+ __slots__ = ("peer", "random_id", "date")
252
+ PEER_FIELD_NUMBER: _ClassVar[int]
253
+ RANDOM_ID_FIELD_NUMBER: _ClassVar[int]
254
+ DATE_FIELD_NUMBER: _ClassVar[int]
255
+ peer: _peers_pb2.OutPeer
256
+ random_id: int
257
+ date: int
258
+ def __init__(self, peer: _Optional[_Union[_peers_pb2.OutPeer, _Mapping]] = ..., random_id: _Optional[int] = ..., date: _Optional[int] = ...) -> None: ...
259
+
260
+ class SingleMedia(_message.Message):
261
+ __slots__ = ("random_id", "media")
262
+ RANDOM_ID_FIELD_NUMBER: _ClassVar[int]
263
+ MEDIA_FIELD_NUMBER: _ClassVar[int]
264
+ random_id: int
265
+ media: DocumentMessage
266
+ def __init__(self, random_id: _Optional[int] = ..., media: _Optional[_Union[DocumentMessage, _Mapping]] = ...) -> None: ...
267
+
268
+ class Dialog(_message.Message):
269
+ __slots__ = ("peer", "unread_count", "sort_date", "sender_uid", "rid", "date", "message", "state", "first_unread_date", "ex_info", "is_message_forwarded", "marked_as_unread", "is_mute")
270
+ PEER_FIELD_NUMBER: _ClassVar[int]
271
+ UNREAD_COUNT_FIELD_NUMBER: _ClassVar[int]
272
+ SORT_DATE_FIELD_NUMBER: _ClassVar[int]
273
+ SENDER_UID_FIELD_NUMBER: _ClassVar[int]
274
+ RID_FIELD_NUMBER: _ClassVar[int]
275
+ DATE_FIELD_NUMBER: _ClassVar[int]
276
+ MESSAGE_FIELD_NUMBER: _ClassVar[int]
277
+ STATE_FIELD_NUMBER: _ClassVar[int]
278
+ FIRST_UNREAD_DATE_FIELD_NUMBER: _ClassVar[int]
279
+ EX_INFO_FIELD_NUMBER: _ClassVar[int]
280
+ IS_MESSAGE_FORWARDED_FIELD_NUMBER: _ClassVar[int]
281
+ MARKED_AS_UNREAD_FIELD_NUMBER: _ClassVar[int]
282
+ IS_MUTE_FIELD_NUMBER: _ClassVar[int]
283
+ peer: _peers_pb2.Peer
284
+ unread_count: int
285
+ sort_date: int
286
+ sender_uid: int
287
+ rid: int
288
+ date: int
289
+ message: Message
290
+ state: int
291
+ first_unread_date: _collections_pb2.Int64Value
292
+ ex_info: _peers_pb2.ExInfo
293
+ is_message_forwarded: bool
294
+ marked_as_unread: bool
295
+ is_mute: bool
296
+ def __init__(self, peer: _Optional[_Union[_peers_pb2.Peer, _Mapping]] = ..., unread_count: _Optional[int] = ..., sort_date: _Optional[int] = ..., sender_uid: _Optional[int] = ..., rid: _Optional[int] = ..., date: _Optional[int] = ..., message: _Optional[_Union[Message, _Mapping]] = ..., state: _Optional[int] = ..., first_unread_date: _Optional[_Union[_collections_pb2.Int64Value, _Mapping]] = ..., ex_info: _Optional[_Union[_peers_pb2.ExInfo, _Mapping]] = ..., is_message_forwarded: bool = ..., marked_as_unread: bool = ..., is_mute: bool = ...) -> 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/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
+ )