pyrogrammod 2.2.4__py2.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 (3378) hide show
  1. pyrogram/__init__.py +42 -0
  2. pyrogram/client.py +1362 -0
  3. pyrogram/connection/__init__.py +19 -0
  4. pyrogram/connection/connection.py +81 -0
  5. pyrogram/connection/transport/__init__.py +19 -0
  6. pyrogram/connection/transport/tcp/__init__.py +24 -0
  7. pyrogram/connection/transport/tcp/tcp.py +168 -0
  8. pyrogram/connection/transport/tcp/tcp_abridged.py +57 -0
  9. pyrogram/connection/transport/tcp/tcp_abridged_o.py +86 -0
  10. pyrogram/connection/transport/tcp/tcp_full.py +64 -0
  11. pyrogram/connection/transport/tcp/tcp_intermediate.py +45 -0
  12. pyrogram/connection/transport/tcp/tcp_intermediate_o.py +79 -0
  13. pyrogram/crypto/__init__.py +17 -0
  14. pyrogram/crypto/aes.py +130 -0
  15. pyrogram/crypto/mtproto.py +100 -0
  16. pyrogram/crypto/prime.py +82 -0
  17. pyrogram/crypto/rsa.py +259 -0
  18. pyrogram/dispatcher.py +262 -0
  19. pyrogram/emoji.py +4019 -0
  20. pyrogram/enums/__init__.py +49 -0
  21. pyrogram/enums/auto_name.py +27 -0
  22. pyrogram/enums/chat_action.py +72 -0
  23. pyrogram/enums/chat_event_action.py +127 -0
  24. pyrogram/enums/chat_member_status.py +43 -0
  25. pyrogram/enums/chat_members_filter.py +45 -0
  26. pyrogram/enums/chat_type.py +40 -0
  27. pyrogram/enums/message_entity_type.py +84 -0
  28. pyrogram/enums/message_media_type.py +76 -0
  29. pyrogram/enums/message_service_type.py +73 -0
  30. pyrogram/enums/messages_filter.py +75 -0
  31. pyrogram/enums/next_code_type.py +39 -0
  32. pyrogram/enums/parse_mode.py +37 -0
  33. pyrogram/enums/poll_type.py +31 -0
  34. pyrogram/enums/sent_code_type.py +45 -0
  35. pyrogram/enums/user_status.py +43 -0
  36. pyrogram/errors/__init__.py +65 -0
  37. pyrogram/errors/exceptions/__init__.py +26 -0
  38. pyrogram/errors/exceptions/all.py +2324 -0
  39. pyrogram/errors/exceptions/bad_request_400.py +4571 -0
  40. pyrogram/errors/exceptions/flood_420.py +91 -0
  41. pyrogram/errors/exceptions/forbidden_403.py +3633 -0
  42. pyrogram/errors/exceptions/internal_server_error_500.py +3913 -0
  43. pyrogram/errors/exceptions/not_acceptable_406.py +3759 -0
  44. pyrogram/errors/exceptions/see_other_303.py +63 -0
  45. pyrogram/errors/exceptions/service_unavailable_503.py +49 -0
  46. pyrogram/errors/exceptions/unauthorized_401.py +91 -0
  47. pyrogram/errors/rpc_error.py +103 -0
  48. pyrogram/file_id.py +481 -0
  49. pyrogram/filters.py +955 -0
  50. pyrogram/handlers/__init__.py +30 -0
  51. pyrogram/handlers/callback_query_handler.py +49 -0
  52. pyrogram/handlers/chat_join_request_handler.py +49 -0
  53. pyrogram/handlers/chat_member_updated_handler.py +49 -0
  54. pyrogram/handlers/chosen_inline_result_handler.py +50 -0
  55. pyrogram/handlers/deleted_messages_handler.py +61 -0
  56. pyrogram/handlers/disconnect_handler.py +43 -0
  57. pyrogram/handlers/edited_message_handler.py +49 -0
  58. pyrogram/handlers/handler.py +43 -0
  59. pyrogram/handlers/inline_query_handler.py +49 -0
  60. pyrogram/handlers/message_handler.py +49 -0
  61. pyrogram/handlers/poll_handler.py +50 -0
  62. pyrogram/handlers/raw_update_handler.py +67 -0
  63. pyrogram/handlers/user_status_handler.py +47 -0
  64. pyrogram/methods/__init__.py +45 -0
  65. pyrogram/methods/advanced/__init__.py +29 -0
  66. pyrogram/methods/advanced/invoke.py +89 -0
  67. pyrogram/methods/advanced/resolve_peer.py +125 -0
  68. pyrogram/methods/advanced/save_file.py +226 -0
  69. pyrogram/methods/auth/__init__.py +53 -0
  70. pyrogram/methods/auth/accept_terms_of_service.py +44 -0
  71. pyrogram/methods/auth/check_password.py +60 -0
  72. pyrogram/methods/auth/connect.py +52 -0
  73. pyrogram/methods/auth/disconnect.py +40 -0
  74. pyrogram/methods/auth/get_password_hint.py +38 -0
  75. pyrogram/methods/auth/initialize.py +52 -0
  76. pyrogram/methods/auth/log_out.py +51 -0
  77. pyrogram/methods/auth/recover_password.py +57 -0
  78. pyrogram/methods/auth/resend_code.py +64 -0
  79. pyrogram/methods/auth/send_code.py +79 -0
  80. pyrogram/methods/auth/send_recovery_code.py +43 -0
  81. pyrogram/methods/auth/sign_in.py +80 -0
  82. pyrogram/methods/auth/sign_in_bot.py +79 -0
  83. pyrogram/methods/auth/sign_up.py +73 -0
  84. pyrogram/methods/auth/terminate.py +61 -0
  85. pyrogram/methods/bots/__init__.py +55 -0
  86. pyrogram/methods/bots/answer_callback_query.py +81 -0
  87. pyrogram/methods/bots/answer_inline_query.py +112 -0
  88. pyrogram/methods/bots/answer_web_app_query.py +53 -0
  89. pyrogram/methods/bots/delete_bot_commands.py +62 -0
  90. pyrogram/methods/bots/get_bot_commands.py +67 -0
  91. pyrogram/methods/bots/get_bot_default_privileges.py +59 -0
  92. pyrogram/methods/bots/get_chat_menu_button.py +66 -0
  93. pyrogram/methods/bots/get_game_high_scores.py +72 -0
  94. pyrogram/methods/bots/get_inline_bot_results.py +92 -0
  95. pyrogram/methods/bots/request_callback_answer.py +77 -0
  96. pyrogram/methods/bots/send_game.py +106 -0
  97. pyrogram/methods/bots/send_inline_bot_result.py +86 -0
  98. pyrogram/methods/bots/set_bot_commands.py +73 -0
  99. pyrogram/methods/bots/set_bot_default_privileges.py +81 -0
  100. pyrogram/methods/bots/set_chat_menu_button.py +56 -0
  101. pyrogram/methods/bots/set_game_score.py +100 -0
  102. pyrogram/methods/chats/__init__.py +109 -0
  103. pyrogram/methods/chats/add_chat_members.py +90 -0
  104. pyrogram/methods/chats/archive_chats.py +71 -0
  105. pyrogram/methods/chats/ban_chat_member.py +111 -0
  106. pyrogram/methods/chats/create_channel.py +56 -0
  107. pyrogram/methods/chats/create_group.py +67 -0
  108. pyrogram/methods/chats/create_group_call.py +43 -0
  109. pyrogram/methods/chats/create_supergroup.py +60 -0
  110. pyrogram/methods/chats/delete_channel.py +52 -0
  111. pyrogram/methods/chats/delete_chat_photo.py +70 -0
  112. pyrogram/methods/chats/delete_supergroup.py +52 -0
  113. pyrogram/methods/chats/delete_user_history.py +55 -0
  114. pyrogram/methods/chats/get_chat.py +91 -0
  115. pyrogram/methods/chats/get_chat_event_log.py +109 -0
  116. pyrogram/methods/chats/get_chat_member.py +92 -0
  117. pyrogram/methods/chats/get_chat_members.py +158 -0
  118. pyrogram/methods/chats/get_chat_members_count.py +69 -0
  119. pyrogram/methods/chats/get_chat_online_count.py +51 -0
  120. pyrogram/methods/chats/get_dialogs.py +104 -0
  121. pyrogram/methods/chats/get_dialogs_count.py +63 -0
  122. pyrogram/methods/chats/get_group_call_stream_channels.py +40 -0
  123. pyrogram/methods/chats/get_nearby_chats.py +78 -0
  124. pyrogram/methods/chats/get_send_as_chats.py +65 -0
  125. pyrogram/methods/chats/get_similar_channels.py +61 -0
  126. pyrogram/methods/chats/join_chat.py +81 -0
  127. pyrogram/methods/chats/leave_chat.py +77 -0
  128. pyrogram/methods/chats/mark_chat_unread.py +47 -0
  129. pyrogram/methods/chats/pin_chat_message.py +81 -0
  130. pyrogram/methods/chats/promote_chat_member.py +105 -0
  131. pyrogram/methods/chats/restrict_chat_member.py +99 -0
  132. pyrogram/methods/chats/set_administrator_title.py +85 -0
  133. pyrogram/methods/chats/set_chat_description.py +66 -0
  134. pyrogram/methods/chats/set_chat_permissions.py +87 -0
  135. pyrogram/methods/chats/set_chat_photo.py +121 -0
  136. pyrogram/methods/chats/set_chat_protected_content.py +53 -0
  137. pyrogram/methods/chats/set_chat_reactions.py +56 -0
  138. pyrogram/methods/chats/set_chat_title.py +78 -0
  139. pyrogram/methods/chats/set_chat_username.py +68 -0
  140. pyrogram/methods/chats/set_send_as_chat.py +57 -0
  141. pyrogram/methods/chats/set_slow_mode.py +63 -0
  142. pyrogram/methods/chats/unarchive_chats.py +71 -0
  143. pyrogram/methods/chats/unban_chat_member.py +64 -0
  144. pyrogram/methods/chats/unpin_all_chat_messages.py +55 -0
  145. pyrogram/methods/chats/unpin_chat_message.py +61 -0
  146. pyrogram/methods/contacts/__init__.py +33 -0
  147. pyrogram/methods/contacts/add_contact.py +78 -0
  148. pyrogram/methods/contacts/delete_contacts.py +66 -0
  149. pyrogram/methods/contacts/get_contacts.py +47 -0
  150. pyrogram/methods/contacts/get_contacts_count.py +41 -0
  151. pyrogram/methods/contacts/import_contacts.py +58 -0
  152. pyrogram/methods/decorators/__init__.py +47 -0
  153. pyrogram/methods/decorators/on_callback_query.py +61 -0
  154. pyrogram/methods/decorators/on_chat_join_request.py +60 -0
  155. pyrogram/methods/decorators/on_chat_member_updated.py +60 -0
  156. pyrogram/methods/decorators/on_chosen_inline_result.py +61 -0
  157. pyrogram/methods/decorators/on_deleted_messages.py +61 -0
  158. pyrogram/methods/decorators/on_disconnect.py +43 -0
  159. pyrogram/methods/decorators/on_edited_message.py +61 -0
  160. pyrogram/methods/decorators/on_inline_query.py +61 -0
  161. pyrogram/methods/decorators/on_message.py +61 -0
  162. pyrogram/methods/decorators/on_poll.py +61 -0
  163. pyrogram/methods/decorators/on_raw_update.py +55 -0
  164. pyrogram/methods/decorators/on_user_status.py +59 -0
  165. pyrogram/methods/invite_links/__init__.py +58 -0
  166. pyrogram/methods/invite_links/approve_all_chat_join_requests.py +55 -0
  167. pyrogram/methods/invite_links/approve_chat_join_request.py +57 -0
  168. pyrogram/methods/invite_links/create_chat_invite_link.py +87 -0
  169. pyrogram/methods/invite_links/decline_all_chat_join_requests.py +55 -0
  170. pyrogram/methods/invite_links/decline_chat_join_request.py +57 -0
  171. pyrogram/methods/invite_links/delete_chat_admin_invite_links.py +54 -0
  172. pyrogram/methods/invite_links/delete_chat_invite_link.py +52 -0
  173. pyrogram/methods/invite_links/edit_chat_invite_link.py +92 -0
  174. pyrogram/methods/invite_links/export_chat_invite_link.py +65 -0
  175. pyrogram/methods/invite_links/get_chat_admin_invite_links.py +100 -0
  176. pyrogram/methods/invite_links/get_chat_admin_invite_links_count.py +62 -0
  177. pyrogram/methods/invite_links/get_chat_admins_with_invite_links.py +56 -0
  178. pyrogram/methods/invite_links/get_chat_invite_link.py +56 -0
  179. pyrogram/methods/invite_links/get_chat_invite_link_joiners.py +87 -0
  180. pyrogram/methods/invite_links/get_chat_invite_link_joiners_count.py +56 -0
  181. pyrogram/methods/invite_links/get_chat_join_requests.py +88 -0
  182. pyrogram/methods/invite_links/revoke_chat_invite_link.py +68 -0
  183. pyrogram/methods/messages/__init__.py +121 -0
  184. pyrogram/methods/messages/copy_media_group.py +151 -0
  185. pyrogram/methods/messages/copy_message.py +126 -0
  186. pyrogram/methods/messages/delete_messages.py +84 -0
  187. pyrogram/methods/messages/download_media.py +190 -0
  188. pyrogram/methods/messages/edit_inline_caption.py +65 -0
  189. pyrogram/methods/messages/edit_inline_media.py +245 -0
  190. pyrogram/methods/messages/edit_inline_reply_markup.py +69 -0
  191. pyrogram/methods/messages/edit_inline_text.py +92 -0
  192. pyrogram/methods/messages/edit_message_caption.py +76 -0
  193. pyrogram/methods/messages/edit_message_media.py +288 -0
  194. pyrogram/methods/messages/edit_message_reply_markup.py +77 -0
  195. pyrogram/methods/messages/edit_message_text.py +98 -0
  196. pyrogram/methods/messages/forward_messages.py +110 -0
  197. pyrogram/methods/messages/get_chat_history.py +127 -0
  198. pyrogram/methods/messages/get_chat_history_count.py +72 -0
  199. pyrogram/methods/messages/get_custom_emoji_stickers.py +55 -0
  200. pyrogram/methods/messages/get_discussion_message.py +65 -0
  201. pyrogram/methods/messages/get_discussion_replies.py +86 -0
  202. pyrogram/methods/messages/get_discussion_replies_count.py +62 -0
  203. pyrogram/methods/messages/get_media_group.py +73 -0
  204. pyrogram/methods/messages/get_messages.py +119 -0
  205. pyrogram/methods/messages/inline_session.py +64 -0
  206. pyrogram/methods/messages/read_chat_history.py +73 -0
  207. pyrogram/methods/messages/retract_vote.py +61 -0
  208. pyrogram/methods/messages/search_global.py +117 -0
  209. pyrogram/methods/messages/search_global_count.py +62 -0
  210. pyrogram/methods/messages/search_messages.py +151 -0
  211. pyrogram/methods/messages/search_messages_count.py +84 -0
  212. pyrogram/methods/messages/send_animation.py +294 -0
  213. pyrogram/methods/messages/send_audio.py +255 -0
  214. pyrogram/methods/messages/send_cached_media.py +139 -0
  215. pyrogram/methods/messages/send_chat_action.py +80 -0
  216. pyrogram/methods/messages/send_contact.py +132 -0
  217. pyrogram/methods/messages/send_dice.py +127 -0
  218. pyrogram/methods/messages/send_document.py +231 -0
  219. pyrogram/methods/messages/send_location.py +125 -0
  220. pyrogram/methods/messages/send_media_group.py +430 -0
  221. pyrogram/methods/messages/send_message.py +188 -0
  222. pyrogram/methods/messages/send_paid_reaction.py +78 -0
  223. pyrogram/methods/messages/send_photo.py +219 -0
  224. pyrogram/methods/messages/send_poll.py +191 -0
  225. pyrogram/methods/messages/send_reaction.py +90 -0
  226. pyrogram/methods/messages/send_sticker.py +190 -0
  227. pyrogram/methods/messages/send_venue.py +149 -0
  228. pyrogram/methods/messages/send_video.py +285 -0
  229. pyrogram/methods/messages/send_video_note.py +232 -0
  230. pyrogram/methods/messages/send_voice.py +233 -0
  231. pyrogram/methods/messages/stop_poll.py +77 -0
  232. pyrogram/methods/messages/stream_media.py +106 -0
  233. pyrogram/methods/messages/vote_poll.py +69 -0
  234. pyrogram/methods/password/__init__.py +29 -0
  235. pyrogram/methods/password/change_cloud_password.py +82 -0
  236. pyrogram/methods/password/enable_cloud_password.py +88 -0
  237. pyrogram/methods/password/remove_cloud_password.py +64 -0
  238. pyrogram/methods/users/__init__.py +49 -0
  239. pyrogram/methods/users/block_user.py +56 -0
  240. pyrogram/methods/users/delete_profile_photos.py +63 -0
  241. pyrogram/methods/users/get_chat_photos.py +135 -0
  242. pyrogram/methods/users/get_chat_photos_count.py +74 -0
  243. pyrogram/methods/users/get_common_chats.py +67 -0
  244. pyrogram/methods/users/get_default_emoji_statuses.py +47 -0
  245. pyrogram/methods/users/get_me.py +49 -0
  246. pyrogram/methods/users/get_users.py +71 -0
  247. pyrogram/methods/users/set_emoji_status.py +58 -0
  248. pyrogram/methods/users/set_profile_photo.py +75 -0
  249. pyrogram/methods/users/set_username.py +57 -0
  250. pyrogram/methods/users/unblock_user.py +56 -0
  251. pyrogram/methods/users/update_profile.py +72 -0
  252. pyrogram/methods/utilities/__init__.py +39 -0
  253. pyrogram/methods/utilities/add_handler.py +67 -0
  254. pyrogram/methods/utilities/compose.py +78 -0
  255. pyrogram/methods/utilities/export_session_string.py +40 -0
  256. pyrogram/methods/utilities/idle.py +87 -0
  257. pyrogram/methods/utilities/remove_handler.py +63 -0
  258. pyrogram/methods/utilities/restart.py +72 -0
  259. pyrogram/methods/utilities/run.py +86 -0
  260. pyrogram/methods/utilities/start.py +76 -0
  261. pyrogram/methods/utilities/stop.py +69 -0
  262. pyrogram/methods/utilities/stop_transmission.py +43 -0
  263. pyrogram/mime_types.py +1881 -0
  264. pyrogram/parser/__init__.py +19 -0
  265. pyrogram/parser/html.py +243 -0
  266. pyrogram/parser/markdown.py +173 -0
  267. pyrogram/parser/parser.py +61 -0
  268. pyrogram/parser/utils.py +41 -0
  269. pyrogram/py.typed +0 -0
  270. pyrogram/raw/__init__.py +26 -0
  271. pyrogram/raw/all.py +2338 -0
  272. pyrogram/raw/base/__init__.py +408 -0
  273. pyrogram/raw/base/access_point_rule.py +41 -0
  274. pyrogram/raw/base/account/__init__.py +50 -0
  275. pyrogram/raw/base/account/authorization_form.py +51 -0
  276. pyrogram/raw/base/account/authorizations.py +51 -0
  277. pyrogram/raw/base/account/auto_download_settings.py +51 -0
  278. pyrogram/raw/base/account/auto_save_settings.py +51 -0
  279. pyrogram/raw/base/account/business_chat_links.py +51 -0
  280. pyrogram/raw/base/account/chat_themes.py +52 -0
  281. pyrogram/raw/base/account/connected_bots.py +51 -0
  282. pyrogram/raw/base/account/content_settings.py +51 -0
  283. pyrogram/raw/base/account/email_verified.py +52 -0
  284. pyrogram/raw/base/account/emoji_statuses.py +55 -0
  285. pyrogram/raw/base/account/paid_messages_revenue.py +51 -0
  286. pyrogram/raw/base/account/password.py +51 -0
  287. pyrogram/raw/base/account/password_input_settings.py +41 -0
  288. pyrogram/raw/base/account/password_settings.py +51 -0
  289. pyrogram/raw/base/account/privacy_rules.py +52 -0
  290. pyrogram/raw/base/account/reset_password_result.py +53 -0
  291. pyrogram/raw/base/account/resolved_business_chat_links.py +51 -0
  292. pyrogram/raw/base/account/saved_music_ids.py +52 -0
  293. pyrogram/raw/base/account/saved_ringtone.py +52 -0
  294. pyrogram/raw/base/account/saved_ringtones.py +52 -0
  295. pyrogram/raw/base/account/sent_email_code.py +51 -0
  296. pyrogram/raw/base/account/takeout.py +51 -0
  297. pyrogram/raw/base/account/themes.py +53 -0
  298. pyrogram/raw/base/account/tmp_password.py +51 -0
  299. pyrogram/raw/base/account/wall_papers.py +52 -0
  300. pyrogram/raw/base/account/web_authorizations.py +51 -0
  301. pyrogram/raw/base/account_days_ttl.py +51 -0
  302. pyrogram/raw/base/attach_menu_bot.py +41 -0
  303. pyrogram/raw/base/attach_menu_bot_icon.py +41 -0
  304. pyrogram/raw/base/attach_menu_bot_icon_color.py +41 -0
  305. pyrogram/raw/base/attach_menu_bots.py +52 -0
  306. pyrogram/raw/base/attach_menu_bots_bot.py +51 -0
  307. pyrogram/raw/base/attach_menu_peer_type.py +45 -0
  308. pyrogram/raw/base/auth/__init__.py +32 -0
  309. pyrogram/raw/base/auth/authorization.py +58 -0
  310. pyrogram/raw/base/auth/code_type.py +45 -0
  311. pyrogram/raw/base/auth/exported_authorization.py +51 -0
  312. pyrogram/raw/base/auth/logged_out.py +51 -0
  313. pyrogram/raw/base/auth/login_token.py +54 -0
  314. pyrogram/raw/base/auth/password_recovery.py +51 -0
  315. pyrogram/raw/base/auth/sent_code.py +59 -0
  316. pyrogram/raw/base/auth/sent_code_type.py +51 -0
  317. pyrogram/raw/base/authorization.py +51 -0
  318. pyrogram/raw/base/auto_download_settings.py +41 -0
  319. pyrogram/raw/base/auto_save_exception.py +41 -0
  320. pyrogram/raw/base/auto_save_settings.py +41 -0
  321. pyrogram/raw/base/available_effect.py +41 -0
  322. pyrogram/raw/base/available_reaction.py +41 -0
  323. pyrogram/raw/base/bad_msg_notification.py +42 -0
  324. pyrogram/raw/base/bank_card_open_url.py +41 -0
  325. pyrogram/raw/base/base_theme.py +45 -0
  326. pyrogram/raw/base/bind_auth_key_inner.py +41 -0
  327. pyrogram/raw/base/birthday.py +41 -0
  328. pyrogram/raw/base/boost.py +41 -0
  329. pyrogram/raw/base/bot_app.py +42 -0
  330. pyrogram/raw/base/bot_app_settings.py +41 -0
  331. pyrogram/raw/base/bot_business_connection.py +41 -0
  332. pyrogram/raw/base/bot_command.py +51 -0
  333. pyrogram/raw/base/bot_command_scope.py +47 -0
  334. pyrogram/raw/base/bot_info.py +41 -0
  335. pyrogram/raw/base/bot_inline_message.py +47 -0
  336. pyrogram/raw/base/bot_inline_result.py +42 -0
  337. pyrogram/raw/base/bot_menu_button.py +53 -0
  338. pyrogram/raw/base/bot_preview_media.py +53 -0
  339. pyrogram/raw/base/bot_verification.py +41 -0
  340. pyrogram/raw/base/bot_verifier_settings.py +41 -0
  341. pyrogram/raw/base/bots/__init__.py +27 -0
  342. pyrogram/raw/base/bots/bot_info.py +51 -0
  343. pyrogram/raw/base/bots/popular_app_bots.py +51 -0
  344. pyrogram/raw/base/bots/preview_info.py +51 -0
  345. pyrogram/raw/base/business_away_message.py +41 -0
  346. pyrogram/raw/base/business_away_message_schedule.py +43 -0
  347. pyrogram/raw/base/business_bot_recipients.py +41 -0
  348. pyrogram/raw/base/business_bot_rights.py +41 -0
  349. pyrogram/raw/base/business_chat_link.py +52 -0
  350. pyrogram/raw/base/business_greeting_message.py +41 -0
  351. pyrogram/raw/base/business_intro.py +41 -0
  352. pyrogram/raw/base/business_location.py +41 -0
  353. pyrogram/raw/base/business_recipients.py +41 -0
  354. pyrogram/raw/base/business_weekly_open.py +41 -0
  355. pyrogram/raw/base/business_work_hours.py +41 -0
  356. pyrogram/raw/base/cdn_config.py +51 -0
  357. pyrogram/raw/base/cdn_public_key.py +41 -0
  358. pyrogram/raw/base/channel_admin_log_event.py +41 -0
  359. pyrogram/raw/base/channel_admin_log_event_action.py +92 -0
  360. pyrogram/raw/base/channel_admin_log_events_filter.py +41 -0
  361. pyrogram/raw/base/channel_location.py +42 -0
  362. pyrogram/raw/base/channel_messages_filter.py +42 -0
  363. pyrogram/raw/base/channel_participant.py +46 -0
  364. pyrogram/raw/base/channel_participants_filter.py +48 -0
  365. pyrogram/raw/base/channels/__init__.py +29 -0
  366. pyrogram/raw/base/channels/admin_log_results.py +51 -0
  367. pyrogram/raw/base/channels/channel_participant.py +51 -0
  368. pyrogram/raw/base/channels/channel_participants.py +52 -0
  369. pyrogram/raw/base/channels/send_as_peers.py +51 -0
  370. pyrogram/raw/base/channels/sponsored_message_report_result.py +53 -0
  371. pyrogram/raw/base/chat.py +45 -0
  372. pyrogram/raw/base/chat_admin_rights.py +41 -0
  373. pyrogram/raw/base/chat_admin_with_invites.py +41 -0
  374. pyrogram/raw/base/chat_banned_rights.py +41 -0
  375. pyrogram/raw/base/chat_full.py +42 -0
  376. pyrogram/raw/base/chat_invite.py +53 -0
  377. pyrogram/raw/base/chat_invite_importer.py +41 -0
  378. pyrogram/raw/base/chat_onlines.py +51 -0
  379. pyrogram/raw/base/chat_participant.py +43 -0
  380. pyrogram/raw/base/chat_participants.py +42 -0
  381. pyrogram/raw/base/chat_photo.py +42 -0
  382. pyrogram/raw/base/chat_reactions.py +43 -0
  383. pyrogram/raw/base/chat_theme.py +42 -0
  384. pyrogram/raw/base/chat_themes.py +51 -0
  385. pyrogram/raw/base/chatlists/__init__.py +28 -0
  386. pyrogram/raw/base/chatlists/chatlist_invite.py +52 -0
  387. pyrogram/raw/base/chatlists/chatlist_updates.py +51 -0
  388. pyrogram/raw/base/chatlists/exported_chatlist_invite.py +51 -0
  389. pyrogram/raw/base/chatlists/exported_invites.py +51 -0
  390. pyrogram/raw/base/client_dh_inner_data.py +41 -0
  391. pyrogram/raw/base/code_settings.py +41 -0
  392. pyrogram/raw/base/config.py +51 -0
  393. pyrogram/raw/base/connected_bot.py +41 -0
  394. pyrogram/raw/base/connected_bot_star_ref.py +41 -0
  395. pyrogram/raw/base/contact.py +41 -0
  396. pyrogram/raw/base/contact_birthday.py +41 -0
  397. pyrogram/raw/base/contact_status.py +51 -0
  398. pyrogram/raw/base/contacts/__init__.py +32 -0
  399. pyrogram/raw/base/contacts/blocked.py +52 -0
  400. pyrogram/raw/base/contacts/contact_birthdays.py +51 -0
  401. pyrogram/raw/base/contacts/contacts.py +52 -0
  402. pyrogram/raw/base/contacts/found.py +51 -0
  403. pyrogram/raw/base/contacts/imported_contacts.py +51 -0
  404. pyrogram/raw/base/contacts/resolved_peer.py +52 -0
  405. pyrogram/raw/base/contacts/sponsored_peers.py +52 -0
  406. pyrogram/raw/base/contacts/top_peers.py +53 -0
  407. pyrogram/raw/base/data_json.py +53 -0
  408. pyrogram/raw/base/dc_option.py +41 -0
  409. pyrogram/raw/base/default_history_ttl.py +51 -0
  410. pyrogram/raw/base/destroy_auth_key_res.py +53 -0
  411. pyrogram/raw/base/destroy_session_res.py +52 -0
  412. pyrogram/raw/base/dialog.py +42 -0
  413. pyrogram/raw/base/dialog_filter.py +43 -0
  414. pyrogram/raw/base/dialog_filter_suggested.py +51 -0
  415. pyrogram/raw/base/dialog_peer.py +52 -0
  416. pyrogram/raw/base/disallowed_gifts_settings.py +41 -0
  417. pyrogram/raw/base/document.py +55 -0
  418. pyrogram/raw/base/document_attribute.py +48 -0
  419. pyrogram/raw/base/draft_message.py +42 -0
  420. pyrogram/raw/base/email_verification.py +43 -0
  421. pyrogram/raw/base/email_verify_purpose.py +43 -0
  422. pyrogram/raw/base/emoji_group.py +43 -0
  423. pyrogram/raw/base/emoji_keyword.py +42 -0
  424. pyrogram/raw/base/emoji_keywords_difference.py +52 -0
  425. pyrogram/raw/base/emoji_language.py +51 -0
  426. pyrogram/raw/base/emoji_list.py +56 -0
  427. pyrogram/raw/base/emoji_status.py +44 -0
  428. pyrogram/raw/base/emoji_url.py +51 -0
  429. pyrogram/raw/base/encrypted_chat.py +56 -0
  430. pyrogram/raw/base/encrypted_file.py +52 -0
  431. pyrogram/raw/base/encrypted_message.py +42 -0
  432. pyrogram/raw/base/exported_chat_invite.py +52 -0
  433. pyrogram/raw/base/exported_chatlist_invite.py +51 -0
  434. pyrogram/raw/base/exported_contact_token.py +51 -0
  435. pyrogram/raw/base/exported_message_link.py +51 -0
  436. pyrogram/raw/base/exported_story_link.py +51 -0
  437. pyrogram/raw/base/fact_check.py +51 -0
  438. pyrogram/raw/base/file_hash.py +53 -0
  439. pyrogram/raw/base/folder.py +41 -0
  440. pyrogram/raw/base/folder_peer.py +41 -0
  441. pyrogram/raw/base/forum_topic.py +42 -0
  442. pyrogram/raw/base/found_story.py +41 -0
  443. pyrogram/raw/base/fragment/__init__.py +25 -0
  444. pyrogram/raw/base/fragment/collectible_info.py +51 -0
  445. pyrogram/raw/base/game.py +41 -0
  446. pyrogram/raw/base/geo_point.py +42 -0
  447. pyrogram/raw/base/geo_point_address.py +41 -0
  448. pyrogram/raw/base/global_privacy_settings.py +52 -0
  449. pyrogram/raw/base/group_call.py +42 -0
  450. pyrogram/raw/base/group_call_participant.py +41 -0
  451. pyrogram/raw/base/group_call_participant_video.py +41 -0
  452. pyrogram/raw/base/group_call_participant_video_source_group.py +41 -0
  453. pyrogram/raw/base/group_call_stream_channel.py +41 -0
  454. pyrogram/raw/base/help/__init__.py +45 -0
  455. pyrogram/raw/base/help/app_config.py +52 -0
  456. pyrogram/raw/base/help/app_update.py +52 -0
  457. pyrogram/raw/base/help/config_simple.py +41 -0
  458. pyrogram/raw/base/help/countries_list.py +52 -0
  459. pyrogram/raw/base/help/country.py +41 -0
  460. pyrogram/raw/base/help/country_code.py +41 -0
  461. pyrogram/raw/base/help/deep_link_info.py +52 -0
  462. pyrogram/raw/base/help/invite_text.py +51 -0
  463. pyrogram/raw/base/help/passport_config.py +52 -0
  464. pyrogram/raw/base/help/peer_color_option.py +41 -0
  465. pyrogram/raw/base/help/peer_color_set.py +42 -0
  466. pyrogram/raw/base/help/peer_colors.py +53 -0
  467. pyrogram/raw/base/help/premium_promo.py +51 -0
  468. pyrogram/raw/base/help/promo_data.py +52 -0
  469. pyrogram/raw/base/help/recent_me_urls.py +51 -0
  470. pyrogram/raw/base/help/support.py +51 -0
  471. pyrogram/raw/base/help/support_name.py +51 -0
  472. pyrogram/raw/base/help/terms_of_service.py +41 -0
  473. pyrogram/raw/base/help/terms_of_service_update.py +52 -0
  474. pyrogram/raw/base/help/timezones_list.py +52 -0
  475. pyrogram/raw/base/help/user_info.py +53 -0
  476. pyrogram/raw/base/high_score.py +41 -0
  477. pyrogram/raw/base/http_wait.py +41 -0
  478. pyrogram/raw/base/imported_contact.py +41 -0
  479. pyrogram/raw/base/inline_bot_switch_pm.py +41 -0
  480. pyrogram/raw/base/inline_bot_web_view.py +41 -0
  481. pyrogram/raw/base/inline_query_peer_type.py +46 -0
  482. pyrogram/raw/base/input_app_event.py +41 -0
  483. pyrogram/raw/base/input_bot_app.py +42 -0
  484. pyrogram/raw/base/input_bot_inline_message.py +48 -0
  485. pyrogram/raw/base/input_bot_inline_message_id.py +42 -0
  486. pyrogram/raw/base/input_bot_inline_result.py +44 -0
  487. pyrogram/raw/base/input_business_away_message.py +41 -0
  488. pyrogram/raw/base/input_business_bot_recipients.py +41 -0
  489. pyrogram/raw/base/input_business_chat_link.py +41 -0
  490. pyrogram/raw/base/input_business_greeting_message.py +41 -0
  491. pyrogram/raw/base/input_business_intro.py +41 -0
  492. pyrogram/raw/base/input_business_recipients.py +41 -0
  493. pyrogram/raw/base/input_channel.py +43 -0
  494. pyrogram/raw/base/input_chat_photo.py +43 -0
  495. pyrogram/raw/base/input_chat_theme.py +43 -0
  496. pyrogram/raw/base/input_chatlist.py +41 -0
  497. pyrogram/raw/base/input_check_password_srp.py +42 -0
  498. pyrogram/raw/base/input_client_proxy.py +41 -0
  499. pyrogram/raw/base/input_collectible.py +42 -0
  500. pyrogram/raw/base/input_contact.py +41 -0
  501. pyrogram/raw/base/input_dialog_peer.py +42 -0
  502. pyrogram/raw/base/input_document.py +42 -0
  503. pyrogram/raw/base/input_encrypted_chat.py +41 -0
  504. pyrogram/raw/base/input_encrypted_file.py +44 -0
  505. pyrogram/raw/base/input_file.py +43 -0
  506. pyrogram/raw/base/input_file_location.py +50 -0
  507. pyrogram/raw/base/input_folder_peer.py +41 -0
  508. pyrogram/raw/base/input_game.py +42 -0
  509. pyrogram/raw/base/input_geo_point.py +42 -0
  510. pyrogram/raw/base/input_group_call.py +43 -0
  511. pyrogram/raw/base/input_invoice.py +54 -0
  512. pyrogram/raw/base/input_media.py +59 -0
  513. pyrogram/raw/base/input_message.py +44 -0
  514. pyrogram/raw/base/input_notify_peer.py +45 -0
  515. pyrogram/raw/base/input_payment_credentials.py +44 -0
  516. pyrogram/raw/base/input_peer.py +47 -0
  517. pyrogram/raw/base/input_peer_notify_settings.py +41 -0
  518. pyrogram/raw/base/input_phone_call.py +41 -0
  519. pyrogram/raw/base/input_photo.py +42 -0
  520. pyrogram/raw/base/input_privacy_key.py +53 -0
  521. pyrogram/raw/base/input_privacy_rule.py +52 -0
  522. pyrogram/raw/base/input_quick_reply_shortcut.py +42 -0
  523. pyrogram/raw/base/input_reply_to.py +43 -0
  524. pyrogram/raw/base/input_saved_star_gift.py +43 -0
  525. pyrogram/raw/base/input_secure_file.py +42 -0
  526. pyrogram/raw/base/input_secure_value.py +41 -0
  527. pyrogram/raw/base/input_single_media.py +41 -0
  528. pyrogram/raw/base/input_stars_transaction.py +41 -0
  529. pyrogram/raw/base/input_sticker_set.py +52 -0
  530. pyrogram/raw/base/input_sticker_set_item.py +41 -0
  531. pyrogram/raw/base/input_stickered_media.py +42 -0
  532. pyrogram/raw/base/input_store_payment_purpose.py +48 -0
  533. pyrogram/raw/base/input_theme.py +42 -0
  534. pyrogram/raw/base/input_theme_settings.py +41 -0
  535. pyrogram/raw/base/input_user.py +44 -0
  536. pyrogram/raw/base/input_wall_paper.py +43 -0
  537. pyrogram/raw/base/input_web_document.py +41 -0
  538. pyrogram/raw/base/input_web_file_location.py +43 -0
  539. pyrogram/raw/base/invoice.py +41 -0
  540. pyrogram/raw/base/ip_port.py +42 -0
  541. pyrogram/raw/base/json_object_value.py +41 -0
  542. pyrogram/raw/base/json_value.py +46 -0
  543. pyrogram/raw/base/keyboard_button.py +58 -0
  544. pyrogram/raw/base/keyboard_button_row.py +41 -0
  545. pyrogram/raw/base/labeled_price.py +41 -0
  546. pyrogram/raw/base/lang_pack_difference.py +52 -0
  547. pyrogram/raw/base/lang_pack_language.py +52 -0
  548. pyrogram/raw/base/lang_pack_string.py +53 -0
  549. pyrogram/raw/base/mask_coords.py +41 -0
  550. pyrogram/raw/base/media_area.py +49 -0
  551. pyrogram/raw/base/media_area_coordinates.py +41 -0
  552. pyrogram/raw/base/message.py +43 -0
  553. pyrogram/raw/base/message_action.py +104 -0
  554. pyrogram/raw/base/message_entity.py +61 -0
  555. pyrogram/raw/base/message_extended_media.py +42 -0
  556. pyrogram/raw/base/message_fwd_header.py +41 -0
  557. pyrogram/raw/base/message_media.py +69 -0
  558. pyrogram/raw/base/message_peer_reaction.py +41 -0
  559. pyrogram/raw/base/message_peer_vote.py +43 -0
  560. pyrogram/raw/base/message_range.py +51 -0
  561. pyrogram/raw/base/message_reactions.py +41 -0
  562. pyrogram/raw/base/message_reactor.py +41 -0
  563. pyrogram/raw/base/message_replies.py +41 -0
  564. pyrogram/raw/base/message_reply_header.py +42 -0
  565. pyrogram/raw/base/message_report_option.py +41 -0
  566. pyrogram/raw/base/message_views.py +41 -0
  567. pyrogram/raw/base/messages/__init__.py +86 -0
  568. pyrogram/raw/base/messages/affected_found_messages.py +51 -0
  569. pyrogram/raw/base/messages/affected_history.py +58 -0
  570. pyrogram/raw/base/messages/affected_messages.py +54 -0
  571. pyrogram/raw/base/messages/all_stickers.py +54 -0
  572. pyrogram/raw/base/messages/archived_stickers.py +51 -0
  573. pyrogram/raw/base/messages/available_effects.py +52 -0
  574. pyrogram/raw/base/messages/available_reactions.py +52 -0
  575. pyrogram/raw/base/messages/bot_app.py +51 -0
  576. pyrogram/raw/base/messages/bot_callback_answer.py +51 -0
  577. pyrogram/raw/base/messages/bot_prepared_inline_message.py +51 -0
  578. pyrogram/raw/base/messages/bot_results.py +51 -0
  579. pyrogram/raw/base/messages/chat_admins_with_invites.py +51 -0
  580. pyrogram/raw/base/messages/chat_full.py +52 -0
  581. pyrogram/raw/base/messages/chat_invite_importers.py +51 -0
  582. pyrogram/raw/base/messages/chats.py +60 -0
  583. pyrogram/raw/base/messages/checked_history_import_peer.py +51 -0
  584. pyrogram/raw/base/messages/dh_config.py +52 -0
  585. pyrogram/raw/base/messages/dialog_filters.py +51 -0
  586. pyrogram/raw/base/messages/dialogs.py +53 -0
  587. pyrogram/raw/base/messages/discussion_message.py +51 -0
  588. pyrogram/raw/base/messages/emoji_groups.py +55 -0
  589. pyrogram/raw/base/messages/exported_chat_invite.py +53 -0
  590. pyrogram/raw/base/messages/exported_chat_invites.py +51 -0
  591. pyrogram/raw/base/messages/faved_stickers.py +52 -0
  592. pyrogram/raw/base/messages/featured_stickers.py +54 -0
  593. pyrogram/raw/base/messages/forum_topics.py +54 -0
  594. pyrogram/raw/base/messages/found_sticker_sets.py +53 -0
  595. pyrogram/raw/base/messages/found_stickers.py +52 -0
  596. pyrogram/raw/base/messages/high_scores.py +52 -0
  597. pyrogram/raw/base/messages/history_import.py +51 -0
  598. pyrogram/raw/base/messages/history_import_parsed.py +51 -0
  599. pyrogram/raw/base/messages/inactive_chats.py +51 -0
  600. pyrogram/raw/base/messages/invited_users.py +53 -0
  601. pyrogram/raw/base/messages/message_edit_data.py +51 -0
  602. pyrogram/raw/base/messages/message_empty.py +41 -0
  603. pyrogram/raw/base/messages/message_reactions_list.py +51 -0
  604. pyrogram/raw/base/messages/message_views.py +51 -0
  605. pyrogram/raw/base/messages/messages.py +68 -0
  606. pyrogram/raw/base/messages/my_stickers.py +51 -0
  607. pyrogram/raw/base/messages/peer_dialogs.py +52 -0
  608. pyrogram/raw/base/messages/peer_settings.py +51 -0
  609. pyrogram/raw/base/messages/prepared_inline_message.py +51 -0
  610. pyrogram/raw/base/messages/quick_replies.py +52 -0
  611. pyrogram/raw/base/messages/reactions.py +54 -0
  612. pyrogram/raw/base/messages/recent_stickers.py +52 -0
  613. pyrogram/raw/base/messages/saved_dialogs.py +55 -0
  614. pyrogram/raw/base/messages/saved_gifs.py +52 -0
  615. pyrogram/raw/base/messages/saved_reaction_tags.py +52 -0
  616. pyrogram/raw/base/messages/search_counter.py +51 -0
  617. pyrogram/raw/base/messages/search_results_calendar.py +51 -0
  618. pyrogram/raw/base/messages/search_results_positions.py +51 -0
  619. pyrogram/raw/base/messages/sent_encrypted_message.py +54 -0
  620. pyrogram/raw/base/messages/sponsored_messages.py +52 -0
  621. pyrogram/raw/base/messages/sticker_set.py +60 -0
  622. pyrogram/raw/base/messages/sticker_set_install_result.py +52 -0
  623. pyrogram/raw/base/messages/stickers.py +52 -0
  624. pyrogram/raw/base/messages/transcribed_audio.py +51 -0
  625. pyrogram/raw/base/messages/translated_text.py +51 -0
  626. pyrogram/raw/base/messages/votes_list.py +51 -0
  627. pyrogram/raw/base/messages/web_page.py +51 -0
  628. pyrogram/raw/base/messages/web_page_preview.py +51 -0
  629. pyrogram/raw/base/messages/web_view_result.py +51 -0
  630. pyrogram/raw/base/messages_filter.py +58 -0
  631. pyrogram/raw/base/missing_invitee.py +41 -0
  632. pyrogram/raw/base/msg_detailed_info.py +42 -0
  633. pyrogram/raw/base/msg_resend_req.py +42 -0
  634. pyrogram/raw/base/msgs_ack.py +41 -0
  635. pyrogram/raw/base/msgs_all_info.py +41 -0
  636. pyrogram/raw/base/msgs_state_info.py +41 -0
  637. pyrogram/raw/base/msgs_state_req.py +41 -0
  638. pyrogram/raw/base/my_boost.py +41 -0
  639. pyrogram/raw/base/nearest_dc.py +51 -0
  640. pyrogram/raw/base/new_session.py +41 -0
  641. pyrogram/raw/base/notification_sound.py +44 -0
  642. pyrogram/raw/base/notify_peer.py +45 -0
  643. pyrogram/raw/base/outbox_read_date.py +51 -0
  644. pyrogram/raw/base/page.py +41 -0
  645. pyrogram/raw/base/page_block.py +69 -0
  646. pyrogram/raw/base/page_caption.py +41 -0
  647. pyrogram/raw/base/page_list_item.py +42 -0
  648. pyrogram/raw/base/page_list_ordered_item.py +42 -0
  649. pyrogram/raw/base/page_related_article.py +41 -0
  650. pyrogram/raw/base/page_table_cell.py +41 -0
  651. pyrogram/raw/base/page_table_row.py +41 -0
  652. pyrogram/raw/base/paid_reaction_privacy.py +43 -0
  653. pyrogram/raw/base/password_kdf_algo.py +42 -0
  654. pyrogram/raw/base/payment_charge.py +41 -0
  655. pyrogram/raw/base/payment_form_method.py +41 -0
  656. pyrogram/raw/base/payment_requested_info.py +41 -0
  657. pyrogram/raw/base/payment_saved_credentials.py +41 -0
  658. pyrogram/raw/base/payments/__init__.py +48 -0
  659. pyrogram/raw/base/payments/bank_card_data.py +51 -0
  660. pyrogram/raw/base/payments/check_can_send_gift_result.py +52 -0
  661. pyrogram/raw/base/payments/checked_gift_code.py +51 -0
  662. pyrogram/raw/base/payments/connected_star_ref_bots.py +54 -0
  663. pyrogram/raw/base/payments/exported_invoice.py +51 -0
  664. pyrogram/raw/base/payments/giveaway_info.py +52 -0
  665. pyrogram/raw/base/payments/payment_form.py +53 -0
  666. pyrogram/raw/base/payments/payment_receipt.py +52 -0
  667. pyrogram/raw/base/payments/payment_result.py +53 -0
  668. pyrogram/raw/base/payments/resale_star_gifts.py +51 -0
  669. pyrogram/raw/base/payments/saved_info.py +51 -0
  670. pyrogram/raw/base/payments/saved_star_gifts.py +52 -0
  671. pyrogram/raw/base/payments/star_gift_collections.py +52 -0
  672. pyrogram/raw/base/payments/star_gift_upgrade_preview.py +51 -0
  673. pyrogram/raw/base/payments/star_gift_withdrawal_url.py +51 -0
  674. pyrogram/raw/base/payments/star_gifts.py +52 -0
  675. pyrogram/raw/base/payments/stars_revenue_ads_account_url.py +51 -0
  676. pyrogram/raw/base/payments/stars_revenue_stats.py +51 -0
  677. pyrogram/raw/base/payments/stars_revenue_withdrawal_url.py +51 -0
  678. pyrogram/raw/base/payments/stars_status.py +54 -0
  679. pyrogram/raw/base/payments/suggested_star_ref_bots.py +51 -0
  680. pyrogram/raw/base/payments/unique_star_gift.py +51 -0
  681. pyrogram/raw/base/payments/unique_star_gift_value_info.py +51 -0
  682. pyrogram/raw/base/payments/validated_requested_info.py +51 -0
  683. pyrogram/raw/base/peer.py +53 -0
  684. pyrogram/raw/base/peer_blocked.py +41 -0
  685. pyrogram/raw/base/peer_color.py +43 -0
  686. pyrogram/raw/base/peer_located.py +42 -0
  687. pyrogram/raw/base/peer_notify_settings.py +51 -0
  688. pyrogram/raw/base/peer_settings.py +41 -0
  689. pyrogram/raw/base/peer_stories.py +41 -0
  690. pyrogram/raw/base/pending_suggestion.py +41 -0
  691. pyrogram/raw/base/phone/__init__.py +31 -0
  692. pyrogram/raw/base/phone/exported_group_call_invite.py +51 -0
  693. pyrogram/raw/base/phone/group_call.py +51 -0
  694. pyrogram/raw/base/phone/group_call_stream_channels.py +51 -0
  695. pyrogram/raw/base/phone/group_call_stream_rtmp_url.py +51 -0
  696. pyrogram/raw/base/phone/group_participants.py +51 -0
  697. pyrogram/raw/base/phone/join_as_peers.py +51 -0
  698. pyrogram/raw/base/phone/phone_call.py +53 -0
  699. pyrogram/raw/base/phone_call.py +46 -0
  700. pyrogram/raw/base/phone_call_discard_reason.py +45 -0
  701. pyrogram/raw/base/phone_call_protocol.py +41 -0
  702. pyrogram/raw/base/phone_connection.py +42 -0
  703. pyrogram/raw/base/photo.py +42 -0
  704. pyrogram/raw/base/photo_size.py +46 -0
  705. pyrogram/raw/base/photos/__init__.py +26 -0
  706. pyrogram/raw/base/photos/photo.py +53 -0
  707. pyrogram/raw/base/photos/photos.py +52 -0
  708. pyrogram/raw/base/poll.py +41 -0
  709. pyrogram/raw/base/poll_answer.py +41 -0
  710. pyrogram/raw/base/poll_answer_voters.py +41 -0
  711. pyrogram/raw/base/poll_results.py +41 -0
  712. pyrogram/raw/base/pong.py +52 -0
  713. pyrogram/raw/base/popular_contact.py +41 -0
  714. pyrogram/raw/base/post_address.py +41 -0
  715. pyrogram/raw/base/post_interaction_counters.py +42 -0
  716. pyrogram/raw/base/pq_inner_data.py +44 -0
  717. pyrogram/raw/base/premium/__init__.py +27 -0
  718. pyrogram/raw/base/premium/boosts_list.py +52 -0
  719. pyrogram/raw/base/premium/boosts_status.py +51 -0
  720. pyrogram/raw/base/premium/my_boosts.py +52 -0
  721. pyrogram/raw/base/premium_gift_code_option.py +51 -0
  722. pyrogram/raw/base/premium_gift_option.py +41 -0
  723. pyrogram/raw/base/premium_subscription_option.py +41 -0
  724. pyrogram/raw/base/prepaid_giveaway.py +42 -0
  725. pyrogram/raw/base/privacy_key.py +53 -0
  726. pyrogram/raw/base/privacy_rule.py +52 -0
  727. pyrogram/raw/base/profile_tab.py +48 -0
  728. pyrogram/raw/base/public_forward.py +42 -0
  729. pyrogram/raw/base/quick_reply.py +41 -0
  730. pyrogram/raw/base/reaction.py +44 -0
  731. pyrogram/raw/base/reaction_count.py +41 -0
  732. pyrogram/raw/base/reaction_notifications_from.py +42 -0
  733. pyrogram/raw/base/reactions_notify_settings.py +52 -0
  734. pyrogram/raw/base/read_participant_date.py +51 -0
  735. pyrogram/raw/base/received_notify_message.py +51 -0
  736. pyrogram/raw/base/recent_me_url.py +45 -0
  737. pyrogram/raw/base/reply_markup.py +44 -0
  738. pyrogram/raw/base/report_reason.py +50 -0
  739. pyrogram/raw/base/report_result.py +54 -0
  740. pyrogram/raw/base/request_peer_type.py +43 -0
  741. pyrogram/raw/base/requested_peer.py +43 -0
  742. pyrogram/raw/base/requirement_to_contact.py +53 -0
  743. pyrogram/raw/base/res_pq.py +52 -0
  744. pyrogram/raw/base/restriction_reason.py +41 -0
  745. pyrogram/raw/base/rich_text.py +56 -0
  746. pyrogram/raw/base/rpc_drop_answer.py +53 -0
  747. pyrogram/raw/base/rpc_error.py +41 -0
  748. pyrogram/raw/base/rpc_result.py +41 -0
  749. pyrogram/raw/base/saved_contact.py +51 -0
  750. pyrogram/raw/base/saved_dialog.py +42 -0
  751. pyrogram/raw/base/saved_reaction_tag.py +41 -0
  752. pyrogram/raw/base/saved_star_gift.py +41 -0
  753. pyrogram/raw/base/search_posts_flood.py +51 -0
  754. pyrogram/raw/base/search_results_calendar_period.py +41 -0
  755. pyrogram/raw/base/search_results_position.py +41 -0
  756. pyrogram/raw/base/secure_credentials_encrypted.py +41 -0
  757. pyrogram/raw/base/secure_data.py +41 -0
  758. pyrogram/raw/base/secure_file.py +42 -0
  759. pyrogram/raw/base/secure_password_kdf_algo.py +43 -0
  760. pyrogram/raw/base/secure_plain_data.py +42 -0
  761. pyrogram/raw/base/secure_required_type.py +42 -0
  762. pyrogram/raw/base/secure_secret_settings.py +41 -0
  763. pyrogram/raw/base/secure_value.py +53 -0
  764. pyrogram/raw/base/secure_value_error.py +49 -0
  765. pyrogram/raw/base/secure_value_hash.py +41 -0
  766. pyrogram/raw/base/secure_value_type.py +53 -0
  767. pyrogram/raw/base/send_as_peer.py +41 -0
  768. pyrogram/raw/base/send_message_action.py +59 -0
  769. pyrogram/raw/base/server_dh_inner_data.py +41 -0
  770. pyrogram/raw/base/server_dh_params.py +52 -0
  771. pyrogram/raw/base/set_client_dh_params_answer.py +53 -0
  772. pyrogram/raw/base/shipping_option.py +41 -0
  773. pyrogram/raw/base/sms_job.py +51 -0
  774. pyrogram/raw/base/smsjobs/__init__.py +26 -0
  775. pyrogram/raw/base/smsjobs/eligibility_to_join.py +51 -0
  776. pyrogram/raw/base/smsjobs/status.py +51 -0
  777. pyrogram/raw/base/sponsored_message.py +41 -0
  778. pyrogram/raw/base/sponsored_message_report_option.py +41 -0
  779. pyrogram/raw/base/sponsored_peer.py +41 -0
  780. pyrogram/raw/base/star_gift.py +42 -0
  781. pyrogram/raw/base/star_gift_attribute.py +44 -0
  782. pyrogram/raw/base/star_gift_attribute_counter.py +41 -0
  783. pyrogram/raw/base/star_gift_attribute_id.py +43 -0
  784. pyrogram/raw/base/star_gift_collection.py +52 -0
  785. pyrogram/raw/base/star_gift_upgrade_preview.py +41 -0
  786. pyrogram/raw/base/star_gift_upgrade_price.py +41 -0
  787. pyrogram/raw/base/star_ref_program.py +51 -0
  788. pyrogram/raw/base/stars_amount.py +42 -0
  789. pyrogram/raw/base/stars_gift_option.py +51 -0
  790. pyrogram/raw/base/stars_giveaway_option.py +51 -0
  791. pyrogram/raw/base/stars_giveaway_winners_option.py +41 -0
  792. pyrogram/raw/base/stars_rating.py +41 -0
  793. pyrogram/raw/base/stars_revenue_status.py +41 -0
  794. pyrogram/raw/base/stars_subscription.py +41 -0
  795. pyrogram/raw/base/stars_subscription_pricing.py +41 -0
  796. pyrogram/raw/base/stars_topup_option.py +51 -0
  797. pyrogram/raw/base/stars_transaction.py +41 -0
  798. pyrogram/raw/base/stars_transaction_peer.py +48 -0
  799. pyrogram/raw/base/stats/__init__.py +29 -0
  800. pyrogram/raw/base/stats/broadcast_stats.py +51 -0
  801. pyrogram/raw/base/stats/megagroup_stats.py +51 -0
  802. pyrogram/raw/base/stats/message_stats.py +51 -0
  803. pyrogram/raw/base/stats/public_forwards.py +52 -0
  804. pyrogram/raw/base/stats/story_stats.py +51 -0
  805. pyrogram/raw/base/stats_abs_value_and_prev.py +41 -0
  806. pyrogram/raw/base/stats_date_range_days.py +41 -0
  807. pyrogram/raw/base/stats_graph.py +53 -0
  808. pyrogram/raw/base/stats_group_top_admin.py +41 -0
  809. pyrogram/raw/base/stats_group_top_inviter.py +41 -0
  810. pyrogram/raw/base/stats_group_top_poster.py +41 -0
  811. pyrogram/raw/base/stats_percent_value.py +41 -0
  812. pyrogram/raw/base/stats_url.py +51 -0
  813. pyrogram/raw/base/sticker_keyword.py +41 -0
  814. pyrogram/raw/base/sticker_pack.py +41 -0
  815. pyrogram/raw/base/sticker_set.py +41 -0
  816. pyrogram/raw/base/sticker_set_covered.py +54 -0
  817. pyrogram/raw/base/stickers/__init__.py +25 -0
  818. pyrogram/raw/base/stickers/suggested_short_name.py +51 -0
  819. pyrogram/raw/base/storage/__init__.py +25 -0
  820. pyrogram/raw/base/storage/file_type.py +50 -0
  821. pyrogram/raw/base/stories/__init__.py +33 -0
  822. pyrogram/raw/base/stories/albums.py +52 -0
  823. pyrogram/raw/base/stories/all_stories.py +52 -0
  824. pyrogram/raw/base/stories/can_send_story_count.py +51 -0
  825. pyrogram/raw/base/stories/found_stories.py +51 -0
  826. pyrogram/raw/base/stories/peer_stories.py +51 -0
  827. pyrogram/raw/base/stories/stories.py +54 -0
  828. pyrogram/raw/base/stories/story_reactions_list.py +51 -0
  829. pyrogram/raw/base/stories/story_views.py +51 -0
  830. pyrogram/raw/base/stories/story_views_list.py +51 -0
  831. pyrogram/raw/base/stories_stealth_mode.py +41 -0
  832. pyrogram/raw/base/story_album.py +52 -0
  833. pyrogram/raw/base/story_fwd_header.py +41 -0
  834. pyrogram/raw/base/story_item.py +43 -0
  835. pyrogram/raw/base/story_reaction.py +43 -0
  836. pyrogram/raw/base/story_view.py +43 -0
  837. pyrogram/raw/base/story_views.py +41 -0
  838. pyrogram/raw/base/suggested_post.py +41 -0
  839. pyrogram/raw/base/text_with_entities.py +41 -0
  840. pyrogram/raw/base/theme.py +53 -0
  841. pyrogram/raw/base/theme_settings.py +41 -0
  842. pyrogram/raw/base/timezone.py +41 -0
  843. pyrogram/raw/base/todo_completion.py +41 -0
  844. pyrogram/raw/base/todo_item.py +41 -0
  845. pyrogram/raw/base/todo_list.py +41 -0
  846. pyrogram/raw/base/top_peer.py +41 -0
  847. pyrogram/raw/base/top_peer_category.py +49 -0
  848. pyrogram/raw/base/top_peer_category_peers.py +41 -0
  849. pyrogram/raw/base/update.py +191 -0
  850. pyrogram/raw/base/updates/__init__.py +27 -0
  851. pyrogram/raw/base/updates/channel_difference.py +53 -0
  852. pyrogram/raw/base/updates/difference.py +54 -0
  853. pyrogram/raw/base/updates/state.py +51 -0
  854. pyrogram/raw/base/updates_t.py +184 -0
  855. pyrogram/raw/base/upload/__init__.py +27 -0
  856. pyrogram/raw/base/upload/cdn_file.py +52 -0
  857. pyrogram/raw/base/upload/file.py +52 -0
  858. pyrogram/raw/base/upload/web_file.py +51 -0
  859. pyrogram/raw/base/url_auth_result.py +54 -0
  860. pyrogram/raw/base/user.py +59 -0
  861. pyrogram/raw/base/user_full.py +41 -0
  862. pyrogram/raw/base/user_profile_photo.py +42 -0
  863. pyrogram/raw/base/user_status.py +47 -0
  864. pyrogram/raw/base/username.py +41 -0
  865. pyrogram/raw/base/users/__init__.py +27 -0
  866. pyrogram/raw/base/users/saved_music.py +53 -0
  867. pyrogram/raw/base/users/user_full.py +51 -0
  868. pyrogram/raw/base/users/users.py +52 -0
  869. pyrogram/raw/base/video_size.py +43 -0
  870. pyrogram/raw/base/wall_paper.py +54 -0
  871. pyrogram/raw/base/wall_paper_settings.py +41 -0
  872. pyrogram/raw/base/web_authorization.py +41 -0
  873. pyrogram/raw/base/web_document.py +42 -0
  874. pyrogram/raw/base/web_page.py +45 -0
  875. pyrogram/raw/base/web_page_attribute.py +45 -0
  876. pyrogram/raw/base/web_view_message_sent.py +51 -0
  877. pyrogram/raw/base/web_view_result.py +54 -0
  878. pyrogram/raw/core/__init__.py +31 -0
  879. pyrogram/raw/core/future_salt.py +53 -0
  880. pyrogram/raw/core/future_salts.py +63 -0
  881. pyrogram/raw/core/gzip_packed.py +62 -0
  882. pyrogram/raw/core/list.py +26 -0
  883. pyrogram/raw/core/message.py +56 -0
  884. pyrogram/raw/core/msg_container.py +53 -0
  885. pyrogram/raw/core/primitives/__init__.py +24 -0
  886. pyrogram/raw/core/primitives/bool.py +48 -0
  887. pyrogram/raw/core/primitives/bytes.py +55 -0
  888. pyrogram/raw/core/primitives/double.py +32 -0
  889. pyrogram/raw/core/primitives/int.py +45 -0
  890. pyrogram/raw/core/primitives/string.py +31 -0
  891. pyrogram/raw/core/primitives/vector.py +75 -0
  892. pyrogram/raw/core/tl_object.py +82 -0
  893. pyrogram/raw/functions/__init__.py +46 -0
  894. pyrogram/raw/functions/account/__init__.py +143 -0
  895. pyrogram/raw/functions/account/accept_authorization.py +105 -0
  896. pyrogram/raw/functions/account/cancel_password_email.py +68 -0
  897. pyrogram/raw/functions/account/change_authorization_settings.py +99 -0
  898. pyrogram/raw/functions/account/change_phone.py +89 -0
  899. pyrogram/raw/functions/account/check_username.py +73 -0
  900. pyrogram/raw/functions/account/clear_recent_emoji_statuses.py +68 -0
  901. pyrogram/raw/functions/account/confirm_password_email.py +73 -0
  902. pyrogram/raw/functions/account/confirm_phone.py +81 -0
  903. pyrogram/raw/functions/account/create_business_chat_link.py +73 -0
  904. pyrogram/raw/functions/account/create_theme.py +103 -0
  905. pyrogram/raw/functions/account/decline_password_reset.py +68 -0
  906. pyrogram/raw/functions/account/delete_account.py +85 -0
  907. pyrogram/raw/functions/account/delete_auto_save_exceptions.py +68 -0
  908. pyrogram/raw/functions/account/delete_business_chat_link.py +73 -0
  909. pyrogram/raw/functions/account/delete_secure_value.py +73 -0
  910. pyrogram/raw/functions/account/disable_peer_connected_bot.py +73 -0
  911. pyrogram/raw/functions/account/edit_business_chat_link.py +81 -0
  912. pyrogram/raw/functions/account/finish_takeout_session.py +73 -0
  913. pyrogram/raw/functions/account/get_account_ttl.py +68 -0
  914. pyrogram/raw/functions/account/get_all_secure_values.py +68 -0
  915. pyrogram/raw/functions/account/get_authorization_form.py +89 -0
  916. pyrogram/raw/functions/account/get_authorizations.py +68 -0
  917. pyrogram/raw/functions/account/get_auto_download_settings.py +68 -0
  918. pyrogram/raw/functions/account/get_auto_save_settings.py +68 -0
  919. pyrogram/raw/functions/account/get_bot_business_connection.py +76 -0
  920. pyrogram/raw/functions/account/get_business_chat_links.py +68 -0
  921. pyrogram/raw/functions/account/get_channel_default_emoji_statuses.py +73 -0
  922. pyrogram/raw/functions/account/get_channel_restricted_status_emojis.py +73 -0
  923. pyrogram/raw/functions/account/get_chat_themes.py +73 -0
  924. pyrogram/raw/functions/account/get_collectible_emoji_statuses.py +73 -0
  925. pyrogram/raw/functions/account/get_connected_bots.py +68 -0
  926. pyrogram/raw/functions/account/get_contact_sign_up_notification.py +68 -0
  927. pyrogram/raw/functions/account/get_content_settings.py +68 -0
  928. pyrogram/raw/functions/account/get_default_background_emojis.py +73 -0
  929. pyrogram/raw/functions/account/get_default_emoji_statuses.py +73 -0
  930. pyrogram/raw/functions/account/get_default_group_photo_emojis.py +73 -0
  931. pyrogram/raw/functions/account/get_default_profile_photo_emojis.py +73 -0
  932. pyrogram/raw/functions/account/get_global_privacy_settings.py +68 -0
  933. pyrogram/raw/functions/account/get_multi_wall_papers.py +73 -0
  934. pyrogram/raw/functions/account/get_notify_exceptions.py +89 -0
  935. pyrogram/raw/functions/account/get_notify_settings.py +73 -0
  936. pyrogram/raw/functions/account/get_paid_messages_revenue.py +85 -0
  937. pyrogram/raw/functions/account/get_password.py +68 -0
  938. pyrogram/raw/functions/account/get_password_settings.py +73 -0
  939. pyrogram/raw/functions/account/get_privacy.py +73 -0
  940. pyrogram/raw/functions/account/get_reactions_notify_settings.py +68 -0
  941. pyrogram/raw/functions/account/get_recent_emoji_statuses.py +73 -0
  942. pyrogram/raw/functions/account/get_saved_music_ids.py +73 -0
  943. pyrogram/raw/functions/account/get_saved_ringtones.py +73 -0
  944. pyrogram/raw/functions/account/get_secure_value.py +73 -0
  945. pyrogram/raw/functions/account/get_theme.py +81 -0
  946. pyrogram/raw/functions/account/get_themes.py +81 -0
  947. pyrogram/raw/functions/account/get_tmp_password.py +81 -0
  948. pyrogram/raw/functions/account/get_unique_gift_chat_themes.py +89 -0
  949. pyrogram/raw/functions/account/get_wall_paper.py +73 -0
  950. pyrogram/raw/functions/account/get_wall_papers.py +73 -0
  951. pyrogram/raw/functions/account/get_web_authorizations.py +68 -0
  952. pyrogram/raw/functions/account/init_takeout_session.py +112 -0
  953. pyrogram/raw/functions/account/install_theme.py +102 -0
  954. pyrogram/raw/functions/account/install_wall_paper.py +81 -0
  955. pyrogram/raw/functions/account/invalidate_sign_in_codes.py +73 -0
  956. pyrogram/raw/functions/account/register_device.py +113 -0
  957. pyrogram/raw/functions/account/reorder_usernames.py +73 -0
  958. pyrogram/raw/functions/account/report_peer.py +89 -0
  959. pyrogram/raw/functions/account/report_profile_photo.py +97 -0
  960. pyrogram/raw/functions/account/resend_password_email.py +68 -0
  961. pyrogram/raw/functions/account/reset_authorization.py +73 -0
  962. pyrogram/raw/functions/account/reset_notify_settings.py +68 -0
  963. pyrogram/raw/functions/account/reset_password.py +68 -0
  964. pyrogram/raw/functions/account/reset_wall_papers.py +68 -0
  965. pyrogram/raw/functions/account/reset_web_authorization.py +73 -0
  966. pyrogram/raw/functions/account/reset_web_authorizations.py +68 -0
  967. pyrogram/raw/functions/account/resolve_business_chat_link.py +73 -0
  968. pyrogram/raw/functions/account/save_auto_download_settings.py +87 -0
  969. pyrogram/raw/functions/account/save_auto_save_settings.py +103 -0
  970. pyrogram/raw/functions/account/save_music.py +91 -0
  971. pyrogram/raw/functions/account/save_ringtone.py +81 -0
  972. pyrogram/raw/functions/account/save_secure_value.py +81 -0
  973. pyrogram/raw/functions/account/save_theme.py +81 -0
  974. pyrogram/raw/functions/account/save_wall_paper.py +89 -0
  975. pyrogram/raw/functions/account/send_change_phone_code.py +81 -0
  976. pyrogram/raw/functions/account/send_confirm_phone_code.py +81 -0
  977. pyrogram/raw/functions/account/send_verify_email_code.py +81 -0
  978. pyrogram/raw/functions/account/send_verify_phone_code.py +81 -0
  979. pyrogram/raw/functions/account/set_account_ttl.py +73 -0
  980. pyrogram/raw/functions/account/set_authorization_ttl.py +73 -0
  981. pyrogram/raw/functions/account/set_contact_sign_up_notification.py +73 -0
  982. pyrogram/raw/functions/account/set_content_settings.py +73 -0
  983. pyrogram/raw/functions/account/set_global_privacy_settings.py +73 -0
  984. pyrogram/raw/functions/account/set_main_profile_tab.py +73 -0
  985. pyrogram/raw/functions/account/set_privacy.py +81 -0
  986. pyrogram/raw/functions/account/set_reactions_notify_settings.py +73 -0
  987. pyrogram/raw/functions/account/toggle_connected_bot_paused.py +81 -0
  988. pyrogram/raw/functions/account/toggle_no_paid_messages_exception.py +97 -0
  989. pyrogram/raw/functions/account/toggle_sponsored_messages.py +73 -0
  990. pyrogram/raw/functions/account/toggle_username.py +81 -0
  991. pyrogram/raw/functions/account/unregister_device.py +89 -0
  992. pyrogram/raw/functions/account/update_birthday.py +77 -0
  993. pyrogram/raw/functions/account/update_business_away_message.py +77 -0
  994. pyrogram/raw/functions/account/update_business_greeting_message.py +77 -0
  995. pyrogram/raw/functions/account/update_business_intro.py +77 -0
  996. pyrogram/raw/functions/account/update_business_location.py +86 -0
  997. pyrogram/raw/functions/account/update_business_work_hours.py +78 -0
  998. pyrogram/raw/functions/account/update_color.py +91 -0
  999. pyrogram/raw/functions/account/update_connected_bot.py +99 -0
  1000. pyrogram/raw/functions/account/update_device_locked.py +73 -0
  1001. pyrogram/raw/functions/account/update_emoji_status.py +73 -0
  1002. pyrogram/raw/functions/account/update_notify_settings.py +81 -0
  1003. pyrogram/raw/functions/account/update_password_settings.py +81 -0
  1004. pyrogram/raw/functions/account/update_personal_channel.py +73 -0
  1005. pyrogram/raw/functions/account/update_profile.py +94 -0
  1006. pyrogram/raw/functions/account/update_status.py +73 -0
  1007. pyrogram/raw/functions/account/update_theme.py +121 -0
  1008. pyrogram/raw/functions/account/update_username.py +73 -0
  1009. pyrogram/raw/functions/account/upload_ringtone.py +89 -0
  1010. pyrogram/raw/functions/account/upload_theme.py +101 -0
  1011. pyrogram/raw/functions/account/upload_wall_paper.py +97 -0
  1012. pyrogram/raw/functions/account/verify_email.py +81 -0
  1013. pyrogram/raw/functions/account/verify_phone.py +89 -0
  1014. pyrogram/raw/functions/auth/__init__.py +47 -0
  1015. pyrogram/raw/functions/auth/accept_login_token.py +73 -0
  1016. pyrogram/raw/functions/auth/bind_temp_auth_key.py +97 -0
  1017. pyrogram/raw/functions/auth/cancel_code.py +81 -0
  1018. pyrogram/raw/functions/auth/check_password.py +73 -0
  1019. pyrogram/raw/functions/auth/check_recovery_password.py +73 -0
  1020. pyrogram/raw/functions/auth/drop_temp_auth_keys.py +73 -0
  1021. pyrogram/raw/functions/auth/export_authorization.py +73 -0
  1022. pyrogram/raw/functions/auth/export_login_token.py +90 -0
  1023. pyrogram/raw/functions/auth/import_authorization.py +81 -0
  1024. pyrogram/raw/functions/auth/import_bot_authorization.py +97 -0
  1025. pyrogram/raw/functions/auth/import_login_token.py +73 -0
  1026. pyrogram/raw/functions/auth/import_web_token_authorization.py +89 -0
  1027. pyrogram/raw/functions/auth/log_out.py +68 -0
  1028. pyrogram/raw/functions/auth/recover_password.py +85 -0
  1029. pyrogram/raw/functions/auth/report_missing_code.py +89 -0
  1030. pyrogram/raw/functions/auth/request_firebase_sms.py +110 -0
  1031. pyrogram/raw/functions/auth/request_password_recovery.py +68 -0
  1032. pyrogram/raw/functions/auth/resend_code.py +92 -0
  1033. pyrogram/raw/functions/auth/reset_authorizations.py +68 -0
  1034. pyrogram/raw/functions/auth/reset_login_email.py +81 -0
  1035. pyrogram/raw/functions/auth/send_code.py +97 -0
  1036. pyrogram/raw/functions/auth/sign_in.py +102 -0
  1037. pyrogram/raw/functions/auth/sign_up.py +105 -0
  1038. pyrogram/raw/functions/bots/__init__.py +54 -0
  1039. pyrogram/raw/functions/bots/add_preview_media.py +89 -0
  1040. pyrogram/raw/functions/bots/allow_send_message.py +73 -0
  1041. pyrogram/raw/functions/bots/answer_webhook_json_query.py +81 -0
  1042. pyrogram/raw/functions/bots/can_send_message.py +73 -0
  1043. pyrogram/raw/functions/bots/check_download_file_params.py +89 -0
  1044. pyrogram/raw/functions/bots/delete_preview_media.py +89 -0
  1045. pyrogram/raw/functions/bots/edit_preview_media.py +97 -0
  1046. pyrogram/raw/functions/bots/get_admined_bots.py +68 -0
  1047. pyrogram/raw/functions/bots/get_bot_commands.py +81 -0
  1048. pyrogram/raw/functions/bots/get_bot_info.py +85 -0
  1049. pyrogram/raw/functions/bots/get_bot_menu_button.py +73 -0
  1050. pyrogram/raw/functions/bots/get_bot_recommendations.py +73 -0
  1051. pyrogram/raw/functions/bots/get_popular_app_bots.py +81 -0
  1052. pyrogram/raw/functions/bots/get_preview_info.py +81 -0
  1053. pyrogram/raw/functions/bots/get_preview_medias.py +73 -0
  1054. pyrogram/raw/functions/bots/invoke_web_view_custom_method.py +89 -0
  1055. pyrogram/raw/functions/bots/reorder_preview_medias.py +89 -0
  1056. pyrogram/raw/functions/bots/reorder_usernames.py +81 -0
  1057. pyrogram/raw/functions/bots/reset_bot_commands.py +81 -0
  1058. pyrogram/raw/functions/bots/send_custom_request.py +81 -0
  1059. pyrogram/raw/functions/bots/set_bot_broadcast_default_admin_rights.py +73 -0
  1060. pyrogram/raw/functions/bots/set_bot_commands.py +89 -0
  1061. pyrogram/raw/functions/bots/set_bot_group_default_admin_rights.py +73 -0
  1062. pyrogram/raw/functions/bots/set_bot_info.py +112 -0
  1063. pyrogram/raw/functions/bots/set_bot_menu_button.py +81 -0
  1064. pyrogram/raw/functions/bots/set_custom_verification.py +100 -0
  1065. pyrogram/raw/functions/bots/toggle_user_emoji_status_permission.py +81 -0
  1066. pyrogram/raw/functions/bots/toggle_username.py +89 -0
  1067. pyrogram/raw/functions/bots/update_star_ref_program.py +92 -0
  1068. pyrogram/raw/functions/bots/update_user_emoji_status.py +81 -0
  1069. pyrogram/raw/functions/channels/__init__.py +90 -0
  1070. pyrogram/raw/functions/channels/check_search_posts_flood.py +76 -0
  1071. pyrogram/raw/functions/channels/check_username.py +81 -0
  1072. pyrogram/raw/functions/channels/convert_to_gigagroup.py +73 -0
  1073. pyrogram/raw/functions/channels/create_channel.py +135 -0
  1074. pyrogram/raw/functions/channels/create_forum_topic.py +119 -0
  1075. pyrogram/raw/functions/channels/deactivate_all_usernames.py +73 -0
  1076. pyrogram/raw/functions/channels/delete_channel.py +73 -0
  1077. pyrogram/raw/functions/channels/delete_history.py +89 -0
  1078. pyrogram/raw/functions/channels/delete_messages.py +81 -0
  1079. pyrogram/raw/functions/channels/delete_participant_history.py +81 -0
  1080. pyrogram/raw/functions/channels/delete_topic_history.py +81 -0
  1081. pyrogram/raw/functions/channels/edit_admin.py +97 -0
  1082. pyrogram/raw/functions/channels/edit_banned.py +89 -0
  1083. pyrogram/raw/functions/channels/edit_creator.py +89 -0
  1084. pyrogram/raw/functions/channels/edit_forum_topic.py +119 -0
  1085. pyrogram/raw/functions/channels/edit_location.py +89 -0
  1086. pyrogram/raw/functions/channels/edit_photo.py +81 -0
  1087. pyrogram/raw/functions/channels/edit_title.py +81 -0
  1088. pyrogram/raw/functions/channels/export_message_link.py +95 -0
  1089. pyrogram/raw/functions/channels/get_admin_log.py +127 -0
  1090. pyrogram/raw/functions/channels/get_admined_public_channels.py +85 -0
  1091. pyrogram/raw/functions/channels/get_channel_recommendations.py +77 -0
  1092. pyrogram/raw/functions/channels/get_channels.py +73 -0
  1093. pyrogram/raw/functions/channels/get_forum_topics.py +116 -0
  1094. pyrogram/raw/functions/channels/get_forum_topics_by_id.py +81 -0
  1095. pyrogram/raw/functions/channels/get_full_channel.py +73 -0
  1096. pyrogram/raw/functions/channels/get_groups_for_discussion.py +68 -0
  1097. pyrogram/raw/functions/channels/get_inactive_channels.py +68 -0
  1098. pyrogram/raw/functions/channels/get_left_channels.py +73 -0
  1099. pyrogram/raw/functions/channels/get_message_author.py +81 -0
  1100. pyrogram/raw/functions/channels/get_messages.py +81 -0
  1101. pyrogram/raw/functions/channels/get_participant.py +81 -0
  1102. pyrogram/raw/functions/channels/get_participants.py +105 -0
  1103. pyrogram/raw/functions/channels/get_send_as.py +81 -0
  1104. pyrogram/raw/functions/channels/invite_to_channel.py +81 -0
  1105. pyrogram/raw/functions/channels/join_channel.py +73 -0
  1106. pyrogram/raw/functions/channels/leave_channel.py +73 -0
  1107. pyrogram/raw/functions/channels/read_history.py +81 -0
  1108. pyrogram/raw/functions/channels/read_message_contents.py +81 -0
  1109. pyrogram/raw/functions/channels/reorder_pinned_forum_topics.py +89 -0
  1110. pyrogram/raw/functions/channels/reorder_usernames.py +81 -0
  1111. pyrogram/raw/functions/channels/report_anti_spam_false_positive.py +81 -0
  1112. pyrogram/raw/functions/channels/report_spam.py +89 -0
  1113. pyrogram/raw/functions/channels/restrict_sponsored_messages.py +81 -0
  1114. pyrogram/raw/functions/channels/search_posts.py +126 -0
  1115. pyrogram/raw/functions/channels/set_boosts_to_unblock_restrictions.py +81 -0
  1116. pyrogram/raw/functions/channels/set_discussion_group.py +81 -0
  1117. pyrogram/raw/functions/channels/set_emoji_stickers.py +81 -0
  1118. pyrogram/raw/functions/channels/set_main_profile_tab.py +81 -0
  1119. pyrogram/raw/functions/channels/set_stickers.py +81 -0
  1120. pyrogram/raw/functions/channels/toggle_anti_spam.py +81 -0
  1121. pyrogram/raw/functions/channels/toggle_autotranslation.py +81 -0
  1122. pyrogram/raw/functions/channels/toggle_forum.py +89 -0
  1123. pyrogram/raw/functions/channels/toggle_join_request.py +81 -0
  1124. pyrogram/raw/functions/channels/toggle_join_to_send.py +81 -0
  1125. pyrogram/raw/functions/channels/toggle_participants_hidden.py +81 -0
  1126. pyrogram/raw/functions/channels/toggle_pre_history_hidden.py +81 -0
  1127. pyrogram/raw/functions/channels/toggle_signatures.py +87 -0
  1128. pyrogram/raw/functions/channels/toggle_slow_mode.py +81 -0
  1129. pyrogram/raw/functions/channels/toggle_username.py +89 -0
  1130. pyrogram/raw/functions/channels/toggle_view_forum_as_messages.py +81 -0
  1131. pyrogram/raw/functions/channels/update_color.py +99 -0
  1132. pyrogram/raw/functions/channels/update_emoji_status.py +81 -0
  1133. pyrogram/raw/functions/channels/update_paid_messages_price.py +89 -0
  1134. pyrogram/raw/functions/channels/update_pinned_forum_topic.py +89 -0
  1135. pyrogram/raw/functions/channels/update_username.py +81 -0
  1136. pyrogram/raw/functions/chatlists/__init__.py +35 -0
  1137. pyrogram/raw/functions/chatlists/check_chatlist_invite.py +73 -0
  1138. pyrogram/raw/functions/chatlists/delete_exported_invite.py +81 -0
  1139. pyrogram/raw/functions/chatlists/edit_exported_invite.py +108 -0
  1140. pyrogram/raw/functions/chatlists/export_chatlist_invite.py +89 -0
  1141. pyrogram/raw/functions/chatlists/get_chatlist_updates.py +73 -0
  1142. pyrogram/raw/functions/chatlists/get_exported_invites.py +73 -0
  1143. pyrogram/raw/functions/chatlists/get_leave_chatlist_suggestions.py +73 -0
  1144. pyrogram/raw/functions/chatlists/hide_chatlist_updates.py +73 -0
  1145. pyrogram/raw/functions/chatlists/join_chatlist_invite.py +81 -0
  1146. pyrogram/raw/functions/chatlists/join_chatlist_updates.py +81 -0
  1147. pyrogram/raw/functions/chatlists/leave_chatlist.py +81 -0
  1148. pyrogram/raw/functions/contacts/__init__.py +52 -0
  1149. pyrogram/raw/functions/contacts/accept_contact.py +73 -0
  1150. pyrogram/raw/functions/contacts/add_contact.py +115 -0
  1151. pyrogram/raw/functions/contacts/block.py +81 -0
  1152. pyrogram/raw/functions/contacts/block_from_replies.py +93 -0
  1153. pyrogram/raw/functions/contacts/delete_by_phones.py +73 -0
  1154. pyrogram/raw/functions/contacts/delete_contacts.py +73 -0
  1155. pyrogram/raw/functions/contacts/edit_close_friends.py +73 -0
  1156. pyrogram/raw/functions/contacts/export_contact_token.py +68 -0
  1157. pyrogram/raw/functions/contacts/get_birthdays.py +68 -0
  1158. pyrogram/raw/functions/contacts/get_blocked.py +89 -0
  1159. pyrogram/raw/functions/contacts/get_contact_i_ds.py +74 -0
  1160. pyrogram/raw/functions/contacts/get_contacts.py +73 -0
  1161. pyrogram/raw/functions/contacts/get_located.py +90 -0
  1162. pyrogram/raw/functions/contacts/get_saved.py +68 -0
  1163. pyrogram/raw/functions/contacts/get_sponsored_peers.py +73 -0
  1164. pyrogram/raw/functions/contacts/get_statuses.py +68 -0
  1165. pyrogram/raw/functions/contacts/get_top_peers.py +145 -0
  1166. pyrogram/raw/functions/contacts/import_card.py +73 -0
  1167. pyrogram/raw/functions/contacts/import_contact_token.py +73 -0
  1168. pyrogram/raw/functions/contacts/import_contacts.py +73 -0
  1169. pyrogram/raw/functions/contacts/reset_saved.py +68 -0
  1170. pyrogram/raw/functions/contacts/reset_top_peer_rating.py +81 -0
  1171. pyrogram/raw/functions/contacts/resolve_phone.py +73 -0
  1172. pyrogram/raw/functions/contacts/resolve_username.py +84 -0
  1173. pyrogram/raw/functions/contacts/search.py +81 -0
  1174. pyrogram/raw/functions/contacts/set_blocked.py +89 -0
  1175. pyrogram/raw/functions/contacts/toggle_top_peers.py +73 -0
  1176. pyrogram/raw/functions/contacts/unblock.py +81 -0
  1177. pyrogram/raw/functions/contest/__init__.py +25 -0
  1178. pyrogram/raw/functions/contest/save_developer_info.py +104 -0
  1179. pyrogram/raw/functions/destroy_auth_key.py +67 -0
  1180. pyrogram/raw/functions/destroy_session.py +72 -0
  1181. pyrogram/raw/functions/folders/__init__.py +26 -0
  1182. pyrogram/raw/functions/folders/delete_folder.py +73 -0
  1183. pyrogram/raw/functions/folders/edit_peer_folders.py +73 -0
  1184. pyrogram/raw/functions/fragment/__init__.py +25 -0
  1185. pyrogram/raw/functions/fragment/get_collectible_info.py +73 -0
  1186. pyrogram/raw/functions/get_future_salts.py +72 -0
  1187. pyrogram/raw/functions/help/__init__.py +49 -0
  1188. pyrogram/raw/functions/help/accept_terms_of_service.py +73 -0
  1189. pyrogram/raw/functions/help/dismiss_suggestion.py +81 -0
  1190. pyrogram/raw/functions/help/edit_user_info.py +89 -0
  1191. pyrogram/raw/functions/help/get_app_config.py +73 -0
  1192. pyrogram/raw/functions/help/get_app_update.py +73 -0
  1193. pyrogram/raw/functions/help/get_cdn_config.py +68 -0
  1194. pyrogram/raw/functions/help/get_config.py +68 -0
  1195. pyrogram/raw/functions/help/get_countries_list.py +81 -0
  1196. pyrogram/raw/functions/help/get_deep_link_info.py +73 -0
  1197. pyrogram/raw/functions/help/get_invite_text.py +68 -0
  1198. pyrogram/raw/functions/help/get_nearest_dc.py +68 -0
  1199. pyrogram/raw/functions/help/get_passport_config.py +73 -0
  1200. pyrogram/raw/functions/help/get_peer_colors.py +73 -0
  1201. pyrogram/raw/functions/help/get_peer_profile_colors.py +73 -0
  1202. pyrogram/raw/functions/help/get_premium_promo.py +68 -0
  1203. pyrogram/raw/functions/help/get_promo_data.py +68 -0
  1204. pyrogram/raw/functions/help/get_recent_me_urls.py +73 -0
  1205. pyrogram/raw/functions/help/get_support.py +68 -0
  1206. pyrogram/raw/functions/help/get_support_name.py +68 -0
  1207. pyrogram/raw/functions/help/get_terms_of_service_update.py +68 -0
  1208. pyrogram/raw/functions/help/get_timezones_list.py +73 -0
  1209. pyrogram/raw/functions/help/get_user_info.py +73 -0
  1210. pyrogram/raw/functions/help/hide_promo_data.py +73 -0
  1211. pyrogram/raw/functions/help/save_app_log.py +73 -0
  1212. pyrogram/raw/functions/help/set_bot_updates_status.py +81 -0
  1213. pyrogram/raw/functions/init_connection.py +151 -0
  1214. pyrogram/raw/functions/invoke_after_msg.py +81 -0
  1215. pyrogram/raw/functions/invoke_after_msgs.py +81 -0
  1216. pyrogram/raw/functions/invoke_with_apns_secret.py +89 -0
  1217. pyrogram/raw/functions/invoke_with_business_connection.py +81 -0
  1218. pyrogram/raw/functions/invoke_with_google_play_integrity.py +89 -0
  1219. pyrogram/raw/functions/invoke_with_layer.py +81 -0
  1220. pyrogram/raw/functions/invoke_with_messages_range.py +81 -0
  1221. pyrogram/raw/functions/invoke_with_re_captcha.py +81 -0
  1222. pyrogram/raw/functions/invoke_with_takeout.py +81 -0
  1223. pyrogram/raw/functions/invoke_without_updates.py +73 -0
  1224. pyrogram/raw/functions/langpack/__init__.py +29 -0
  1225. pyrogram/raw/functions/langpack/get_difference.py +89 -0
  1226. pyrogram/raw/functions/langpack/get_lang_pack.py +81 -0
  1227. pyrogram/raw/functions/langpack/get_language.py +81 -0
  1228. pyrogram/raw/functions/langpack/get_languages.py +73 -0
  1229. pyrogram/raw/functions/langpack/get_strings.py +89 -0
  1230. pyrogram/raw/functions/messages/__init__.py +273 -0
  1231. pyrogram/raw/functions/messages/accept_encryption.py +89 -0
  1232. pyrogram/raw/functions/messages/accept_url_auth.py +110 -0
  1233. pyrogram/raw/functions/messages/add_chat_user.py +89 -0
  1234. pyrogram/raw/functions/messages/append_todo_list.py +89 -0
  1235. pyrogram/raw/functions/messages/check_chat_invite.py +73 -0
  1236. pyrogram/raw/functions/messages/check_history_import.py +73 -0
  1237. pyrogram/raw/functions/messages/check_history_import_peer.py +73 -0
  1238. pyrogram/raw/functions/messages/check_paid_auth.py +89 -0
  1239. pyrogram/raw/functions/messages/check_quick_reply_shortcut.py +73 -0
  1240. pyrogram/raw/functions/messages/clear_all_drafts.py +68 -0
  1241. pyrogram/raw/functions/messages/clear_recent_reactions.py +68 -0
  1242. pyrogram/raw/functions/messages/clear_recent_stickers.py +73 -0
  1243. pyrogram/raw/functions/messages/click_sponsored_message.py +87 -0
  1244. pyrogram/raw/functions/messages/create_chat.py +92 -0
  1245. pyrogram/raw/functions/messages/create_forum_topic.py +125 -0
  1246. pyrogram/raw/functions/messages/delete_chat.py +73 -0
  1247. pyrogram/raw/functions/messages/delete_chat_user.py +89 -0
  1248. pyrogram/raw/functions/messages/delete_exported_chat_invite.py +81 -0
  1249. pyrogram/raw/functions/messages/delete_fact_check.py +81 -0
  1250. pyrogram/raw/functions/messages/delete_history.py +113 -0
  1251. pyrogram/raw/functions/messages/delete_messages.py +81 -0
  1252. pyrogram/raw/functions/messages/delete_phone_call_history.py +73 -0
  1253. pyrogram/raw/functions/messages/delete_quick_reply_messages.py +81 -0
  1254. pyrogram/raw/functions/messages/delete_quick_reply_shortcut.py +74 -0
  1255. pyrogram/raw/functions/messages/delete_revoked_exported_chat_invites.py +81 -0
  1256. pyrogram/raw/functions/messages/delete_saved_history.py +111 -0
  1257. pyrogram/raw/functions/messages/delete_scheduled_messages.py +81 -0
  1258. pyrogram/raw/functions/messages/delete_topic_history.py +81 -0
  1259. pyrogram/raw/functions/messages/discard_encryption.py +81 -0
  1260. pyrogram/raw/functions/messages/edit_chat_about.py +81 -0
  1261. pyrogram/raw/functions/messages/edit_chat_admin.py +89 -0
  1262. pyrogram/raw/functions/messages/edit_chat_default_banned_rights.py +81 -0
  1263. pyrogram/raw/functions/messages/edit_chat_photo.py +81 -0
  1264. pyrogram/raw/functions/messages/edit_chat_title.py +81 -0
  1265. pyrogram/raw/functions/messages/edit_exported_chat_invite.py +125 -0
  1266. pyrogram/raw/functions/messages/edit_fact_check.py +89 -0
  1267. pyrogram/raw/functions/messages/edit_forum_topic.py +119 -0
  1268. pyrogram/raw/functions/messages/edit_inline_bot_message.py +126 -0
  1269. pyrogram/raw/functions/messages/edit_message.py +152 -0
  1270. pyrogram/raw/functions/messages/edit_quick_reply_shortcut.py +82 -0
  1271. pyrogram/raw/functions/messages/export_chat_invite.py +124 -0
  1272. pyrogram/raw/functions/messages/fave_sticker.py +81 -0
  1273. pyrogram/raw/functions/messages/forward_message.py +89 -0
  1274. pyrogram/raw/functions/messages/forward_messages.py +217 -0
  1275. pyrogram/raw/functions/messages/get_admins_with_invites.py +73 -0
  1276. pyrogram/raw/functions/messages/get_all_chats.py +73 -0
  1277. pyrogram/raw/functions/messages/get_all_drafts.py +69 -0
  1278. pyrogram/raw/functions/messages/get_all_stickers.py +73 -0
  1279. pyrogram/raw/functions/messages/get_archived_stickers.py +95 -0
  1280. pyrogram/raw/functions/messages/get_attach_menu_bot.py +73 -0
  1281. pyrogram/raw/functions/messages/get_attach_menu_bots.py +73 -0
  1282. pyrogram/raw/functions/messages/get_attached_stickers.py +73 -0
  1283. pyrogram/raw/functions/messages/get_available_effects.py +73 -0
  1284. pyrogram/raw/functions/messages/get_available_reactions.py +73 -0
  1285. pyrogram/raw/functions/messages/get_bot_app.py +81 -0
  1286. pyrogram/raw/functions/messages/get_bot_callback_answer.py +108 -0
  1287. pyrogram/raw/functions/messages/get_chat_invite_importers.py +129 -0
  1288. pyrogram/raw/functions/messages/get_chats.py +73 -0
  1289. pyrogram/raw/functions/messages/get_common_chats.py +89 -0
  1290. pyrogram/raw/functions/messages/get_custom_emoji_documents.py +73 -0
  1291. pyrogram/raw/functions/messages/get_default_history_ttl.py +68 -0
  1292. pyrogram/raw/functions/messages/get_default_tag_reactions.py +73 -0
  1293. pyrogram/raw/functions/messages/get_dh_config.py +81 -0
  1294. pyrogram/raw/functions/messages/get_dialog_filters.py +68 -0
  1295. pyrogram/raw/functions/messages/get_dialog_unread_marks.py +77 -0
  1296. pyrogram/raw/functions/messages/get_dialogs.py +122 -0
  1297. pyrogram/raw/functions/messages/get_discussion_message.py +81 -0
  1298. pyrogram/raw/functions/messages/get_document_by_hash.py +89 -0
  1299. pyrogram/raw/functions/messages/get_emoji_groups.py +73 -0
  1300. pyrogram/raw/functions/messages/get_emoji_keywords.py +73 -0
  1301. pyrogram/raw/functions/messages/get_emoji_keywords_difference.py +81 -0
  1302. pyrogram/raw/functions/messages/get_emoji_keywords_languages.py +73 -0
  1303. pyrogram/raw/functions/messages/get_emoji_profile_photo_groups.py +73 -0
  1304. pyrogram/raw/functions/messages/get_emoji_status_groups.py +73 -0
  1305. pyrogram/raw/functions/messages/get_emoji_sticker_groups.py +73 -0
  1306. pyrogram/raw/functions/messages/get_emoji_stickers.py +73 -0
  1307. pyrogram/raw/functions/messages/get_emoji_url.py +73 -0
  1308. pyrogram/raw/functions/messages/get_exported_chat_invite.py +81 -0
  1309. pyrogram/raw/functions/messages/get_exported_chat_invites.py +115 -0
  1310. pyrogram/raw/functions/messages/get_extended_media.py +81 -0
  1311. pyrogram/raw/functions/messages/get_fact_check.py +81 -0
  1312. pyrogram/raw/functions/messages/get_faved_stickers.py +73 -0
  1313. pyrogram/raw/functions/messages/get_featured_emoji_stickers.py +73 -0
  1314. pyrogram/raw/functions/messages/get_featured_stickers.py +73 -0
  1315. pyrogram/raw/functions/messages/get_forum_topics.py +116 -0
  1316. pyrogram/raw/functions/messages/get_forum_topics_by_id.py +81 -0
  1317. pyrogram/raw/functions/messages/get_full_chat.py +73 -0
  1318. pyrogram/raw/functions/messages/get_game_high_scores.py +89 -0
  1319. pyrogram/raw/functions/messages/get_history.py +129 -0
  1320. pyrogram/raw/functions/messages/get_inline_bot_results.py +109 -0
  1321. pyrogram/raw/functions/messages/get_inline_game_high_scores.py +81 -0
  1322. pyrogram/raw/functions/messages/get_mask_stickers.py +73 -0
  1323. pyrogram/raw/functions/messages/get_message_edit_data.py +81 -0
  1324. pyrogram/raw/functions/messages/get_message_reactions_list.py +110 -0
  1325. pyrogram/raw/functions/messages/get_message_read_participants.py +81 -0
  1326. pyrogram/raw/functions/messages/get_messages.py +73 -0
  1327. pyrogram/raw/functions/messages/get_messages_reactions.py +81 -0
  1328. pyrogram/raw/functions/messages/get_messages_views.py +89 -0
  1329. pyrogram/raw/functions/messages/get_my_stickers.py +81 -0
  1330. pyrogram/raw/functions/messages/get_old_featured_stickers.py +89 -0
  1331. pyrogram/raw/functions/messages/get_onlines.py +73 -0
  1332. pyrogram/raw/functions/messages/get_outbox_read_date.py +81 -0
  1333. pyrogram/raw/functions/messages/get_paid_reaction_privacy.py +68 -0
  1334. pyrogram/raw/functions/messages/get_peer_dialogs.py +73 -0
  1335. pyrogram/raw/functions/messages/get_peer_settings.py +73 -0
  1336. pyrogram/raw/functions/messages/get_pinned_dialogs.py +73 -0
  1337. pyrogram/raw/functions/messages/get_pinned_saved_dialogs.py +68 -0
  1338. pyrogram/raw/functions/messages/get_poll_results.py +81 -0
  1339. pyrogram/raw/functions/messages/get_poll_votes.py +109 -0
  1340. pyrogram/raw/functions/messages/get_prepared_inline_message.py +81 -0
  1341. pyrogram/raw/functions/messages/get_quick_replies.py +73 -0
  1342. pyrogram/raw/functions/messages/get_quick_reply_messages.py +93 -0
  1343. pyrogram/raw/functions/messages/get_recent_locations.py +89 -0
  1344. pyrogram/raw/functions/messages/get_recent_reactions.py +81 -0
  1345. pyrogram/raw/functions/messages/get_recent_stickers.py +81 -0
  1346. pyrogram/raw/functions/messages/get_replies.py +137 -0
  1347. pyrogram/raw/functions/messages/get_saved_dialogs.py +123 -0
  1348. pyrogram/raw/functions/messages/get_saved_dialogs_by_id.py +85 -0
  1349. pyrogram/raw/functions/messages/get_saved_gifs.py +73 -0
  1350. pyrogram/raw/functions/messages/get_saved_history.py +141 -0
  1351. pyrogram/raw/functions/messages/get_saved_reaction_tags.py +85 -0
  1352. pyrogram/raw/functions/messages/get_scheduled_history.py +81 -0
  1353. pyrogram/raw/functions/messages/get_scheduled_messages.py +81 -0
  1354. pyrogram/raw/functions/messages/get_search_counters.py +102 -0
  1355. pyrogram/raw/functions/messages/get_search_results_calendar.py +109 -0
  1356. pyrogram/raw/functions/messages/get_search_results_positions.py +109 -0
  1357. pyrogram/raw/functions/messages/get_split_ranges.py +68 -0
  1358. pyrogram/raw/functions/messages/get_sponsored_messages.py +84 -0
  1359. pyrogram/raw/functions/messages/get_stats_url.py +89 -0
  1360. pyrogram/raw/functions/messages/get_sticker_set.py +81 -0
  1361. pyrogram/raw/functions/messages/get_stickers.py +81 -0
  1362. pyrogram/raw/functions/messages/get_suggested_dialog_filters.py +68 -0
  1363. pyrogram/raw/functions/messages/get_top_reactions.py +81 -0
  1364. pyrogram/raw/functions/messages/get_unique_gift_chat_themes.py +89 -0
  1365. pyrogram/raw/functions/messages/get_unread_mentions.py +124 -0
  1366. pyrogram/raw/functions/messages/get_unread_reactions.py +134 -0
  1367. pyrogram/raw/functions/messages/get_web_page.py +81 -0
  1368. pyrogram/raw/functions/messages/get_web_page_preview.py +85 -0
  1369. pyrogram/raw/functions/messages/get_web_view_result.py +89 -0
  1370. pyrogram/raw/functions/messages/hide_all_chat_join_requests.py +90 -0
  1371. pyrogram/raw/functions/messages/hide_chat_join_request.py +89 -0
  1372. pyrogram/raw/functions/messages/hide_peer_settings_bar.py +73 -0
  1373. pyrogram/raw/functions/messages/import_chat_invite.py +73 -0
  1374. pyrogram/raw/functions/messages/init_history_import.py +89 -0
  1375. pyrogram/raw/functions/messages/install_sticker_set.py +81 -0
  1376. pyrogram/raw/functions/messages/mark_dialog_unread.py +91 -0
  1377. pyrogram/raw/functions/messages/migrate_chat.py +73 -0
  1378. pyrogram/raw/functions/messages/prolong_web_view.py +117 -0
  1379. pyrogram/raw/functions/messages/rate_transcribed_audio.py +97 -0
  1380. pyrogram/raw/functions/messages/read_discussion.py +89 -0
  1381. pyrogram/raw/functions/messages/read_encrypted_history.py +81 -0
  1382. pyrogram/raw/functions/messages/read_featured_stickers.py +73 -0
  1383. pyrogram/raw/functions/messages/read_history.py +81 -0
  1384. pyrogram/raw/functions/messages/read_mentions.py +84 -0
  1385. pyrogram/raw/functions/messages/read_message_contents.py +73 -0
  1386. pyrogram/raw/functions/messages/read_reactions.py +94 -0
  1387. pyrogram/raw/functions/messages/read_saved_history.py +89 -0
  1388. pyrogram/raw/functions/messages/received_messages.py +73 -0
  1389. pyrogram/raw/functions/messages/received_queue.py +74 -0
  1390. pyrogram/raw/functions/messages/reorder_pinned_dialogs.py +89 -0
  1391. pyrogram/raw/functions/messages/reorder_pinned_forum_topics.py +92 -0
  1392. pyrogram/raw/functions/messages/reorder_pinned_saved_dialogs.py +81 -0
  1393. pyrogram/raw/functions/messages/reorder_quick_replies.py +73 -0
  1394. pyrogram/raw/functions/messages/reorder_sticker_sets.py +87 -0
  1395. pyrogram/raw/functions/messages/report.py +97 -0
  1396. pyrogram/raw/functions/messages/report_encrypted_spam.py +73 -0
  1397. pyrogram/raw/functions/messages/report_messages_delivery.py +89 -0
  1398. pyrogram/raw/functions/messages/report_reaction.py +89 -0
  1399. pyrogram/raw/functions/messages/report_spam.py +73 -0
  1400. pyrogram/raw/functions/messages/report_sponsored_message.py +81 -0
  1401. pyrogram/raw/functions/messages/request_app_web_view.py +128 -0
  1402. pyrogram/raw/functions/messages/request_encryption.py +89 -0
  1403. pyrogram/raw/functions/messages/request_main_web_view.py +122 -0
  1404. pyrogram/raw/functions/messages/request_simple_web_view.py +135 -0
  1405. pyrogram/raw/functions/messages/request_url_auth.py +104 -0
  1406. pyrogram/raw/functions/messages/request_web_view.py +163 -0
  1407. pyrogram/raw/functions/messages/save_default_send_as.py +81 -0
  1408. pyrogram/raw/functions/messages/save_draft.py +144 -0
  1409. pyrogram/raw/functions/messages/save_gif.py +81 -0
  1410. pyrogram/raw/functions/messages/save_prepared_inline_message.py +93 -0
  1411. pyrogram/raw/functions/messages/save_recent_sticker.py +89 -0
  1412. pyrogram/raw/functions/messages/search.py +194 -0
  1413. pyrogram/raw/functions/messages/search_custom_emoji.py +81 -0
  1414. pyrogram/raw/functions/messages/search_emoji_sticker_sets.py +89 -0
  1415. pyrogram/raw/functions/messages/search_global.py +158 -0
  1416. pyrogram/raw/functions/messages/search_sent_media.py +90 -0
  1417. pyrogram/raw/functions/messages/search_sticker_sets.py +89 -0
  1418. pyrogram/raw/functions/messages/search_stickers.py +121 -0
  1419. pyrogram/raw/functions/messages/send_bot_requested_peer.py +97 -0
  1420. pyrogram/raw/functions/messages/send_encrypted.py +97 -0
  1421. pyrogram/raw/functions/messages/send_encrypted_file.py +105 -0
  1422. pyrogram/raw/functions/messages/send_encrypted_service.py +89 -0
  1423. pyrogram/raw/functions/messages/send_group_call_encrypted_message.py +81 -0
  1424. pyrogram/raw/functions/messages/send_group_call_message.py +89 -0
  1425. pyrogram/raw/functions/messages/send_inline_bot_result.py +171 -0
  1426. pyrogram/raw/functions/messages/send_media.py +228 -0
  1427. pyrogram/raw/functions/messages/send_message.py +226 -0
  1428. pyrogram/raw/functions/messages/send_multi_media.py +182 -0
  1429. pyrogram/raw/functions/messages/send_paid_reaction.py +109 -0
  1430. pyrogram/raw/functions/messages/send_quick_reply_messages.py +97 -0
  1431. pyrogram/raw/functions/messages/send_reaction.py +105 -0
  1432. pyrogram/raw/functions/messages/send_scheduled_messages.py +81 -0
  1433. pyrogram/raw/functions/messages/send_screenshot_notification.py +89 -0
  1434. pyrogram/raw/functions/messages/send_vote.py +89 -0
  1435. pyrogram/raw/functions/messages/send_web_view_data.py +97 -0
  1436. pyrogram/raw/functions/messages/send_web_view_result_message.py +81 -0
  1437. pyrogram/raw/functions/messages/set_bot_callback_answer.py +107 -0
  1438. pyrogram/raw/functions/messages/set_bot_precheckout_results.py +92 -0
  1439. pyrogram/raw/functions/messages/set_bot_shipping_results.py +94 -0
  1440. pyrogram/raw/functions/messages/set_chat_available_reactions.py +101 -0
  1441. pyrogram/raw/functions/messages/set_chat_theme.py +81 -0
  1442. pyrogram/raw/functions/messages/set_chat_wall_paper.py +116 -0
  1443. pyrogram/raw/functions/messages/set_default_history_ttl.py +73 -0
  1444. pyrogram/raw/functions/messages/set_default_reaction.py +73 -0
  1445. pyrogram/raw/functions/messages/set_encrypted_typing.py +81 -0
  1446. pyrogram/raw/functions/messages/set_game_score.py +111 -0
  1447. pyrogram/raw/functions/messages/set_history_ttl.py +81 -0
  1448. pyrogram/raw/functions/messages/set_inline_bot_results.py +132 -0
  1449. pyrogram/raw/functions/messages/set_inline_game_score.py +103 -0
  1450. pyrogram/raw/functions/messages/set_typing.py +92 -0
  1451. pyrogram/raw/functions/messages/set_web_view_result.py +73 -0
  1452. pyrogram/raw/functions/messages/start_bot.py +97 -0
  1453. pyrogram/raw/functions/messages/start_history_import.py +82 -0
  1454. pyrogram/raw/functions/messages/toggle_bot_in_attach_menu.py +89 -0
  1455. pyrogram/raw/functions/messages/toggle_dialog_filter_tags.py +73 -0
  1456. pyrogram/raw/functions/messages/toggle_dialog_pin.py +81 -0
  1457. pyrogram/raw/functions/messages/toggle_group_call_settings.py +99 -0
  1458. pyrogram/raw/functions/messages/toggle_no_forwards.py +81 -0
  1459. pyrogram/raw/functions/messages/toggle_paid_reaction_privacy.py +89 -0
  1460. pyrogram/raw/functions/messages/toggle_peer_translations.py +81 -0
  1461. pyrogram/raw/functions/messages/toggle_saved_dialog_pin.py +81 -0
  1462. pyrogram/raw/functions/messages/toggle_sticker_sets.py +93 -0
  1463. pyrogram/raw/functions/messages/toggle_suggested_post_approval.py +107 -0
  1464. pyrogram/raw/functions/messages/toggle_todo_completed.py +97 -0
  1465. pyrogram/raw/functions/messages/transcribe_audio.py +81 -0
  1466. pyrogram/raw/functions/messages/translate_text.py +105 -0
  1467. pyrogram/raw/functions/messages/uninstall_sticker_set.py +73 -0
  1468. pyrogram/raw/functions/messages/unpin_all_messages.py +94 -0
  1469. pyrogram/raw/functions/messages/update_color.py +83 -0
  1470. pyrogram/raw/functions/messages/update_contact_note.py +81 -0
  1471. pyrogram/raw/functions/messages/update_dialog_filter.py +85 -0
  1472. pyrogram/raw/functions/messages/update_dialog_filters_order.py +73 -0
  1473. pyrogram/raw/functions/messages/update_pinned_forum_topic.py +89 -0
  1474. pyrogram/raw/functions/messages/update_pinned_message.py +101 -0
  1475. pyrogram/raw/functions/messages/update_saved_reaction_tag.py +84 -0
  1476. pyrogram/raw/functions/messages/upload_encrypted_file.py +81 -0
  1477. pyrogram/raw/functions/messages/upload_imported_media.py +97 -0
  1478. pyrogram/raw/functions/messages/upload_media.py +92 -0
  1479. pyrogram/raw/functions/messages/view_sponsored_message.py +73 -0
  1480. pyrogram/raw/functions/payments/__init__.py +82 -0
  1481. pyrogram/raw/functions/payments/apply_gift_code.py +73 -0
  1482. pyrogram/raw/functions/payments/assign_app_store_transaction.py +81 -0
  1483. pyrogram/raw/functions/payments/assign_play_market_transaction.py +81 -0
  1484. pyrogram/raw/functions/payments/bot_cancel_stars_subscription.py +89 -0
  1485. pyrogram/raw/functions/payments/can_purchase_store.py +73 -0
  1486. pyrogram/raw/functions/payments/change_stars_subscription.py +92 -0
  1487. pyrogram/raw/functions/payments/check_can_send_gift.py +73 -0
  1488. pyrogram/raw/functions/payments/check_gift_code.py +73 -0
  1489. pyrogram/raw/functions/payments/clear_saved_info.py +79 -0
  1490. pyrogram/raw/functions/payments/connect_star_ref_bot.py +81 -0
  1491. pyrogram/raw/functions/payments/convert_star_gift.py +73 -0
  1492. pyrogram/raw/functions/payments/create_star_gift_collection.py +89 -0
  1493. pyrogram/raw/functions/payments/delete_star_gift_collection.py +81 -0
  1494. pyrogram/raw/functions/payments/edit_connected_star_ref_bot.py +89 -0
  1495. pyrogram/raw/functions/payments/export_invoice.py +73 -0
  1496. pyrogram/raw/functions/payments/fulfill_stars_subscription.py +81 -0
  1497. pyrogram/raw/functions/payments/get_bank_card_data.py +73 -0
  1498. pyrogram/raw/functions/payments/get_connected_star_ref_bot.py +81 -0
  1499. pyrogram/raw/functions/payments/get_connected_star_ref_bots.py +101 -0
  1500. pyrogram/raw/functions/payments/get_giveaway_info.py +81 -0
  1501. pyrogram/raw/functions/payments/get_payment_form.py +85 -0
  1502. pyrogram/raw/functions/payments/get_payment_receipt.py +81 -0
  1503. pyrogram/raw/functions/payments/get_premium_gift_code_options.py +77 -0
  1504. pyrogram/raw/functions/payments/get_resale_star_gifts.py +122 -0
  1505. pyrogram/raw/functions/payments/get_saved_info.py +68 -0
  1506. pyrogram/raw/functions/payments/get_saved_star_gift.py +73 -0
  1507. pyrogram/raw/functions/payments/get_saved_star_gifts.py +154 -0
  1508. pyrogram/raw/functions/payments/get_star_gift_collections.py +81 -0
  1509. pyrogram/raw/functions/payments/get_star_gift_upgrade_preview.py +73 -0
  1510. pyrogram/raw/functions/payments/get_star_gift_withdrawal_url.py +81 -0
  1511. pyrogram/raw/functions/payments/get_star_gifts.py +73 -0
  1512. pyrogram/raw/functions/payments/get_stars_gift_options.py +77 -0
  1513. pyrogram/raw/functions/payments/get_stars_giveaway_options.py +68 -0
  1514. pyrogram/raw/functions/payments/get_stars_revenue_ads_account_url.py +73 -0
  1515. pyrogram/raw/functions/payments/get_stars_revenue_stats.py +87 -0
  1516. pyrogram/raw/functions/payments/get_stars_revenue_withdrawal_url.py +98 -0
  1517. pyrogram/raw/functions/payments/get_stars_status.py +81 -0
  1518. pyrogram/raw/functions/payments/get_stars_subscriptions.py +89 -0
  1519. pyrogram/raw/functions/payments/get_stars_topup_options.py +68 -0
  1520. pyrogram/raw/functions/payments/get_stars_transactions.py +124 -0
  1521. pyrogram/raw/functions/payments/get_stars_transactions_by_id.py +89 -0
  1522. pyrogram/raw/functions/payments/get_suggested_star_ref_bots.py +103 -0
  1523. pyrogram/raw/functions/payments/get_unique_star_gift.py +73 -0
  1524. pyrogram/raw/functions/payments/get_unique_star_gift_value_info.py +73 -0
  1525. pyrogram/raw/functions/payments/launch_prepaid_giveaway.py +89 -0
  1526. pyrogram/raw/functions/payments/refund_stars_charge.py +81 -0
  1527. pyrogram/raw/functions/payments/reorder_star_gift_collections.py +81 -0
  1528. pyrogram/raw/functions/payments/request_recurring_payment.py +89 -0
  1529. pyrogram/raw/functions/payments/save_star_gift.py +81 -0
  1530. pyrogram/raw/functions/payments/send_payment_form.py +118 -0
  1531. pyrogram/raw/functions/payments/send_stars_form.py +81 -0
  1532. pyrogram/raw/functions/payments/toggle_chat_star_gift_notifications.py +81 -0
  1533. pyrogram/raw/functions/payments/toggle_star_gifts_pinned_to_top.py +81 -0
  1534. pyrogram/raw/functions/payments/transfer_star_gift.py +81 -0
  1535. pyrogram/raw/functions/payments/update_star_gift_collection.py +122 -0
  1536. pyrogram/raw/functions/payments/update_star_gift_price.py +81 -0
  1537. pyrogram/raw/functions/payments/upgrade_star_gift.py +81 -0
  1538. pyrogram/raw/functions/payments/validate_requested_info.py +89 -0
  1539. pyrogram/raw/functions/phone/__init__.py +61 -0
  1540. pyrogram/raw/functions/phone/accept_call.py +89 -0
  1541. pyrogram/raw/functions/phone/check_group_call.py +82 -0
  1542. pyrogram/raw/functions/phone/confirm_call.py +97 -0
  1543. pyrogram/raw/functions/phone/create_conference_call.py +121 -0
  1544. pyrogram/raw/functions/phone/create_group_call.py +107 -0
  1545. pyrogram/raw/functions/phone/decline_conference_call_invite.py +73 -0
  1546. pyrogram/raw/functions/phone/delete_conference_call_participants.py +103 -0
  1547. pyrogram/raw/functions/phone/discard_call.py +105 -0
  1548. pyrogram/raw/functions/phone/discard_group_call.py +73 -0
  1549. pyrogram/raw/functions/phone/edit_group_call_participant.py +137 -0
  1550. pyrogram/raw/functions/phone/edit_group_call_title.py +81 -0
  1551. pyrogram/raw/functions/phone/export_group_call_invite.py +81 -0
  1552. pyrogram/raw/functions/phone/get_call_config.py +68 -0
  1553. pyrogram/raw/functions/phone/get_group_call.py +81 -0
  1554. pyrogram/raw/functions/phone/get_group_call_chain_blocks.py +97 -0
  1555. pyrogram/raw/functions/phone/get_group_call_join_as.py +73 -0
  1556. pyrogram/raw/functions/phone/get_group_call_stream_channels.py +75 -0
  1557. pyrogram/raw/functions/phone/get_group_call_stream_rtmp_url.py +81 -0
  1558. pyrogram/raw/functions/phone/get_group_participants.py +105 -0
  1559. pyrogram/raw/functions/phone/invite_conference_call_participant.py +89 -0
  1560. pyrogram/raw/functions/phone/invite_to_group_call.py +81 -0
  1561. pyrogram/raw/functions/phone/join_group_call.py +130 -0
  1562. pyrogram/raw/functions/phone/join_group_call_presentation.py +81 -0
  1563. pyrogram/raw/functions/phone/leave_group_call.py +81 -0
  1564. pyrogram/raw/functions/phone/leave_group_call_presentation.py +73 -0
  1565. pyrogram/raw/functions/phone/received_call.py +73 -0
  1566. pyrogram/raw/functions/phone/request_call.py +105 -0
  1567. pyrogram/raw/functions/phone/save_call_debug.py +81 -0
  1568. pyrogram/raw/functions/phone/save_call_log.py +81 -0
  1569. pyrogram/raw/functions/phone/save_default_group_call_join_as.py +81 -0
  1570. pyrogram/raw/functions/phone/send_conference_call_broadcast.py +81 -0
  1571. pyrogram/raw/functions/phone/send_signaling_data.py +81 -0
  1572. pyrogram/raw/functions/phone/set_call_rating.py +97 -0
  1573. pyrogram/raw/functions/phone/start_scheduled_group_call.py +73 -0
  1574. pyrogram/raw/functions/phone/toggle_group_call_record.py +105 -0
  1575. pyrogram/raw/functions/phone/toggle_group_call_settings.py +90 -0
  1576. pyrogram/raw/functions/phone/toggle_group_call_start_subscription.py +81 -0
  1577. pyrogram/raw/functions/photos/__init__.py +29 -0
  1578. pyrogram/raw/functions/photos/delete_photos.py +73 -0
  1579. pyrogram/raw/functions/photos/get_user_photos.py +97 -0
  1580. pyrogram/raw/functions/photos/update_profile_photo.py +91 -0
  1581. pyrogram/raw/functions/photos/upload_contact_profile_photo.py +126 -0
  1582. pyrogram/raw/functions/photos/upload_profile_photo.py +122 -0
  1583. pyrogram/raw/functions/ping.py +72 -0
  1584. pyrogram/raw/functions/ping_delay_disconnect.py +80 -0
  1585. pyrogram/raw/functions/premium/__init__.py +29 -0
  1586. pyrogram/raw/functions/premium/apply_boost.py +85 -0
  1587. pyrogram/raw/functions/premium/get_boosts_list.py +97 -0
  1588. pyrogram/raw/functions/premium/get_boosts_status.py +73 -0
  1589. pyrogram/raw/functions/premium/get_my_boosts.py +68 -0
  1590. pyrogram/raw/functions/premium/get_user_boosts.py +81 -0
  1591. pyrogram/raw/functions/req_dh_params.py +112 -0
  1592. pyrogram/raw/functions/req_pq.py +72 -0
  1593. pyrogram/raw/functions/req_pq_multi.py +72 -0
  1594. pyrogram/raw/functions/rpc_drop_answer.py +72 -0
  1595. pyrogram/raw/functions/set_client_dh_params.py +88 -0
  1596. pyrogram/raw/functions/smsjobs/__init__.py +31 -0
  1597. pyrogram/raw/functions/smsjobs/finish_job.py +84 -0
  1598. pyrogram/raw/functions/smsjobs/get_sms_job.py +73 -0
  1599. pyrogram/raw/functions/smsjobs/get_status.py +68 -0
  1600. pyrogram/raw/functions/smsjobs/is_eligible_to_join.py +68 -0
  1601. pyrogram/raw/functions/smsjobs/join.py +68 -0
  1602. pyrogram/raw/functions/smsjobs/leave.py +68 -0
  1603. pyrogram/raw/functions/smsjobs/update_settings.py +73 -0
  1604. pyrogram/raw/functions/stats/__init__.py +31 -0
  1605. pyrogram/raw/functions/stats/get_broadcast_stats.py +81 -0
  1606. pyrogram/raw/functions/stats/get_megagroup_stats.py +81 -0
  1607. pyrogram/raw/functions/stats/get_message_public_forwards.py +98 -0
  1608. pyrogram/raw/functions/stats/get_message_stats.py +89 -0
  1609. pyrogram/raw/functions/stats/get_story_public_forwards.py +97 -0
  1610. pyrogram/raw/functions/stats/get_story_stats.py +89 -0
  1611. pyrogram/raw/functions/stats/load_async_graph.py +84 -0
  1612. pyrogram/raw/functions/stickers/__init__.py +35 -0
  1613. pyrogram/raw/functions/stickers/add_sticker_to_set.py +81 -0
  1614. pyrogram/raw/functions/stickers/change_sticker.py +103 -0
  1615. pyrogram/raw/functions/stickers/change_sticker_position.py +81 -0
  1616. pyrogram/raw/functions/stickers/check_short_name.py +73 -0
  1617. pyrogram/raw/functions/stickers/create_sticker_set.py +136 -0
  1618. pyrogram/raw/functions/stickers/delete_sticker_set.py +73 -0
  1619. pyrogram/raw/functions/stickers/remove_sticker_from_set.py +73 -0
  1620. pyrogram/raw/functions/stickers/rename_sticker_set.py +81 -0
  1621. pyrogram/raw/functions/stickers/replace_sticker.py +81 -0
  1622. pyrogram/raw/functions/stickers/set_sticker_set_thumb.py +94 -0
  1623. pyrogram/raw/functions/stickers/suggest_short_name.py +73 -0
  1624. pyrogram/raw/functions/stories/__init__.py +56 -0
  1625. pyrogram/raw/functions/stories/activate_stealth_mode.py +79 -0
  1626. pyrogram/raw/functions/stories/can_send_story.py +73 -0
  1627. pyrogram/raw/functions/stories/create_album.py +89 -0
  1628. pyrogram/raw/functions/stories/delete_album.py +81 -0
  1629. pyrogram/raw/functions/stories/delete_stories.py +81 -0
  1630. pyrogram/raw/functions/stories/edit_story.py +132 -0
  1631. pyrogram/raw/functions/stories/export_story_link.py +81 -0
  1632. pyrogram/raw/functions/stories/get_album_stories.py +97 -0
  1633. pyrogram/raw/functions/stories/get_albums.py +81 -0
  1634. pyrogram/raw/functions/stories/get_all_read_peer_stories.py +68 -0
  1635. pyrogram/raw/functions/stories/get_all_stories.py +88 -0
  1636. pyrogram/raw/functions/stories/get_chats_to_send.py +68 -0
  1637. pyrogram/raw/functions/stories/get_peer_max_i_ds.py +73 -0
  1638. pyrogram/raw/functions/stories/get_peer_stories.py +73 -0
  1639. pyrogram/raw/functions/stories/get_pinned_stories.py +89 -0
  1640. pyrogram/raw/functions/stories/get_stories_archive.py +89 -0
  1641. pyrogram/raw/functions/stories/get_stories_by_id.py +81 -0
  1642. pyrogram/raw/functions/stories/get_stories_views.py +81 -0
  1643. pyrogram/raw/functions/stories/get_story_reactions_list.py +116 -0
  1644. pyrogram/raw/functions/stories/get_story_views_list.py +126 -0
  1645. pyrogram/raw/functions/stories/increment_story_views.py +81 -0
  1646. pyrogram/raw/functions/stories/read_stories.py +81 -0
  1647. pyrogram/raw/functions/stories/reorder_albums.py +81 -0
  1648. pyrogram/raw/functions/stories/report.py +97 -0
  1649. pyrogram/raw/functions/stories/search_posts.py +112 -0
  1650. pyrogram/raw/functions/stories/send_reaction.py +97 -0
  1651. pyrogram/raw/functions/stories/send_story.py +184 -0
  1652. pyrogram/raw/functions/stories/toggle_all_stories_hidden.py +73 -0
  1653. pyrogram/raw/functions/stories/toggle_peer_stories_hidden.py +81 -0
  1654. pyrogram/raw/functions/stories/toggle_pinned.py +89 -0
  1655. pyrogram/raw/functions/stories/toggle_pinned_to_top.py +81 -0
  1656. pyrogram/raw/functions/stories/update_album.py +122 -0
  1657. pyrogram/raw/functions/updates/__init__.py +27 -0
  1658. pyrogram/raw/functions/updates/get_channel_difference.py +105 -0
  1659. pyrogram/raw/functions/updates/get_difference.py +118 -0
  1660. pyrogram/raw/functions/updates/get_state.py +68 -0
  1661. pyrogram/raw/functions/upload/__init__.py +32 -0
  1662. pyrogram/raw/functions/upload/get_cdn_file.py +89 -0
  1663. pyrogram/raw/functions/upload/get_cdn_file_hashes.py +81 -0
  1664. pyrogram/raw/functions/upload/get_file.py +103 -0
  1665. pyrogram/raw/functions/upload/get_file_hashes.py +81 -0
  1666. pyrogram/raw/functions/upload/get_web_file.py +89 -0
  1667. pyrogram/raw/functions/upload/reupload_cdn_file.py +81 -0
  1668. pyrogram/raw/functions/upload/save_big_file_part.py +97 -0
  1669. pyrogram/raw/functions/upload/save_file_part.py +89 -0
  1670. pyrogram/raw/functions/users/__init__.py +31 -0
  1671. pyrogram/raw/functions/users/get_full_user.py +73 -0
  1672. pyrogram/raw/functions/users/get_requirements_to_contact.py +73 -0
  1673. pyrogram/raw/functions/users/get_saved_music.py +97 -0
  1674. pyrogram/raw/functions/users/get_saved_music_by_id.py +81 -0
  1675. pyrogram/raw/functions/users/get_users.py +73 -0
  1676. pyrogram/raw/functions/users/set_secure_value_errors.py +81 -0
  1677. pyrogram/raw/functions/users/suggest_birthday.py +81 -0
  1678. pyrogram/raw/types/__init__.py +1259 -0
  1679. pyrogram/raw/types/access_point_rule.py +88 -0
  1680. pyrogram/raw/types/account/__init__.py +60 -0
  1681. pyrogram/raw/types/account/authorization_form.py +116 -0
  1682. pyrogram/raw/types/account/authorizations.py +89 -0
  1683. pyrogram/raw/types/account/auto_download_settings.py +97 -0
  1684. pyrogram/raw/types/account/auto_save_settings.py +121 -0
  1685. pyrogram/raw/types/account/business_chat_links.py +97 -0
  1686. pyrogram/raw/types/account/chat_themes.py +116 -0
  1687. pyrogram/raw/types/account/chat_themes_not_modified.py +76 -0
  1688. pyrogram/raw/types/account/connected_bots.py +89 -0
  1689. pyrogram/raw/types/account/content_settings.py +87 -0
  1690. pyrogram/raw/types/account/email_verified.py +81 -0
  1691. pyrogram/raw/types/account/email_verified_login.py +89 -0
  1692. pyrogram/raw/types/account/emoji_statuses.py +92 -0
  1693. pyrogram/raw/types/account/emoji_statuses_not_modified.py +79 -0
  1694. pyrogram/raw/types/account/paid_messages_revenue.py +81 -0
  1695. pyrogram/raw/types/account/password.py +181 -0
  1696. pyrogram/raw/types/account/password_input_settings.py +113 -0
  1697. pyrogram/raw/types/account/password_settings.py +94 -0
  1698. pyrogram/raw/types/account/privacy_rules.py +98 -0
  1699. pyrogram/raw/types/account/reset_password_failed_wait.py +81 -0
  1700. pyrogram/raw/types/account/reset_password_ok.py +76 -0
  1701. pyrogram/raw/types/account/reset_password_requested_wait.py +81 -0
  1702. pyrogram/raw/types/account/resolved_business_chat_links.py +117 -0
  1703. pyrogram/raw/types/account/saved_music_ids.py +81 -0
  1704. pyrogram/raw/types/account/saved_music_ids_not_modified.py +76 -0
  1705. pyrogram/raw/types/account/saved_ringtone.py +76 -0
  1706. pyrogram/raw/types/account/saved_ringtone_converted.py +81 -0
  1707. pyrogram/raw/types/account/saved_ringtones.py +89 -0
  1708. pyrogram/raw/types/account/saved_ringtones_not_modified.py +76 -0
  1709. pyrogram/raw/types/account/sent_email_code.py +89 -0
  1710. pyrogram/raw/types/account/takeout.py +81 -0
  1711. pyrogram/raw/types/account/themes.py +90 -0
  1712. pyrogram/raw/types/account/themes_not_modified.py +77 -0
  1713. pyrogram/raw/types/account/tmp_password.py +89 -0
  1714. pyrogram/raw/types/account/wall_papers.py +89 -0
  1715. pyrogram/raw/types/account/wall_papers_not_modified.py +76 -0
  1716. pyrogram/raw/types/account/web_authorizations.py +89 -0
  1717. pyrogram/raw/types/account_days_ttl.py +81 -0
  1718. pyrogram/raw/types/attach_menu_bot.py +136 -0
  1719. pyrogram/raw/types/attach_menu_bot_icon.py +92 -0
  1720. pyrogram/raw/types/attach_menu_bot_icon_color.py +80 -0
  1721. pyrogram/raw/types/attach_menu_bots.py +97 -0
  1722. pyrogram/raw/types/attach_menu_bots_bot.py +89 -0
  1723. pyrogram/raw/types/attach_menu_bots_not_modified.py +76 -0
  1724. pyrogram/raw/types/attach_menu_peer_type_bot_pm.py +67 -0
  1725. pyrogram/raw/types/attach_menu_peer_type_broadcast.py +67 -0
  1726. pyrogram/raw/types/attach_menu_peer_type_chat.py +67 -0
  1727. pyrogram/raw/types/attach_menu_peer_type_pm.py +67 -0
  1728. pyrogram/raw/types/attach_menu_peer_type_same_bot_pm.py +67 -0
  1729. pyrogram/raw/types/auth/__init__.py +51 -0
  1730. pyrogram/raw/types/auth/authorization.py +122 -0
  1731. pyrogram/raw/types/auth/authorization_sign_up_required.py +91 -0
  1732. pyrogram/raw/types/auth/code_type_call.py +67 -0
  1733. pyrogram/raw/types/auth/code_type_flash_call.py +67 -0
  1734. pyrogram/raw/types/auth/code_type_fragment_sms.py +67 -0
  1735. pyrogram/raw/types/auth/code_type_missed_call.py +67 -0
  1736. pyrogram/raw/types/auth/code_type_sms.py +67 -0
  1737. pyrogram/raw/types/auth/exported_authorization.py +89 -0
  1738. pyrogram/raw/types/auth/logged_out.py +84 -0
  1739. pyrogram/raw/types/auth/login_token.py +90 -0
  1740. pyrogram/raw/types/auth/login_token_migrate_to.py +90 -0
  1741. pyrogram/raw/types/auth/login_token_success.py +82 -0
  1742. pyrogram/raw/types/auth/password_recovery.py +81 -0
  1743. pyrogram/raw/types/auth/sent_code.py +116 -0
  1744. pyrogram/raw/types/auth/sent_code_payment_required.py +127 -0
  1745. pyrogram/raw/types/auth/sent_code_success.py +87 -0
  1746. pyrogram/raw/types/auth/sent_code_type_app.py +72 -0
  1747. pyrogram/raw/types/auth/sent_code_type_call.py +72 -0
  1748. pyrogram/raw/types/auth/sent_code_type_email_code.py +112 -0
  1749. pyrogram/raw/types/auth/sent_code_type_firebase_sms.py +119 -0
  1750. pyrogram/raw/types/auth/sent_code_type_flash_call.py +72 -0
  1751. pyrogram/raw/types/auth/sent_code_type_fragment_sms.py +80 -0
  1752. pyrogram/raw/types/auth/sent_code_type_missed_call.py +80 -0
  1753. pyrogram/raw/types/auth/sent_code_type_set_up_email_required.py +78 -0
  1754. pyrogram/raw/types/auth/sent_code_type_sms.py +72 -0
  1755. pyrogram/raw/types/auth/sent_code_type_sms_phrase.py +75 -0
  1756. pyrogram/raw/types/auth/sent_code_type_sms_word.py +75 -0
  1757. pyrogram/raw/types/authorization.py +207 -0
  1758. pyrogram/raw/types/auto_download_settings.py +144 -0
  1759. pyrogram/raw/types/auto_save_exception.py +80 -0
  1760. pyrogram/raw/types/auto_save_settings.py +87 -0
  1761. pyrogram/raw/types/available_effect.py +114 -0
  1762. pyrogram/raw/types/available_reaction.py +154 -0
  1763. pyrogram/raw/types/bad_msg_notification.py +88 -0
  1764. pyrogram/raw/types/bad_server_salt.py +96 -0
  1765. pyrogram/raw/types/bank_card_open_url.py +80 -0
  1766. pyrogram/raw/types/base_theme_arctic.py +67 -0
  1767. pyrogram/raw/types/base_theme_classic.py +67 -0
  1768. pyrogram/raw/types/base_theme_day.py +67 -0
  1769. pyrogram/raw/types/base_theme_night.py +67 -0
  1770. pyrogram/raw/types/base_theme_tinted.py +67 -0
  1771. pyrogram/raw/types/bind_auth_key_inner.py +104 -0
  1772. pyrogram/raw/types/birthday.py +91 -0
  1773. pyrogram/raw/types/boost.py +153 -0
  1774. pyrogram/raw/types/bot_app.py +132 -0
  1775. pyrogram/raw/types/bot_app_not_modified.py +67 -0
  1776. pyrogram/raw/types/bot_app_settings.py +111 -0
  1777. pyrogram/raw/types/bot_business_connection.py +114 -0
  1778. pyrogram/raw/types/bot_command.py +89 -0
  1779. pyrogram/raw/types/bot_command_scope_chat_admins.py +67 -0
  1780. pyrogram/raw/types/bot_command_scope_chats.py +67 -0
  1781. pyrogram/raw/types/bot_command_scope_default.py +67 -0
  1782. pyrogram/raw/types/bot_command_scope_peer.py +72 -0
  1783. pyrogram/raw/types/bot_command_scope_peer_admins.py +72 -0
  1784. pyrogram/raw/types/bot_command_scope_peer_user.py +80 -0
  1785. pyrogram/raw/types/bot_command_scope_users.py +67 -0
  1786. pyrogram/raw/types/bot_info.py +159 -0
  1787. pyrogram/raw/types/bot_inline_media_result.py +128 -0
  1788. pyrogram/raw/types/bot_inline_message_media_auto.py +100 -0
  1789. pyrogram/raw/types/bot_inline_message_media_contact.py +108 -0
  1790. pyrogram/raw/types/bot_inline_message_media_geo.py +111 -0
  1791. pyrogram/raw/types/bot_inline_message_media_invoice.py +130 -0
  1792. pyrogram/raw/types/bot_inline_message_media_venue.py +124 -0
  1793. pyrogram/raw/types/bot_inline_message_media_web_page.py +132 -0
  1794. pyrogram/raw/types/bot_inline_message_text.py +106 -0
  1795. pyrogram/raw/types/bot_inline_result.py +137 -0
  1796. pyrogram/raw/types/bot_menu_button.py +89 -0
  1797. pyrogram/raw/types/bot_menu_button_commands.py +76 -0
  1798. pyrogram/raw/types/bot_menu_button_default.py +76 -0
  1799. pyrogram/raw/types/bot_preview_media.py +91 -0
  1800. pyrogram/raw/types/bot_verification.py +88 -0
  1801. pyrogram/raw/types/bot_verifier_settings.py +97 -0
  1802. pyrogram/raw/types/bots/__init__.py +27 -0
  1803. pyrogram/raw/types/bots/bot_info.py +97 -0
  1804. pyrogram/raw/types/bots/popular_app_bots.py +92 -0
  1805. pyrogram/raw/types/bots/preview_info.py +89 -0
  1806. pyrogram/raw/types/business_away_message.py +96 -0
  1807. pyrogram/raw/types/business_away_message_schedule_always.py +67 -0
  1808. pyrogram/raw/types/business_away_message_schedule_custom.py +80 -0
  1809. pyrogram/raw/types/business_away_message_schedule_outside_work_hours.py +67 -0
  1810. pyrogram/raw/types/business_bot_recipients.py +116 -0
  1811. pyrogram/raw/types/business_bot_rights.py +150 -0
  1812. pyrogram/raw/types/business_chat_link.py +119 -0
  1813. pyrogram/raw/types/business_greeting_message.py +88 -0
  1814. pyrogram/raw/types/business_intro.py +92 -0
  1815. pyrogram/raw/types/business_location.py +84 -0
  1816. pyrogram/raw/types/business_recipients.py +106 -0
  1817. pyrogram/raw/types/business_weekly_open.py +80 -0
  1818. pyrogram/raw/types/business_work_hours.py +88 -0
  1819. pyrogram/raw/types/cdn_config.py +81 -0
  1820. pyrogram/raw/types/cdn_public_key.py +80 -0
  1821. pyrogram/raw/types/channel.py +431 -0
  1822. pyrogram/raw/types/channel_admin_log_event.py +96 -0
  1823. pyrogram/raw/types/channel_admin_log_event_action_change_about.py +80 -0
  1824. pyrogram/raw/types/channel_admin_log_event_action_change_available_reactions.py +80 -0
  1825. pyrogram/raw/types/channel_admin_log_event_action_change_emoji_status.py +80 -0
  1826. pyrogram/raw/types/channel_admin_log_event_action_change_emoji_sticker_set.py +80 -0
  1827. pyrogram/raw/types/channel_admin_log_event_action_change_history_ttl.py +80 -0
  1828. pyrogram/raw/types/channel_admin_log_event_action_change_linked_chat.py +80 -0
  1829. pyrogram/raw/types/channel_admin_log_event_action_change_location.py +80 -0
  1830. pyrogram/raw/types/channel_admin_log_event_action_change_peer_color.py +80 -0
  1831. pyrogram/raw/types/channel_admin_log_event_action_change_photo.py +80 -0
  1832. pyrogram/raw/types/channel_admin_log_event_action_change_profile_peer_color.py +80 -0
  1833. pyrogram/raw/types/channel_admin_log_event_action_change_sticker_set.py +80 -0
  1834. pyrogram/raw/types/channel_admin_log_event_action_change_theme.py +80 -0
  1835. pyrogram/raw/types/channel_admin_log_event_action_change_title.py +80 -0
  1836. pyrogram/raw/types/channel_admin_log_event_action_change_username.py +80 -0
  1837. pyrogram/raw/types/channel_admin_log_event_action_change_usernames.py +80 -0
  1838. pyrogram/raw/types/channel_admin_log_event_action_change_wallpaper.py +80 -0
  1839. pyrogram/raw/types/channel_admin_log_event_action_create_topic.py +72 -0
  1840. pyrogram/raw/types/channel_admin_log_event_action_default_banned_rights.py +80 -0
  1841. pyrogram/raw/types/channel_admin_log_event_action_delete_message.py +72 -0
  1842. pyrogram/raw/types/channel_admin_log_event_action_delete_topic.py +72 -0
  1843. pyrogram/raw/types/channel_admin_log_event_action_discard_group_call.py +72 -0
  1844. pyrogram/raw/types/channel_admin_log_event_action_edit_message.py +80 -0
  1845. pyrogram/raw/types/channel_admin_log_event_action_edit_topic.py +80 -0
  1846. pyrogram/raw/types/channel_admin_log_event_action_exported_invite_delete.py +72 -0
  1847. pyrogram/raw/types/channel_admin_log_event_action_exported_invite_edit.py +80 -0
  1848. pyrogram/raw/types/channel_admin_log_event_action_exported_invite_revoke.py +72 -0
  1849. pyrogram/raw/types/channel_admin_log_event_action_participant_invite.py +72 -0
  1850. pyrogram/raw/types/channel_admin_log_event_action_participant_join.py +67 -0
  1851. pyrogram/raw/types/channel_admin_log_event_action_participant_join_by_invite.py +80 -0
  1852. pyrogram/raw/types/channel_admin_log_event_action_participant_join_by_request.py +80 -0
  1853. pyrogram/raw/types/channel_admin_log_event_action_participant_leave.py +67 -0
  1854. pyrogram/raw/types/channel_admin_log_event_action_participant_mute.py +72 -0
  1855. pyrogram/raw/types/channel_admin_log_event_action_participant_sub_extend.py +80 -0
  1856. pyrogram/raw/types/channel_admin_log_event_action_participant_toggle_admin.py +80 -0
  1857. pyrogram/raw/types/channel_admin_log_event_action_participant_toggle_ban.py +80 -0
  1858. pyrogram/raw/types/channel_admin_log_event_action_participant_unmute.py +72 -0
  1859. pyrogram/raw/types/channel_admin_log_event_action_participant_volume.py +72 -0
  1860. pyrogram/raw/types/channel_admin_log_event_action_pin_topic.py +86 -0
  1861. pyrogram/raw/types/channel_admin_log_event_action_send_message.py +72 -0
  1862. pyrogram/raw/types/channel_admin_log_event_action_start_group_call.py +72 -0
  1863. pyrogram/raw/types/channel_admin_log_event_action_stop_poll.py +72 -0
  1864. pyrogram/raw/types/channel_admin_log_event_action_toggle_anti_spam.py +72 -0
  1865. pyrogram/raw/types/channel_admin_log_event_action_toggle_autotranslation.py +72 -0
  1866. pyrogram/raw/types/channel_admin_log_event_action_toggle_forum.py +72 -0
  1867. pyrogram/raw/types/channel_admin_log_event_action_toggle_group_call_setting.py +72 -0
  1868. pyrogram/raw/types/channel_admin_log_event_action_toggle_invites.py +72 -0
  1869. pyrogram/raw/types/channel_admin_log_event_action_toggle_no_forwards.py +72 -0
  1870. pyrogram/raw/types/channel_admin_log_event_action_toggle_pre_history_hidden.py +72 -0
  1871. pyrogram/raw/types/channel_admin_log_event_action_toggle_signature_profiles.py +72 -0
  1872. pyrogram/raw/types/channel_admin_log_event_action_toggle_signatures.py +72 -0
  1873. pyrogram/raw/types/channel_admin_log_event_action_toggle_slow_mode.py +80 -0
  1874. pyrogram/raw/types/channel_admin_log_event_action_update_pinned.py +72 -0
  1875. pyrogram/raw/types/channel_admin_log_events_filter.py +180 -0
  1876. pyrogram/raw/types/channel_forbidden.py +111 -0
  1877. pyrogram/raw/types/channel_full.py +606 -0
  1878. pyrogram/raw/types/channel_location.py +80 -0
  1879. pyrogram/raw/types/channel_location_empty.py +67 -0
  1880. pyrogram/raw/types/channel_messages_filter.py +80 -0
  1881. pyrogram/raw/types/channel_messages_filter_empty.py +67 -0
  1882. pyrogram/raw/types/channel_participant.py +91 -0
  1883. pyrogram/raw/types/channel_participant_admin.py +128 -0
  1884. pyrogram/raw/types/channel_participant_banned.py +104 -0
  1885. pyrogram/raw/types/channel_participant_creator.py +91 -0
  1886. pyrogram/raw/types/channel_participant_left.py +72 -0
  1887. pyrogram/raw/types/channel_participant_self.py +105 -0
  1888. pyrogram/raw/types/channel_participants_admins.py +67 -0
  1889. pyrogram/raw/types/channel_participants_banned.py +72 -0
  1890. pyrogram/raw/types/channel_participants_bots.py +67 -0
  1891. pyrogram/raw/types/channel_participants_contacts.py +72 -0
  1892. pyrogram/raw/types/channel_participants_kicked.py +72 -0
  1893. pyrogram/raw/types/channel_participants_mentions.py +85 -0
  1894. pyrogram/raw/types/channel_participants_recent.py +67 -0
  1895. pyrogram/raw/types/channel_participants_search.py +72 -0
  1896. pyrogram/raw/types/channels/__init__.py +32 -0
  1897. pyrogram/raw/types/channels/admin_log_results.py +97 -0
  1898. pyrogram/raw/types/channels/channel_participant.py +97 -0
  1899. pyrogram/raw/types/channels/channel_participants.py +105 -0
  1900. pyrogram/raw/types/channels/channel_participants_not_modified.py +76 -0
  1901. pyrogram/raw/types/channels/send_as_peers.py +97 -0
  1902. pyrogram/raw/types/channels/sponsored_message_report_result_ads_hidden.py +76 -0
  1903. pyrogram/raw/types/channels/sponsored_message_report_result_choose_option.py +89 -0
  1904. pyrogram/raw/types/channels/sponsored_message_report_result_reported.py +76 -0
  1905. pyrogram/raw/types/chat.py +186 -0
  1906. pyrogram/raw/types/chat_admin_rights.py +162 -0
  1907. pyrogram/raw/types/chat_admin_with_invites.py +88 -0
  1908. pyrogram/raw/types/chat_banned_rights.py +194 -0
  1909. pyrogram/raw/types/chat_empty.py +72 -0
  1910. pyrogram/raw/types/chat_forbidden.py +80 -0
  1911. pyrogram/raw/types/chat_full.py +240 -0
  1912. pyrogram/raw/types/chat_invite.py +209 -0
  1913. pyrogram/raw/types/chat_invite_already.py +81 -0
  1914. pyrogram/raw/types/chat_invite_exported.py +190 -0
  1915. pyrogram/raw/types/chat_invite_importer.py +112 -0
  1916. pyrogram/raw/types/chat_invite_peek.py +89 -0
  1917. pyrogram/raw/types/chat_invite_public_join_requests.py +76 -0
  1918. pyrogram/raw/types/chat_onlines.py +81 -0
  1919. pyrogram/raw/types/chat_participant.py +88 -0
  1920. pyrogram/raw/types/chat_participant_admin.py +88 -0
  1921. pyrogram/raw/types/chat_participant_creator.py +72 -0
  1922. pyrogram/raw/types/chat_participants.py +88 -0
  1923. pyrogram/raw/types/chat_participants_forbidden.py +84 -0
  1924. pyrogram/raw/types/chat_photo.py +97 -0
  1925. pyrogram/raw/types/chat_photo_empty.py +67 -0
  1926. pyrogram/raw/types/chat_reactions_all.py +72 -0
  1927. pyrogram/raw/types/chat_reactions_none.py +67 -0
  1928. pyrogram/raw/types/chat_reactions_some.py +72 -0
  1929. pyrogram/raw/types/chat_theme.py +72 -0
  1930. pyrogram/raw/types/chat_theme_unique_gift.py +80 -0
  1931. pyrogram/raw/types/chat_themes.py +116 -0
  1932. pyrogram/raw/types/chatlists/__init__.py +29 -0
  1933. pyrogram/raw/types/chatlists/chatlist_invite.py +122 -0
  1934. pyrogram/raw/types/chatlists/chatlist_invite_already.py +113 -0
  1935. pyrogram/raw/types/chatlists/chatlist_updates.py +97 -0
  1936. pyrogram/raw/types/chatlists/exported_chatlist_invite.py +89 -0
  1937. pyrogram/raw/types/chatlists/exported_invites.py +97 -0
  1938. pyrogram/raw/types/client_dh_inner_data.py +96 -0
  1939. pyrogram/raw/types/code_settings.py +130 -0
  1940. pyrogram/raw/types/config.py +453 -0
  1941. pyrogram/raw/types/connected_bot.py +91 -0
  1942. pyrogram/raw/types/connected_bot_star_ref.py +129 -0
  1943. pyrogram/raw/types/contact.py +80 -0
  1944. pyrogram/raw/types/contact_birthday.py +80 -0
  1945. pyrogram/raw/types/contact_status.py +89 -0
  1946. pyrogram/raw/types/contacts/__init__.py +37 -0
  1947. pyrogram/raw/types/contacts/blocked.py +97 -0
  1948. pyrogram/raw/types/contacts/blocked_slice.py +105 -0
  1949. pyrogram/raw/types/contacts/contact_birthdays.py +89 -0
  1950. pyrogram/raw/types/contacts/contacts.py +97 -0
  1951. pyrogram/raw/types/contacts/contacts_not_modified.py +76 -0
  1952. pyrogram/raw/types/contacts/found.py +105 -0
  1953. pyrogram/raw/types/contacts/imported_contacts.py +105 -0
  1954. pyrogram/raw/types/contacts/resolved_peer.py +98 -0
  1955. pyrogram/raw/types/contacts/sponsored_peers.py +97 -0
  1956. pyrogram/raw/types/contacts/sponsored_peers_empty.py +76 -0
  1957. pyrogram/raw/types/contacts/top_peers.py +97 -0
  1958. pyrogram/raw/types/contacts/top_peers_disabled.py +76 -0
  1959. pyrogram/raw/types/contacts/top_peers_not_modified.py +76 -0
  1960. pyrogram/raw/types/data_json.py +83 -0
  1961. pyrogram/raw/types/dc_option.py +135 -0
  1962. pyrogram/raw/types/default_history_ttl.py +81 -0
  1963. pyrogram/raw/types/destroy_auth_key_fail.py +76 -0
  1964. pyrogram/raw/types/destroy_auth_key_none.py +76 -0
  1965. pyrogram/raw/types/destroy_auth_key_ok.py +76 -0
  1966. pyrogram/raw/types/destroy_session_none.py +81 -0
  1967. pyrogram/raw/types/destroy_session_ok.py +81 -0
  1968. pyrogram/raw/types/dh_gen_fail.py +97 -0
  1969. pyrogram/raw/types/dh_gen_ok.py +97 -0
  1970. pyrogram/raw/types/dh_gen_retry.py +97 -0
  1971. pyrogram/raw/types/dialog.py +185 -0
  1972. pyrogram/raw/types/dialog_filter.py +178 -0
  1973. pyrogram/raw/types/dialog_filter_chatlist.py +128 -0
  1974. pyrogram/raw/types/dialog_filter_default.py +67 -0
  1975. pyrogram/raw/types/dialog_filter_suggested.py +89 -0
  1976. pyrogram/raw/types/dialog_folder.py +128 -0
  1977. pyrogram/raw/types/dialog_peer.py +81 -0
  1978. pyrogram/raw/types/dialog_peer_folder.py +81 -0
  1979. pyrogram/raw/types/disallowed_gifts_settings.py +90 -0
  1980. pyrogram/raw/types/document.py +162 -0
  1981. pyrogram/raw/types/document_attribute_animated.py +67 -0
  1982. pyrogram/raw/types/document_attribute_audio.py +107 -0
  1983. pyrogram/raw/types/document_attribute_custom_emoji.py +94 -0
  1984. pyrogram/raw/types/document_attribute_filename.py +72 -0
  1985. pyrogram/raw/types/document_attribute_has_stickers.py +67 -0
  1986. pyrogram/raw/types/document_attribute_image_size.py +80 -0
  1987. pyrogram/raw/types/document_attribute_sticker.py +98 -0
  1988. pyrogram/raw/types/document_attribute_video.py +135 -0
  1989. pyrogram/raw/types/document_empty.py +84 -0
  1990. pyrogram/raw/types/draft_message.py +143 -0
  1991. pyrogram/raw/types/draft_message_empty.py +75 -0
  1992. pyrogram/raw/types/email_verification_apple.py +72 -0
  1993. pyrogram/raw/types/email_verification_code.py +72 -0
  1994. pyrogram/raw/types/email_verification_google.py +72 -0
  1995. pyrogram/raw/types/email_verify_purpose_login_change.py +67 -0
  1996. pyrogram/raw/types/email_verify_purpose_login_setup.py +80 -0
  1997. pyrogram/raw/types/email_verify_purpose_passport.py +67 -0
  1998. pyrogram/raw/types/emoji_group.py +88 -0
  1999. pyrogram/raw/types/emoji_group_greeting.py +88 -0
  2000. pyrogram/raw/types/emoji_group_premium.py +80 -0
  2001. pyrogram/raw/types/emoji_keyword.py +80 -0
  2002. pyrogram/raw/types/emoji_keyword_deleted.py +80 -0
  2003. pyrogram/raw/types/emoji_keywords_difference.py +106 -0
  2004. pyrogram/raw/types/emoji_language.py +81 -0
  2005. pyrogram/raw/types/emoji_list.py +93 -0
  2006. pyrogram/raw/types/emoji_list_not_modified.py +80 -0
  2007. pyrogram/raw/types/emoji_status.py +83 -0
  2008. pyrogram/raw/types/emoji_status_collectible.py +147 -0
  2009. pyrogram/raw/types/emoji_status_empty.py +67 -0
  2010. pyrogram/raw/types/emoji_url.py +81 -0
  2011. pyrogram/raw/types/encrypted_chat.py +130 -0
  2012. pyrogram/raw/types/encrypted_chat_discarded.py +90 -0
  2013. pyrogram/raw/types/encrypted_chat_empty.py +82 -0
  2014. pyrogram/raw/types/encrypted_chat_requested.py +133 -0
  2015. pyrogram/raw/types/encrypted_chat_waiting.py +114 -0
  2016. pyrogram/raw/types/encrypted_file.py +113 -0
  2017. pyrogram/raw/types/encrypted_file_empty.py +76 -0
  2018. pyrogram/raw/types/encrypted_message.py +104 -0
  2019. pyrogram/raw/types/encrypted_message_service.py +96 -0
  2020. pyrogram/raw/types/exported_chatlist_invite.py +105 -0
  2021. pyrogram/raw/types/exported_contact_token.py +89 -0
  2022. pyrogram/raw/types/exported_message_link.py +89 -0
  2023. pyrogram/raw/types/exported_story_link.py +81 -0
  2024. pyrogram/raw/types/fact_check.py +108 -0
  2025. pyrogram/raw/types/file_hash.py +99 -0
  2026. pyrogram/raw/types/folder.py +110 -0
  2027. pyrogram/raw/types/folder_peer.py +80 -0
  2028. pyrogram/raw/types/forum_topic.py +225 -0
  2029. pyrogram/raw/types/forum_topic_deleted.py +72 -0
  2030. pyrogram/raw/types/found_story.py +80 -0
  2031. pyrogram/raw/types/fragment/__init__.py +25 -0
  2032. pyrogram/raw/types/fragment/collectible_info.py +121 -0
  2033. pyrogram/raw/types/game.py +124 -0
  2034. pyrogram/raw/types/geo_point.py +99 -0
  2035. pyrogram/raw/types/geo_point_address.py +101 -0
  2036. pyrogram/raw/types/geo_point_empty.py +67 -0
  2037. pyrogram/raw/types/global_privacy_settings.py +131 -0
  2038. pyrogram/raw/types/group_call.py +238 -0
  2039. pyrogram/raw/types/group_call_discarded.py +88 -0
  2040. pyrogram/raw/types/group_call_participant.py +206 -0
  2041. pyrogram/raw/types/group_call_participant_video.py +97 -0
  2042. pyrogram/raw/types/group_call_participant_video_source_group.py +80 -0
  2043. pyrogram/raw/types/group_call_stream_channel.py +88 -0
  2044. pyrogram/raw/types/help/__init__.py +56 -0
  2045. pyrogram/raw/types/help/app_config.py +89 -0
  2046. pyrogram/raw/types/help/app_config_not_modified.py +76 -0
  2047. pyrogram/raw/types/help/app_update.py +142 -0
  2048. pyrogram/raw/types/help/config_simple.py +88 -0
  2049. pyrogram/raw/types/help/countries_list.py +89 -0
  2050. pyrogram/raw/types/help/countries_list_not_modified.py +76 -0
  2051. pyrogram/raw/types/help/country.py +105 -0
  2052. pyrogram/raw/types/help/country_code.py +94 -0
  2053. pyrogram/raw/types/help/deep_link_info.py +99 -0
  2054. pyrogram/raw/types/help/deep_link_info_empty.py +76 -0
  2055. pyrogram/raw/types/help/invite_text.py +81 -0
  2056. pyrogram/raw/types/help/no_app_update.py +76 -0
  2057. pyrogram/raw/types/help/passport_config.py +89 -0
  2058. pyrogram/raw/types/help/passport_config_not_modified.py +76 -0
  2059. pyrogram/raw/types/help/peer_color_option.py +118 -0
  2060. pyrogram/raw/types/help/peer_color_profile_set.py +88 -0
  2061. pyrogram/raw/types/help/peer_color_set.py +72 -0
  2062. pyrogram/raw/types/help/peer_colors.py +90 -0
  2063. pyrogram/raw/types/help/peer_colors_not_modified.py +77 -0
  2064. pyrogram/raw/types/help/premium_promo.py +121 -0
  2065. pyrogram/raw/types/help/promo_data.py +159 -0
  2066. pyrogram/raw/types/help/promo_data_empty.py +81 -0
  2067. pyrogram/raw/types/help/recent_me_urls.py +97 -0
  2068. pyrogram/raw/types/help/support.py +89 -0
  2069. pyrogram/raw/types/help/support_name.py +81 -0
  2070. pyrogram/raw/types/help/terms_of_service.py +105 -0
  2071. pyrogram/raw/types/help/terms_of_service_update.py +89 -0
  2072. pyrogram/raw/types/help/terms_of_service_update_empty.py +81 -0
  2073. pyrogram/raw/types/help/timezones_list.py +89 -0
  2074. pyrogram/raw/types/help/timezones_list_not_modified.py +76 -0
  2075. pyrogram/raw/types/help/user_info.py +106 -0
  2076. pyrogram/raw/types/help/user_info_empty.py +77 -0
  2077. pyrogram/raw/types/high_score.py +88 -0
  2078. pyrogram/raw/types/http_wait.py +88 -0
  2079. pyrogram/raw/types/imported_contact.py +80 -0
  2080. pyrogram/raw/types/inline_bot_switch_pm.py +80 -0
  2081. pyrogram/raw/types/inline_bot_web_view.py +80 -0
  2082. pyrogram/raw/types/inline_query_peer_type_bot_pm.py +67 -0
  2083. pyrogram/raw/types/inline_query_peer_type_broadcast.py +67 -0
  2084. pyrogram/raw/types/inline_query_peer_type_chat.py +67 -0
  2085. pyrogram/raw/types/inline_query_peer_type_megagroup.py +67 -0
  2086. pyrogram/raw/types/inline_query_peer_type_pm.py +67 -0
  2087. pyrogram/raw/types/inline_query_peer_type_same_bot_pm.py +67 -0
  2088. pyrogram/raw/types/input_app_event.py +96 -0
  2089. pyrogram/raw/types/input_bot_app_id.py +80 -0
  2090. pyrogram/raw/types/input_bot_app_short_name.py +80 -0
  2091. pyrogram/raw/types/input_bot_inline_message_game.py +76 -0
  2092. pyrogram/raw/types/input_bot_inline_message_id.py +88 -0
  2093. pyrogram/raw/types/input_bot_inline_message_id64.py +96 -0
  2094. pyrogram/raw/types/input_bot_inline_message_media_auto.py +100 -0
  2095. pyrogram/raw/types/input_bot_inline_message_media_contact.py +108 -0
  2096. pyrogram/raw/types/input_bot_inline_message_media_geo.py +111 -0
  2097. pyrogram/raw/types/input_bot_inline_message_media_invoice.py +134 -0
  2098. pyrogram/raw/types/input_bot_inline_message_media_venue.py +124 -0
  2099. pyrogram/raw/types/input_bot_inline_message_media_web_page.py +126 -0
  2100. pyrogram/raw/types/input_bot_inline_message_text.py +106 -0
  2101. pyrogram/raw/types/input_bot_inline_result.py +137 -0
  2102. pyrogram/raw/types/input_bot_inline_result_document.py +116 -0
  2103. pyrogram/raw/types/input_bot_inline_result_game.py +88 -0
  2104. pyrogram/raw/types/input_bot_inline_result_photo.py +96 -0
  2105. pyrogram/raw/types/input_business_away_message.py +96 -0
  2106. pyrogram/raw/types/input_business_bot_recipients.py +116 -0
  2107. pyrogram/raw/types/input_business_chat_link.py +93 -0
  2108. pyrogram/raw/types/input_business_greeting_message.py +88 -0
  2109. pyrogram/raw/types/input_business_intro.py +92 -0
  2110. pyrogram/raw/types/input_business_recipients.py +106 -0
  2111. pyrogram/raw/types/input_channel.py +80 -0
  2112. pyrogram/raw/types/input_channel_empty.py +67 -0
  2113. pyrogram/raw/types/input_channel_from_message.py +88 -0
  2114. pyrogram/raw/types/input_chat_photo.py +72 -0
  2115. pyrogram/raw/types/input_chat_photo_empty.py +67 -0
  2116. pyrogram/raw/types/input_chat_theme.py +72 -0
  2117. pyrogram/raw/types/input_chat_theme_empty.py +67 -0
  2118. pyrogram/raw/types/input_chat_theme_unique_gift.py +72 -0
  2119. pyrogram/raw/types/input_chat_uploaded_photo.py +105 -0
  2120. pyrogram/raw/types/input_chatlist_dialog_filter.py +72 -0
  2121. pyrogram/raw/types/input_check_password_empty.py +67 -0
  2122. pyrogram/raw/types/input_check_password_srp.py +88 -0
  2123. pyrogram/raw/types/input_client_proxy.py +80 -0
  2124. pyrogram/raw/types/input_collectible_phone.py +72 -0
  2125. pyrogram/raw/types/input_collectible_username.py +72 -0
  2126. pyrogram/raw/types/input_dialog_peer.py +72 -0
  2127. pyrogram/raw/types/input_dialog_peer_folder.py +72 -0
  2128. pyrogram/raw/types/input_document.py +88 -0
  2129. pyrogram/raw/types/input_document_empty.py +67 -0
  2130. pyrogram/raw/types/input_document_file_location.py +96 -0
  2131. pyrogram/raw/types/input_emoji_status_collectible.py +83 -0
  2132. pyrogram/raw/types/input_encrypted_chat.py +80 -0
  2133. pyrogram/raw/types/input_encrypted_file.py +80 -0
  2134. pyrogram/raw/types/input_encrypted_file_big_uploaded.py +88 -0
  2135. pyrogram/raw/types/input_encrypted_file_empty.py +67 -0
  2136. pyrogram/raw/types/input_encrypted_file_location.py +80 -0
  2137. pyrogram/raw/types/input_encrypted_file_uploaded.py +96 -0
  2138. pyrogram/raw/types/input_file.py +96 -0
  2139. pyrogram/raw/types/input_file_big.py +88 -0
  2140. pyrogram/raw/types/input_file_location.py +96 -0
  2141. pyrogram/raw/types/input_file_story_document.py +72 -0
  2142. pyrogram/raw/types/input_folder_peer.py +80 -0
  2143. pyrogram/raw/types/input_game_id.py +80 -0
  2144. pyrogram/raw/types/input_game_short_name.py +80 -0
  2145. pyrogram/raw/types/input_geo_point.py +91 -0
  2146. pyrogram/raw/types/input_geo_point_empty.py +67 -0
  2147. pyrogram/raw/types/input_group_call.py +80 -0
  2148. pyrogram/raw/types/input_group_call_invite_message.py +72 -0
  2149. pyrogram/raw/types/input_group_call_slug.py +72 -0
  2150. pyrogram/raw/types/input_group_call_stream.py +108 -0
  2151. pyrogram/raw/types/input_invoice_business_bot_transfer_stars.py +80 -0
  2152. pyrogram/raw/types/input_invoice_chat_invite_subscription.py +72 -0
  2153. pyrogram/raw/types/input_invoice_message.py +80 -0
  2154. pyrogram/raw/types/input_invoice_premium_auth_code.py +72 -0
  2155. pyrogram/raw/types/input_invoice_premium_gift_code.py +80 -0
  2156. pyrogram/raw/types/input_invoice_premium_gift_stars.py +92 -0
  2157. pyrogram/raw/types/input_invoice_slug.py +72 -0
  2158. pyrogram/raw/types/input_invoice_star_gift.py +104 -0
  2159. pyrogram/raw/types/input_invoice_star_gift_drop_original_details.py +72 -0
  2160. pyrogram/raw/types/input_invoice_star_gift_prepaid_upgrade.py +80 -0
  2161. pyrogram/raw/types/input_invoice_star_gift_resale.py +88 -0
  2162. pyrogram/raw/types/input_invoice_star_gift_transfer.py +80 -0
  2163. pyrogram/raw/types/input_invoice_star_gift_upgrade.py +80 -0
  2164. pyrogram/raw/types/input_invoice_stars.py +72 -0
  2165. pyrogram/raw/types/input_keyboard_button_request_peer.py +116 -0
  2166. pyrogram/raw/types/input_keyboard_button_url_auth.py +105 -0
  2167. pyrogram/raw/types/input_keyboard_button_user_profile.py +80 -0
  2168. pyrogram/raw/types/input_media_area_channel_post.py +88 -0
  2169. pyrogram/raw/types/input_media_area_venue.py +88 -0
  2170. pyrogram/raw/types/input_media_contact.py +96 -0
  2171. pyrogram/raw/types/input_media_dice.py +72 -0
  2172. pyrogram/raw/types/input_media_document.py +117 -0
  2173. pyrogram/raw/types/input_media_document_external.py +108 -0
  2174. pyrogram/raw/types/input_media_empty.py +67 -0
  2175. pyrogram/raw/types/input_media_game.py +72 -0
  2176. pyrogram/raw/types/input_media_geo_live.py +107 -0
  2177. pyrogram/raw/types/input_media_geo_point.py +72 -0
  2178. pyrogram/raw/types/input_media_invoice.py +144 -0
  2179. pyrogram/raw/types/input_media_paid_media.py +91 -0
  2180. pyrogram/raw/types/input_media_photo.py +89 -0
  2181. pyrogram/raw/types/input_media_photo_external.py +89 -0
  2182. pyrogram/raw/types/input_media_poll.py +103 -0
  2183. pyrogram/raw/types/input_media_story.py +80 -0
  2184. pyrogram/raw/types/input_media_todo.py +72 -0
  2185. pyrogram/raw/types/input_media_uploaded_document.py +156 -0
  2186. pyrogram/raw/types/input_media_uploaded_photo.py +99 -0
  2187. pyrogram/raw/types/input_media_venue.py +112 -0
  2188. pyrogram/raw/types/input_media_web_page.py +92 -0
  2189. pyrogram/raw/types/input_message_callback_query.py +80 -0
  2190. pyrogram/raw/types/input_message_entity_mention_name.py +88 -0
  2191. pyrogram/raw/types/input_message_id.py +72 -0
  2192. pyrogram/raw/types/input_message_pinned.py +67 -0
  2193. pyrogram/raw/types/input_message_reply_to.py +72 -0
  2194. pyrogram/raw/types/input_messages_filter_chat_photos.py +67 -0
  2195. pyrogram/raw/types/input_messages_filter_contacts.py +67 -0
  2196. pyrogram/raw/types/input_messages_filter_document.py +67 -0
  2197. pyrogram/raw/types/input_messages_filter_empty.py +67 -0
  2198. pyrogram/raw/types/input_messages_filter_geo.py +67 -0
  2199. pyrogram/raw/types/input_messages_filter_gif.py +67 -0
  2200. pyrogram/raw/types/input_messages_filter_music.py +67 -0
  2201. pyrogram/raw/types/input_messages_filter_my_mentions.py +67 -0
  2202. pyrogram/raw/types/input_messages_filter_phone_calls.py +72 -0
  2203. pyrogram/raw/types/input_messages_filter_photo_video.py +67 -0
  2204. pyrogram/raw/types/input_messages_filter_photo_video_documents.py +67 -0
  2205. pyrogram/raw/types/input_messages_filter_photos.py +67 -0
  2206. pyrogram/raw/types/input_messages_filter_pinned.py +67 -0
  2207. pyrogram/raw/types/input_messages_filter_round_video.py +67 -0
  2208. pyrogram/raw/types/input_messages_filter_round_voice.py +67 -0
  2209. pyrogram/raw/types/input_messages_filter_url.py +67 -0
  2210. pyrogram/raw/types/input_messages_filter_video.py +67 -0
  2211. pyrogram/raw/types/input_messages_filter_voice.py +67 -0
  2212. pyrogram/raw/types/input_notify_broadcasts.py +67 -0
  2213. pyrogram/raw/types/input_notify_chats.py +67 -0
  2214. pyrogram/raw/types/input_notify_forum_topic.py +80 -0
  2215. pyrogram/raw/types/input_notify_peer.py +72 -0
  2216. pyrogram/raw/types/input_notify_users.py +67 -0
  2217. pyrogram/raw/types/input_payment_credentials.py +80 -0
  2218. pyrogram/raw/types/input_payment_credentials_apple_pay.py +72 -0
  2219. pyrogram/raw/types/input_payment_credentials_google_pay.py +72 -0
  2220. pyrogram/raw/types/input_payment_credentials_saved.py +80 -0
  2221. pyrogram/raw/types/input_peer_channel.py +80 -0
  2222. pyrogram/raw/types/input_peer_channel_from_message.py +88 -0
  2223. pyrogram/raw/types/input_peer_chat.py +72 -0
  2224. pyrogram/raw/types/input_peer_color_collectible.py +72 -0
  2225. pyrogram/raw/types/input_peer_empty.py +67 -0
  2226. pyrogram/raw/types/input_peer_notify_settings.py +131 -0
  2227. pyrogram/raw/types/input_peer_photo_file_location.py +88 -0
  2228. pyrogram/raw/types/input_peer_self.py +67 -0
  2229. pyrogram/raw/types/input_peer_user.py +80 -0
  2230. pyrogram/raw/types/input_peer_user_from_message.py +88 -0
  2231. pyrogram/raw/types/input_phone_call.py +80 -0
  2232. pyrogram/raw/types/input_phone_contact.py +96 -0
  2233. pyrogram/raw/types/input_photo.py +88 -0
  2234. pyrogram/raw/types/input_photo_empty.py +67 -0
  2235. pyrogram/raw/types/input_photo_file_location.py +96 -0
  2236. pyrogram/raw/types/input_photo_legacy_file_location.py +112 -0
  2237. pyrogram/raw/types/input_privacy_key_about.py +67 -0
  2238. pyrogram/raw/types/input_privacy_key_added_by_phone.py +67 -0
  2239. pyrogram/raw/types/input_privacy_key_birthday.py +67 -0
  2240. pyrogram/raw/types/input_privacy_key_chat_invite.py +67 -0
  2241. pyrogram/raw/types/input_privacy_key_forwards.py +67 -0
  2242. pyrogram/raw/types/input_privacy_key_no_paid_messages.py +67 -0
  2243. pyrogram/raw/types/input_privacy_key_phone_call.py +67 -0
  2244. pyrogram/raw/types/input_privacy_key_phone_number.py +67 -0
  2245. pyrogram/raw/types/input_privacy_key_phone_p2_p.py +67 -0
  2246. pyrogram/raw/types/input_privacy_key_profile_photo.py +67 -0
  2247. pyrogram/raw/types/input_privacy_key_star_gifts_auto_save.py +67 -0
  2248. pyrogram/raw/types/input_privacy_key_status_timestamp.py +67 -0
  2249. pyrogram/raw/types/input_privacy_key_voice_messages.py +67 -0
  2250. pyrogram/raw/types/input_privacy_value_allow_all.py +67 -0
  2251. pyrogram/raw/types/input_privacy_value_allow_bots.py +67 -0
  2252. pyrogram/raw/types/input_privacy_value_allow_chat_participants.py +72 -0
  2253. pyrogram/raw/types/input_privacy_value_allow_close_friends.py +67 -0
  2254. pyrogram/raw/types/input_privacy_value_allow_contacts.py +67 -0
  2255. pyrogram/raw/types/input_privacy_value_allow_premium.py +67 -0
  2256. pyrogram/raw/types/input_privacy_value_allow_users.py +72 -0
  2257. pyrogram/raw/types/input_privacy_value_disallow_all.py +67 -0
  2258. pyrogram/raw/types/input_privacy_value_disallow_bots.py +67 -0
  2259. pyrogram/raw/types/input_privacy_value_disallow_chat_participants.py +72 -0
  2260. pyrogram/raw/types/input_privacy_value_disallow_contacts.py +67 -0
  2261. pyrogram/raw/types/input_privacy_value_disallow_users.py +72 -0
  2262. pyrogram/raw/types/input_quick_reply_shortcut.py +72 -0
  2263. pyrogram/raw/types/input_quick_reply_shortcut_id.py +72 -0
  2264. pyrogram/raw/types/input_reply_to_message.py +140 -0
  2265. pyrogram/raw/types/input_reply_to_mono_forum.py +72 -0
  2266. pyrogram/raw/types/input_reply_to_story.py +80 -0
  2267. pyrogram/raw/types/input_report_reason_child_abuse.py +67 -0
  2268. pyrogram/raw/types/input_report_reason_copyright.py +67 -0
  2269. pyrogram/raw/types/input_report_reason_fake.py +67 -0
  2270. pyrogram/raw/types/input_report_reason_geo_irrelevant.py +67 -0
  2271. pyrogram/raw/types/input_report_reason_illegal_drugs.py +67 -0
  2272. pyrogram/raw/types/input_report_reason_other.py +67 -0
  2273. pyrogram/raw/types/input_report_reason_personal_details.py +67 -0
  2274. pyrogram/raw/types/input_report_reason_pornography.py +67 -0
  2275. pyrogram/raw/types/input_report_reason_spam.py +67 -0
  2276. pyrogram/raw/types/input_report_reason_violence.py +67 -0
  2277. pyrogram/raw/types/input_saved_star_gift_chat.py +80 -0
  2278. pyrogram/raw/types/input_saved_star_gift_slug.py +72 -0
  2279. pyrogram/raw/types/input_saved_star_gift_user.py +72 -0
  2280. pyrogram/raw/types/input_secure_file.py +80 -0
  2281. pyrogram/raw/types/input_secure_file_location.py +80 -0
  2282. pyrogram/raw/types/input_secure_file_uploaded.py +104 -0
  2283. pyrogram/raw/types/input_secure_value.py +144 -0
  2284. pyrogram/raw/types/input_single_media.py +100 -0
  2285. pyrogram/raw/types/input_stars_transaction.py +80 -0
  2286. pyrogram/raw/types/input_sticker_set_animated_emoji.py +67 -0
  2287. pyrogram/raw/types/input_sticker_set_animated_emoji_animations.py +67 -0
  2288. pyrogram/raw/types/input_sticker_set_dice.py +72 -0
  2289. pyrogram/raw/types/input_sticker_set_emoji_channel_default_statuses.py +67 -0
  2290. pyrogram/raw/types/input_sticker_set_emoji_default_statuses.py +67 -0
  2291. pyrogram/raw/types/input_sticker_set_emoji_default_topic_icons.py +67 -0
  2292. pyrogram/raw/types/input_sticker_set_emoji_generic_animations.py +67 -0
  2293. pyrogram/raw/types/input_sticker_set_empty.py +67 -0
  2294. pyrogram/raw/types/input_sticker_set_id.py +80 -0
  2295. pyrogram/raw/types/input_sticker_set_item.py +101 -0
  2296. pyrogram/raw/types/input_sticker_set_premium_gifts.py +67 -0
  2297. pyrogram/raw/types/input_sticker_set_short_name.py +72 -0
  2298. pyrogram/raw/types/input_sticker_set_thumb.py +80 -0
  2299. pyrogram/raw/types/input_sticker_set_ton_gifts.py +67 -0
  2300. pyrogram/raw/types/input_stickered_media_document.py +72 -0
  2301. pyrogram/raw/types/input_stickered_media_photo.py +72 -0
  2302. pyrogram/raw/types/input_store_payment_auth_code.py +104 -0
  2303. pyrogram/raw/types/input_store_payment_gift_premium.py +88 -0
  2304. pyrogram/raw/types/input_store_payment_premium_gift_code.py +110 -0
  2305. pyrogram/raw/types/input_store_payment_premium_giveaway.py +147 -0
  2306. pyrogram/raw/types/input_store_payment_premium_subscription.py +78 -0
  2307. pyrogram/raw/types/input_store_payment_stars_gift.py +96 -0
  2308. pyrogram/raw/types/input_store_payment_stars_giveaway.py +163 -0
  2309. pyrogram/raw/types/input_store_payment_stars_topup.py +100 -0
  2310. pyrogram/raw/types/input_takeout_file_location.py +67 -0
  2311. pyrogram/raw/types/input_theme.py +80 -0
  2312. pyrogram/raw/types/input_theme_settings.py +127 -0
  2313. pyrogram/raw/types/input_theme_slug.py +72 -0
  2314. pyrogram/raw/types/input_user.py +80 -0
  2315. pyrogram/raw/types/input_user_empty.py +67 -0
  2316. pyrogram/raw/types/input_user_from_message.py +88 -0
  2317. pyrogram/raw/types/input_user_self.py +67 -0
  2318. pyrogram/raw/types/input_wall_paper.py +80 -0
  2319. pyrogram/raw/types/input_wall_paper_no_file.py +72 -0
  2320. pyrogram/raw/types/input_wall_paper_slug.py +72 -0
  2321. pyrogram/raw/types/input_web_document.py +96 -0
  2322. pyrogram/raw/types/input_web_file_audio_album_thumb_location.py +100 -0
  2323. pyrogram/raw/types/input_web_file_geo_point_location.py +112 -0
  2324. pyrogram/raw/types/input_web_file_location.py +80 -0
  2325. pyrogram/raw/types/invoice.py +173 -0
  2326. pyrogram/raw/types/ip_port.py +80 -0
  2327. pyrogram/raw/types/ip_port_secret.py +88 -0
  2328. pyrogram/raw/types/json_array.py +72 -0
  2329. pyrogram/raw/types/json_bool.py +72 -0
  2330. pyrogram/raw/types/json_null.py +67 -0
  2331. pyrogram/raw/types/json_number.py +72 -0
  2332. pyrogram/raw/types/json_object.py +72 -0
  2333. pyrogram/raw/types/json_object_value.py +80 -0
  2334. pyrogram/raw/types/json_string.py +72 -0
  2335. pyrogram/raw/types/keyboard_button.py +72 -0
  2336. pyrogram/raw/types/keyboard_button_buy.py +72 -0
  2337. pyrogram/raw/types/keyboard_button_callback.py +88 -0
  2338. pyrogram/raw/types/keyboard_button_copy.py +80 -0
  2339. pyrogram/raw/types/keyboard_button_game.py +72 -0
  2340. pyrogram/raw/types/keyboard_button_request_geo_location.py +72 -0
  2341. pyrogram/raw/types/keyboard_button_request_peer.py +96 -0
  2342. pyrogram/raw/types/keyboard_button_request_phone.py +72 -0
  2343. pyrogram/raw/types/keyboard_button_request_poll.py +83 -0
  2344. pyrogram/raw/types/keyboard_button_row.py +72 -0
  2345. pyrogram/raw/types/keyboard_button_simple_web_view.py +80 -0
  2346. pyrogram/raw/types/keyboard_button_switch_inline.py +98 -0
  2347. pyrogram/raw/types/keyboard_button_url.py +80 -0
  2348. pyrogram/raw/types/keyboard_button_url_auth.py +99 -0
  2349. pyrogram/raw/types/keyboard_button_user_profile.py +80 -0
  2350. pyrogram/raw/types/keyboard_button_web_view.py +80 -0
  2351. pyrogram/raw/types/labeled_price.py +80 -0
  2352. pyrogram/raw/types/lang_pack_difference.py +106 -0
  2353. pyrogram/raw/types/lang_pack_language.py +159 -0
  2354. pyrogram/raw/types/lang_pack_string.py +89 -0
  2355. pyrogram/raw/types/lang_pack_string_deleted.py +81 -0
  2356. pyrogram/raw/types/lang_pack_string_pluralized.py +136 -0
  2357. pyrogram/raw/types/mask_coords.py +96 -0
  2358. pyrogram/raw/types/media_area_channel_post.py +88 -0
  2359. pyrogram/raw/types/media_area_coordinates.py +115 -0
  2360. pyrogram/raw/types/media_area_geo_point.py +92 -0
  2361. pyrogram/raw/types/media_area_star_gift.py +80 -0
  2362. pyrogram/raw/types/media_area_suggested_reaction.py +94 -0
  2363. pyrogram/raw/types/media_area_url.py +80 -0
  2364. pyrogram/raw/types/media_area_venue.py +120 -0
  2365. pyrogram/raw/types/media_area_weather.py +96 -0
  2366. pyrogram/raw/types/message.py +429 -0
  2367. pyrogram/raw/types/message_action_boost_apply.py +72 -0
  2368. pyrogram/raw/types/message_action_bot_allowed.py +97 -0
  2369. pyrogram/raw/types/message_action_channel_create.py +72 -0
  2370. pyrogram/raw/types/message_action_channel_migrate_from.py +80 -0
  2371. pyrogram/raw/types/message_action_chat_add_user.py +72 -0
  2372. pyrogram/raw/types/message_action_chat_create.py +80 -0
  2373. pyrogram/raw/types/message_action_chat_delete_photo.py +67 -0
  2374. pyrogram/raw/types/message_action_chat_delete_user.py +72 -0
  2375. pyrogram/raw/types/message_action_chat_edit_photo.py +72 -0
  2376. pyrogram/raw/types/message_action_chat_edit_title.py +72 -0
  2377. pyrogram/raw/types/message_action_chat_joined_by_link.py +72 -0
  2378. pyrogram/raw/types/message_action_chat_joined_by_request.py +67 -0
  2379. pyrogram/raw/types/message_action_chat_migrate_to.py +72 -0
  2380. pyrogram/raw/types/message_action_conference_call.py +111 -0
  2381. pyrogram/raw/types/message_action_contact_sign_up.py +67 -0
  2382. pyrogram/raw/types/message_action_created_broadcast_list.py +67 -0
  2383. pyrogram/raw/types/message_action_custom_action.py +72 -0
  2384. pyrogram/raw/types/message_action_empty.py +67 -0
  2385. pyrogram/raw/types/message_action_game_score.py +80 -0
  2386. pyrogram/raw/types/message_action_geo_proximity_reached.py +88 -0
  2387. pyrogram/raw/types/message_action_gift_code.py +150 -0
  2388. pyrogram/raw/types/message_action_gift_premium.py +118 -0
  2389. pyrogram/raw/types/message_action_gift_stars.py +117 -0
  2390. pyrogram/raw/types/message_action_gift_ton.py +107 -0
  2391. pyrogram/raw/types/message_action_giveaway_launch.py +75 -0
  2392. pyrogram/raw/types/message_action_giveaway_results.py +88 -0
  2393. pyrogram/raw/types/message_action_group_call.py +83 -0
  2394. pyrogram/raw/types/message_action_group_call_scheduled.py +80 -0
  2395. pyrogram/raw/types/message_action_history_clear.py +67 -0
  2396. pyrogram/raw/types/message_action_invite_to_group_call.py +80 -0
  2397. pyrogram/raw/types/message_action_login_unknown_location.py +80 -0
  2398. pyrogram/raw/types/message_action_paid_messages_price.py +80 -0
  2399. pyrogram/raw/types/message_action_paid_messages_refunded.py +80 -0
  2400. pyrogram/raw/types/message_action_payment_refunded.py +107 -0
  2401. pyrogram/raw/types/message_action_payment_sent.py +112 -0
  2402. pyrogram/raw/types/message_action_payment_sent_me.py +138 -0
  2403. pyrogram/raw/types/message_action_phone_call.py +99 -0
  2404. pyrogram/raw/types/message_action_phone_number_request.py +67 -0
  2405. pyrogram/raw/types/message_action_pin_message.py +67 -0
  2406. pyrogram/raw/types/message_action_prize_stars.py +104 -0
  2407. pyrogram/raw/types/message_action_requested_peer.py +80 -0
  2408. pyrogram/raw/types/message_action_requested_peer_sent_me.py +80 -0
  2409. pyrogram/raw/types/message_action_screenshot_taken.py +67 -0
  2410. pyrogram/raw/types/message_action_secure_values_sent.py +72 -0
  2411. pyrogram/raw/types/message_action_secure_values_sent_me.py +80 -0
  2412. pyrogram/raw/types/message_action_set_chat_theme.py +72 -0
  2413. pyrogram/raw/types/message_action_set_chat_wall_paper.py +86 -0
  2414. pyrogram/raw/types/message_action_set_messages_ttl.py +83 -0
  2415. pyrogram/raw/types/message_action_star_gift.py +212 -0
  2416. pyrogram/raw/types/message_action_star_gift_unique.py +194 -0
  2417. pyrogram/raw/types/message_action_suggest_birthday.py +72 -0
  2418. pyrogram/raw/types/message_action_suggest_profile_photo.py +72 -0
  2419. pyrogram/raw/types/message_action_suggested_post_approval.py +106 -0
  2420. pyrogram/raw/types/message_action_suggested_post_refund.py +72 -0
  2421. pyrogram/raw/types/message_action_suggested_post_success.py +72 -0
  2422. pyrogram/raw/types/message_action_todo_append_tasks.py +72 -0
  2423. pyrogram/raw/types/message_action_todo_completions.py +80 -0
  2424. pyrogram/raw/types/message_action_topic_create.py +97 -0
  2425. pyrogram/raw/types/message_action_topic_edit.py +102 -0
  2426. pyrogram/raw/types/message_action_ttl_change.py +72 -0
  2427. pyrogram/raw/types/message_action_user_joined.py +67 -0
  2428. pyrogram/raw/types/message_action_user_updated_photo.py +72 -0
  2429. pyrogram/raw/types/message_action_web_view_data_sent.py +72 -0
  2430. pyrogram/raw/types/message_action_web_view_data_sent_me.py +80 -0
  2431. pyrogram/raw/types/message_empty.py +84 -0
  2432. pyrogram/raw/types/message_entity_bank_card.py +80 -0
  2433. pyrogram/raw/types/message_entity_blockquote.py +88 -0
  2434. pyrogram/raw/types/message_entity_bold.py +80 -0
  2435. pyrogram/raw/types/message_entity_bot_command.py +80 -0
  2436. pyrogram/raw/types/message_entity_cashtag.py +80 -0
  2437. pyrogram/raw/types/message_entity_code.py +80 -0
  2438. pyrogram/raw/types/message_entity_custom_emoji.py +89 -0
  2439. pyrogram/raw/types/message_entity_email.py +80 -0
  2440. pyrogram/raw/types/message_entity_hashtag.py +80 -0
  2441. pyrogram/raw/types/message_entity_italic.py +80 -0
  2442. pyrogram/raw/types/message_entity_mention.py +80 -0
  2443. pyrogram/raw/types/message_entity_mention_name.py +88 -0
  2444. pyrogram/raw/types/message_entity_phone.py +80 -0
  2445. pyrogram/raw/types/message_entity_pre.py +88 -0
  2446. pyrogram/raw/types/message_entity_spoiler.py +80 -0
  2447. pyrogram/raw/types/message_entity_strike.py +80 -0
  2448. pyrogram/raw/types/message_entity_text_url.py +88 -0
  2449. pyrogram/raw/types/message_entity_underline.py +80 -0
  2450. pyrogram/raw/types/message_entity_unknown.py +80 -0
  2451. pyrogram/raw/types/message_entity_url.py +80 -0
  2452. pyrogram/raw/types/message_extended_media.py +72 -0
  2453. pyrogram/raw/types/message_extended_media_preview.py +103 -0
  2454. pyrogram/raw/types/message_fwd_header.py +179 -0
  2455. pyrogram/raw/types/message_media_contact.py +114 -0
  2456. pyrogram/raw/types/message_media_dice.py +90 -0
  2457. pyrogram/raw/types/message_media_document.py +154 -0
  2458. pyrogram/raw/types/message_media_empty.py +77 -0
  2459. pyrogram/raw/types/message_media_game.py +82 -0
  2460. pyrogram/raw/types/message_media_geo.py +82 -0
  2461. pyrogram/raw/types/message_media_geo_live.py +110 -0
  2462. pyrogram/raw/types/message_media_giveaway.py +149 -0
  2463. pyrogram/raw/types/message_media_giveaway_results.py +172 -0
  2464. pyrogram/raw/types/message_media_invoice.py +157 -0
  2465. pyrogram/raw/types/message_media_paid_media.py +90 -0
  2466. pyrogram/raw/types/message_media_photo.py +101 -0
  2467. pyrogram/raw/types/message_media_poll.py +90 -0
  2468. pyrogram/raw/types/message_media_story.py +108 -0
  2469. pyrogram/raw/types/message_media_to_do.py +94 -0
  2470. pyrogram/raw/types/message_media_unsupported.py +77 -0
  2471. pyrogram/raw/types/message_media_venue.py +122 -0
  2472. pyrogram/raw/types/message_media_web_page.py +108 -0
  2473. pyrogram/raw/types/message_peer_reaction.py +108 -0
  2474. pyrogram/raw/types/message_peer_vote.py +88 -0
  2475. pyrogram/raw/types/message_peer_vote_input_option.py +80 -0
  2476. pyrogram/raw/types/message_peer_vote_multiple.py +88 -0
  2477. pyrogram/raw/types/message_range.py +89 -0
  2478. pyrogram/raw/types/message_reactions.py +112 -0
  2479. pyrogram/raw/types/message_reactor.py +102 -0
  2480. pyrogram/raw/types/message_replies.py +125 -0
  2481. pyrogram/raw/types/message_reply_header.py +169 -0
  2482. pyrogram/raw/types/message_reply_story_header.py +80 -0
  2483. pyrogram/raw/types/message_report_option.py +80 -0
  2484. pyrogram/raw/types/message_service.py +189 -0
  2485. pyrogram/raw/types/message_views.py +94 -0
  2486. pyrogram/raw/types/messages/__init__.py +114 -0
  2487. pyrogram/raw/types/messages/affected_found_messages.py +105 -0
  2488. pyrogram/raw/types/messages/affected_history.py +104 -0
  2489. pyrogram/raw/types/messages/affected_messages.py +92 -0
  2490. pyrogram/raw/types/messages/all_stickers.py +91 -0
  2491. pyrogram/raw/types/messages/all_stickers_not_modified.py +78 -0
  2492. pyrogram/raw/types/messages/archived_stickers.py +89 -0
  2493. pyrogram/raw/types/messages/available_effects.py +97 -0
  2494. pyrogram/raw/types/messages/available_effects_not_modified.py +76 -0
  2495. pyrogram/raw/types/messages/available_reactions.py +89 -0
  2496. pyrogram/raw/types/messages/available_reactions_not_modified.py +76 -0
  2497. pyrogram/raw/types/messages/bot_app.py +101 -0
  2498. pyrogram/raw/types/messages/bot_callback_answer.py +119 -0
  2499. pyrogram/raw/types/messages/bot_prepared_inline_message.py +89 -0
  2500. pyrogram/raw/types/messages/bot_results.py +142 -0
  2501. pyrogram/raw/types/messages/channel_messages.py +152 -0
  2502. pyrogram/raw/types/messages/chat_admins_with_invites.py +89 -0
  2503. pyrogram/raw/types/messages/chat_full.py +98 -0
  2504. pyrogram/raw/types/messages/chat_invite_importers.py +97 -0
  2505. pyrogram/raw/types/messages/chats.py +89 -0
  2506. pyrogram/raw/types/messages/chats_slice.py +97 -0
  2507. pyrogram/raw/types/messages/checked_history_import_peer.py +81 -0
  2508. pyrogram/raw/types/messages/dh_config.py +105 -0
  2509. pyrogram/raw/types/messages/dh_config_not_modified.py +81 -0
  2510. pyrogram/raw/types/messages/dialog_filters.py +89 -0
  2511. pyrogram/raw/types/messages/dialogs.py +105 -0
  2512. pyrogram/raw/types/messages/dialogs_not_modified.py +81 -0
  2513. pyrogram/raw/types/messages/dialogs_slice.py +113 -0
  2514. pyrogram/raw/types/messages/discussion_message.py +134 -0
  2515. pyrogram/raw/types/messages/emoji_groups.py +92 -0
  2516. pyrogram/raw/types/messages/emoji_groups_not_modified.py +79 -0
  2517. pyrogram/raw/types/messages/exported_chat_invite.py +90 -0
  2518. pyrogram/raw/types/messages/exported_chat_invite_replaced.py +98 -0
  2519. pyrogram/raw/types/messages/exported_chat_invites.py +97 -0
  2520. pyrogram/raw/types/messages/faved_stickers.py +97 -0
  2521. pyrogram/raw/types/messages/faved_stickers_not_modified.py +76 -0
  2522. pyrogram/raw/types/messages/featured_stickers.py +115 -0
  2523. pyrogram/raw/types/messages/featured_stickers_not_modified.py +83 -0
  2524. pyrogram/raw/types/messages/forum_topics.py +132 -0
  2525. pyrogram/raw/types/messages/found_sticker_sets.py +90 -0
  2526. pyrogram/raw/types/messages/found_sticker_sets_not_modified.py +77 -0
  2527. pyrogram/raw/types/messages/found_stickers.py +100 -0
  2528. pyrogram/raw/types/messages/found_stickers_not_modified.py +84 -0
  2529. pyrogram/raw/types/messages/high_scores.py +90 -0
  2530. pyrogram/raw/types/messages/history_import.py +81 -0
  2531. pyrogram/raw/types/messages/history_import_parsed.py +97 -0
  2532. pyrogram/raw/types/messages/inactive_chats.py +97 -0
  2533. pyrogram/raw/types/messages/invited_users.py +91 -0
  2534. pyrogram/raw/types/messages/message_edit_data.py +81 -0
  2535. pyrogram/raw/types/messages/message_empty.py +67 -0
  2536. pyrogram/raw/types/messages/message_reactions_list.py +116 -0
  2537. pyrogram/raw/types/messages/message_views.py +97 -0
  2538. pyrogram/raw/types/messages/messages.py +119 -0
  2539. pyrogram/raw/types/messages/messages_not_modified.py +95 -0
  2540. pyrogram/raw/types/messages/messages_slice.py +163 -0
  2541. pyrogram/raw/types/messages/my_stickers.py +89 -0
  2542. pyrogram/raw/types/messages/peer_dialogs.py +114 -0
  2543. pyrogram/raw/types/messages/peer_settings.py +97 -0
  2544. pyrogram/raw/types/messages/prepared_inline_message.py +113 -0
  2545. pyrogram/raw/types/messages/quick_replies.py +105 -0
  2546. pyrogram/raw/types/messages/quick_replies_not_modified.py +76 -0
  2547. pyrogram/raw/types/messages/reactions.py +91 -0
  2548. pyrogram/raw/types/messages/reactions_not_modified.py +78 -0
  2549. pyrogram/raw/types/messages/recent_stickers.py +105 -0
  2550. pyrogram/raw/types/messages/recent_stickers_not_modified.py +76 -0
  2551. pyrogram/raw/types/messages/saved_dialogs.py +107 -0
  2552. pyrogram/raw/types/messages/saved_dialogs_not_modified.py +83 -0
  2553. pyrogram/raw/types/messages/saved_dialogs_slice.py +115 -0
  2554. pyrogram/raw/types/messages/saved_gifs.py +89 -0
  2555. pyrogram/raw/types/messages/saved_gifs_not_modified.py +76 -0
  2556. pyrogram/raw/types/messages/saved_reaction_tags.py +89 -0
  2557. pyrogram/raw/types/messages/saved_reaction_tags_not_modified.py +76 -0
  2558. pyrogram/raw/types/messages/search_counter.py +97 -0
  2559. pyrogram/raw/types/messages/search_results_calendar.py +146 -0
  2560. pyrogram/raw/types/messages/search_results_positions.py +89 -0
  2561. pyrogram/raw/types/messages/sent_encrypted_file.py +91 -0
  2562. pyrogram/raw/types/messages/sent_encrypted_message.py +83 -0
  2563. pyrogram/raw/types/messages/sponsored_messages.py +126 -0
  2564. pyrogram/raw/types/messages/sponsored_messages_empty.py +76 -0
  2565. pyrogram/raw/types/messages/sticker_set.py +113 -0
  2566. pyrogram/raw/types/messages/sticker_set_install_result_archive.py +81 -0
  2567. pyrogram/raw/types/messages/sticker_set_install_result_success.py +76 -0
  2568. pyrogram/raw/types/messages/sticker_set_not_modified.py +84 -0
  2569. pyrogram/raw/types/messages/stickers.py +89 -0
  2570. pyrogram/raw/types/messages/stickers_not_modified.py +76 -0
  2571. pyrogram/raw/types/messages/transcribed_audio.py +115 -0
  2572. pyrogram/raw/types/messages/translate_result.py +81 -0
  2573. pyrogram/raw/types/messages/votes_list.py +116 -0
  2574. pyrogram/raw/types/messages/web_page.py +97 -0
  2575. pyrogram/raw/types/messages/web_page_preview.py +97 -0
  2576. pyrogram/raw/types/messages/web_view_result.py +89 -0
  2577. pyrogram/raw/types/missing_invitee.py +86 -0
  2578. pyrogram/raw/types/mono_forum_dialog.py +136 -0
  2579. pyrogram/raw/types/msg_detailed_info.py +96 -0
  2580. pyrogram/raw/types/msg_new_detailed_info.py +88 -0
  2581. pyrogram/raw/types/msg_resend_ans_req.py +72 -0
  2582. pyrogram/raw/types/msg_resend_req.py +72 -0
  2583. pyrogram/raw/types/msgs_ack.py +72 -0
  2584. pyrogram/raw/types/msgs_all_info.py +80 -0
  2585. pyrogram/raw/types/msgs_state_info.py +80 -0
  2586. pyrogram/raw/types/msgs_state_req.py +72 -0
  2587. pyrogram/raw/types/my_boost.py +109 -0
  2588. pyrogram/raw/types/nearest_dc.py +97 -0
  2589. pyrogram/raw/types/new_session_created.py +88 -0
  2590. pyrogram/raw/types/notification_sound_default.py +67 -0
  2591. pyrogram/raw/types/notification_sound_local.py +80 -0
  2592. pyrogram/raw/types/notification_sound_none.py +67 -0
  2593. pyrogram/raw/types/notification_sound_ringtone.py +72 -0
  2594. pyrogram/raw/types/notify_broadcasts.py +67 -0
  2595. pyrogram/raw/types/notify_chats.py +67 -0
  2596. pyrogram/raw/types/notify_forum_topic.py +80 -0
  2597. pyrogram/raw/types/notify_peer.py +72 -0
  2598. pyrogram/raw/types/notify_users.py +67 -0
  2599. pyrogram/raw/types/outbox_read_date.py +81 -0
  2600. pyrogram/raw/types/page.py +125 -0
  2601. pyrogram/raw/types/page_block_anchor.py +72 -0
  2602. pyrogram/raw/types/page_block_audio.py +80 -0
  2603. pyrogram/raw/types/page_block_author_date.py +80 -0
  2604. pyrogram/raw/types/page_block_blockquote.py +80 -0
  2605. pyrogram/raw/types/page_block_channel.py +72 -0
  2606. pyrogram/raw/types/page_block_collage.py +80 -0
  2607. pyrogram/raw/types/page_block_cover.py +72 -0
  2608. pyrogram/raw/types/page_block_details.py +88 -0
  2609. pyrogram/raw/types/page_block_divider.py +67 -0
  2610. pyrogram/raw/types/page_block_embed.py +131 -0
  2611. pyrogram/raw/types/page_block_embed_post.py +120 -0
  2612. pyrogram/raw/types/page_block_footer.py +72 -0
  2613. pyrogram/raw/types/page_block_header.py +72 -0
  2614. pyrogram/raw/types/page_block_kicker.py +72 -0
  2615. pyrogram/raw/types/page_block_list.py +72 -0
  2616. pyrogram/raw/types/page_block_map.py +104 -0
  2617. pyrogram/raw/types/page_block_ordered_list.py +72 -0
  2618. pyrogram/raw/types/page_block_paragraph.py +72 -0
  2619. pyrogram/raw/types/page_block_photo.py +100 -0
  2620. pyrogram/raw/types/page_block_preformatted.py +80 -0
  2621. pyrogram/raw/types/page_block_pullquote.py +80 -0
  2622. pyrogram/raw/types/page_block_related_articles.py +80 -0
  2623. pyrogram/raw/types/page_block_slideshow.py +80 -0
  2624. pyrogram/raw/types/page_block_subheader.py +72 -0
  2625. pyrogram/raw/types/page_block_subtitle.py +72 -0
  2626. pyrogram/raw/types/page_block_table.py +94 -0
  2627. pyrogram/raw/types/page_block_title.py +72 -0
  2628. pyrogram/raw/types/page_block_unsupported.py +67 -0
  2629. pyrogram/raw/types/page_block_video.py +94 -0
  2630. pyrogram/raw/types/page_caption.py +80 -0
  2631. pyrogram/raw/types/page_list_item_blocks.py +72 -0
  2632. pyrogram/raw/types/page_list_item_text.py +72 -0
  2633. pyrogram/raw/types/page_list_ordered_item_blocks.py +80 -0
  2634. pyrogram/raw/types/page_list_ordered_item_text.py +80 -0
  2635. pyrogram/raw/types/page_related_article.py +127 -0
  2636. pyrogram/raw/types/page_table_cell.py +124 -0
  2637. pyrogram/raw/types/page_table_row.py +72 -0
  2638. pyrogram/raw/types/paid_reaction_privacy_anonymous.py +67 -0
  2639. pyrogram/raw/types/paid_reaction_privacy_default.py +67 -0
  2640. pyrogram/raw/types/paid_reaction_privacy_peer.py +72 -0
  2641. pyrogram/raw/types/password_kdf_algo_sha256_sha256_pbkdf2_hmacsha512iter100000_sha256_mod_pow.py +96 -0
  2642. pyrogram/raw/types/password_kdf_algo_unknown.py +67 -0
  2643. pyrogram/raw/types/payment_charge.py +80 -0
  2644. pyrogram/raw/types/payment_form_method.py +80 -0
  2645. pyrogram/raw/types/payment_requested_info.py +103 -0
  2646. pyrogram/raw/types/payment_saved_credentials_card.py +80 -0
  2647. pyrogram/raw/types/payments/__init__.py +56 -0
  2648. pyrogram/raw/types/payments/bank_card_data.py +89 -0
  2649. pyrogram/raw/types/payments/check_can_send_gift_result_fail.py +81 -0
  2650. pyrogram/raw/types/payments/check_can_send_gift_result_ok.py +76 -0
  2651. pyrogram/raw/types/payments/checked_gift_code.py +150 -0
  2652. pyrogram/raw/types/payments/connected_star_ref_bots.py +100 -0
  2653. pyrogram/raw/types/payments/exported_invoice.py +81 -0
  2654. pyrogram/raw/types/payments/giveaway_info.py +122 -0
  2655. pyrogram/raw/types/payments/giveaway_info_results.py +138 -0
  2656. pyrogram/raw/types/payments/payment_form.py +210 -0
  2657. pyrogram/raw/types/payments/payment_form_star_gift.py +89 -0
  2658. pyrogram/raw/types/payments/payment_form_stars.py +145 -0
  2659. pyrogram/raw/types/payments/payment_receipt.py +194 -0
  2660. pyrogram/raw/types/payments/payment_receipt_stars.py +157 -0
  2661. pyrogram/raw/types/payments/payment_result.py +82 -0
  2662. pyrogram/raw/types/payments/payment_verification_needed.py +82 -0
  2663. pyrogram/raw/types/payments/resale_star_gifts.py +145 -0
  2664. pyrogram/raw/types/payments/saved_info.py +91 -0
  2665. pyrogram/raw/types/payments/saved_star_gifts.py +126 -0
  2666. pyrogram/raw/types/payments/star_gift_collections.py +81 -0
  2667. pyrogram/raw/types/payments/star_gift_collections_not_modified.py +76 -0
  2668. pyrogram/raw/types/payments/star_gift_upgrade_preview.py +81 -0
  2669. pyrogram/raw/types/payments/star_gift_withdrawal_url.py +81 -0
  2670. pyrogram/raw/types/payments/star_gifts.py +105 -0
  2671. pyrogram/raw/types/payments/star_gifts_not_modified.py +76 -0
  2672. pyrogram/raw/types/payments/stars_revenue_ads_account_url.py +81 -0
  2673. pyrogram/raw/types/payments/stars_revenue_stats.py +109 -0
  2674. pyrogram/raw/types/payments/stars_revenue_withdrawal_url.py +81 -0
  2675. pyrogram/raw/types/payments/stars_status.py +149 -0
  2676. pyrogram/raw/types/payments/suggested_star_ref_bots.py +108 -0
  2677. pyrogram/raw/types/payments/unique_star_gift.py +97 -0
  2678. pyrogram/raw/types/payments/unique_star_gift_value_info.py +190 -0
  2679. pyrogram/raw/types/payments/validated_requested_info.py +94 -0
  2680. pyrogram/raw/types/peer_blocked.py +80 -0
  2681. pyrogram/raw/types/peer_channel.py +81 -0
  2682. pyrogram/raw/types/peer_chat.py +81 -0
  2683. pyrogram/raw/types/peer_color.py +84 -0
  2684. pyrogram/raw/types/peer_color_collectible.py +125 -0
  2685. pyrogram/raw/types/peer_located.py +88 -0
  2686. pyrogram/raw/types/peer_notify_settings.py +180 -0
  2687. pyrogram/raw/types/peer_self_located.py +72 -0
  2688. pyrogram/raw/types/peer_settings.py +222 -0
  2689. pyrogram/raw/types/peer_stories.py +91 -0
  2690. pyrogram/raw/types/peer_user.py +81 -0
  2691. pyrogram/raw/types/pending_suggestion.py +96 -0
  2692. pyrogram/raw/types/phone/__init__.py +31 -0
  2693. pyrogram/raw/types/phone/exported_group_call_invite.py +81 -0
  2694. pyrogram/raw/types/phone/group_call.py +113 -0
  2695. pyrogram/raw/types/phone/group_call_stream_channels.py +81 -0
  2696. pyrogram/raw/types/phone/group_call_stream_rtmp_url.py +89 -0
  2697. pyrogram/raw/types/phone/group_participants.py +121 -0
  2698. pyrogram/raw/types/phone/join_as_peers.py +97 -0
  2699. pyrogram/raw/types/phone/phone_call.py +91 -0
  2700. pyrogram/raw/types/phone_call.py +174 -0
  2701. pyrogram/raw/types/phone_call_accepted.py +128 -0
  2702. pyrogram/raw/types/phone_call_discard_reason_busy.py +67 -0
  2703. pyrogram/raw/types/phone_call_discard_reason_disconnect.py +67 -0
  2704. pyrogram/raw/types/phone_call_discard_reason_hangup.py +67 -0
  2705. pyrogram/raw/types/phone_call_discard_reason_migrate_conference_call.py +72 -0
  2706. pyrogram/raw/types/phone_call_discard_reason_missed.py +67 -0
  2707. pyrogram/raw/types/phone_call_discarded.py +111 -0
  2708. pyrogram/raw/types/phone_call_empty.py +72 -0
  2709. pyrogram/raw/types/phone_call_protocol.py +102 -0
  2710. pyrogram/raw/types/phone_call_requested.py +128 -0
  2711. pyrogram/raw/types/phone_call_waiting.py +129 -0
  2712. pyrogram/raw/types/phone_connection.py +112 -0
  2713. pyrogram/raw/types/phone_connection_webrtc.py +126 -0
  2714. pyrogram/raw/types/photo.py +130 -0
  2715. pyrogram/raw/types/photo_cached_size.py +96 -0
  2716. pyrogram/raw/types/photo_empty.py +72 -0
  2717. pyrogram/raw/types/photo_path_size.py +80 -0
  2718. pyrogram/raw/types/photo_size.py +96 -0
  2719. pyrogram/raw/types/photo_size_empty.py +72 -0
  2720. pyrogram/raw/types/photo_size_progressive.py +96 -0
  2721. pyrogram/raw/types/photo_stripped_size.py +80 -0
  2722. pyrogram/raw/types/photos/__init__.py +27 -0
  2723. pyrogram/raw/types/photos/photo.py +91 -0
  2724. pyrogram/raw/types/photos/photos.py +89 -0
  2725. pyrogram/raw/types/photos/photos_slice.py +97 -0
  2726. pyrogram/raw/types/poll.py +132 -0
  2727. pyrogram/raw/types/poll_answer.py +80 -0
  2728. pyrogram/raw/types/poll_answer_voters.py +94 -0
  2729. pyrogram/raw/types/poll_results.py +120 -0
  2730. pyrogram/raw/types/pong.py +90 -0
  2731. pyrogram/raw/types/popular_contact.py +80 -0
  2732. pyrogram/raw/types/post_address.py +112 -0
  2733. pyrogram/raw/types/post_interaction_counters_message.py +96 -0
  2734. pyrogram/raw/types/post_interaction_counters_story.py +96 -0
  2735. pyrogram/raw/types/pq_inner_data.py +112 -0
  2736. pyrogram/raw/types/pq_inner_data_dc.py +120 -0
  2737. pyrogram/raw/types/pq_inner_data_temp.py +120 -0
  2738. pyrogram/raw/types/pq_inner_data_temp_dc.py +128 -0
  2739. pyrogram/raw/types/premium/__init__.py +27 -0
  2740. pyrogram/raw/types/premium/boosts_list.py +109 -0
  2741. pyrogram/raw/types/premium/boosts_status.py +161 -0
  2742. pyrogram/raw/types/premium/my_boosts.py +98 -0
  2743. pyrogram/raw/types/premium_gift_code_option.py +125 -0
  2744. pyrogram/raw/types/premium_gift_option.py +108 -0
  2745. pyrogram/raw/types/premium_subscription_option.py +128 -0
  2746. pyrogram/raw/types/prepaid_giveaway.py +96 -0
  2747. pyrogram/raw/types/prepaid_stars_giveaway.py +104 -0
  2748. pyrogram/raw/types/privacy_key_about.py +67 -0
  2749. pyrogram/raw/types/privacy_key_added_by_phone.py +67 -0
  2750. pyrogram/raw/types/privacy_key_birthday.py +67 -0
  2751. pyrogram/raw/types/privacy_key_chat_invite.py +67 -0
  2752. pyrogram/raw/types/privacy_key_forwards.py +67 -0
  2753. pyrogram/raw/types/privacy_key_no_paid_messages.py +67 -0
  2754. pyrogram/raw/types/privacy_key_phone_call.py +67 -0
  2755. pyrogram/raw/types/privacy_key_phone_number.py +67 -0
  2756. pyrogram/raw/types/privacy_key_phone_p2_p.py +67 -0
  2757. pyrogram/raw/types/privacy_key_profile_photo.py +67 -0
  2758. pyrogram/raw/types/privacy_key_star_gifts_auto_save.py +67 -0
  2759. pyrogram/raw/types/privacy_key_status_timestamp.py +67 -0
  2760. pyrogram/raw/types/privacy_key_voice_messages.py +67 -0
  2761. pyrogram/raw/types/privacy_value_allow_all.py +67 -0
  2762. pyrogram/raw/types/privacy_value_allow_bots.py +67 -0
  2763. pyrogram/raw/types/privacy_value_allow_chat_participants.py +72 -0
  2764. pyrogram/raw/types/privacy_value_allow_close_friends.py +67 -0
  2765. pyrogram/raw/types/privacy_value_allow_contacts.py +67 -0
  2766. pyrogram/raw/types/privacy_value_allow_premium.py +67 -0
  2767. pyrogram/raw/types/privacy_value_allow_users.py +72 -0
  2768. pyrogram/raw/types/privacy_value_disallow_all.py +67 -0
  2769. pyrogram/raw/types/privacy_value_disallow_bots.py +67 -0
  2770. pyrogram/raw/types/privacy_value_disallow_chat_participants.py +72 -0
  2771. pyrogram/raw/types/privacy_value_disallow_contacts.py +67 -0
  2772. pyrogram/raw/types/privacy_value_disallow_users.py +72 -0
  2773. pyrogram/raw/types/profile_tab_files.py +67 -0
  2774. pyrogram/raw/types/profile_tab_gifs.py +67 -0
  2775. pyrogram/raw/types/profile_tab_gifts.py +67 -0
  2776. pyrogram/raw/types/profile_tab_links.py +67 -0
  2777. pyrogram/raw/types/profile_tab_media.py +67 -0
  2778. pyrogram/raw/types/profile_tab_music.py +67 -0
  2779. pyrogram/raw/types/profile_tab_posts.py +67 -0
  2780. pyrogram/raw/types/profile_tab_voice.py +67 -0
  2781. pyrogram/raw/types/public_forward_message.py +72 -0
  2782. pyrogram/raw/types/public_forward_story.py +80 -0
  2783. pyrogram/raw/types/quick_reply.py +96 -0
  2784. pyrogram/raw/types/reaction_count.py +91 -0
  2785. pyrogram/raw/types/reaction_custom_emoji.py +72 -0
  2786. pyrogram/raw/types/reaction_emoji.py +72 -0
  2787. pyrogram/raw/types/reaction_empty.py +67 -0
  2788. pyrogram/raw/types/reaction_notifications_from_all.py +67 -0
  2789. pyrogram/raw/types/reaction_notifications_from_contacts.py +67 -0
  2790. pyrogram/raw/types/reaction_paid.py +67 -0
  2791. pyrogram/raw/types/reactions_notify_settings.py +112 -0
  2792. pyrogram/raw/types/read_participant_date.py +89 -0
  2793. pyrogram/raw/types/received_notify_message.py +89 -0
  2794. pyrogram/raw/types/recent_me_url_chat.py +80 -0
  2795. pyrogram/raw/types/recent_me_url_chat_invite.py +80 -0
  2796. pyrogram/raw/types/recent_me_url_sticker_set.py +80 -0
  2797. pyrogram/raw/types/recent_me_url_unknown.py +72 -0
  2798. pyrogram/raw/types/recent_me_url_user.py +80 -0
  2799. pyrogram/raw/types/reply_inline_markup.py +72 -0
  2800. pyrogram/raw/types/reply_keyboard_force_reply.py +87 -0
  2801. pyrogram/raw/types/reply_keyboard_hide.py +72 -0
  2802. pyrogram/raw/types/reply_keyboard_markup.py +107 -0
  2803. pyrogram/raw/types/report_result_add_comment.py +90 -0
  2804. pyrogram/raw/types/report_result_choose_option.py +90 -0
  2805. pyrogram/raw/types/report_result_reported.py +77 -0
  2806. pyrogram/raw/types/request_peer_type_broadcast.py +101 -0
  2807. pyrogram/raw/types/request_peer_type_chat.py +116 -0
  2808. pyrogram/raw/types/request_peer_type_user.py +84 -0
  2809. pyrogram/raw/types/requested_peer_channel.py +102 -0
  2810. pyrogram/raw/types/requested_peer_chat.py +93 -0
  2811. pyrogram/raw/types/requested_peer_user.py +111 -0
  2812. pyrogram/raw/types/requirement_to_contact_empty.py +76 -0
  2813. pyrogram/raw/types/requirement_to_contact_paid_messages.py +81 -0
  2814. pyrogram/raw/types/requirement_to_contact_premium.py +76 -0
  2815. pyrogram/raw/types/res_pq.py +106 -0
  2816. pyrogram/raw/types/restriction_reason.py +88 -0
  2817. pyrogram/raw/types/rpc_answer_dropped.py +97 -0
  2818. pyrogram/raw/types/rpc_answer_dropped_running.py +76 -0
  2819. pyrogram/raw/types/rpc_answer_unknown.py +76 -0
  2820. pyrogram/raw/types/rpc_error.py +80 -0
  2821. pyrogram/raw/types/rpc_result.py +80 -0
  2822. pyrogram/raw/types/saved_dialog.py +88 -0
  2823. pyrogram/raw/types/saved_phone_contact.py +105 -0
  2824. pyrogram/raw/types/saved_reaction_tag.py +91 -0
  2825. pyrogram/raw/types/saved_star_gift.py +238 -0
  2826. pyrogram/raw/types/search_posts_flood.py +114 -0
  2827. pyrogram/raw/types/search_result_position.py +88 -0
  2828. pyrogram/raw/types/search_results_calendar_period.py +96 -0
  2829. pyrogram/raw/types/secure_credentials_encrypted.py +88 -0
  2830. pyrogram/raw/types/secure_data.py +88 -0
  2831. pyrogram/raw/types/secure_file.py +120 -0
  2832. pyrogram/raw/types/secure_file_empty.py +67 -0
  2833. pyrogram/raw/types/secure_password_kdf_algo_pbkdf2_hmacsha512iter100000.py +72 -0
  2834. pyrogram/raw/types/secure_password_kdf_algo_sha512.py +72 -0
  2835. pyrogram/raw/types/secure_password_kdf_algo_unknown.py +67 -0
  2836. pyrogram/raw/types/secure_plain_email.py +72 -0
  2837. pyrogram/raw/types/secure_plain_phone.py +72 -0
  2838. pyrogram/raw/types/secure_required_type.py +92 -0
  2839. pyrogram/raw/types/secure_required_type_one_of.py +72 -0
  2840. pyrogram/raw/types/secure_secret_settings.py +88 -0
  2841. pyrogram/raw/types/secure_value.py +163 -0
  2842. pyrogram/raw/types/secure_value_error.py +88 -0
  2843. pyrogram/raw/types/secure_value_error_data.py +96 -0
  2844. pyrogram/raw/types/secure_value_error_file.py +88 -0
  2845. pyrogram/raw/types/secure_value_error_files.py +88 -0
  2846. pyrogram/raw/types/secure_value_error_front_side.py +88 -0
  2847. pyrogram/raw/types/secure_value_error_reverse_side.py +88 -0
  2848. pyrogram/raw/types/secure_value_error_selfie.py +88 -0
  2849. pyrogram/raw/types/secure_value_error_translation_file.py +88 -0
  2850. pyrogram/raw/types/secure_value_error_translation_files.py +88 -0
  2851. pyrogram/raw/types/secure_value_hash.py +80 -0
  2852. pyrogram/raw/types/secure_value_type_address.py +67 -0
  2853. pyrogram/raw/types/secure_value_type_bank_statement.py +67 -0
  2854. pyrogram/raw/types/secure_value_type_driver_license.py +67 -0
  2855. pyrogram/raw/types/secure_value_type_email.py +67 -0
  2856. pyrogram/raw/types/secure_value_type_identity_card.py +67 -0
  2857. pyrogram/raw/types/secure_value_type_internal_passport.py +67 -0
  2858. pyrogram/raw/types/secure_value_type_passport.py +67 -0
  2859. pyrogram/raw/types/secure_value_type_passport_registration.py +67 -0
  2860. pyrogram/raw/types/secure_value_type_personal_details.py +67 -0
  2861. pyrogram/raw/types/secure_value_type_phone.py +67 -0
  2862. pyrogram/raw/types/secure_value_type_rental_agreement.py +67 -0
  2863. pyrogram/raw/types/secure_value_type_temporary_registration.py +67 -0
  2864. pyrogram/raw/types/secure_value_type_utility_bill.py +67 -0
  2865. pyrogram/raw/types/send_as_peer.py +80 -0
  2866. pyrogram/raw/types/send_message_cancel_action.py +67 -0
  2867. pyrogram/raw/types/send_message_choose_contact_action.py +67 -0
  2868. pyrogram/raw/types/send_message_choose_sticker_action.py +67 -0
  2869. pyrogram/raw/types/send_message_emoji_interaction.py +88 -0
  2870. pyrogram/raw/types/send_message_emoji_interaction_seen.py +72 -0
  2871. pyrogram/raw/types/send_message_game_play_action.py +67 -0
  2872. pyrogram/raw/types/send_message_geo_location_action.py +67 -0
  2873. pyrogram/raw/types/send_message_history_import_action.py +72 -0
  2874. pyrogram/raw/types/send_message_record_audio_action.py +67 -0
  2875. pyrogram/raw/types/send_message_record_round_action.py +67 -0
  2876. pyrogram/raw/types/send_message_record_video_action.py +67 -0
  2877. pyrogram/raw/types/send_message_text_draft_action.py +80 -0
  2878. pyrogram/raw/types/send_message_typing_action.py +67 -0
  2879. pyrogram/raw/types/send_message_upload_audio_action.py +72 -0
  2880. pyrogram/raw/types/send_message_upload_document_action.py +72 -0
  2881. pyrogram/raw/types/send_message_upload_photo_action.py +72 -0
  2882. pyrogram/raw/types/send_message_upload_round_action.py +72 -0
  2883. pyrogram/raw/types/send_message_upload_video_action.py +72 -0
  2884. pyrogram/raw/types/server_dh_inner_data.py +112 -0
  2885. pyrogram/raw/types/server_dh_params_fail.py +97 -0
  2886. pyrogram/raw/types/server_dh_params_ok.py +97 -0
  2887. pyrogram/raw/types/shipping_option.py +88 -0
  2888. pyrogram/raw/types/sms_job.py +97 -0
  2889. pyrogram/raw/types/smsjobs/__init__.py +26 -0
  2890. pyrogram/raw/types/smsjobs/eligible_to_join.py +89 -0
  2891. pyrogram/raw/types/smsjobs/status.py +138 -0
  2892. pyrogram/raw/types/speaking_in_group_call_action.py +67 -0
  2893. pyrogram/raw/types/sponsored_message.py +194 -0
  2894. pyrogram/raw/types/sponsored_message_report_option.py +80 -0
  2895. pyrogram/raw/types/sponsored_peer.py +100 -0
  2896. pyrogram/raw/types/star_gift.py +249 -0
  2897. pyrogram/raw/types/star_gift_attribute_backdrop.py +120 -0
  2898. pyrogram/raw/types/star_gift_attribute_counter.py +80 -0
  2899. pyrogram/raw/types/star_gift_attribute_id_backdrop.py +72 -0
  2900. pyrogram/raw/types/star_gift_attribute_id_model.py +72 -0
  2901. pyrogram/raw/types/star_gift_attribute_id_pattern.py +72 -0
  2902. pyrogram/raw/types/star_gift_attribute_model.py +88 -0
  2903. pyrogram/raw/types/star_gift_attribute_original_details.py +102 -0
  2904. pyrogram/raw/types/star_gift_attribute_pattern.py +88 -0
  2905. pyrogram/raw/types/star_gift_collection.py +118 -0
  2906. pyrogram/raw/types/star_gift_unique.py +253 -0
  2907. pyrogram/raw/types/star_gift_upgrade_preview.py +88 -0
  2908. pyrogram/raw/types/star_gift_upgrade_price.py +80 -0
  2909. pyrogram/raw/types/star_ref_program.py +119 -0
  2910. pyrogram/raw/types/stars_amount.py +80 -0
  2911. pyrogram/raw/types/stars_gift_option.py +114 -0
  2912. pyrogram/raw/types/stars_giveaway_option.py +136 -0
  2913. pyrogram/raw/types/stars_giveaway_winners_option.py +88 -0
  2914. pyrogram/raw/types/stars_rating.py +99 -0
  2915. pyrogram/raw/types/stars_revenue_status.py +105 -0
  2916. pyrogram/raw/types/stars_subscription.py +159 -0
  2917. pyrogram/raw/types/stars_subscription_pricing.py +80 -0
  2918. pyrogram/raw/types/stars_ton_amount.py +72 -0
  2919. pyrogram/raw/types/stars_topup_option.py +114 -0
  2920. pyrogram/raw/types/stars_transaction.py +364 -0
  2921. pyrogram/raw/types/stars_transaction_peer.py +72 -0
  2922. pyrogram/raw/types/stars_transaction_peer_ads.py +67 -0
  2923. pyrogram/raw/types/stars_transaction_peer_api.py +67 -0
  2924. pyrogram/raw/types/stars_transaction_peer_app_store.py +67 -0
  2925. pyrogram/raw/types/stars_transaction_peer_fragment.py +67 -0
  2926. pyrogram/raw/types/stars_transaction_peer_play_market.py +67 -0
  2927. pyrogram/raw/types/stars_transaction_peer_premium_bot.py +67 -0
  2928. pyrogram/raw/types/stars_transaction_peer_unsupported.py +67 -0
  2929. pyrogram/raw/types/stats/__init__.py +29 -0
  2930. pyrogram/raw/types/stats/broadcast_stats.py +249 -0
  2931. pyrogram/raw/types/stats/megagroup_stats.py +209 -0
  2932. pyrogram/raw/types/stats/message_stats.py +89 -0
  2933. pyrogram/raw/types/stats/public_forwards.py +117 -0
  2934. pyrogram/raw/types/stats/story_stats.py +89 -0
  2935. pyrogram/raw/types/stats_abs_value_and_prev.py +80 -0
  2936. pyrogram/raw/types/stats_date_range_days.py +80 -0
  2937. pyrogram/raw/types/stats_graph.py +92 -0
  2938. pyrogram/raw/types/stats_graph_async.py +81 -0
  2939. pyrogram/raw/types/stats_graph_error.py +81 -0
  2940. pyrogram/raw/types/stats_group_top_admin.py +96 -0
  2941. pyrogram/raw/types/stats_group_top_inviter.py +80 -0
  2942. pyrogram/raw/types/stats_group_top_poster.py +88 -0
  2943. pyrogram/raw/types/stats_percent_value.py +81 -0
  2944. pyrogram/raw/types/stats_url.py +81 -0
  2945. pyrogram/raw/types/sticker_keyword.py +80 -0
  2946. pyrogram/raw/types/sticker_pack.py +81 -0
  2947. pyrogram/raw/types/sticker_set.py +202 -0
  2948. pyrogram/raw/types/sticker_set_covered.py +89 -0
  2949. pyrogram/raw/types/sticker_set_full_covered.py +106 -0
  2950. pyrogram/raw/types/sticker_set_multi_covered.py +89 -0
  2951. pyrogram/raw/types/sticker_set_no_covered.py +81 -0
  2952. pyrogram/raw/types/stickers/__init__.py +25 -0
  2953. pyrogram/raw/types/stickers/suggested_short_name.py +81 -0
  2954. pyrogram/raw/types/storage/__init__.py +34 -0
  2955. pyrogram/raw/types/storage/file_gif.py +67 -0
  2956. pyrogram/raw/types/storage/file_jpeg.py +67 -0
  2957. pyrogram/raw/types/storage/file_mov.py +67 -0
  2958. pyrogram/raw/types/storage/file_mp3.py +67 -0
  2959. pyrogram/raw/types/storage/file_mp4.py +67 -0
  2960. pyrogram/raw/types/storage/file_partial.py +67 -0
  2961. pyrogram/raw/types/storage/file_pdf.py +67 -0
  2962. pyrogram/raw/types/storage/file_png.py +67 -0
  2963. pyrogram/raw/types/storage/file_unknown.py +67 -0
  2964. pyrogram/raw/types/storage/file_webp.py +67 -0
  2965. pyrogram/raw/types/stories/__init__.py +35 -0
  2966. pyrogram/raw/types/stories/albums.py +89 -0
  2967. pyrogram/raw/types/stories/albums_not_modified.py +76 -0
  2968. pyrogram/raw/types/stories/all_stories.py +129 -0
  2969. pyrogram/raw/types/stories/all_stories_not_modified.py +92 -0
  2970. pyrogram/raw/types/stories/can_send_story_count.py +81 -0
  2971. pyrogram/raw/types/stories/found_stories.py +116 -0
  2972. pyrogram/raw/types/stories/peer_stories.py +97 -0
  2973. pyrogram/raw/types/stories/stories.py +120 -0
  2974. pyrogram/raw/types/stories/story_reactions_list.py +116 -0
  2975. pyrogram/raw/types/stories/story_views.py +89 -0
  2976. pyrogram/raw/types/stories/story_views_list.py +140 -0
  2977. pyrogram/raw/types/stories_stealth_mode.py +84 -0
  2978. pyrogram/raw/types/story_album.py +112 -0
  2979. pyrogram/raw/types/story_fwd_header.py +100 -0
  2980. pyrogram/raw/types/story_item.py +241 -0
  2981. pyrogram/raw/types/story_item_deleted.py +72 -0
  2982. pyrogram/raw/types/story_item_skipped.py +96 -0
  2983. pyrogram/raw/types/story_reaction.py +88 -0
  2984. pyrogram/raw/types/story_reaction_public_forward.py +72 -0
  2985. pyrogram/raw/types/story_reaction_public_repost.py +80 -0
  2986. pyrogram/raw/types/story_view.py +104 -0
  2987. pyrogram/raw/types/story_view_public_forward.py +86 -0
  2988. pyrogram/raw/types/story_view_public_repost.py +94 -0
  2989. pyrogram/raw/types/story_views.py +118 -0
  2990. pyrogram/raw/types/suggested_post.py +97 -0
  2991. pyrogram/raw/types/text_anchor.py +80 -0
  2992. pyrogram/raw/types/text_bold.py +72 -0
  2993. pyrogram/raw/types/text_concat.py +72 -0
  2994. pyrogram/raw/types/text_email.py +80 -0
  2995. pyrogram/raw/types/text_empty.py +67 -0
  2996. pyrogram/raw/types/text_fixed.py +72 -0
  2997. pyrogram/raw/types/text_image.py +88 -0
  2998. pyrogram/raw/types/text_italic.py +72 -0
  2999. pyrogram/raw/types/text_marked.py +72 -0
  3000. pyrogram/raw/types/text_phone.py +80 -0
  3001. pyrogram/raw/types/text_plain.py +72 -0
  3002. pyrogram/raw/types/text_strike.py +72 -0
  3003. pyrogram/raw/types/text_subscript.py +72 -0
  3004. pyrogram/raw/types/text_superscript.py +72 -0
  3005. pyrogram/raw/types/text_underline.py +72 -0
  3006. pyrogram/raw/types/text_url.py +88 -0
  3007. pyrogram/raw/types/text_with_entities.py +80 -0
  3008. pyrogram/raw/types/theme.py +165 -0
  3009. pyrogram/raw/types/theme_settings.py +117 -0
  3010. pyrogram/raw/types/timezone.py +88 -0
  3011. pyrogram/raw/types/todo_completion.py +88 -0
  3012. pyrogram/raw/types/todo_item.py +80 -0
  3013. pyrogram/raw/types/todo_list.py +94 -0
  3014. pyrogram/raw/types/top_peer.py +80 -0
  3015. pyrogram/raw/types/top_peer_category_bots_app.py +67 -0
  3016. pyrogram/raw/types/top_peer_category_bots_inline.py +67 -0
  3017. pyrogram/raw/types/top_peer_category_bots_pm.py +67 -0
  3018. pyrogram/raw/types/top_peer_category_channels.py +67 -0
  3019. pyrogram/raw/types/top_peer_category_correspondents.py +67 -0
  3020. pyrogram/raw/types/top_peer_category_forward_chats.py +67 -0
  3021. pyrogram/raw/types/top_peer_category_forward_users.py +67 -0
  3022. pyrogram/raw/types/top_peer_category_groups.py +67 -0
  3023. pyrogram/raw/types/top_peer_category_peers.py +88 -0
  3024. pyrogram/raw/types/top_peer_category_phone_calls.py +67 -0
  3025. pyrogram/raw/types/update_attach_menu_bots.py +67 -0
  3026. pyrogram/raw/types/update_auto_save_settings.py +67 -0
  3027. pyrogram/raw/types/update_bot_business_connect.py +80 -0
  3028. pyrogram/raw/types/update_bot_callback_query.py +124 -0
  3029. pyrogram/raw/types/update_bot_chat_boost.py +88 -0
  3030. pyrogram/raw/types/update_bot_chat_invite_requester.py +112 -0
  3031. pyrogram/raw/types/update_bot_commands.py +88 -0
  3032. pyrogram/raw/types/update_bot_delete_business_message.py +96 -0
  3033. pyrogram/raw/types/update_bot_edit_business_message.py +100 -0
  3034. pyrogram/raw/types/update_bot_inline_query.py +118 -0
  3035. pyrogram/raw/types/update_bot_inline_send.py +110 -0
  3036. pyrogram/raw/types/update_bot_menu_button.py +80 -0
  3037. pyrogram/raw/types/update_bot_message_reaction.py +120 -0
  3038. pyrogram/raw/types/update_bot_message_reactions.py +104 -0
  3039. pyrogram/raw/types/update_bot_new_business_message.py +100 -0
  3040. pyrogram/raw/types/update_bot_precheckout_query.py +125 -0
  3041. pyrogram/raw/types/update_bot_purchased_paid_media.py +88 -0
  3042. pyrogram/raw/types/update_bot_shipping_query.py +96 -0
  3043. pyrogram/raw/types/update_bot_stopped.py +96 -0
  3044. pyrogram/raw/types/update_bot_subscription_expire.py +96 -0
  3045. pyrogram/raw/types/update_bot_webhook_json.py +72 -0
  3046. pyrogram/raw/types/update_bot_webhook_json_query.py +88 -0
  3047. pyrogram/raw/types/update_business_bot_callback_query.py +125 -0
  3048. pyrogram/raw/types/update_channel.py +72 -0
  3049. pyrogram/raw/types/update_channel_available_messages.py +80 -0
  3050. pyrogram/raw/types/update_channel_message_forwards.py +88 -0
  3051. pyrogram/raw/types/update_channel_message_views.py +88 -0
  3052. pyrogram/raw/types/update_channel_participant.py +142 -0
  3053. pyrogram/raw/types/update_channel_pinned_topic.py +88 -0
  3054. pyrogram/raw/types/update_channel_pinned_topics.py +84 -0
  3055. pyrogram/raw/types/update_channel_read_messages_contents.py +101 -0
  3056. pyrogram/raw/types/update_channel_too_long.py +84 -0
  3057. pyrogram/raw/types/update_channel_user_typing.py +99 -0
  3058. pyrogram/raw/types/update_channel_view_forum_as_messages.py +81 -0
  3059. pyrogram/raw/types/update_channel_web_page.py +96 -0
  3060. pyrogram/raw/types/update_chat.py +72 -0
  3061. pyrogram/raw/types/update_chat_default_banned_rights.py +88 -0
  3062. pyrogram/raw/types/update_chat_participant.py +136 -0
  3063. pyrogram/raw/types/update_chat_participant_add.py +104 -0
  3064. pyrogram/raw/types/update_chat_participant_admin.py +96 -0
  3065. pyrogram/raw/types/update_chat_participant_delete.py +88 -0
  3066. pyrogram/raw/types/update_chat_participants.py +72 -0
  3067. pyrogram/raw/types/update_chat_user_typing.py +88 -0
  3068. pyrogram/raw/types/update_config.py +67 -0
  3069. pyrogram/raw/types/update_contacts_reset.py +67 -0
  3070. pyrogram/raw/types/update_dc_options.py +72 -0
  3071. pyrogram/raw/types/update_delete_channel_messages.py +96 -0
  3072. pyrogram/raw/types/update_delete_messages.py +88 -0
  3073. pyrogram/raw/types/update_delete_quick_reply.py +72 -0
  3074. pyrogram/raw/types/update_delete_quick_reply_messages.py +80 -0
  3075. pyrogram/raw/types/update_delete_scheduled_messages.py +92 -0
  3076. pyrogram/raw/types/update_dialog_filter.py +84 -0
  3077. pyrogram/raw/types/update_dialog_filter_order.py +72 -0
  3078. pyrogram/raw/types/update_dialog_filters.py +67 -0
  3079. pyrogram/raw/types/update_dialog_pinned.py +89 -0
  3080. pyrogram/raw/types/update_dialog_unread_mark.py +90 -0
  3081. pyrogram/raw/types/update_draft_message.py +101 -0
  3082. pyrogram/raw/types/update_edit_channel_message.py +88 -0
  3083. pyrogram/raw/types/update_edit_message.py +88 -0
  3084. pyrogram/raw/types/update_encrypted_chat_typing.py +72 -0
  3085. pyrogram/raw/types/update_encrypted_messages_read.py +88 -0
  3086. pyrogram/raw/types/update_encryption.py +80 -0
  3087. pyrogram/raw/types/update_faved_stickers.py +67 -0
  3088. pyrogram/raw/types/update_folder_peers.py +88 -0
  3089. pyrogram/raw/types/update_geo_live_viewed.py +80 -0
  3090. pyrogram/raw/types/update_group_call.py +83 -0
  3091. pyrogram/raw/types/update_group_call_chain_blocks.py +96 -0
  3092. pyrogram/raw/types/update_group_call_connection.py +80 -0
  3093. pyrogram/raw/types/update_group_call_encrypted_message.py +88 -0
  3094. pyrogram/raw/types/update_group_call_message.py +96 -0
  3095. pyrogram/raw/types/update_group_call_participants.py +88 -0
  3096. pyrogram/raw/types/update_inline_bot_callback_query.py +116 -0
  3097. pyrogram/raw/types/update_lang_pack.py +72 -0
  3098. pyrogram/raw/types/update_lang_pack_too_long.py +72 -0
  3099. pyrogram/raw/types/update_login_token.py +67 -0
  3100. pyrogram/raw/types/update_message_extended_media.py +88 -0
  3101. pyrogram/raw/types/update_message_id.py +80 -0
  3102. pyrogram/raw/types/update_message_poll.py +92 -0
  3103. pyrogram/raw/types/update_message_poll_vote.py +96 -0
  3104. pyrogram/raw/types/update_message_reactions.py +109 -0
  3105. pyrogram/raw/types/update_mono_forum_no_paid_exception.py +88 -0
  3106. pyrogram/raw/types/update_move_sticker_set_to_top.py +86 -0
  3107. pyrogram/raw/types/update_new_authorization.py +107 -0
  3108. pyrogram/raw/types/update_new_channel_message.py +88 -0
  3109. pyrogram/raw/types/update_new_encrypted_message.py +80 -0
  3110. pyrogram/raw/types/update_new_message.py +88 -0
  3111. pyrogram/raw/types/update_new_quick_reply.py +72 -0
  3112. pyrogram/raw/types/update_new_scheduled_message.py +72 -0
  3113. pyrogram/raw/types/update_new_sticker_set.py +72 -0
  3114. pyrogram/raw/types/update_new_story_reaction.py +88 -0
  3115. pyrogram/raw/types/update_notify_settings.py +80 -0
  3116. pyrogram/raw/types/update_paid_reaction_privacy.py +72 -0
  3117. pyrogram/raw/types/update_peer_blocked.py +86 -0
  3118. pyrogram/raw/types/update_peer_history_ttl.py +83 -0
  3119. pyrogram/raw/types/update_peer_located.py +72 -0
  3120. pyrogram/raw/types/update_peer_settings.py +80 -0
  3121. pyrogram/raw/types/update_peer_wallpaper.py +90 -0
  3122. pyrogram/raw/types/update_pending_join_requests.py +88 -0
  3123. pyrogram/raw/types/update_phone_call.py +72 -0
  3124. pyrogram/raw/types/update_phone_call_signaling_data.py +80 -0
  3125. pyrogram/raw/types/update_pinned_channel_messages.py +104 -0
  3126. pyrogram/raw/types/update_pinned_dialogs.py +85 -0
  3127. pyrogram/raw/types/update_pinned_forum_topic.py +91 -0
  3128. pyrogram/raw/types/update_pinned_forum_topics.py +84 -0
  3129. pyrogram/raw/types/update_pinned_messages.py +104 -0
  3130. pyrogram/raw/types/update_pinned_saved_dialogs.py +76 -0
  3131. pyrogram/raw/types/update_privacy.py +80 -0
  3132. pyrogram/raw/types/update_pts_changed.py +67 -0
  3133. pyrogram/raw/types/update_quick_replies.py +72 -0
  3134. pyrogram/raw/types/update_quick_reply_message.py +72 -0
  3135. pyrogram/raw/types/update_read_channel_discussion_inbox.py +108 -0
  3136. pyrogram/raw/types/update_read_channel_discussion_outbox.py +88 -0
  3137. pyrogram/raw/types/update_read_channel_inbox.py +107 -0
  3138. pyrogram/raw/types/update_read_channel_outbox.py +80 -0
  3139. pyrogram/raw/types/update_read_featured_emoji_stickers.py +67 -0
  3140. pyrogram/raw/types/update_read_featured_stickers.py +67 -0
  3141. pyrogram/raw/types/update_read_history_inbox.py +124 -0
  3142. pyrogram/raw/types/update_read_history_outbox.py +96 -0
  3143. pyrogram/raw/types/update_read_messages_contents.py +99 -0
  3144. pyrogram/raw/types/update_read_mono_forum_inbox.py +88 -0
  3145. pyrogram/raw/types/update_read_mono_forum_outbox.py +88 -0
  3146. pyrogram/raw/types/update_read_stories.py +80 -0
  3147. pyrogram/raw/types/update_recent_emoji_statuses.py +67 -0
  3148. pyrogram/raw/types/update_recent_reactions.py +67 -0
  3149. pyrogram/raw/types/update_recent_stickers.py +67 -0
  3150. pyrogram/raw/types/update_saved_dialog_pinned.py +80 -0
  3151. pyrogram/raw/types/update_saved_gifs.py +67 -0
  3152. pyrogram/raw/types/update_saved_reaction_tags.py +67 -0
  3153. pyrogram/raw/types/update_saved_ringtones.py +67 -0
  3154. pyrogram/raw/types/update_sent_phone_code.py +72 -0
  3155. pyrogram/raw/types/update_sent_story_reaction.py +88 -0
  3156. pyrogram/raw/types/update_service_notification.py +119 -0
  3157. pyrogram/raw/types/update_short.py +216 -0
  3158. pyrogram/raw/types/update_short_chat_message.py +330 -0
  3159. pyrogram/raw/types/update_short_message.py +322 -0
  3160. pyrogram/raw/types/update_short_sent_message.py +269 -0
  3161. pyrogram/raw/types/update_sms_job.py +72 -0
  3162. pyrogram/raw/types/update_stars_balance.py +72 -0
  3163. pyrogram/raw/types/update_stars_revenue_status.py +80 -0
  3164. pyrogram/raw/types/update_sticker_sets.py +78 -0
  3165. pyrogram/raw/types/update_sticker_sets_order.py +86 -0
  3166. pyrogram/raw/types/update_stories_stealth_mode.py +72 -0
  3167. pyrogram/raw/types/update_story.py +80 -0
  3168. pyrogram/raw/types/update_story_id.py +80 -0
  3169. pyrogram/raw/types/update_theme.py +72 -0
  3170. pyrogram/raw/types/update_transcribe_audio.py +88 -0
  3171. pyrogram/raw/types/update_transcribed_audio.py +104 -0
  3172. pyrogram/raw/types/update_user.py +72 -0
  3173. pyrogram/raw/types/update_user_emoji_status.py +80 -0
  3174. pyrogram/raw/types/update_user_name.py +96 -0
  3175. pyrogram/raw/types/update_user_phone.py +80 -0
  3176. pyrogram/raw/types/update_user_status.py +80 -0
  3177. pyrogram/raw/types/update_user_typing.py +91 -0
  3178. pyrogram/raw/types/update_web_page.py +88 -0
  3179. pyrogram/raw/types/update_web_view_result_sent.py +72 -0
  3180. pyrogram/raw/types/updates/__init__.py +32 -0
  3181. pyrogram/raw/types/updates/channel_difference.py +130 -0
  3182. pyrogram/raw/types/updates/channel_difference_empty.py +98 -0
  3183. pyrogram/raw/types/updates/channel_difference_too_long.py +122 -0
  3184. pyrogram/raw/types/updates/difference.py +121 -0
  3185. pyrogram/raw/types/updates/difference_empty.py +89 -0
  3186. pyrogram/raw/types/updates/difference_slice.py +121 -0
  3187. pyrogram/raw/types/updates/difference_too_long.py +81 -0
  3188. pyrogram/raw/types/updates/state.py +113 -0
  3189. pyrogram/raw/types/updates_combined.py +248 -0
  3190. pyrogram/raw/types/updates_t.py +240 -0
  3191. pyrogram/raw/types/updates_too_long.py +203 -0
  3192. pyrogram/raw/types/upload/__init__.py +29 -0
  3193. pyrogram/raw/types/upload/cdn_file.py +81 -0
  3194. pyrogram/raw/types/upload/cdn_file_reupload_needed.py +81 -0
  3195. pyrogram/raw/types/upload/file.py +97 -0
  3196. pyrogram/raw/types/upload/file_cdn_redirect.py +113 -0
  3197. pyrogram/raw/types/upload/web_file.py +113 -0
  3198. pyrogram/raw/types/url_auth_result_accepted.py +82 -0
  3199. pyrogram/raw/types/url_auth_result_default.py +77 -0
  3200. pyrogram/raw/types/url_auth_result_request.py +98 -0
  3201. pyrogram/raw/types/user.py +428 -0
  3202. pyrogram/raw/types/user_empty.py +88 -0
  3203. pyrogram/raw/types/user_full.py +524 -0
  3204. pyrogram/raw/types/user_profile_photo.py +103 -0
  3205. pyrogram/raw/types/user_profile_photo_empty.py +67 -0
  3206. pyrogram/raw/types/user_status_empty.py +67 -0
  3207. pyrogram/raw/types/user_status_hidden.py +67 -0
  3208. pyrogram/raw/types/user_status_last_month.py +72 -0
  3209. pyrogram/raw/types/user_status_last_week.py +72 -0
  3210. pyrogram/raw/types/user_status_offline.py +72 -0
  3211. pyrogram/raw/types/user_status_online.py +72 -0
  3212. pyrogram/raw/types/user_status_recently.py +72 -0
  3213. pyrogram/raw/types/username.py +86 -0
  3214. pyrogram/raw/types/users/__init__.py +29 -0
  3215. pyrogram/raw/types/users/saved_music.py +90 -0
  3216. pyrogram/raw/types/users/saved_music_not_modified.py +82 -0
  3217. pyrogram/raw/types/users/user_full.py +97 -0
  3218. pyrogram/raw/types/users/users.py +81 -0
  3219. pyrogram/raw/types/users/users_slice.py +89 -0
  3220. pyrogram/raw/types/video_size.py +107 -0
  3221. pyrogram/raw/types/video_size_emoji_markup.py +80 -0
  3222. pyrogram/raw/types/video_size_sticker_markup.py +88 -0
  3223. pyrogram/raw/types/wall_paper.py +143 -0
  3224. pyrogram/raw/types/wall_paper_no_file.py +107 -0
  3225. pyrogram/raw/types/wall_paper_settings.py +141 -0
  3226. pyrogram/raw/types/web_authorization.py +136 -0
  3227. pyrogram/raw/types/web_document.py +104 -0
  3228. pyrogram/raw/types/web_document_no_proxy.py +96 -0
  3229. pyrogram/raw/types/web_page.py +240 -0
  3230. pyrogram/raw/types/web_page_attribute_star_gift_collection.py +72 -0
  3231. pyrogram/raw/types/web_page_attribute_sticker_set.py +86 -0
  3232. pyrogram/raw/types/web_page_attribute_story.py +92 -0
  3233. pyrogram/raw/types/web_page_attribute_theme.py +86 -0
  3234. pyrogram/raw/types/web_page_attribute_unique_star_gift.py +72 -0
  3235. pyrogram/raw/types/web_page_empty.py +83 -0
  3236. pyrogram/raw/types/web_page_not_modified.py +75 -0
  3237. pyrogram/raw/types/web_page_pending.py +91 -0
  3238. pyrogram/raw/types/web_page_url_pending.py +72 -0
  3239. pyrogram/raw/types/web_view_message_sent.py +85 -0
  3240. pyrogram/raw/types/web_view_result_url.py +107 -0
  3241. pyrogram/session/__init__.py +20 -0
  3242. pyrogram/session/auth.py +296 -0
  3243. pyrogram/session/internals/__init__.py +21 -0
  3244. pyrogram/session/internals/data_center.py +83 -0
  3245. pyrogram/session/internals/msg_factory.py +38 -0
  3246. pyrogram/session/internals/msg_id.py +35 -0
  3247. pyrogram/session/internals/seq_no.py +30 -0
  3248. pyrogram/session/session.py +441 -0
  3249. pyrogram/storage/__init__.py +21 -0
  3250. pyrogram/storage/file_storage.py +87 -0
  3251. pyrogram/storage/memory_storage.py +73 -0
  3252. pyrogram/storage/sqlite_storage.py +249 -0
  3253. pyrogram/storage/storage.py +105 -0
  3254. pyrogram/sync.py +113 -0
  3255. pyrogram/types/__init__.py +28 -0
  3256. pyrogram/types/authorization/__init__.py +22 -0
  3257. pyrogram/types/authorization/sent_code.py +62 -0
  3258. pyrogram/types/authorization/terms_of_service.py +56 -0
  3259. pyrogram/types/bots_and_keyboards/__init__.py +71 -0
  3260. pyrogram/types/bots_and_keyboards/bot_command.py +53 -0
  3261. pyrogram/types/bots_and_keyboards/bot_command_scope.py +73 -0
  3262. pyrogram/types/bots_and_keyboards/bot_command_scope_all_chat_administrators.py +32 -0
  3263. pyrogram/types/bots_and_keyboards/bot_command_scope_all_group_chats.py +32 -0
  3264. pyrogram/types/bots_and_keyboards/bot_command_scope_all_private_chats.py +32 -0
  3265. pyrogram/types/bots_and_keyboards/bot_command_scope_chat.py +43 -0
  3266. pyrogram/types/bots_and_keyboards/bot_command_scope_chat_administrators.py +43 -0
  3267. pyrogram/types/bots_and_keyboards/bot_command_scope_chat_member.py +48 -0
  3268. pyrogram/types/bots_and_keyboards/bot_command_scope_default.py +33 -0
  3269. pyrogram/types/bots_and_keyboards/callback_game.py +29 -0
  3270. pyrogram/types/bots_and_keyboards/callback_query.py +313 -0
  3271. pyrogram/types/bots_and_keyboards/force_reply.py +66 -0
  3272. pyrogram/types/bots_and_keyboards/game_high_score.py +70 -0
  3273. pyrogram/types/bots_and_keyboards/inline_keyboard_button.py +208 -0
  3274. pyrogram/types/bots_and_keyboards/inline_keyboard_markup.py +76 -0
  3275. pyrogram/types/bots_and_keyboards/keyboard_button.py +95 -0
  3276. pyrogram/types/bots_and_keyboards/login_url.py +90 -0
  3277. pyrogram/types/bots_and_keyboards/menu_button.py +44 -0
  3278. pyrogram/types/bots_and_keyboards/menu_button_commands.py +32 -0
  3279. pyrogram/types/bots_and_keyboards/menu_button_default.py +32 -0
  3280. pyrogram/types/bots_and_keyboards/menu_button_web_app.py +51 -0
  3281. pyrogram/types/bots_and_keyboards/reply_keyboard_markup.py +112 -0
  3282. pyrogram/types/bots_and_keyboards/reply_keyboard_remove.py +58 -0
  3283. pyrogram/types/bots_and_keyboards/sent_web_app_message.py +42 -0
  3284. pyrogram/types/bots_and_keyboards/web_app_info.py +37 -0
  3285. pyrogram/types/inline_mode/__init__.py +47 -0
  3286. pyrogram/types/inline_mode/chosen_inline_result.py +99 -0
  3287. pyrogram/types/inline_mode/inline_query.py +181 -0
  3288. pyrogram/types/inline_mode/inline_query_result.py +63 -0
  3289. pyrogram/types/inline_mode/inline_query_result_animation.py +155 -0
  3290. pyrogram/types/inline_mode/inline_query_result_article.py +99 -0
  3291. pyrogram/types/inline_mode/inline_query_result_audio.py +120 -0
  3292. pyrogram/types/inline_mode/inline_query_result_cached_animation.py +108 -0
  3293. pyrogram/types/inline_mode/inline_query_result_cached_audio.py +101 -0
  3294. pyrogram/types/inline_mode/inline_query_result_cached_document.py +113 -0
  3295. pyrogram/types/inline_mode/inline_query_result_cached_photo.py +111 -0
  3296. pyrogram/types/inline_mode/inline_query_result_cached_sticker.py +78 -0
  3297. pyrogram/types/inline_mode/inline_query_result_cached_video.py +114 -0
  3298. pyrogram/types/inline_mode/inline_query_result_cached_voice.py +108 -0
  3299. pyrogram/types/inline_mode/inline_query_result_contact.py +114 -0
  3300. pyrogram/types/inline_mode/inline_query_result_document.py +145 -0
  3301. pyrogram/types/inline_mode/inline_query_result_location.py +122 -0
  3302. pyrogram/types/inline_mode/inline_query_result_photo.py +147 -0
  3303. pyrogram/types/inline_mode/inline_query_result_venue.py +131 -0
  3304. pyrogram/types/inline_mode/inline_query_result_video.py +151 -0
  3305. pyrogram/types/inline_mode/inline_query_result_voice.py +114 -0
  3306. pyrogram/types/input_media/__init__.py +30 -0
  3307. pyrogram/types/input_media/input_media.py +49 -0
  3308. pyrogram/types/input_media/input_media_animation.py +85 -0
  3309. pyrogram/types/input_media/input_media_audio.py +82 -0
  3310. pyrogram/types/input_media/input_media_document.py +65 -0
  3311. pyrogram/types/input_media/input_media_photo.py +63 -0
  3312. pyrogram/types/input_media/input_media_video.py +96 -0
  3313. pyrogram/types/input_media/input_phone_contact.py +51 -0
  3314. pyrogram/types/input_message_content/__init__.py +24 -0
  3315. pyrogram/types/input_message_content/input_message_content.py +40 -0
  3316. pyrogram/types/input_message_content/input_text_message_content.py +68 -0
  3317. pyrogram/types/list.py +30 -0
  3318. pyrogram/types/messages_and_media/__init__.py +50 -0
  3319. pyrogram/types/messages_and_media/alternative_video.py +134 -0
  3320. pyrogram/types/messages_and_media/animation.py +121 -0
  3321. pyrogram/types/messages_and_media/audio.py +121 -0
  3322. pyrogram/types/messages_and_media/contact.py +71 -0
  3323. pyrogram/types/messages_and_media/dice.py +47 -0
  3324. pyrogram/types/messages_and_media/document.py +98 -0
  3325. pyrogram/types/messages_and_media/game.py +99 -0
  3326. pyrogram/types/messages_and_media/giveaway.py +86 -0
  3327. pyrogram/types/messages_and_media/location.py +55 -0
  3328. pyrogram/types/messages_and_media/message.py +3748 -0
  3329. pyrogram/types/messages_and_media/message_entity.py +124 -0
  3330. pyrogram/types/messages_and_media/message_reactions.py +56 -0
  3331. pyrogram/types/messages_and_media/photo.py +130 -0
  3332. pyrogram/types/messages_and_media/poll.py +203 -0
  3333. pyrogram/types/messages_and_media/poll_option.py +50 -0
  3334. pyrogram/types/messages_and_media/reaction.py +97 -0
  3335. pyrogram/types/messages_and_media/sticker.py +206 -0
  3336. pyrogram/types/messages_and_media/story.py +55 -0
  3337. pyrogram/types/messages_and_media/stripped_thumbnail.py +47 -0
  3338. pyrogram/types/messages_and_media/thumbnail.py +111 -0
  3339. pyrogram/types/messages_and_media/venue.py +74 -0
  3340. pyrogram/types/messages_and_media/video.py +134 -0
  3341. pyrogram/types/messages_and_media/video_note.py +108 -0
  3342. pyrogram/types/messages_and_media/voice.py +96 -0
  3343. pyrogram/types/messages_and_media/web_app_data.py +51 -0
  3344. pyrogram/types/messages_and_media/web_page.py +187 -0
  3345. pyrogram/types/object.py +121 -0
  3346. pyrogram/types/update.py +27 -0
  3347. pyrogram/types/user_and_chats/__init__.py +69 -0
  3348. pyrogram/types/user_and_chats/chat.py +1000 -0
  3349. pyrogram/types/user_and_chats/chat_admin_with_invite_links.py +63 -0
  3350. pyrogram/types/user_and_chats/chat_event.py +489 -0
  3351. pyrogram/types/user_and_chats/chat_event_filter.py +175 -0
  3352. pyrogram/types/user_and_chats/chat_invite_link.py +130 -0
  3353. pyrogram/types/user_and_chats/chat_join_request.py +139 -0
  3354. pyrogram/types/user_and_chats/chat_joiner.py +82 -0
  3355. pyrogram/types/user_and_chats/chat_member.py +227 -0
  3356. pyrogram/types/user_and_chats/chat_member_updated.py +102 -0
  3357. pyrogram/types/user_and_chats/chat_permissions.py +98 -0
  3358. pyrogram/types/user_and_chats/chat_photo.py +107 -0
  3359. pyrogram/types/user_and_chats/chat_preview.py +79 -0
  3360. pyrogram/types/user_and_chats/chat_privileges.py +138 -0
  3361. pyrogram/types/user_and_chats/chat_reactions.py +69 -0
  3362. pyrogram/types/user_and_chats/dialog.py +79 -0
  3363. pyrogram/types/user_and_chats/emoji_status.py +127 -0
  3364. pyrogram/types/user_and_chats/invite_link_importer.py +61 -0
  3365. pyrogram/types/user_and_chats/restriction.py +50 -0
  3366. pyrogram/types/user_and_chats/user.py +412 -0
  3367. pyrogram/types/user_and_chats/username.py +51 -0
  3368. pyrogram/types/user_and_chats/video_chat_ended.py +41 -0
  3369. pyrogram/types/user_and_chats/video_chat_members_invited.py +50 -0
  3370. pyrogram/types/user_and_chats/video_chat_scheduled.py +43 -0
  3371. pyrogram/types/user_and_chats/video_chat_started.py +29 -0
  3372. pyrogram/utils.py +417 -0
  3373. pyrogrammod-2.2.4.dist-info/METADATA +147 -0
  3374. pyrogrammod-2.2.4.dist-info/RECORD +3378 -0
  3375. pyrogrammod-2.2.4.dist-info/WHEEL +5 -0
  3376. pyrogrammod-2.2.4.dist-info/licenses/COPYING +674 -0
  3377. pyrogrammod-2.2.4.dist-info/licenses/COPYING.lesser +165 -0
  3378. pyrogrammod-2.2.4.dist-info/licenses/NOTICE +17 -0
@@ -0,0 +1,3748 @@
1
+ # Pyrogram - Telegram MTProto API Client Library for Python
2
+ # Copyright (C) 2017-present Dan <https://github.com/delivrance>
3
+ #
4
+ # This file is part of Pyrogram.
5
+ #
6
+ # Pyrogram is free software: you can redistribute it and/or modify
7
+ # it under the terms of the GNU Lesser General Public License as published
8
+ # by the Free Software Foundation, either version 3 of the License, or
9
+ # (at your option) any later version.
10
+ #
11
+ # Pyrogram is distributed in the hope that it will be useful,
12
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ # GNU Lesser General Public License for more details.
15
+ #
16
+ # You should have received a copy of the GNU Lesser General Public License
17
+ # along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
18
+
19
+ import logging
20
+ from datetime import datetime
21
+ from functools import partial
22
+ from typing import List, Match, Union, BinaryIO, Optional, Callable
23
+
24
+ import pyrogram
25
+ from pyrogram import raw, enums
26
+ from pyrogram import types
27
+ from pyrogram import utils
28
+ from pyrogram.errors import MessageIdsEmpty, PeerIdInvalid
29
+ from pyrogram.parser import utils as parser_utils, Parser
30
+ from ..object import Object
31
+ from ..update import Update
32
+
33
+ log = logging.getLogger(__name__)
34
+
35
+
36
+ class Str(str):
37
+ def __init__(self, *args):
38
+ super().__init__()
39
+
40
+ self.entities = None
41
+
42
+ def init(self, entities):
43
+ self.entities = entities
44
+
45
+ return self
46
+
47
+ @property
48
+ def markdown(self):
49
+ return Parser.unparse(self, self.entities, False)
50
+
51
+ @property
52
+ def html(self):
53
+ return Parser.unparse(self, self.entities, True)
54
+
55
+ def __getitem__(self, item):
56
+ return parser_utils.remove_surrogates(parser_utils.add_surrogates(self)[item])
57
+
58
+
59
+ class Message(Object, Update):
60
+ """A message.
61
+
62
+ Parameters:
63
+ id (``int``):
64
+ Unique message identifier inside this chat.
65
+
66
+ from_user (:obj:`~pyrogram.types.User`, *optional*):
67
+ Sender, empty for messages sent to channels.
68
+
69
+ sender_chat (:obj:`~pyrogram.types.Chat`, *optional*):
70
+ Sender of the message, sent on behalf of a chat.
71
+ The channel itself for channel messages.
72
+ The supergroup itself for messages from anonymous group administrators.
73
+ The linked channel for messages automatically forwarded to the discussion group.
74
+
75
+ date (:py:obj:`~datetime.datetime`, *optional*):
76
+ Date the message was sent.
77
+
78
+ chat (:obj:`~pyrogram.types.Chat`, *optional*):
79
+ Conversation the message belongs to.
80
+
81
+ forward_from (:obj:`~pyrogram.types.User`, *optional*):
82
+ For forwarded messages, sender of the original message.
83
+
84
+ forward_sender_name (``str``, *optional*):
85
+ For messages forwarded from users who have hidden their accounts, name of the user.
86
+
87
+ forward_from_chat (:obj:`~pyrogram.types.Chat`, *optional*):
88
+ For messages forwarded from channels, information about the original channel. For messages forwarded from anonymous group administrators, information about the original supergroup.
89
+
90
+ forward_from_message_id (``int``, *optional*):
91
+ For messages forwarded from channels, identifier of the original message in the channel.
92
+
93
+ forward_signature (``str``, *optional*):
94
+ For messages forwarded from channels, signature of the post author if present.
95
+
96
+ forward_date (:py:obj:`~datetime.datetime`, *optional*):
97
+ For forwarded messages, date the original message was sent.
98
+
99
+ reply_to_message_id (``int``, *optional*):
100
+ The id of the message which this message directly replied to.
101
+
102
+ reply_to_top_message_id (``int``, *optional*):
103
+ The id of the first message which started this message thread.
104
+
105
+ reply_to_message (:obj:`~pyrogram.types.Message`, *optional*):
106
+ For replies, the original message. Note that the Message object in this field will not contain
107
+ further reply_to_message fields even if it itself is a reply.
108
+
109
+ mentioned (``bool``, *optional*):
110
+ The message contains a mention.
111
+
112
+ empty (``bool``, *optional*):
113
+ The message is empty.
114
+ A message can be empty in case it was deleted or you tried to retrieve a message that doesn't exist yet.
115
+
116
+ service (:obj:`~pyrogram.enums.MessageServiceType`, *optional*):
117
+ The message is a service message.
118
+ This field will contain the enumeration type of the service message.
119
+ You can use ``service = getattr(message, message.service.value)`` to access the service message.
120
+
121
+ media (:obj:`~pyrogram.enums.MessageMediaType`, *optional*):
122
+ The message is a media message.
123
+ This field will contain the enumeration type of the media message.
124
+ You can use ``media = getattr(message, message.media.value)`` to access the media message.
125
+
126
+ edit_date (:py:obj:`~datetime.datetime`, *optional*):
127
+ Date the message was last edited.
128
+
129
+ media_group_id (``str``, *optional*):
130
+ The unique identifier of a media message group this message belongs to.
131
+
132
+ author_signature (``str``, *optional*):
133
+ Signature of the post author for messages in channels, or the custom title of an anonymous group
134
+ administrator.
135
+
136
+ has_protected_content (``bool``, *optional*):
137
+ True, if the message can't be forwarded.
138
+
139
+ has_media_spoiler (``bool``, *optional*):
140
+ True, if the message media is covered by a spoiler animation.
141
+
142
+ text (``str``, *optional*):
143
+ For text messages, the actual UTF-8 text of the message, 0-4096 characters.
144
+ If the message contains entities (bold, italic, ...) you can access *text.markdown* or
145
+ *text.html* to get the marked up message text. In case there is no entity, the fields
146
+ will contain the same text as *text*.
147
+
148
+ entities (List of :obj:`~pyrogram.types.MessageEntity`, *optional*):
149
+ For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text.
150
+
151
+ caption_entities (List of :obj:`~pyrogram.types.MessageEntity`, *optional*):
152
+ For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear
153
+ in the caption.
154
+
155
+ audio (:obj:`~pyrogram.types.Audio`, *optional*):
156
+ Message is an audio file, information about the file.
157
+
158
+ document (:obj:`~pyrogram.types.Document`, *optional*):
159
+ Message is a general file, information about the file.
160
+
161
+ photo (:obj:`~pyrogram.types.Photo`, *optional*):
162
+ Message is a photo, information about the photo.
163
+
164
+ sticker (:obj:`~pyrogram.types.Sticker`, *optional*):
165
+ Message is a sticker, information about the sticker.
166
+
167
+ animation (:obj:`~pyrogram.types.Animation`, *optional*):
168
+ Message is an animation, information about the animation.
169
+
170
+ game (:obj:`~pyrogram.types.Game`, *optional*):
171
+ Message is a game, information about the game.
172
+
173
+ story (:obj:`~pyrogram.types.Story`, *optional*):
174
+ Message is a story, information about the story.
175
+
176
+ giveaway (:obj:`~pyrogram.types.Giveaway`, *optional*):
177
+ Message is a giveaway, information about the giveaway.
178
+
179
+ video (:obj:`~pyrogram.types.Video`, *optional*):
180
+ Message is a video, information about the video.
181
+
182
+ alternative_videos (List of :obj:`~pyrogram.types.AlternativeVideo`, *optional*):
183
+ Alternative qualities of the video, if the message is a video.
184
+
185
+ voice (:obj:`~pyrogram.types.Voice`, *optional*):
186
+ Message is a voice message, information about the file.
187
+
188
+ video_note (:obj:`~pyrogram.types.VideoNote`, *optional*):
189
+ Message is a video note, information about the video message.
190
+
191
+ caption (``str``, *optional*):
192
+ Caption for the audio, document, photo, video or voice, 0-1024 characters.
193
+ If the message contains caption entities (bold, italic, ...) you can access *caption.markdown* or
194
+ *caption.html* to get the marked up caption text. In case there is no caption entity, the fields
195
+ will contain the same text as *caption*.
196
+
197
+ contact (:obj:`~pyrogram.types.Contact`, *optional*):
198
+ Message is a shared contact, information about the contact.
199
+
200
+ location (:obj:`~pyrogram.types.Location`, *optional*):
201
+ Message is a shared location, information about the location.
202
+
203
+ venue (:obj:`~pyrogram.types.Venue`, *optional*):
204
+ Message is a venue, information about the venue.
205
+
206
+ web_page (:obj:`~pyrogram.types.WebPage`, *optional*):
207
+ Message was sent with a webpage preview.
208
+
209
+ poll (:obj:`~pyrogram.types.Poll`, *optional*):
210
+ Message is a native poll, information about the poll.
211
+
212
+ dice (:obj:`~pyrogram.types.Dice`, *optional*):
213
+ A dice containing a value that is randomly generated by Telegram.
214
+
215
+ new_chat_members (List of :obj:`~pyrogram.types.User`, *optional*):
216
+ New members that were added to the group or supergroup and information about them
217
+ (the bot itself may be one of these members).
218
+
219
+ left_chat_member (:obj:`~pyrogram.types.User`, *optional*):
220
+ A member was removed from the group, information about them (this member may be the bot itself).
221
+
222
+ new_chat_title (``str``, *optional*):
223
+ A chat title was changed to this value.
224
+
225
+ new_chat_photo (:obj:`~pyrogram.types.Photo`, *optional*):
226
+ A chat photo was change to this value.
227
+
228
+ delete_chat_photo (``bool``, *optional*):
229
+ Service message: the chat photo was deleted.
230
+
231
+ group_chat_created (``bool``, *optional*):
232
+ Service message: the group has been created.
233
+
234
+ supergroup_chat_created (``bool``, *optional*):
235
+ Service message: the supergroup has been created.
236
+ This field can't be received in a message coming through updates, because bot can't be a member of a
237
+ supergroup when it is created. It can only be found in reply_to_message if someone replies to a very
238
+ first message in a directly created supergroup.
239
+
240
+ channel_chat_created (``bool``, *optional*):
241
+ Service message: the channel has been created.
242
+ This field can't be received in a message coming through updates, because bot can't be a member of a
243
+ channel when it is created. It can only be found in reply_to_message if someone replies to a very
244
+ first message in a channel.
245
+
246
+ migrate_to_chat_id (``int``, *optional*):
247
+ The group has been migrated to a supergroup with the specified identifier.
248
+ This number may be greater than 32 bits and some programming languages may have difficulty/silent defects
249
+ in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float
250
+ type are safe for storing this identifier.
251
+
252
+ migrate_from_chat_id (``int``, *optional*):
253
+ The supergroup has been migrated from a group with the specified identifier.
254
+ This number may be greater than 32 bits and some programming languages may have difficulty/silent defects
255
+ in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float
256
+ type are safe for storing this identifier.
257
+
258
+ pinned_message (:obj:`~pyrogram.types.Message`, *optional*):
259
+ Specified message was pinned.
260
+ Note that the Message object in this field will not contain further reply_to_message fields even if it
261
+ is itself a reply.
262
+
263
+ game_high_score (:obj:`~pyrogram.types.GameHighScore`, *optional*):
264
+ The game score for a user.
265
+ The reply_to_message field will contain the game Message.
266
+
267
+ views (``int``, *optional*):
268
+ Channel post views.
269
+
270
+ forwards (``int``, *optional*):
271
+ Channel post forwards.
272
+
273
+ via_bot (:obj:`~pyrogram.types.User`):
274
+ The information of the bot that generated the message from an inline query of a user.
275
+
276
+ outgoing (``bool``, *optional*):
277
+ Whether the message is incoming or outgoing.
278
+ Messages received from other chats are incoming (*outgoing* is False).
279
+ Messages sent from yourself to other chats are outgoing (*outgoing* is True).
280
+ An exception is made for your own personal chat; messages sent there will be incoming.
281
+
282
+ matches (List of regex Matches, *optional*):
283
+ A list containing all `Match Objects <https://docs.python.org/3/library/re.html#match-objects>`_ that match
284
+ the text of this message. Only applicable when using :obj:`Filters.regex <pyrogram.Filters.regex>`.
285
+
286
+ command (List of ``str``, *optional*):
287
+ A list containing the command and its arguments, if any.
288
+ E.g.: "/start 1 2 3" would produce ["start", "1", "2", "3"].
289
+ Only applicable when using :obj:`~pyrogram.filters.command`.
290
+
291
+ video_chat_scheduled (:obj:`~pyrogram.types.VideoChatScheduled`, *optional*):
292
+ Service message: voice chat scheduled.
293
+
294
+ video_chat_started (:obj:`~pyrogram.types.VideoChatStarted`, *optional*):
295
+ Service message: the voice chat started.
296
+
297
+ video_chat_ended (:obj:`~pyrogram.types.VideoChatEnded`, *optional*):
298
+ Service message: the voice chat has ended.
299
+
300
+ video_chat_members_invited (:obj:`~pyrogram.types.VoiceChatParticipantsInvited`, *optional*):
301
+ Service message: new members were invited to the voice chat.
302
+
303
+ web_app_data (:obj:`~pyrogram.types.WebAppData`, *optional*):
304
+ Service message: web app data sent to the bot.
305
+
306
+ reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
307
+ Additional interface options. An object for an inline keyboard, custom reply keyboard,
308
+ instructions to remove reply keyboard or to force a reply from the user.
309
+
310
+ reactions (List of :obj:`~pyrogram.types.Reaction`):
311
+ List of the reactions to this message.
312
+
313
+ link (``str``, *property*):
314
+ Generate a link to this message, only for groups and channels.
315
+ """
316
+
317
+ # TODO: Add game missing field. Also invoice, successful_payment, connected_website
318
+
319
+ def __init__(
320
+ self,
321
+ *,
322
+ client: "pyrogram.Client" = None,
323
+ id: int,
324
+ from_user: "types.User" = None,
325
+ sender_chat: "types.Chat" = None,
326
+ date: datetime = None,
327
+ chat: "types.Chat" = None,
328
+ forward_from: "types.User" = None,
329
+ forward_sender_name: str = None,
330
+ forward_from_chat: "types.Chat" = None,
331
+ forward_from_message_id: int = None,
332
+ forward_signature: str = None,
333
+ forward_date: datetime = None,
334
+ reply_to_message_id: int = None,
335
+ reply_to_top_message_id: int = None,
336
+ reply_to_message: "Message" = None,
337
+ mentioned: bool = None,
338
+ empty: bool = None,
339
+ service: "enums.MessageServiceType" = None,
340
+ scheduled: bool = None,
341
+ from_scheduled: bool = None,
342
+ edit_hide: bool = False,
343
+ media: "enums.MessageMediaType" = None,
344
+ edit_date: datetime = None,
345
+ media_group_id: str = None,
346
+ author_signature: str = None,
347
+ has_protected_content: bool = None,
348
+ has_media_spoiler: bool = None,
349
+ text: Str = None,
350
+ entities: List["types.MessageEntity"] = None,
351
+ caption_entities: List["types.MessageEntity"] = None,
352
+ audio: "types.Audio" = None,
353
+ document: "types.Document" = None,
354
+ photo: "types.Photo" = None,
355
+ sticker: "types.Sticker" = None,
356
+ animation: "types.Animation" = None,
357
+ game: "types.Game" = None,
358
+ story: "types.Story" = None,
359
+ giveaway: "types.Giveaway" = None,
360
+ video: "types.Video" = None,
361
+ voice: "types.Voice" = None,
362
+ video_note: "types.VideoNote" = None,
363
+ caption: Str = None,
364
+ contact: "types.Contact" = None,
365
+ location: "types.Location" = None,
366
+ venue: "types.Venue" = None,
367
+ web_page: "types.WebPage" = None,
368
+ poll: "types.Poll" = None,
369
+ dice: "types.Dice" = None,
370
+ new_chat_members: List["types.User"] = None,
371
+ left_chat_member: "types.User" = None,
372
+ new_chat_title: str = None,
373
+ new_chat_photo: "types.Photo" = None,
374
+ delete_chat_photo: bool = None,
375
+ group_chat_created: bool = None,
376
+ supergroup_chat_created: bool = None,
377
+ channel_chat_created: bool = None,
378
+ migrate_to_chat_id: int = None,
379
+ migrate_from_chat_id: int = None,
380
+ pinned_message: "Message" = None,
381
+ game_high_score: int = None,
382
+ views: int = None,
383
+ forwards: int = None,
384
+ via_bot: "types.User" = None,
385
+ outgoing: bool = None,
386
+ matches: List[Match] = None,
387
+ command: List[str] = None,
388
+ video_chat_scheduled: "types.VideoChatScheduled" = None,
389
+ video_chat_started: "types.VideoChatStarted" = None,
390
+ video_chat_ended: "types.VideoChatEnded" = None,
391
+ video_chat_members_invited: "types.VideoChatMembersInvited" = None,
392
+ web_app_data: "types.WebAppData" = None,
393
+ reply_markup: Union[
394
+ "types.InlineKeyboardMarkup",
395
+ "types.ReplyKeyboardMarkup",
396
+ "types.ReplyKeyboardRemove",
397
+ "types.ForceReply"
398
+ ] = None,
399
+ reactions: List["types.Reaction"] = None,
400
+ alternative_videos: List["types.AlternativeVideo"] = None,
401
+ ):
402
+ super().__init__(client)
403
+
404
+ self.id = id
405
+ self.from_user = from_user
406
+ self.sender_chat = sender_chat
407
+ self.date = date
408
+ self.chat = chat
409
+ self.forward_from = forward_from
410
+ self.forward_sender_name = forward_sender_name
411
+ self.forward_from_chat = forward_from_chat
412
+ self.forward_from_message_id = forward_from_message_id
413
+ self.forward_signature = forward_signature
414
+ self.forward_date = forward_date
415
+ self.reply_to_message_id = reply_to_message_id
416
+ self.reply_to_top_message_id = reply_to_top_message_id
417
+ self.reply_to_message = reply_to_message
418
+ self.mentioned = mentioned
419
+ self.empty = empty
420
+ self.service = service
421
+ self.scheduled = scheduled
422
+ self.from_scheduled = from_scheduled
423
+ self.media = media
424
+ self.edit_date = edit_date
425
+ self.edit_hide = edit_hide
426
+ self.media_group_id = media_group_id
427
+ self.author_signature = author_signature
428
+ self.has_protected_content = has_protected_content
429
+ self.has_media_spoiler = has_media_spoiler
430
+ self.text = text
431
+ self.entities = entities
432
+ self.caption_entities = caption_entities
433
+ self.audio = audio
434
+ self.document = document
435
+ self.photo = photo
436
+ self.sticker = sticker
437
+ self.animation = animation
438
+ self.game = game
439
+ self.video = video
440
+ self.alternative_videos = alternative_videos
441
+ self.voice = voice
442
+ self.story = story
443
+ self.giveaway = giveaway
444
+ self.video_note = video_note
445
+ self.caption = caption
446
+ self.contact = contact
447
+ self.location = location
448
+ self.venue = venue
449
+ self.web_page = web_page
450
+ self.poll = poll
451
+ self.dice = dice
452
+ self.new_chat_members = new_chat_members
453
+ self.left_chat_member = left_chat_member
454
+ self.new_chat_title = new_chat_title
455
+ self.new_chat_photo = new_chat_photo
456
+ self.delete_chat_photo = delete_chat_photo
457
+ self.group_chat_created = group_chat_created
458
+ self.supergroup_chat_created = supergroup_chat_created
459
+ self.channel_chat_created = channel_chat_created
460
+ self.migrate_to_chat_id = migrate_to_chat_id
461
+ self.migrate_from_chat_id = migrate_from_chat_id
462
+ self.pinned_message = pinned_message
463
+ self.game_high_score = game_high_score
464
+ self.views = views
465
+ self.forwards = forwards
466
+ self.via_bot = via_bot
467
+ self.outgoing = outgoing
468
+ self.matches = matches
469
+ self.command = command
470
+ self.reply_markup = reply_markup
471
+ self.video_chat_scheduled = video_chat_scheduled
472
+ self.video_chat_started = video_chat_started
473
+ self.video_chat_ended = video_chat_ended
474
+ self.video_chat_members_invited = video_chat_members_invited
475
+ self.web_app_data = web_app_data
476
+ self.reactions = reactions
477
+
478
+ @staticmethod
479
+ async def _parse(
480
+ client: "pyrogram.Client",
481
+ message: raw.base.Message,
482
+ users: dict,
483
+ chats: dict,
484
+ is_scheduled: bool = False,
485
+ replies: int = 1
486
+ ):
487
+ if isinstance(message, raw.types.MessageEmpty):
488
+ return Message(id=message.id, empty=True, client=client)
489
+
490
+ from_id = utils.get_raw_peer_id(message.from_id)
491
+ peer_id = utils.get_raw_peer_id(message.peer_id)
492
+ user_id = from_id or peer_id
493
+
494
+ if isinstance(message.from_id, raw.types.PeerUser) and isinstance(message.peer_id, raw.types.PeerUser):
495
+ if from_id not in users or peer_id not in users:
496
+ try:
497
+ r = await client.invoke(
498
+ raw.functions.users.GetUsers(
499
+ id=[
500
+ await client.resolve_peer(from_id),
501
+ await client.resolve_peer(peer_id)
502
+ ]
503
+ )
504
+ )
505
+ except PeerIdInvalid:
506
+ pass
507
+ else:
508
+ users.update({i.id: i for i in r})
509
+
510
+ if isinstance(message, raw.types.MessageService):
511
+ action = message.action
512
+
513
+ new_chat_members = None
514
+ left_chat_member = None
515
+ new_chat_title = None
516
+ delete_chat_photo = None
517
+ migrate_to_chat_id = None
518
+ migrate_from_chat_id = None
519
+ group_chat_created = None
520
+ channel_chat_created = None
521
+ new_chat_photo = None
522
+ video_chat_scheduled = None
523
+ video_chat_started = None
524
+ video_chat_ended = None
525
+ video_chat_members_invited = None
526
+ web_app_data = None
527
+
528
+ service_type = None
529
+
530
+ if isinstance(action, raw.types.MessageActionChatAddUser):
531
+ new_chat_members = [types.User._parse(client, users[i]) for i in action.users]
532
+ service_type = enums.MessageServiceType.NEW_CHAT_MEMBERS
533
+ elif isinstance(action, raw.types.MessageActionChatJoinedByLink):
534
+ new_chat_members = [types.User._parse(client, users[utils.get_raw_peer_id(message.from_id)])]
535
+ service_type = enums.MessageServiceType.NEW_CHAT_MEMBERS
536
+ elif isinstance(action, raw.types.MessageActionChatDeleteUser):
537
+ left_chat_member = types.User._parse(client, users[action.user_id])
538
+ service_type = enums.MessageServiceType.LEFT_CHAT_MEMBERS
539
+ elif isinstance(action, raw.types.MessageActionChatEditTitle):
540
+ new_chat_title = action.title
541
+ service_type = enums.MessageServiceType.NEW_CHAT_TITLE
542
+ elif isinstance(action, raw.types.MessageActionChatDeletePhoto):
543
+ delete_chat_photo = True
544
+ service_type = enums.MessageServiceType.DELETE_CHAT_PHOTO
545
+ elif isinstance(action, raw.types.MessageActionChatMigrateTo):
546
+ migrate_to_chat_id = action.channel_id
547
+ service_type = enums.MessageServiceType.MIGRATE_TO_CHAT_ID
548
+ elif isinstance(action, raw.types.MessageActionChannelMigrateFrom):
549
+ migrate_from_chat_id = action.chat_id
550
+ service_type = enums.MessageServiceType.MIGRATE_FROM_CHAT_ID
551
+ elif isinstance(action, raw.types.MessageActionChatCreate):
552
+ group_chat_created = True
553
+ service_type = enums.MessageServiceType.GROUP_CHAT_CREATED
554
+ elif isinstance(action, raw.types.MessageActionChannelCreate):
555
+ channel_chat_created = True
556
+ service_type = enums.MessageServiceType.CHANNEL_CHAT_CREATED
557
+ elif isinstance(action, raw.types.MessageActionChatEditPhoto):
558
+ new_chat_photo = types.Photo._parse(client, action.photo)
559
+ service_type = enums.MessageServiceType.NEW_CHAT_PHOTO
560
+ elif isinstance(action, raw.types.MessageActionGroupCallScheduled):
561
+ video_chat_scheduled = types.VideoChatScheduled._parse(action)
562
+ service_type = enums.MessageServiceType.VIDEO_CHAT_SCHEDULED
563
+ elif isinstance(action, raw.types.MessageActionGroupCall):
564
+ if action.duration:
565
+ video_chat_ended = types.VideoChatEnded._parse(action)
566
+ service_type = enums.MessageServiceType.VIDEO_CHAT_ENDED
567
+ else:
568
+ video_chat_started = types.VideoChatStarted()
569
+ service_type = enums.MessageServiceType.VIDEO_CHAT_STARTED
570
+ elif isinstance(action, raw.types.MessageActionInviteToGroupCall):
571
+ video_chat_members_invited = types.VideoChatMembersInvited._parse(client, action, users)
572
+ service_type = enums.MessageServiceType.VIDEO_CHAT_MEMBERS_INVITED
573
+ elif isinstance(action, raw.types.MessageActionWebViewDataSentMe):
574
+ web_app_data = types.WebAppData._parse(action)
575
+ service_type = enums.MessageServiceType.WEB_APP_DATA
576
+
577
+ from_user = types.User._parse(client, users.get(user_id, None))
578
+ sender_chat = types.Chat._parse(client, message, users, chats, is_chat=False) if not from_user else None
579
+
580
+ parsed_message = Message(
581
+ id=message.id,
582
+ date=utils.timestamp_to_datetime(message.date),
583
+ chat=types.Chat._parse(client, message, users, chats, is_chat=True),
584
+ from_user=from_user,
585
+ sender_chat=sender_chat,
586
+ service=service_type,
587
+ new_chat_members=new_chat_members,
588
+ left_chat_member=left_chat_member,
589
+ new_chat_title=new_chat_title,
590
+ new_chat_photo=new_chat_photo,
591
+ delete_chat_photo=delete_chat_photo,
592
+ migrate_to_chat_id=utils.get_channel_id(migrate_to_chat_id) if migrate_to_chat_id else None,
593
+ migrate_from_chat_id=-migrate_from_chat_id if migrate_from_chat_id else None,
594
+ group_chat_created=group_chat_created,
595
+ channel_chat_created=channel_chat_created,
596
+ video_chat_scheduled=video_chat_scheduled,
597
+ video_chat_started=video_chat_started,
598
+ video_chat_ended=video_chat_ended,
599
+ video_chat_members_invited=video_chat_members_invited,
600
+ web_app_data=web_app_data,
601
+ client=client
602
+ # TODO: supergroup_chat_created
603
+ )
604
+
605
+ if isinstance(action, raw.types.MessageActionPinMessage):
606
+ try:
607
+ parsed_message.pinned_message = await client.get_messages(
608
+ parsed_message.chat.id,
609
+ reply_to_message_ids=message.id,
610
+ replies=0
611
+ )
612
+
613
+ parsed_message.service = enums.MessageServiceType.PINNED_MESSAGE
614
+ except MessageIdsEmpty:
615
+ pass
616
+
617
+ if isinstance(action, raw.types.MessageActionGameScore):
618
+ parsed_message.game_high_score = types.GameHighScore._parse_action(client, message, users)
619
+
620
+ if message.reply_to and replies:
621
+ try:
622
+ parsed_message.reply_to_message = await client.get_messages(
623
+ parsed_message.chat.id,
624
+ reply_to_message_ids=message.id,
625
+ replies=0
626
+ )
627
+
628
+ parsed_message.service = enums.MessageServiceType.GAME_HIGH_SCORE
629
+ except MessageIdsEmpty:
630
+ pass
631
+
632
+ client.message_cache[(parsed_message.chat.id, parsed_message.id)] = parsed_message
633
+
634
+ return parsed_message
635
+
636
+ if isinstance(message, raw.types.Message):
637
+ entities = [types.MessageEntity._parse(client, entity, users) for entity in message.entities]
638
+ entities = types.List(filter(lambda x: x is not None, entities))
639
+
640
+ forward_from = None
641
+ forward_sender_name = None
642
+ forward_from_chat = None
643
+ forward_from_message_id = None
644
+ forward_signature = None
645
+ forward_date = None
646
+
647
+ forward_header = message.fwd_from # type: raw.types.MessageFwdHeader
648
+
649
+ if forward_header:
650
+ forward_date = utils.timestamp_to_datetime(forward_header.date)
651
+
652
+ if forward_header.from_id:
653
+ raw_peer_id = utils.get_raw_peer_id(forward_header.from_id)
654
+ peer_id = utils.get_peer_id(forward_header.from_id)
655
+
656
+ if peer_id > 0:
657
+ forward_from = types.User._parse(client, users[raw_peer_id])
658
+ else:
659
+ forward_from_chat = types.Chat._parse_channel_chat(client, chats[raw_peer_id])
660
+ forward_from_message_id = forward_header.channel_post
661
+ forward_signature = forward_header.post_author
662
+ elif forward_header.from_name:
663
+ forward_sender_name = forward_header.from_name
664
+
665
+ photo = None
666
+ location = None
667
+ contact = None
668
+ venue = None
669
+ game = None
670
+ story = None
671
+ giveaway = None
672
+ audio = None
673
+ voice = None
674
+ animation = None
675
+ video = None
676
+ alternative_videos = []
677
+ video_note = None
678
+ sticker = None
679
+ document = None
680
+ web_page = None
681
+ poll = None
682
+ dice = None
683
+
684
+ media = message.media
685
+ media_type = None
686
+ has_media_spoiler = None
687
+
688
+ if media:
689
+ if isinstance(media, raw.types.MessageMediaPhoto):
690
+ photo = types.Photo._parse(client, media.photo, media.ttl_seconds)
691
+ media_type = enums.MessageMediaType.PHOTO
692
+ has_media_spoiler = media.spoiler
693
+ elif isinstance(media, raw.types.MessageMediaGeo):
694
+ location = types.Location._parse(client, media.geo)
695
+ media_type = enums.MessageMediaType.LOCATION
696
+ elif isinstance(media, raw.types.MessageMediaContact):
697
+ contact = types.Contact._parse(client, media)
698
+ media_type = enums.MessageMediaType.CONTACT
699
+ elif isinstance(media, raw.types.MessageMediaVenue):
700
+ venue = types.Venue._parse(client, media)
701
+ media_type = enums.MessageMediaType.VENUE
702
+ elif isinstance(media, raw.types.MessageMediaGame):
703
+ game = types.Game._parse(client, message)
704
+ media_type = enums.MessageMediaType.GAME
705
+ elif isinstance(media, raw.types.MessageMediaStory):
706
+ story = types.Story._parse(client, media)
707
+ media_type = enums.MessageMediaType.STORY
708
+ elif isinstance(media, raw.types.MessageMediaGiveaway):
709
+ giveaway = types.Giveaway._parse(client, media, chats)
710
+ media_type = enums.MessageMediaType.GIVEAWAY
711
+ elif isinstance(media, raw.types.MessageMediaDocument):
712
+ doc = media.document
713
+
714
+ if isinstance(doc, raw.types.Document):
715
+ attributes = {type(i): i for i in doc.attributes}
716
+
717
+ file_name = getattr(
718
+ attributes.get(
719
+ raw.types.DocumentAttributeFilename, None
720
+ ), "file_name", None
721
+ )
722
+
723
+ if raw.types.DocumentAttributeAnimated in attributes:
724
+ video_attributes = attributes.get(raw.types.DocumentAttributeVideo, None)
725
+ animation = types.Animation._parse(client, doc, video_attributes, file_name)
726
+ media_type = enums.MessageMediaType.ANIMATION
727
+ has_media_spoiler = media.spoiler
728
+ elif raw.types.DocumentAttributeSticker in attributes:
729
+ sticker = await types.Sticker._parse(client, doc, attributes)
730
+ media_type = enums.MessageMediaType.STICKER
731
+ elif raw.types.DocumentAttributeVideo in attributes:
732
+ video_attributes = attributes[raw.types.DocumentAttributeVideo]
733
+
734
+ if video_attributes.round_message:
735
+ video_note = types.VideoNote._parse(client, doc, video_attributes)
736
+ media_type = enums.MessageMediaType.VIDEO_NOTE
737
+ else:
738
+ video = types.Video._parse(client, doc, video_attributes, file_name, media.ttl_seconds)
739
+ media_type = enums.MessageMediaType.VIDEO
740
+ has_media_spoiler = media.spoiler
741
+
742
+ altdocs = media.alt_documents or []
743
+ for altdoc in altdocs:
744
+ if isinstance(altdoc, raw.types.Document):
745
+ altdoc_attributes = {type(i): i for i in altdoc.attributes}
746
+
747
+ altdoc_file_name = getattr(
748
+ altdoc_attributes.get(
749
+ raw.types.DocumentAttributeFilename, None
750
+ ), "file_name", None
751
+ )
752
+ altdoc_video_attribute = altdoc_attributes.get(raw.types.DocumentAttributeVideo, None)
753
+ if altdoc_video_attribute:
754
+ alternative_videos.append(
755
+ types.AlternativeVideo._parse(client, altdoc, altdoc_video_attribute, altdoc_file_name)
756
+ )
757
+ elif raw.types.DocumentAttributeAudio in attributes:
758
+ audio_attributes = attributes[raw.types.DocumentAttributeAudio]
759
+
760
+ if audio_attributes.voice:
761
+ voice = types.Voice._parse(client, doc, audio_attributes)
762
+ media_type = enums.MessageMediaType.VOICE
763
+ else:
764
+ audio = types.Audio._parse(client, doc, audio_attributes, file_name)
765
+ media_type = enums.MessageMediaType.AUDIO
766
+ else:
767
+ document = types.Document._parse(client, doc, file_name)
768
+ media_type = enums.MessageMediaType.DOCUMENT
769
+ elif isinstance(media, raw.types.MessageMediaWebPage):
770
+ if isinstance(media.webpage, raw.types.WebPage):
771
+ web_page = types.WebPage._parse(client, media.webpage)
772
+ media_type = enums.MessageMediaType.WEB_PAGE
773
+ else:
774
+ media = None
775
+ elif isinstance(media, raw.types.MessageMediaPoll):
776
+ poll = types.Poll._parse(client, media)
777
+ media_type = enums.MessageMediaType.POLL
778
+ elif isinstance(media, raw.types.MessageMediaDice):
779
+ dice = types.Dice._parse(client, media)
780
+ media_type = enums.MessageMediaType.DICE
781
+ else:
782
+ media = None
783
+
784
+ reply_markup = message.reply_markup
785
+
786
+ if reply_markup:
787
+ if isinstance(reply_markup, raw.types.ReplyKeyboardForceReply):
788
+ reply_markup = types.ForceReply.read(reply_markup)
789
+ elif isinstance(reply_markup, raw.types.ReplyKeyboardMarkup):
790
+ reply_markup = types.ReplyKeyboardMarkup.read(reply_markup)
791
+ elif isinstance(reply_markup, raw.types.ReplyInlineMarkup):
792
+ reply_markup = types.InlineKeyboardMarkup.read(reply_markup)
793
+ elif isinstance(reply_markup, raw.types.ReplyKeyboardHide):
794
+ reply_markup = types.ReplyKeyboardRemove.read(reply_markup)
795
+ else:
796
+ reply_markup = None
797
+
798
+ from_user = types.User._parse(client, users.get(user_id, None))
799
+ sender_chat = types.Chat._parse(client, message, users, chats, is_chat=False) if not from_user else None
800
+
801
+ reactions = types.MessageReactions._parse(client, message.reactions)
802
+
803
+ parsed_message = Message(
804
+ id=message.id,
805
+ date=utils.timestamp_to_datetime(message.date),
806
+ chat=types.Chat._parse(client, message, users, chats, is_chat=True),
807
+ from_user=from_user,
808
+ sender_chat=sender_chat,
809
+ text=(
810
+ Str(message.message).init(entities) or None
811
+ if media is None or web_page is not None
812
+ else None
813
+ ),
814
+ caption=(
815
+ Str(message.message).init(entities) or None
816
+ if media is not None and web_page is None
817
+ else None
818
+ ),
819
+ entities=(
820
+ entities or None
821
+ if media is None or web_page is not None
822
+ else None
823
+ ),
824
+ caption_entities=(
825
+ entities or None
826
+ if media is not None and web_page is None
827
+ else None
828
+ ),
829
+ author_signature=message.post_author,
830
+ has_protected_content=message.noforwards,
831
+ has_media_spoiler=has_media_spoiler,
832
+ forward_from=forward_from,
833
+ forward_sender_name=forward_sender_name,
834
+ forward_from_chat=forward_from_chat,
835
+ forward_from_message_id=forward_from_message_id,
836
+ forward_signature=forward_signature,
837
+ forward_date=forward_date,
838
+ mentioned=message.mentioned,
839
+ scheduled=is_scheduled,
840
+ from_scheduled=message.from_scheduled,
841
+ media=media_type,
842
+ edit_hide=message.edit_hide,
843
+ edit_date=utils.timestamp_to_datetime(message.edit_date),
844
+ media_group_id=message.grouped_id,
845
+ photo=photo,
846
+ location=location,
847
+ contact=contact,
848
+ venue=venue,
849
+ audio=audio,
850
+ voice=voice,
851
+ animation=animation,
852
+ game=game,
853
+ story=story,
854
+ giveaway=giveaway,
855
+ video=video,
856
+ alternative_videos=types.List(alternative_videos) if alternative_videos else None,
857
+ video_note=video_note,
858
+ sticker=sticker,
859
+ document=document,
860
+ web_page=web_page,
861
+ poll=poll,
862
+ dice=dice,
863
+ views=message.views,
864
+ forwards=message.forwards,
865
+ via_bot=types.User._parse(client, users.get(message.via_bot_id, None)),
866
+ outgoing=message.out,
867
+ reply_markup=reply_markup,
868
+ reactions=reactions,
869
+ client=client
870
+ )
871
+
872
+ if message.reply_to:
873
+ parsed_message.reply_to_message_id = None
874
+ parsed_message.reply_to_top_message_id = None
875
+ if isinstance(message.reply_to, raw.types.MessageReplyHeader):
876
+ parsed_message.reply_to_message_id = message.reply_to.reply_to_msg_id
877
+ parsed_message.reply_to_top_message_id = message.reply_to.reply_to_top_id
878
+ if isinstance(message.reply_to, raw.types.MessageReplyStoryHeader):
879
+ parsed_message.reply_to_message_id = message.reply_to.story_id
880
+
881
+ if replies:
882
+ try:
883
+ key = (parsed_message.chat.id, parsed_message.reply_to_message_id)
884
+ reply_to_message = client.message_cache[key]
885
+
886
+ if not reply_to_message:
887
+ reply_to_message = await client.get_messages(
888
+ parsed_message.chat.id,
889
+ reply_to_message_ids=message.id,
890
+ replies=replies - 1
891
+ )
892
+
893
+ parsed_message.reply_to_message = reply_to_message
894
+ except MessageIdsEmpty:
895
+ pass
896
+
897
+ if not parsed_message.poll: # Do not cache poll messages
898
+ client.message_cache[(parsed_message.chat.id, parsed_message.id)] = parsed_message
899
+
900
+ return parsed_message
901
+
902
+ @property
903
+ def link(self) -> str:
904
+ if (
905
+ self.chat.type in (enums.ChatType.GROUP, enums.ChatType.SUPERGROUP, enums.ChatType.CHANNEL)
906
+ and self.chat.username
907
+ ):
908
+ return f"https://t.me/{self.chat.username}/{self.id}"
909
+ else:
910
+ return f"https://t.me/c/{utils.get_channel_id(self.chat.id)}/{self.id}"
911
+
912
+ async def get_media_group(self) -> List["types.Message"]:
913
+ """Bound method *get_media_group* of :obj:`~pyrogram.types.Message`.
914
+
915
+ Use as a shortcut for:
916
+
917
+ .. code-block:: python
918
+
919
+ await client.get_media_group(
920
+ chat_id=message.chat.id,
921
+ message_id=message.id
922
+ )
923
+
924
+ Example:
925
+ .. code-block:: python
926
+
927
+ await message.get_media_group()
928
+
929
+ Returns:
930
+ List of :obj:`~pyrogram.types.Message`: On success, a list of messages of the media group is returned.
931
+
932
+ Raises:
933
+ ValueError: In case the passed message id doesn't belong to a media group.
934
+ """
935
+
936
+ return await self._client.get_media_group(
937
+ chat_id=self.chat.id,
938
+ message_id=self.id
939
+ )
940
+
941
+ async def reply_text(
942
+ self,
943
+ text: str,
944
+ quote: bool = None,
945
+ parse_mode: Optional["enums.ParseMode"] = None,
946
+ entities: List["types.MessageEntity"] = None,
947
+ disable_web_page_preview: bool = None,
948
+ disable_notification: bool = None,
949
+ reply_to_message_id: int = None,
950
+ partial_reply: str = None,
951
+ schedule_date: datetime = None,
952
+ protect_content: bool = None,
953
+ reply_markup=None
954
+ ) -> "Message":
955
+ """Bound method *reply_text* of :obj:`~pyrogram.types.Message`.
956
+
957
+ An alias exists as *reply*.
958
+
959
+ Use as a shortcut for:
960
+
961
+ .. code-block:: python
962
+
963
+ await client.send_message(
964
+ chat_id=message.chat.id,
965
+ text="hello",
966
+ reply_to_message_id=message.id
967
+ )
968
+
969
+ Example:
970
+ .. code-block:: python
971
+
972
+ await message.reply_text("hello", quote=True)
973
+
974
+ Parameters:
975
+ text (``str``):
976
+ Text of the message to be sent.
977
+
978
+ quote (``bool``, *optional*):
979
+ If ``True``, the message will be sent as a reply to this message.
980
+ If *reply_to_message_id* is passed, this parameter will be ignored.
981
+ Defaults to ``True`` in group chats and ``False`` in private chats.
982
+
983
+ parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
984
+ By default, texts are parsed using both Markdown and HTML styles.
985
+ You can combine both syntaxes together.
986
+
987
+ entities (List of :obj:`~pyrogram.types.MessageEntity`):
988
+ List of special entities that appear in message text, which can be specified instead of *parse_mode*.
989
+
990
+ disable_web_page_preview (``bool``, *optional*):
991
+ Disables link previews for links in this message.
992
+
993
+ disable_notification (``bool``, *optional*):
994
+ Sends the message silently.
995
+ Users will receive a notification with no sound.
996
+
997
+ reply_to_message_id (``int``, *optional*):
998
+ If the message is a reply, ID of the original message.
999
+
1000
+ partial_reply (``str``, *optional*):
1001
+ Text to quote.
1002
+ for reply_to_message only.
1003
+
1004
+ schedule_date (:py:obj:`~datetime.datetime`, *optional*):
1005
+ Date when the message will be automatically sent.
1006
+
1007
+ protect_content (``bool``, *optional*):
1008
+ Protects the contents of the sent message from forwarding and saving.
1009
+
1010
+ reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
1011
+ Additional interface options. An object for an inline keyboard, custom reply keyboard,
1012
+ instructions to remove reply keyboard or to force a reply from the user.
1013
+
1014
+ Returns:
1015
+ On success, the sent Message is returned.
1016
+
1017
+ Raises:
1018
+ RPCError: In case of a Telegram RPC error.
1019
+ """
1020
+ if quote is None:
1021
+ quote = self.chat.type != enums.ChatType.PRIVATE
1022
+
1023
+ if reply_to_message_id is None and quote:
1024
+ reply_to_message_id = self.id
1025
+
1026
+ return await self._client.send_message(
1027
+ chat_id=self.chat.id,
1028
+ text=text,
1029
+ parse_mode=parse_mode,
1030
+ entities=entities,
1031
+ disable_web_page_preview=disable_web_page_preview,
1032
+ disable_notification=disable_notification,
1033
+ reply_to_message_id=reply_to_message_id,
1034
+ partial_reply=partial_reply,
1035
+ schedule_date=schedule_date,
1036
+ protect_content=protect_content,
1037
+ reply_markup=reply_markup
1038
+ )
1039
+
1040
+ reply = reply_text
1041
+
1042
+ async def reply_animation(
1043
+ self,
1044
+ animation: Union[str, BinaryIO],
1045
+ quote: bool = None,
1046
+ caption: str = "",
1047
+ parse_mode: Optional["enums.ParseMode"] = None,
1048
+ caption_entities: List["types.MessageEntity"] = None,
1049
+ has_spoiler: bool = None,
1050
+ duration: int = 0,
1051
+ width: int = 0,
1052
+ height: int = 0,
1053
+ thumb: str = None,
1054
+ disable_notification: bool = None,
1055
+ reply_markup: Union[
1056
+ "types.InlineKeyboardMarkup",
1057
+ "types.ReplyKeyboardMarkup",
1058
+ "types.ReplyKeyboardRemove",
1059
+ "types.ForceReply"
1060
+ ] = None,
1061
+ reply_to_message_id: int = None,
1062
+ partial_reply: str = None,
1063
+ progress: Callable = None,
1064
+ progress_args: tuple = ()
1065
+ ) -> "Message":
1066
+ """Bound method *reply_animation* :obj:`~pyrogram.types.Message`.
1067
+
1068
+ Use as a shortcut for:
1069
+
1070
+ .. code-block:: python
1071
+
1072
+ await client.send_animation(
1073
+ chat_id=message.chat.id,
1074
+ animation=animation
1075
+ )
1076
+
1077
+ Example:
1078
+ .. code-block:: python
1079
+
1080
+ await message.reply_animation(animation)
1081
+
1082
+ Parameters:
1083
+ animation (``str``):
1084
+ Animation to send.
1085
+ Pass a file_id as string to send an animation that exists on the Telegram servers,
1086
+ pass an HTTP URL as a string for Telegram to get an animation from the Internet, or
1087
+ pass a file path as string to upload a new animation that exists on your local machine.
1088
+
1089
+ quote (``bool``, *optional*):
1090
+ If ``True``, the message will be sent as a reply to this message.
1091
+ If *reply_to_message_id* is passed, this parameter will be ignored.
1092
+ Defaults to ``True`` in group chats and ``False`` in private chats.
1093
+
1094
+ caption (``str``, *optional*):
1095
+ Animation caption, 0-1024 characters.
1096
+
1097
+ parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
1098
+ By default, texts are parsed using both Markdown and HTML styles.
1099
+ You can combine both syntaxes together.
1100
+
1101
+ caption_entities (List of :obj:`~pyrogram.types.MessageEntity`):
1102
+ List of special entities that appear in the caption, which can be specified instead of *parse_mode*.
1103
+
1104
+ has_spoiler (``bool``, *optional*):
1105
+ Pass True if the animation needs to be covered with a spoiler animation.
1106
+
1107
+ duration (``int``, *optional*):
1108
+ Duration of sent animation in seconds.
1109
+
1110
+ width (``int``, *optional*):
1111
+ Animation width.
1112
+
1113
+ height (``int``, *optional*):
1114
+ Animation height.
1115
+
1116
+ thumb (``str``, *optional*):
1117
+ Thumbnail of the animation file sent.
1118
+ The thumbnail should be in JPEG format and less than 200 KB in size.
1119
+ A thumbnail's width and height should not exceed 320 pixels.
1120
+ Thumbnails can't be reused and can be only uploaded as a new file.
1121
+
1122
+ disable_notification (``bool``, *optional*):
1123
+ Sends the message silently.
1124
+ Users will receive a notification with no sound.
1125
+
1126
+ reply_to_message_id (``int``, *optional*):
1127
+ If the message is a reply, ID of the original message.
1128
+
1129
+ partial_reply (``str``, *optional*):
1130
+ Text to quote.
1131
+ for reply_to_message only.
1132
+
1133
+ reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
1134
+ Additional interface options. An object for an inline keyboard, custom reply keyboard,
1135
+ instructions to remove reply keyboard or to force a reply from the user.
1136
+
1137
+ progress (``Callable``, *optional*):
1138
+ Pass a callback function to view the file transmission progress.
1139
+ The function must take *(current, total)* as positional arguments (look at Other Parameters below for a
1140
+ detailed description) and will be called back each time a new file chunk has been successfully
1141
+ transmitted.
1142
+
1143
+ progress_args (``tuple``, *optional*):
1144
+ Extra custom arguments for the progress callback function.
1145
+ You can pass anything you need to be available in the progress callback scope; for example, a Message
1146
+ object or a Client instance in order to edit the message with the updated progress status.
1147
+
1148
+ Other Parameters:
1149
+ current (``int``):
1150
+ The amount of bytes transmitted so far.
1151
+
1152
+ total (``int``):
1153
+ The total size of the file.
1154
+
1155
+ *args (``tuple``, *optional*):
1156
+ Extra custom arguments as defined in the ``progress_args`` parameter.
1157
+ You can either keep ``*args`` or add every single extra argument in your function signature.
1158
+
1159
+ Returns:
1160
+ On success, the sent :obj:`~pyrogram.types.Message` is returned.
1161
+ In case the upload is deliberately stopped with :meth:`~pyrogram.Client.stop_transmission`, None is returned
1162
+ instead.
1163
+
1164
+ Raises:
1165
+ RPCError: In case of a Telegram RPC error.
1166
+ """
1167
+ if quote is None:
1168
+ quote = self.chat.type != enums.ChatType.PRIVATE
1169
+
1170
+ if reply_to_message_id is None and quote:
1171
+ reply_to_message_id = self.id
1172
+
1173
+ return await self._client.send_animation(
1174
+ chat_id=self.chat.id,
1175
+ animation=animation,
1176
+ caption=caption,
1177
+ parse_mode=parse_mode,
1178
+ caption_entities=caption_entities,
1179
+ has_spoiler=has_spoiler,
1180
+ duration=duration,
1181
+ width=width,
1182
+ height=height,
1183
+ thumb=thumb,
1184
+ disable_notification=disable_notification,
1185
+ reply_to_message_id=reply_to_message_id,
1186
+ partial_reply=partial_reply,
1187
+ reply_markup=reply_markup,
1188
+ progress=progress,
1189
+ progress_args=progress_args
1190
+ )
1191
+
1192
+ async def reply_audio(
1193
+ self,
1194
+ audio: Union[str, BinaryIO],
1195
+ quote: bool = None,
1196
+ caption: str = "",
1197
+ parse_mode: Optional["enums.ParseMode"] = None,
1198
+ caption_entities: List["types.MessageEntity"] = None,
1199
+ duration: int = 0,
1200
+ performer: str = None,
1201
+ title: str = None,
1202
+ thumb: str = None,
1203
+ disable_notification: bool = None,
1204
+ reply_to_message_id: int = None,
1205
+ partial_reply: str = None,
1206
+ reply_markup: Union[
1207
+ "types.InlineKeyboardMarkup",
1208
+ "types.ReplyKeyboardMarkup",
1209
+ "types.ReplyKeyboardRemove",
1210
+ "types.ForceReply"
1211
+ ] = None,
1212
+ progress: Callable = None,
1213
+ progress_args: tuple = ()
1214
+ ) -> "Message":
1215
+ """Bound method *reply_audio* of :obj:`~pyrogram.types.Message`.
1216
+
1217
+ Use as a shortcut for:
1218
+
1219
+ .. code-block:: python
1220
+
1221
+ await client.send_audio(
1222
+ chat_id=message.chat.id,
1223
+ audio=audio
1224
+ )
1225
+
1226
+ Example:
1227
+ .. code-block:: python
1228
+
1229
+ await message.reply_audio(audio)
1230
+
1231
+ Parameters:
1232
+ audio (``str``):
1233
+ Audio file to send.
1234
+ Pass a file_id as string to send an audio file that exists on the Telegram servers,
1235
+ pass an HTTP URL as a string for Telegram to get an audio file from the Internet, or
1236
+ pass a file path as string to upload a new audio file that exists on your local machine.
1237
+
1238
+ quote (``bool``, *optional*):
1239
+ If ``True``, the message will be sent as a reply to this message.
1240
+ If *reply_to_message_id* is passed, this parameter will be ignored.
1241
+ Defaults to ``True`` in group chats and ``False`` in private chats.
1242
+
1243
+ caption (``str``, *optional*):
1244
+ Audio caption, 0-1024 characters.
1245
+
1246
+ parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
1247
+ By default, texts are parsed using both Markdown and HTML styles.
1248
+ You can combine both syntaxes together.
1249
+
1250
+ caption_entities (List of :obj:`~pyrogram.types.MessageEntity`):
1251
+ List of special entities that appear in the caption, which can be specified instead of *parse_mode*.
1252
+
1253
+ duration (``int``, *optional*):
1254
+ Duration of the audio in seconds.
1255
+
1256
+ performer (``str``, *optional*):
1257
+ Performer.
1258
+
1259
+ title (``str``, *optional*):
1260
+ Track name.
1261
+
1262
+ thumb (``str``, *optional*):
1263
+ Thumbnail of the music file album cover.
1264
+ The thumbnail should be in JPEG format and less than 200 KB in size.
1265
+ A thumbnail's width and height should not exceed 320 pixels.
1266
+ Thumbnails can't be reused and can be only uploaded as a new file.
1267
+
1268
+ disable_notification (``bool``, *optional*):
1269
+ Sends the message silently.
1270
+ Users will receive a notification with no sound.
1271
+
1272
+ reply_to_message_id (``int``, *optional*):
1273
+ If the message is a reply, ID of the original message.
1274
+
1275
+ partial_reply (``str``, *optional*):
1276
+ Text to quote.
1277
+ for reply_to_message only.
1278
+
1279
+ reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
1280
+ Additional interface options. An object for an inline keyboard, custom reply keyboard,
1281
+ instructions to remove reply keyboard or to force a reply from the user.
1282
+
1283
+ progress (``Callable``, *optional*):
1284
+ Pass a callback function to view the file transmission progress.
1285
+ The function must take *(current, total)* as positional arguments (look at Other Parameters below for a
1286
+ detailed description) and will be called back each time a new file chunk has been successfully
1287
+ transmitted.
1288
+
1289
+ progress_args (``tuple``, *optional*):
1290
+ Extra custom arguments for the progress callback function.
1291
+ You can pass anything you need to be available in the progress callback scope; for example, a Message
1292
+ object or a Client instance in order to edit the message with the updated progress status.
1293
+
1294
+ Other Parameters:
1295
+ current (``int``):
1296
+ The amount of bytes transmitted so far.
1297
+
1298
+ total (``int``):
1299
+ The total size of the file.
1300
+
1301
+ *args (``tuple``, *optional*):
1302
+ Extra custom arguments as defined in the ``progress_args`` parameter.
1303
+ You can either keep ``*args`` or add every single extra argument in your function signature.
1304
+
1305
+ Returns:
1306
+ On success, the sent :obj:`~pyrogram.types.Message` is returned.
1307
+ In case the upload is deliberately stopped with :meth:`~pyrogram.Client.stop_transmission`, None is returned
1308
+ instead.
1309
+
1310
+ Raises:
1311
+ RPCError: In case of a Telegram RPC error.
1312
+ """
1313
+ if quote is None:
1314
+ quote = self.chat.type != enums.ChatType.PRIVATE
1315
+
1316
+ if reply_to_message_id is None and quote:
1317
+ reply_to_message_id = self.id
1318
+
1319
+ return await self._client.send_audio(
1320
+ chat_id=self.chat.id,
1321
+ audio=audio,
1322
+ caption=caption,
1323
+ parse_mode=parse_mode,
1324
+ caption_entities=caption_entities,
1325
+ duration=duration,
1326
+ performer=performer,
1327
+ title=title,
1328
+ thumb=thumb,
1329
+ disable_notification=disable_notification,
1330
+ reply_to_message_id=reply_to_message_id,
1331
+ partial_reply=partial_reply,
1332
+ reply_markup=reply_markup,
1333
+ progress=progress,
1334
+ progress_args=progress_args
1335
+ )
1336
+
1337
+ async def reply_cached_media(
1338
+ self,
1339
+ file_id: str,
1340
+ quote: bool = None,
1341
+ caption: str = "",
1342
+ parse_mode: Optional["enums.ParseMode"] = None,
1343
+ caption_entities: List["types.MessageEntity"] = None,
1344
+ disable_notification: bool = None,
1345
+ reply_to_message_id: int = None,
1346
+ partial_reply: str = None,
1347
+ reply_markup: Union[
1348
+ "types.InlineKeyboardMarkup",
1349
+ "types.ReplyKeyboardMarkup",
1350
+ "types.ReplyKeyboardRemove",
1351
+ "types.ForceReply"
1352
+ ] = None
1353
+ ) -> "Message":
1354
+ """Bound method *reply_cached_media* of :obj:`~pyrogram.types.Message`.
1355
+
1356
+ Use as a shortcut for:
1357
+
1358
+ .. code-block:: python
1359
+
1360
+ await client.send_cached_media(
1361
+ chat_id=message.chat.id,
1362
+ file_id=file_id
1363
+ )
1364
+
1365
+ Example:
1366
+ .. code-block:: python
1367
+
1368
+ await message.reply_cached_media(file_id)
1369
+
1370
+ Parameters:
1371
+ file_id (``str``):
1372
+ Media to send.
1373
+ Pass a file_id as string to send a media that exists on the Telegram servers.
1374
+
1375
+ quote (``bool``, *optional*):
1376
+ If ``True``, the message will be sent as a reply to this message.
1377
+ If *reply_to_message_id* is passed, this parameter will be ignored.
1378
+ Defaults to ``True`` in group chats and ``False`` in private chats.
1379
+
1380
+ caption (``bool``, *optional*):
1381
+ Media caption, 0-1024 characters.
1382
+
1383
+ parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
1384
+ By default, texts are parsed using both Markdown and HTML styles.
1385
+ You can combine both syntaxes together.
1386
+
1387
+ caption_entities (List of :obj:`~pyrogram.types.MessageEntity`):
1388
+ List of special entities that appear in the caption, which can be specified instead of *parse_mode*.
1389
+
1390
+ disable_notification (``bool``, *optional*):
1391
+ Sends the message silently.
1392
+ Users will receive a notification with no sound.
1393
+
1394
+ reply_to_message_id (``int``, *optional*):
1395
+ If the message is a reply, ID of the original message.
1396
+
1397
+ partial_reply (``str``, *optional*):
1398
+ Text to quote.
1399
+ for reply_to_message only.
1400
+
1401
+ reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
1402
+ Additional interface options. An object for an inline keyboard, custom reply keyboard,
1403
+ instructions to remove reply keyboard or to force a reply from the user.
1404
+
1405
+ Returns:
1406
+ On success, the sent :obj:`~pyrogram.types.Message` is returned.
1407
+
1408
+ Raises:
1409
+ RPCError: In case of a Telegram RPC error.
1410
+ """
1411
+ if quote is None:
1412
+ quote = self.chat.type != enums.ChatType.PRIVATE
1413
+
1414
+ if reply_to_message_id is None and quote:
1415
+ reply_to_message_id = self.id
1416
+
1417
+ return await self._client.send_cached_media(
1418
+ chat_id=self.chat.id,
1419
+ file_id=file_id,
1420
+ caption=caption,
1421
+ parse_mode=parse_mode,
1422
+ caption_entities=caption_entities,
1423
+ disable_notification=disable_notification,
1424
+ reply_to_message_id=reply_to_message_id,
1425
+ partial_reply=partial_reply,
1426
+ reply_markup=reply_markup
1427
+ )
1428
+
1429
+ async def reply_chat_action(self, action: "enums.ChatAction") -> bool:
1430
+ """Bound method *reply_chat_action* of :obj:`~pyrogram.types.Message`.
1431
+
1432
+ Use as a shortcut for:
1433
+
1434
+ .. code-block:: python
1435
+
1436
+ from pyrogram import enums
1437
+
1438
+ await client.send_chat_action(
1439
+ chat_id=message.chat.id,
1440
+ action=enums.ChatAction.TYPING
1441
+ )
1442
+
1443
+ Example:
1444
+ .. code-block:: python
1445
+
1446
+ from pyrogram import enums
1447
+
1448
+ await message.reply_chat_action(enums.ChatAction.TYPING)
1449
+
1450
+ Parameters:
1451
+ action (:obj:`~pyrogram.enums.ChatAction`):
1452
+ Type of action to broadcast.
1453
+
1454
+ Returns:
1455
+ ``bool``: On success, True is returned.
1456
+
1457
+ Raises:
1458
+ RPCError: In case of a Telegram RPC error.
1459
+ ValueError: In case the provided string is not a valid chat action.
1460
+ """
1461
+ return await self._client.send_chat_action(
1462
+ chat_id=self.chat.id,
1463
+ action=action
1464
+ )
1465
+
1466
+ async def reply_contact(
1467
+ self,
1468
+ phone_number: str,
1469
+ first_name: str,
1470
+ quote: bool = None,
1471
+ last_name: str = "",
1472
+ vcard: str = "",
1473
+ disable_notification: bool = None,
1474
+ reply_to_message_id: int = None,
1475
+ partial_reply: str = None,
1476
+ reply_markup: Union[
1477
+ "types.InlineKeyboardMarkup",
1478
+ "types.ReplyKeyboardMarkup",
1479
+ "types.ReplyKeyboardRemove",
1480
+ "types.ForceReply"
1481
+ ] = None
1482
+ ) -> "Message":
1483
+ """Bound method *reply_contact* of :obj:`~pyrogram.types.Message`.
1484
+
1485
+ Use as a shortcut for:
1486
+
1487
+ .. code-block:: python
1488
+
1489
+ await client.send_contact(
1490
+ chat_id=message.chat.id,
1491
+ phone_number=phone_number,
1492
+ first_name=first_name
1493
+ )
1494
+
1495
+ Example:
1496
+ .. code-block:: python
1497
+
1498
+ await message.reply_contact("+1-123-456-7890", "Name")
1499
+
1500
+ Parameters:
1501
+ phone_number (``str``):
1502
+ Contact's phone number.
1503
+
1504
+ first_name (``str``):
1505
+ Contact's first name.
1506
+
1507
+ quote (``bool``, *optional*):
1508
+ If ``True``, the message will be sent as a reply to this message.
1509
+ If *reply_to_message_id* is passed, this parameter will be ignored.
1510
+ Defaults to ``True`` in group chats and ``False`` in private chats.
1511
+
1512
+ last_name (``str``, *optional*):
1513
+ Contact's last name.
1514
+
1515
+ vcard (``str``, *optional*):
1516
+ Additional data about the contact in the form of a vCard, 0-2048 bytes
1517
+
1518
+ disable_notification (``bool``, *optional*):
1519
+ Sends the message silently.
1520
+ Users will receive a notification with no sound.
1521
+
1522
+ reply_to_message_id (``int``, *optional*):
1523
+ If the message is a reply, ID of the original message.
1524
+
1525
+ partial_reply (``str``, *optional*):
1526
+ Text to quote.
1527
+ for reply_to_message only.
1528
+
1529
+ reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
1530
+ Additional interface options. An object for an inline keyboard, custom reply keyboard,
1531
+ instructions to remove reply keyboard or to force a reply from the user.
1532
+
1533
+ Returns:
1534
+ On success, the sent :obj:`~pyrogram.types.Message` is returned.
1535
+
1536
+ Raises:
1537
+ RPCError: In case of a Telegram RPC error.
1538
+ """
1539
+ if quote is None:
1540
+ quote = self.chat.type != enums.ChatType.PRIVATE
1541
+
1542
+ if reply_to_message_id is None and quote:
1543
+ reply_to_message_id = self.id
1544
+
1545
+ return await self._client.send_contact(
1546
+ chat_id=self.chat.id,
1547
+ phone_number=phone_number,
1548
+ first_name=first_name,
1549
+ last_name=last_name,
1550
+ vcard=vcard,
1551
+ disable_notification=disable_notification,
1552
+ reply_to_message_id=reply_to_message_id,
1553
+ partial_reply=partial_reply,
1554
+ reply_markup=reply_markup
1555
+ )
1556
+
1557
+ async def reply_document(
1558
+ self,
1559
+ document: Union[str, BinaryIO],
1560
+ quote: bool = None,
1561
+ thumb: str = None,
1562
+ caption: str = "",
1563
+ parse_mode: Optional["enums.ParseMode"] = None,
1564
+ caption_entities: List["types.MessageEntity"] = None,
1565
+ file_name: str = None,
1566
+ force_document: bool = None,
1567
+ disable_notification: bool = None,
1568
+ reply_to_message_id: int = None,
1569
+ partial_reply: str = None,
1570
+ schedule_date: datetime = None,
1571
+ reply_markup: Union[
1572
+ "types.InlineKeyboardMarkup",
1573
+ "types.ReplyKeyboardMarkup",
1574
+ "types.ReplyKeyboardRemove",
1575
+ "types.ForceReply"
1576
+ ] = None,
1577
+ progress: Callable = None,
1578
+ progress_args: tuple = ()
1579
+ ) -> "Message":
1580
+ """Bound method *reply_document* of :obj:`~pyrogram.types.Message`.
1581
+
1582
+ Use as a shortcut for:
1583
+
1584
+ .. code-block:: python
1585
+
1586
+ await client.send_document(
1587
+ chat_id=message.chat.id,
1588
+ document=document
1589
+ )
1590
+
1591
+ Example:
1592
+ .. code-block:: python
1593
+
1594
+ await message.reply_document(document)
1595
+
1596
+ Parameters:
1597
+ document (``str``):
1598
+ File to send.
1599
+ Pass a file_id as string to send a file that exists on the Telegram servers,
1600
+ pass an HTTP URL as a string for Telegram to get a file from the Internet, or
1601
+ pass a file path as string to upload a new file that exists on your local machine.
1602
+
1603
+ quote (``bool``, *optional*):
1604
+ If ``True``, the message will be sent as a reply to this message.
1605
+ If *reply_to_message_id* is passed, this parameter will be ignored.
1606
+ Defaults to ``True`` in group chats and ``False`` in private chats.
1607
+
1608
+ thumb (``str``, *optional*):
1609
+ Thumbnail of the file sent.
1610
+ The thumbnail should be in JPEG format and less than 200 KB in size.
1611
+ A thumbnail's width and height should not exceed 320 pixels.
1612
+ Thumbnails can't be reused and can be only uploaded as a new file.
1613
+
1614
+ caption (``str``, *optional*):
1615
+ Document caption, 0-1024 characters.
1616
+
1617
+ parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
1618
+ By default, texts are parsed using both Markdown and HTML styles.
1619
+ You can combine both syntaxes together.
1620
+
1621
+ caption_entities (List of :obj:`~pyrogram.types.MessageEntity`):
1622
+ List of special entities that appear in the caption, which can be specified instead of *parse_mode*.
1623
+
1624
+ file_name (``str``, *optional*):
1625
+ File name of the document sent.
1626
+ Defaults to file's path basename.
1627
+
1628
+ force_document (``bool``, *optional*):
1629
+ Pass True to force sending files as document. Useful for video files that need to be sent as
1630
+ document messages instead of video messages.
1631
+ Defaults to False.
1632
+
1633
+ disable_notification (``bool``, *optional*):
1634
+ Sends the message silently.
1635
+ Users will receive a notification with no sound.
1636
+
1637
+ reply_to_message_id (``int``, *optional*):
1638
+ If the message is a reply, ID of the original message.
1639
+
1640
+ partial_reply (``str``, *optional*):
1641
+ Text to quote.
1642
+ for reply_to_message only.
1643
+
1644
+ schedule_date (:py:obj:`~datetime.datetime`, *optional*):
1645
+ Date when the message will be automatically sent.
1646
+
1647
+ reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
1648
+ Additional interface options. An object for an inline keyboard, custom reply keyboard,
1649
+ instructions to remove reply keyboard or to force a reply from the user.
1650
+
1651
+ progress (``Callable``, *optional*):
1652
+ Pass a callback function to view the file transmission progress.
1653
+ The function must take *(current, total)* as positional arguments (look at Other Parameters below for a
1654
+ detailed description) and will be called back each time a new file chunk has been successfully
1655
+ transmitted.
1656
+
1657
+ progress_args (``tuple``, *optional*):
1658
+ Extra custom arguments for the progress callback function.
1659
+ You can pass anything you need to be available in the progress callback scope; for example, a Message
1660
+ object or a Client instance in order to edit the message with the updated progress status.
1661
+
1662
+ Other Parameters:
1663
+ current (``int``):
1664
+ The amount of bytes transmitted so far.
1665
+
1666
+ total (``int``):
1667
+ The total size of the file.
1668
+
1669
+ *args (``tuple``, *optional*):
1670
+ Extra custom arguments as defined in the ``progress_args`` parameter.
1671
+ You can either keep ``*args`` or add every single extra argument in your function signature.
1672
+
1673
+ Returns:
1674
+ On success, the sent :obj:`~pyrogram.types.Message` is returned.
1675
+ In case the upload is deliberately stopped with :meth:`~pyrogram.Client.stop_transmission`, None is returned
1676
+ instead.
1677
+
1678
+ Raises:
1679
+ RPCError: In case of a Telegram RPC error.
1680
+ """
1681
+ if quote is None:
1682
+ quote = self.chat.type != enums.ChatType.PRIVATE
1683
+
1684
+ if reply_to_message_id is None and quote:
1685
+ reply_to_message_id = self.id
1686
+
1687
+ return await self._client.send_document(
1688
+ chat_id=self.chat.id,
1689
+ document=document,
1690
+ thumb=thumb,
1691
+ caption=caption,
1692
+ parse_mode=parse_mode,
1693
+ caption_entities=caption_entities,
1694
+ file_name=file_name,
1695
+ force_document=force_document,
1696
+ disable_notification=disable_notification,
1697
+ reply_to_message_id=reply_to_message_id,
1698
+ partial_reply=partial_reply,
1699
+ schedule_date=schedule_date,
1700
+ reply_markup=reply_markup,
1701
+ progress=progress,
1702
+ progress_args=progress_args
1703
+ )
1704
+
1705
+ async def reply_game(
1706
+ self,
1707
+ game_short_name: str,
1708
+ quote: bool = None,
1709
+ disable_notification: bool = None,
1710
+ reply_to_message_id: int = None,
1711
+ reply_markup: Union[
1712
+ "types.InlineKeyboardMarkup",
1713
+ "types.ReplyKeyboardMarkup",
1714
+ "types.ReplyKeyboardRemove",
1715
+ "types.ForceReply"
1716
+ ] = None
1717
+ ) -> "Message":
1718
+ """Bound method *reply_game* of :obj:`~pyrogram.types.Message`.
1719
+
1720
+ Use as a shortcut for:
1721
+
1722
+ .. code-block:: python
1723
+
1724
+ await client.send_game(
1725
+ chat_id=message.chat.id,
1726
+ game_short_name="lumberjack"
1727
+ )
1728
+
1729
+ Example:
1730
+ .. code-block:: python
1731
+
1732
+ await message.reply_game("lumberjack")
1733
+
1734
+ Parameters:
1735
+ game_short_name (``str``):
1736
+ Short name of the game, serves as the unique identifier for the game. Set up your games via Botfather.
1737
+
1738
+ quote (``bool``, *optional*):
1739
+ If ``True``, the message will be sent as a reply to this message.
1740
+ If *reply_to_message_id* is passed, this parameter will be ignored.
1741
+ Defaults to ``True`` in group chats and ``False`` in private chats.
1742
+
1743
+ disable_notification (``bool``, *optional*):
1744
+ Sends the message silently.
1745
+ Users will receive a notification with no sound.
1746
+
1747
+ reply_to_message_id (``int``, *optional*):
1748
+ If the message is a reply, ID of the original message.
1749
+
1750
+ reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup`, *optional*):
1751
+ An object for an inline keyboard. If empty, one ‘Play game_title’ button will be shown automatically.
1752
+ If not empty, the first button must launch the game.
1753
+
1754
+ Returns:
1755
+ On success, the sent :obj:`~pyrogram.types.Message` is returned.
1756
+
1757
+ Raises:
1758
+ RPCError: In case of a Telegram RPC error.
1759
+ """
1760
+ if quote is None:
1761
+ quote = self.chat.type != enums.ChatType.PRIVATE
1762
+
1763
+ if reply_to_message_id is None and quote:
1764
+ reply_to_message_id = self.id
1765
+
1766
+ return await self._client.send_game(
1767
+ chat_id=self.chat.id,
1768
+ game_short_name=game_short_name,
1769
+ disable_notification=disable_notification,
1770
+ reply_to_message_id=reply_to_message_id,
1771
+ reply_markup=reply_markup
1772
+ )
1773
+
1774
+ async def reply_inline_bot_result(
1775
+ self,
1776
+ query_id: int,
1777
+ result_id: str,
1778
+ quote: bool = None,
1779
+ disable_notification: bool = None,
1780
+ reply_to_message_id: int = None,
1781
+ partial_reply: str = None
1782
+ ) -> "Message":
1783
+ """Bound method *reply_inline_bot_result* of :obj:`~pyrogram.types.Message`.
1784
+
1785
+ Use as a shortcut for:
1786
+
1787
+ .. code-block:: python
1788
+
1789
+ await client.send_inline_bot_result(
1790
+ chat_id=message.chat.id,
1791
+ query_id=query_id,
1792
+ result_id=result_id
1793
+ )
1794
+
1795
+ Example:
1796
+ .. code-block:: python
1797
+
1798
+ await message.reply_inline_bot_result(query_id, result_id)
1799
+
1800
+ Parameters:
1801
+ query_id (``int``):
1802
+ Unique identifier for the answered query.
1803
+
1804
+ result_id (``str``):
1805
+ Unique identifier for the result that was chosen.
1806
+
1807
+ quote (``bool``, *optional*):
1808
+ If ``True``, the message will be sent as a reply to this message.
1809
+ If *reply_to_message_id* is passed, this parameter will be ignored.
1810
+ Defaults to ``True`` in group chats and ``False`` in private chats.
1811
+
1812
+ disable_notification (``bool``, *optional*):
1813
+ Sends the message silently.
1814
+ Users will receive a notification with no sound.
1815
+
1816
+ reply_to_message_id (``bool``, *optional*):
1817
+ If the message is a reply, ID of the original message.
1818
+
1819
+ partial_reply (``str``, *optional*):
1820
+ Text to quote.
1821
+ for reply_to_message only.
1822
+
1823
+ Returns:
1824
+ On success, the sent Message is returned.
1825
+
1826
+ Raises:
1827
+ RPCError: In case of a Telegram RPC error.
1828
+ """
1829
+ if quote is None:
1830
+ quote = self.chat.type != enums.ChatType.PRIVATE
1831
+
1832
+ if reply_to_message_id is None and quote:
1833
+ reply_to_message_id = self.id
1834
+
1835
+ return await self._client.send_inline_bot_result(
1836
+ chat_id=self.chat.id,
1837
+ query_id=query_id,
1838
+ result_id=result_id,
1839
+ disable_notification=disable_notification,
1840
+ reply_to_message_id=reply_to_message_id,
1841
+ partial_reply=partial_reply
1842
+ )
1843
+
1844
+ async def reply_location(
1845
+ self,
1846
+ latitude: float,
1847
+ longitude: float,
1848
+ quote: bool = None,
1849
+ disable_notification: bool = None,
1850
+ reply_to_message_id: int = None,
1851
+ partial_reply: str = None,
1852
+ reply_markup: Union[
1853
+ "types.InlineKeyboardMarkup",
1854
+ "types.ReplyKeyboardMarkup",
1855
+ "types.ReplyKeyboardRemove",
1856
+ "types.ForceReply"
1857
+ ] = None
1858
+ ) -> "Message":
1859
+ """Bound method *reply_location* of :obj:`~pyrogram.types.Message`.
1860
+
1861
+ Use as a shortcut for:
1862
+
1863
+ .. code-block:: python
1864
+
1865
+ await client.send_location(
1866
+ chat_id=message.chat.id,
1867
+ latitude=latitude,
1868
+ longitude=longitude
1869
+ )
1870
+
1871
+ Example:
1872
+ .. code-block:: python
1873
+
1874
+ await message.reply_location(latitude, longitude)
1875
+
1876
+ Parameters:
1877
+ latitude (``float``):
1878
+ Latitude of the location.
1879
+
1880
+ longitude (``float``):
1881
+ Longitude of the location.
1882
+
1883
+ quote (``bool``, *optional*):
1884
+ If ``True``, the message will be sent as a reply to this message.
1885
+ If *reply_to_message_id* is passed, this parameter will be ignored.
1886
+ Defaults to ``True`` in group chats and ``False`` in private chats.
1887
+
1888
+ disable_notification (``bool``, *optional*):
1889
+ Sends the message silently.
1890
+ Users will receive a notification with no sound.
1891
+
1892
+ reply_to_message_id (``int``, *optional*):
1893
+ If the message is a reply, ID of the original message
1894
+
1895
+ partial_reply (``str``, *optional*):
1896
+ Text to quote.
1897
+ for reply_to_message only.
1898
+
1899
+ reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
1900
+ Additional interface options. An object for an inline keyboard, custom reply keyboard,
1901
+ instructions to remove reply keyboard or to force a reply from the user.
1902
+
1903
+ Returns:
1904
+ On success, the sent :obj:`~pyrogram.types.Message` is returned.
1905
+
1906
+ Raises:
1907
+ RPCError: In case of a Telegram RPC error.
1908
+ """
1909
+ if quote is None:
1910
+ quote = self.chat.type != enums.ChatType.PRIVATE
1911
+
1912
+ if reply_to_message_id is None and quote:
1913
+ reply_to_message_id = self.id
1914
+
1915
+ return await self._client.send_location(
1916
+ chat_id=self.chat.id,
1917
+ latitude=latitude,
1918
+ longitude=longitude,
1919
+ disable_notification=disable_notification,
1920
+ reply_to_message_id=reply_to_message_id,
1921
+ partial_reply=partial_reply,
1922
+ reply_markup=reply_markup
1923
+ )
1924
+
1925
+ async def reply_media_group(
1926
+ self,
1927
+ media: List[Union["types.InputMediaPhoto", "types.InputMediaVideo"]],
1928
+ quote: bool = None,
1929
+ disable_notification: bool = None,
1930
+ reply_to_message_id: int = None,
1931
+ partial_reply: str = None
1932
+ ) -> List["types.Message"]:
1933
+ """Bound method *reply_media_group* of :obj:`~pyrogram.types.Message`.
1934
+
1935
+ Use as a shortcut for:
1936
+
1937
+ .. code-block:: python
1938
+
1939
+ await client.send_media_group(
1940
+ chat_id=message.chat.id,
1941
+ media=list_of_media
1942
+ )
1943
+
1944
+ Example:
1945
+ .. code-block:: python
1946
+
1947
+ await message.reply_media_group(list_of_media)
1948
+
1949
+ Parameters:
1950
+ media (``list``):
1951
+ A list containing either :obj:`~pyrogram.types.InputMediaPhoto` or
1952
+ :obj:`~pyrogram.types.InputMediaVideo` objects
1953
+ describing photos and videos to be sent, must include 2–10 items.
1954
+
1955
+ quote (``bool``, *optional*):
1956
+ If ``True``, the message will be sent as a reply to this message.
1957
+ If *reply_to_message_id* is passed, this parameter will be ignored.
1958
+ Defaults to ``True`` in group chats and ``False`` in private chats.
1959
+
1960
+ disable_notification (``bool``, *optional*):
1961
+ Sends the message silently.
1962
+ Users will receive a notification with no sound.
1963
+
1964
+ reply_to_message_id (``int``, *optional*):
1965
+ If the message is a reply, ID of the original message.
1966
+
1967
+ partial_reply (``str``, *optional*):
1968
+ Text to quote.
1969
+ for reply_to_message only.
1970
+
1971
+ Returns:
1972
+ On success, a :obj:`~pyrogram.types.Messages` object is returned containing all the
1973
+ single messages sent.
1974
+
1975
+ Raises:
1976
+ RPCError: In case of a Telegram RPC error.
1977
+ """
1978
+ if quote is None:
1979
+ quote = self.chat.type != enums.ChatType.PRIVATE
1980
+
1981
+ if reply_to_message_id is None and quote:
1982
+ reply_to_message_id = self.id
1983
+
1984
+ return await self._client.send_media_group(
1985
+ chat_id=self.chat.id,
1986
+ media=media,
1987
+ disable_notification=disable_notification,
1988
+ reply_to_message_id=reply_to_message_id,
1989
+ partial_reply=partial_reply
1990
+ )
1991
+
1992
+ async def reply_photo(
1993
+ self,
1994
+ photo: Union[str, BinaryIO],
1995
+ quote: bool = None,
1996
+ caption: str = "",
1997
+ parse_mode: Optional["enums.ParseMode"] = None,
1998
+ caption_entities: List["types.MessageEntity"] = None,
1999
+ has_spoiler: bool = None,
2000
+ ttl_seconds: int = None,
2001
+ disable_notification: bool = None,
2002
+ reply_to_message_id: int = None,
2003
+ partial_reply: str = None,
2004
+ reply_markup: Union[
2005
+ "types.InlineKeyboardMarkup",
2006
+ "types.ReplyKeyboardMarkup",
2007
+ "types.ReplyKeyboardRemove",
2008
+ "types.ForceReply"
2009
+ ] = None,
2010
+ progress: Callable = None,
2011
+ progress_args: tuple = ()
2012
+ ) -> "Message":
2013
+ """Bound method *reply_photo* of :obj:`~pyrogram.types.Message`.
2014
+
2015
+ Use as a shortcut for:
2016
+
2017
+ .. code-block:: python
2018
+
2019
+ await client.send_photo(
2020
+ chat_id=message.chat.id,
2021
+ photo=photo
2022
+ )
2023
+
2024
+ Example:
2025
+ .. code-block:: python
2026
+
2027
+ await message.reply_photo(photo)
2028
+
2029
+ Parameters:
2030
+ photo (``str``):
2031
+ Photo to send.
2032
+ Pass a file_id as string to send a photo that exists on the Telegram servers,
2033
+ pass an HTTP URL as a string for Telegram to get a photo from the Internet, or
2034
+ pass a file path as string to upload a new photo that exists on your local machine.
2035
+
2036
+ quote (``bool``, *optional*):
2037
+ If ``True``, the message will be sent as a reply to this message.
2038
+ If *reply_to_message_id* is passed, this parameter will be ignored.
2039
+ Defaults to ``True`` in group chats and ``False`` in private chats.
2040
+
2041
+ caption (``str``, *optional*):
2042
+ Photo caption, 0-1024 characters.
2043
+
2044
+ parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
2045
+ By default, texts are parsed using both Markdown and HTML styles.
2046
+ You can combine both syntaxes together.
2047
+
2048
+ caption_entities (List of :obj:`~pyrogram.types.MessageEntity`):
2049
+ List of special entities that appear in the caption, which can be specified instead of *parse_mode*.
2050
+
2051
+ has_spoiler (``bool``, *optional*):
2052
+ Pass True if the photo needs to be covered with a spoiler animation.
2053
+
2054
+ ttl_seconds (``int``, *optional*):
2055
+ Self-Destruct Timer.
2056
+ If you set a timer, the photo will self-destruct in *ttl_seconds*
2057
+ seconds after it was viewed.
2058
+
2059
+ disable_notification (``bool``, *optional*):
2060
+ Sends the message silently.
2061
+ Users will receive a notification with no sound.
2062
+
2063
+ reply_to_message_id (``int``, *optional*):
2064
+ If the message is a reply, ID of the original message.
2065
+
2066
+ partial_reply (``str``, *optional*):
2067
+ Text to quote.
2068
+ for reply_to_message only.
2069
+
2070
+ reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
2071
+ Additional interface options. An object for an inline keyboard, custom reply keyboard,
2072
+ instructions to remove reply keyboard or to force a reply from the user.
2073
+
2074
+ progress (``Callable``, *optional*):
2075
+ Pass a callback function to view the file transmission progress.
2076
+ The function must take *(current, total)* as positional arguments (look at Other Parameters below for a
2077
+ detailed description) and will be called back each time a new file chunk has been successfully
2078
+ transmitted.
2079
+
2080
+ progress_args (``tuple``, *optional*):
2081
+ Extra custom arguments for the progress callback function.
2082
+ You can pass anything you need to be available in the progress callback scope; for example, a Message
2083
+ object or a Client instance in order to edit the message with the updated progress status.
2084
+
2085
+ Other Parameters:
2086
+ current (``int``):
2087
+ The amount of bytes transmitted so far.
2088
+
2089
+ total (``int``):
2090
+ The total size of the file.
2091
+
2092
+ *args (``tuple``, *optional*):
2093
+ Extra custom arguments as defined in the ``progress_args`` parameter.
2094
+ You can either keep ``*args`` or add every single extra argument in your function signature.
2095
+
2096
+ Returns:
2097
+ On success, the sent :obj:`~pyrogram.types.Message` is returned.
2098
+ In case the upload is deliberately stopped with :meth:`~pyrogram.Client.stop_transmission`, None is returned
2099
+ instead.
2100
+
2101
+ Raises:
2102
+ RPCError: In case of a Telegram RPC error.
2103
+ """
2104
+ if quote is None:
2105
+ quote = self.chat.type != enums.ChatType.PRIVATE
2106
+
2107
+ if reply_to_message_id is None and quote:
2108
+ reply_to_message_id = self.id
2109
+
2110
+ return await self._client.send_photo(
2111
+ chat_id=self.chat.id,
2112
+ photo=photo,
2113
+ caption=caption,
2114
+ parse_mode=parse_mode,
2115
+ caption_entities=caption_entities,
2116
+ has_spoiler=has_spoiler,
2117
+ ttl_seconds=ttl_seconds,
2118
+ disable_notification=disable_notification,
2119
+ reply_to_message_id=reply_to_message_id,
2120
+ partial_reply=partial_reply,
2121
+ reply_markup=reply_markup,
2122
+ progress=progress,
2123
+ progress_args=progress_args
2124
+ )
2125
+
2126
+ async def reply_poll(
2127
+ self,
2128
+ question: str,
2129
+ options: List[str],
2130
+ is_anonymous: bool = True,
2131
+ type: "enums.PollType" = enums.PollType.REGULAR,
2132
+ allows_multiple_answers: bool = None,
2133
+ correct_option_id: int = None,
2134
+ explanation: str = None,
2135
+ explanation_parse_mode: "enums.ParseMode" = None,
2136
+ explanation_entities: List["types.MessageEntity"] = None,
2137
+ open_period: int = None,
2138
+ close_date: datetime = None,
2139
+ is_closed: bool = None,
2140
+ quote: bool = None,
2141
+ disable_notification: bool = None,
2142
+ protect_content: bool = None,
2143
+ reply_to_message_id: int = None,
2144
+ partial_reply: str = None,
2145
+ schedule_date: datetime = None,
2146
+ reply_markup: Union[
2147
+ "types.InlineKeyboardMarkup",
2148
+ "types.ReplyKeyboardMarkup",
2149
+ "types.ReplyKeyboardRemove",
2150
+ "types.ForceReply"
2151
+ ] = None
2152
+ ) -> "Message":
2153
+ """Bound method *reply_poll* of :obj:`~pyrogram.types.Message`.
2154
+
2155
+ Use as a shortcut for:
2156
+
2157
+ .. code-block:: python
2158
+
2159
+ await client.send_poll(
2160
+ chat_id=message.chat.id,
2161
+ question="This is a poll",
2162
+ options=["A", "B", "C]
2163
+ )
2164
+
2165
+ Example:
2166
+ .. code-block:: python
2167
+
2168
+ await message.reply_poll("This is a poll", ["A", "B", "C"])
2169
+
2170
+ Parameters:
2171
+ question (``str``):
2172
+ Poll question, 1-255 characters.
2173
+
2174
+ options (List of ``str``):
2175
+ List of answer options, 2-10 strings 1-100 characters each.
2176
+
2177
+ is_anonymous (``bool``, *optional*):
2178
+ True, if the poll needs to be anonymous.
2179
+ Defaults to True.
2180
+
2181
+ type (:obj`~pyrogram.enums.PollType`, *optional*):
2182
+ Poll type, :obj:`~pyrogram.enums.PollType.QUIZ` or :obj:`~pyrogram.enums.PollType.REGULAR`.
2183
+ Defaults to :obj:`~pyrogram.enums.PollType.REGULAR`.
2184
+
2185
+ allows_multiple_answers (``bool``, *optional*):
2186
+ True, if the poll allows multiple answers, ignored for polls in quiz mode.
2187
+ Defaults to False.
2188
+
2189
+ correct_option_id (``int``, *optional*):
2190
+ 0-based identifier of the correct answer option, required for polls in quiz mode.
2191
+
2192
+ explanation (``str``, *optional*):
2193
+ Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style
2194
+ poll, 0-200 characters with at most 2 line feeds after entities parsing.
2195
+
2196
+ explanation_parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
2197
+ By default, texts are parsed using both Markdown and HTML styles.
2198
+ You can combine both syntaxes together.
2199
+
2200
+ explanation_entities (List of :obj:`~pyrogram.types.MessageEntity`):
2201
+ List of special entities that appear in the poll explanation, which can be specified instead of
2202
+ *parse_mode*.
2203
+
2204
+ open_period (``int``, *optional*):
2205
+ Amount of time in seconds the poll will be active after creation, 5-600.
2206
+ Can't be used together with *close_date*.
2207
+
2208
+ close_date (:py:obj:`~datetime.datetime`, *optional*):
2209
+ Point in time when the poll will be automatically closed.
2210
+ Must be at least 5 and no more than 600 seconds in the future.
2211
+ Can't be used together with *open_period*.
2212
+
2213
+ is_closed (``bool``, *optional*):
2214
+ Pass True, if the poll needs to be immediately closed.
2215
+ This can be useful for poll preview.
2216
+
2217
+ quote (``bool``, *optional*):
2218
+ If ``True``, the message will be sent as a reply to this message.
2219
+ If *reply_to_message_id* is passed, this parameter will be ignored.
2220
+ Defaults to ``True`` in group chats and ``False`` in private chats.
2221
+
2222
+ disable_notification (``bool``, *optional*):
2223
+ Sends the message silently.
2224
+ Users will receive a notification with no sound.
2225
+
2226
+ protect_content (``bool``, *optional*):
2227
+ Protects the contents of the sent message from forwarding and saving.
2228
+
2229
+ reply_to_message_id (``int``, *optional*):
2230
+ If the message is a reply, ID of the original message.
2231
+
2232
+ partial_reply (``str``, *optional*):
2233
+ Text to quote.
2234
+ for reply_to_message only.
2235
+
2236
+ schedule_date (:py:obj:`~datetime.datetime`, *optional*):
2237
+ Date when the message will be automatically sent.
2238
+
2239
+ reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
2240
+ Additional interface options. An object for an inline keyboard, custom reply keyboard,
2241
+ instructions to remove reply keyboard or to force a reply from the user.
2242
+
2243
+ Returns:
2244
+ On success, the sent :obj:`~pyrogram.types.Message` is returned.
2245
+
2246
+ Raises:
2247
+ RPCError: In case of a Telegram RPC error.
2248
+ """
2249
+ if quote is None:
2250
+ quote = self.chat.type != enums.ChatType.PRIVATE
2251
+
2252
+ if reply_to_message_id is None and quote:
2253
+ reply_to_message_id = self.id
2254
+
2255
+ return await self._client.send_poll(
2256
+ chat_id=self.chat.id,
2257
+ question=question,
2258
+ options=options,
2259
+ is_anonymous=is_anonymous,
2260
+ type=type,
2261
+ allows_multiple_answers=allows_multiple_answers,
2262
+ correct_option_id=correct_option_id,
2263
+ explanation=explanation,
2264
+ explanation_parse_mode=explanation_parse_mode,
2265
+ explanation_entities=explanation_entities,
2266
+ open_period=open_period,
2267
+ close_date=close_date,
2268
+ is_closed=is_closed,
2269
+ disable_notification=disable_notification,
2270
+ protect_content=protect_content,
2271
+ reply_to_message_id=reply_to_message_id,
2272
+ partial_reply=partial_reply,
2273
+ schedule_date=schedule_date,
2274
+ reply_markup=reply_markup
2275
+ )
2276
+
2277
+ async def reply_sticker(
2278
+ self,
2279
+ sticker: Union[str, BinaryIO],
2280
+ quote: bool = None,
2281
+ disable_notification: bool = None,
2282
+ reply_to_message_id: int = None,
2283
+ partial_reply: str = None,
2284
+ reply_markup: Union[
2285
+ "types.InlineKeyboardMarkup",
2286
+ "types.ReplyKeyboardMarkup",
2287
+ "types.ReplyKeyboardRemove",
2288
+ "types.ForceReply"
2289
+ ] = None,
2290
+ progress: Callable = None,
2291
+ progress_args: tuple = ()
2292
+ ) -> "Message":
2293
+ """Bound method *reply_sticker* of :obj:`~pyrogram.types.Message`.
2294
+
2295
+ Use as a shortcut for:
2296
+
2297
+ .. code-block:: python
2298
+
2299
+ await client.send_sticker(
2300
+ chat_id=message.chat.id,
2301
+ sticker=sticker
2302
+ )
2303
+
2304
+ Example:
2305
+ .. code-block:: python
2306
+
2307
+ await message.reply_sticker(sticker)
2308
+
2309
+ Parameters:
2310
+ sticker (``str``):
2311
+ Sticker to send.
2312
+ Pass a file_id as string to send a sticker that exists on the Telegram servers,
2313
+ pass an HTTP URL as a string for Telegram to get a .webp sticker file from the Internet, or
2314
+ pass a file path as string to upload a new sticker that exists on your local machine.
2315
+
2316
+ quote (``bool``, *optional*):
2317
+ If ``True``, the message will be sent as a reply to this message.
2318
+ If *reply_to_message_id* is passed, this parameter will be ignored.
2319
+ Defaults to ``True`` in group chats and ``False`` in private chats.
2320
+
2321
+ disable_notification (``bool``, *optional*):
2322
+ Sends the message silently.
2323
+ Users will receive a notification with no sound.
2324
+
2325
+ reply_to_message_id (``int``, *optional*):
2326
+ If the message is a reply, ID of the original message.
2327
+
2328
+ partial_reply (``str``, *optional*):
2329
+ Text to quote.
2330
+ for reply_to_message only.
2331
+
2332
+ reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
2333
+ Additional interface options. An object for an inline keyboard, custom reply keyboard,
2334
+ instructions to remove reply keyboard or to force a reply from the user.
2335
+
2336
+ progress (``Callable``, *optional*):
2337
+ Pass a callback function to view the file transmission progress.
2338
+ The function must take *(current, total)* as positional arguments (look at Other Parameters below for a
2339
+ detailed description) and will be called back each time a new file chunk has been successfully
2340
+ transmitted.
2341
+
2342
+ progress_args (``tuple``, *optional*):
2343
+ Extra custom arguments for the progress callback function.
2344
+ You can pass anything you need to be available in the progress callback scope; for example, a Message
2345
+ object or a Client instance in order to edit the message with the updated progress status.
2346
+
2347
+ Other Parameters:
2348
+ current (``int``):
2349
+ The amount of bytes transmitted so far.
2350
+
2351
+ total (``int``):
2352
+ The total size of the file.
2353
+
2354
+ *args (``tuple``, *optional*):
2355
+ Extra custom arguments as defined in the ``progress_args`` parameter.
2356
+ You can either keep ``*args`` or add every single extra argument in your function signature.
2357
+
2358
+ Returns:
2359
+ On success, the sent :obj:`~pyrogram.types.Message` is returned.
2360
+ In case the upload is deliberately stopped with :meth:`~pyrogram.Client.stop_transmission`, None is returned
2361
+ instead.
2362
+
2363
+ Raises:
2364
+ RPCError: In case of a Telegram RPC error.
2365
+ """
2366
+ if quote is None:
2367
+ quote = self.chat.type != enums.ChatType.PRIVATE
2368
+
2369
+ if reply_to_message_id is None and quote:
2370
+ reply_to_message_id = self.id
2371
+
2372
+ return await self._client.send_sticker(
2373
+ chat_id=self.chat.id,
2374
+ sticker=sticker,
2375
+ disable_notification=disable_notification,
2376
+ reply_to_message_id=reply_to_message_id,
2377
+ partial_reply=partial_reply,
2378
+ reply_markup=reply_markup,
2379
+ progress=progress,
2380
+ progress_args=progress_args
2381
+ )
2382
+
2383
+ async def reply_venue(
2384
+ self,
2385
+ latitude: float,
2386
+ longitude: float,
2387
+ title: str,
2388
+ address: str,
2389
+ quote: bool = None,
2390
+ foursquare_id: str = "",
2391
+ foursquare_type: str = "",
2392
+ disable_notification: bool = None,
2393
+ reply_to_message_id: int = None,
2394
+ partial_reply: str = None,
2395
+ reply_markup: Union[
2396
+ "types.InlineKeyboardMarkup",
2397
+ "types.ReplyKeyboardMarkup",
2398
+ "types.ReplyKeyboardRemove",
2399
+ "types.ForceReply"
2400
+ ] = None
2401
+ ) -> "Message":
2402
+ """Bound method *reply_venue* of :obj:`~pyrogram.types.Message`.
2403
+
2404
+ Use as a shortcut for:
2405
+
2406
+ .. code-block:: python
2407
+
2408
+ await client.send_venue(
2409
+ chat_id=message.chat.id,
2410
+ latitude=latitude,
2411
+ longitude=longitude,
2412
+ title="Venue title",
2413
+ address="Venue address"
2414
+ )
2415
+
2416
+ Example:
2417
+ .. code-block:: python
2418
+
2419
+ await message.reply_venue(latitude, longitude, "Venue title", "Venue address")
2420
+
2421
+ Parameters:
2422
+ latitude (``float``):
2423
+ Latitude of the venue.
2424
+
2425
+ longitude (``float``):
2426
+ Longitude of the venue.
2427
+
2428
+ title (``str``):
2429
+ Name of the venue.
2430
+
2431
+ address (``str``):
2432
+ Address of the venue.
2433
+
2434
+ quote (``bool``, *optional*):
2435
+ If ``True``, the message will be sent as a reply to this message.
2436
+ If *reply_to_message_id* is passed, this parameter will be ignored.
2437
+ Defaults to ``True`` in group chats and ``False`` in private chats.
2438
+
2439
+ foursquare_id (``str``, *optional*):
2440
+ Foursquare identifier of the venue.
2441
+
2442
+ foursquare_type (``str``, *optional*):
2443
+ Foursquare type of the venue, if known.
2444
+ (For example, "arts_entertainment/default", "arts_entertainment/aquarium" or "food/icecream".)
2445
+
2446
+ disable_notification (``bool``, *optional*):
2447
+ Sends the message silently.
2448
+ Users will receive a notification with no sound.
2449
+
2450
+ reply_to_message_id (``int``, *optional*):
2451
+ If the message is a reply, ID of the original message
2452
+
2453
+ partial_reply (``str``, *optional*):
2454
+ Text to quote.
2455
+ for reply_to_message only.
2456
+
2457
+ reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
2458
+ Additional interface options. An object for an inline keyboard, custom reply keyboard,
2459
+ instructions to remove reply keyboard or to force a reply from the user.
2460
+
2461
+ Returns:
2462
+ On success, the sent :obj:`~pyrogram.types.Message` is returned.
2463
+
2464
+ Raises:
2465
+ RPCError: In case of a Telegram RPC error.
2466
+ """
2467
+ if quote is None:
2468
+ quote = self.chat.type != enums.ChatType.PRIVATE
2469
+
2470
+ if reply_to_message_id is None and quote:
2471
+ reply_to_message_id = self.id
2472
+
2473
+ return await self._client.send_venue(
2474
+ chat_id=self.chat.id,
2475
+ latitude=latitude,
2476
+ longitude=longitude,
2477
+ title=title,
2478
+ address=address,
2479
+ foursquare_id=foursquare_id,
2480
+ foursquare_type=foursquare_type,
2481
+ disable_notification=disable_notification,
2482
+ reply_to_message_id=reply_to_message_id,
2483
+ partial_reply=partial_reply,
2484
+ reply_markup=reply_markup
2485
+ )
2486
+
2487
+ async def reply_video(
2488
+ self,
2489
+ video: Union[str, BinaryIO],
2490
+ quote: bool = None,
2491
+ caption: str = "",
2492
+ parse_mode: Optional["enums.ParseMode"] = None,
2493
+ caption_entities: List["types.MessageEntity"] = None,
2494
+ has_spoiler: bool = None,
2495
+ ttl_seconds: int = None,
2496
+ duration: int = 0,
2497
+ width: int = 0,
2498
+ height: int = 0,
2499
+ thumb: str = None,
2500
+ supports_streaming: bool = True,
2501
+ disable_notification: bool = None,
2502
+ reply_to_message_id: int = None,
2503
+ partial_reply: str = None,
2504
+ reply_markup: Union[
2505
+ "types.InlineKeyboardMarkup",
2506
+ "types.ReplyKeyboardMarkup",
2507
+ "types.ReplyKeyboardRemove",
2508
+ "types.ForceReply"
2509
+ ] = None,
2510
+ progress: Callable = None,
2511
+ progress_args: tuple = ()
2512
+ ) -> "Message":
2513
+ """Bound method *reply_video* of :obj:`~pyrogram.types.Message`.
2514
+
2515
+ Use as a shortcut for:
2516
+
2517
+ .. code-block:: python
2518
+
2519
+ await client.send_video(
2520
+ chat_id=message.chat.id,
2521
+ video=video
2522
+ )
2523
+
2524
+ Example:
2525
+ .. code-block:: python
2526
+
2527
+ await message.reply_video(video)
2528
+
2529
+ Parameters:
2530
+ video (``str``):
2531
+ Video to send.
2532
+ Pass a file_id as string to send a video that exists on the Telegram servers,
2533
+ pass an HTTP URL as a string for Telegram to get a video from the Internet, or
2534
+ pass a file path as string to upload a new video that exists on your local machine.
2535
+
2536
+ quote (``bool``, *optional*):
2537
+ If ``True``, the message will be sent as a reply to this message.
2538
+ If *reply_to_message_id* is passed, this parameter will be ignored.
2539
+ Defaults to ``True`` in group chats and ``False`` in private chats.
2540
+
2541
+ caption (``str``, *optional*):
2542
+ Video caption, 0-1024 characters.
2543
+
2544
+ parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
2545
+ By default, texts are parsed using both Markdown and HTML styles.
2546
+ You can combine both syntaxes together.
2547
+
2548
+ caption_entities (List of :obj:`~pyrogram.types.MessageEntity`):
2549
+ List of special entities that appear in the caption, which can be specified instead of *parse_mode*.
2550
+
2551
+ has_spoiler (``bool``, *optional*):
2552
+ Pass True if the video needs to be covered with a spoiler animation.
2553
+
2554
+ ttl_seconds (``int``, *optional*):
2555
+ Self-Destruct Timer.
2556
+ If you set a timer, the video will self-destruct in *ttl_seconds*
2557
+ seconds after it was viewed.
2558
+
2559
+ duration (``int``, *optional*):
2560
+ Duration of sent video in seconds.
2561
+
2562
+ width (``int``, *optional*):
2563
+ Video width.
2564
+
2565
+ height (``int``, *optional*):
2566
+ Video height.
2567
+
2568
+ thumb (``str``, *optional*):
2569
+ Thumbnail of the video sent.
2570
+ The thumbnail should be in JPEG format and less than 200 KB in size.
2571
+ A thumbnail's width and height should not exceed 320 pixels.
2572
+ Thumbnails can't be reused and can be only uploaded as a new file.
2573
+
2574
+ supports_streaming (``bool``, *optional*):
2575
+ Pass True, if the uploaded video is suitable for streaming.
2576
+
2577
+ disable_notification (``bool``, *optional*):
2578
+ Sends the message silently.
2579
+ Users will receive a notification with no sound.
2580
+
2581
+ reply_to_message_id (``int``, *optional*):
2582
+ If the message is a reply, ID of the original message.
2583
+
2584
+ partial_reply (``str``, *optional*):
2585
+ Text to quote.
2586
+ for reply_to_message only.
2587
+
2588
+ reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
2589
+ Additional interface options. An object for an inline keyboard, custom reply keyboard,
2590
+ instructions to remove reply keyboard or to force a reply from the user.
2591
+
2592
+ progress (``Callable``, *optional*):
2593
+ Pass a callback function to view the file transmission progress.
2594
+ The function must take *(current, total)* as positional arguments (look at Other Parameters below for a
2595
+ detailed description) and will be called back each time a new file chunk has been successfully
2596
+ transmitted.
2597
+
2598
+ progress_args (``tuple``, *optional*):
2599
+ Extra custom arguments for the progress callback function.
2600
+ You can pass anything you need to be available in the progress callback scope; for example, a Message
2601
+ object or a Client instance in order to edit the message with the updated progress status.
2602
+
2603
+ Other Parameters:
2604
+ current (``int``):
2605
+ The amount of bytes transmitted so far.
2606
+
2607
+ total (``int``):
2608
+ The total size of the file.
2609
+
2610
+ *args (``tuple``, *optional*):
2611
+ Extra custom arguments as defined in the ``progress_args`` parameter.
2612
+ You can either keep ``*args`` or add every single extra argument in your function signature.
2613
+
2614
+ Returns:
2615
+ On success, the sent :obj:`~pyrogram.types.Message` is returned.
2616
+ In case the upload is deliberately stopped with :meth:`~pyrogram.Client.stop_transmission`, None is returned
2617
+ instead.
2618
+
2619
+ Raises:
2620
+ RPCError: In case of a Telegram RPC error.
2621
+ """
2622
+ if quote is None:
2623
+ quote = self.chat.type != enums.ChatType.PRIVATE
2624
+
2625
+ if reply_to_message_id is None and quote:
2626
+ reply_to_message_id = self.id
2627
+
2628
+ return await self._client.send_video(
2629
+ chat_id=self.chat.id,
2630
+ video=video,
2631
+ caption=caption,
2632
+ parse_mode=parse_mode,
2633
+ caption_entities=caption_entities,
2634
+ has_spoiler=has_spoiler,
2635
+ ttl_seconds=ttl_seconds,
2636
+ duration=duration,
2637
+ width=width,
2638
+ height=height,
2639
+ thumb=thumb,
2640
+ supports_streaming=supports_streaming,
2641
+ disable_notification=disable_notification,
2642
+ reply_to_message_id=reply_to_message_id,
2643
+ partial_reply=partial_reply,
2644
+ reply_markup=reply_markup,
2645
+ progress=progress,
2646
+ progress_args=progress_args
2647
+ )
2648
+
2649
+ async def reply_video_note(
2650
+ self,
2651
+ video_note: Union[str, BinaryIO],
2652
+ quote: bool = None,
2653
+ duration: int = 0,
2654
+ length: int = 1,
2655
+ thumb: str = None,
2656
+ disable_notification: bool = None,
2657
+ reply_to_message_id: int = None,
2658
+ partial_reply: str = None,
2659
+ reply_markup: Union[
2660
+ "types.InlineKeyboardMarkup",
2661
+ "types.ReplyKeyboardMarkup",
2662
+ "types.ReplyKeyboardRemove",
2663
+ "types.ForceReply"
2664
+ ] = None,
2665
+ progress: Callable = None,
2666
+ progress_args: tuple = ()
2667
+ ) -> "Message":
2668
+ """Bound method *reply_video_note* of :obj:`~pyrogram.types.Message`.
2669
+
2670
+ Use as a shortcut for:
2671
+
2672
+ .. code-block:: python
2673
+
2674
+ await client.send_video_note(
2675
+ chat_id=message.chat.id,
2676
+ video_note=video_note
2677
+ )
2678
+
2679
+ Example:
2680
+ .. code-block:: python
2681
+
2682
+ await message.reply_video_note(video_note)
2683
+
2684
+ Parameters:
2685
+ video_note (``str``):
2686
+ Video note to send.
2687
+ Pass a file_id as string to send a video note that exists on the Telegram servers, or
2688
+ pass a file path as string to upload a new video note that exists on your local machine.
2689
+ Sending video notes by a URL is currently unsupported.
2690
+
2691
+ quote (``bool``, *optional*):
2692
+ If ``True``, the message will be sent as a reply to this message.
2693
+ If *reply_to_message_id* is passed, this parameter will be ignored.
2694
+ Defaults to ``True`` in group chats and ``False`` in private chats.
2695
+
2696
+ duration (``int``, *optional*):
2697
+ Duration of sent video in seconds.
2698
+
2699
+ length (``int``, *optional*):
2700
+ Video width and height.
2701
+
2702
+ thumb (``str``, *optional*):
2703
+ Thumbnail of the video sent.
2704
+ The thumbnail should be in JPEG format and less than 200 KB in size.
2705
+ A thumbnail's width and height should not exceed 320 pixels.
2706
+ Thumbnails can't be reused and can be only uploaded as a new file.
2707
+
2708
+ disable_notification (``bool``, *optional*):
2709
+ Sends the message silently.
2710
+ Users will receive a notification with no sound.
2711
+
2712
+ reply_to_message_id (``int``, *optional*):
2713
+ If the message is a reply, ID of the original message
2714
+
2715
+ partial_reply (``str``, *optional*):
2716
+ Text to quote.
2717
+ for reply_to_message only.
2718
+
2719
+ reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
2720
+ Additional interface options. An object for an inline keyboard, custom reply keyboard,
2721
+ instructions to remove reply keyboard or to force a reply from the user.
2722
+
2723
+ progress (``Callable``, *optional*):
2724
+ Pass a callback function to view the file transmission progress.
2725
+ The function must take *(current, total)* as positional arguments (look at Other Parameters below for a
2726
+ detailed description) and will be called back each time a new file chunk has been successfully
2727
+ transmitted.
2728
+
2729
+ progress_args (``tuple``, *optional*):
2730
+ Extra custom arguments for the progress callback function.
2731
+ You can pass anything you need to be available in the progress callback scope; for example, a Message
2732
+ object or a Client instance in order to edit the message with the updated progress status.
2733
+
2734
+ Other Parameters:
2735
+ current (``int``):
2736
+ The amount of bytes transmitted so far.
2737
+
2738
+ total (``int``):
2739
+ The total size of the file.
2740
+
2741
+ *args (``tuple``, *optional*):
2742
+ Extra custom arguments as defined in the ``progress_args`` parameter.
2743
+ You can either keep ``*args`` or add every single extra argument in your function signature.
2744
+
2745
+ Returns:
2746
+ On success, the sent :obj:`~pyrogram.types.Message` is returned.
2747
+ In case the upload is deliberately stopped with :meth:`~pyrogram.Client.stop_transmission`, None is returned
2748
+ instead.
2749
+
2750
+ Raises:
2751
+ RPCError: In case of a Telegram RPC error.
2752
+ """
2753
+ if quote is None:
2754
+ quote = self.chat.type != enums.ChatType.PRIVATE
2755
+
2756
+ if reply_to_message_id is None and quote:
2757
+ reply_to_message_id = self.id
2758
+
2759
+ return await self._client.send_video_note(
2760
+ chat_id=self.chat.id,
2761
+ video_note=video_note,
2762
+ duration=duration,
2763
+ length=length,
2764
+ thumb=thumb,
2765
+ disable_notification=disable_notification,
2766
+ reply_to_message_id=reply_to_message_id,
2767
+ partial_reply=partial_reply,
2768
+ reply_markup=reply_markup,
2769
+ progress=progress,
2770
+ progress_args=progress_args
2771
+ )
2772
+
2773
+ async def reply_voice(
2774
+ self,
2775
+ voice: Union[str, BinaryIO],
2776
+ quote: bool = None,
2777
+ caption: str = "",
2778
+ parse_mode: Optional["enums.ParseMode"] = None,
2779
+ caption_entities: List["types.MessageEntity"] = None,
2780
+ duration: int = 0,
2781
+ disable_notification: bool = None,
2782
+ reply_to_message_id: int = None,
2783
+ partial_reply: str = None,
2784
+ reply_markup: Union[
2785
+ "types.InlineKeyboardMarkup",
2786
+ "types.ReplyKeyboardMarkup",
2787
+ "types.ReplyKeyboardRemove",
2788
+ "types.ForceReply"
2789
+ ] = None,
2790
+ progress: Callable = None,
2791
+ progress_args: tuple = ()
2792
+ ) -> "Message":
2793
+ """Bound method *reply_voice* of :obj:`~pyrogram.types.Message`.
2794
+
2795
+ Use as a shortcut for:
2796
+
2797
+ .. code-block:: python
2798
+
2799
+ await client.send_voice(
2800
+ chat_id=message.chat.id,
2801
+ voice=voice
2802
+ )
2803
+
2804
+ Example:
2805
+ .. code-block:: python
2806
+
2807
+ await message.reply_voice(voice)
2808
+
2809
+ Parameters:
2810
+ voice (``str``):
2811
+ Audio file to send.
2812
+ Pass a file_id as string to send an audio that exists on the Telegram servers,
2813
+ pass an HTTP URL as a string for Telegram to get an audio from the Internet, or
2814
+ pass a file path as string to upload a new audio that exists on your local machine.
2815
+
2816
+ quote (``bool``, *optional*):
2817
+ If ``True``, the message will be sent as a reply to this message.
2818
+ If *reply_to_message_id* is passed, this parameter will be ignored.
2819
+ Defaults to ``True`` in group chats and ``False`` in private chats.
2820
+
2821
+ caption (``str``, *optional*):
2822
+ Voice message caption, 0-1024 characters.
2823
+
2824
+ parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
2825
+ By default, texts are parsed using both Markdown and HTML styles.
2826
+ You can combine both syntaxes together.
2827
+
2828
+ caption_entities (List of :obj:`~pyrogram.types.MessageEntity`):
2829
+ List of special entities that appear in the caption, which can be specified instead of *parse_mode*.
2830
+
2831
+ duration (``int``, *optional*):
2832
+ Duration of the voice message in seconds.
2833
+
2834
+ disable_notification (``bool``, *optional*):
2835
+ Sends the message silently.
2836
+ Users will receive a notification with no sound.
2837
+
2838
+ reply_to_message_id (``int``, *optional*):
2839
+ If the message is a reply, ID of the original message
2840
+
2841
+ partial_reply (``str``, *optional*):
2842
+ Text to quote.
2843
+ for reply_to_message only.
2844
+
2845
+ reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
2846
+ Additional interface options. An object for an inline keyboard, custom reply keyboard,
2847
+ instructions to remove reply keyboard or to force a reply from the user.
2848
+
2849
+ progress (``Callable``, *optional*):
2850
+ Pass a callback function to view the file transmission progress.
2851
+ The function must take *(current, total)* as positional arguments (look at Other Parameters below for a
2852
+ detailed description) and will be called back each time a new file chunk has been successfully
2853
+ transmitted.
2854
+
2855
+ progress_args (``tuple``, *optional*):
2856
+ Extra custom arguments for the progress callback function.
2857
+ You can pass anything you need to be available in the progress callback scope; for example, a Message
2858
+ object or a Client instance in order to edit the message with the updated progress status.
2859
+
2860
+ Other Parameters:
2861
+ current (``int``):
2862
+ The amount of bytes transmitted so far.
2863
+
2864
+ total (``int``):
2865
+ The total size of the file.
2866
+
2867
+ *args (``tuple``, *optional*):
2868
+ Extra custom arguments as defined in the ``progress_args`` parameter.
2869
+ You can either keep ``*args`` or add every single extra argument in your function signature.
2870
+
2871
+ Returns:
2872
+ On success, the sent :obj:`~pyrogram.types.Message` is returned.
2873
+ In case the upload is deliberately stopped with :meth:`~pyrogram.Client.stop_transmission`, None is returned
2874
+ instead.
2875
+
2876
+ Raises:
2877
+ RPCError: In case of a Telegram RPC error.
2878
+ """
2879
+ if quote is None:
2880
+ quote = self.chat.type != enums.ChatType.PRIVATE
2881
+
2882
+ if reply_to_message_id is None and quote:
2883
+ reply_to_message_id = self.id
2884
+
2885
+ return await self._client.send_voice(
2886
+ chat_id=self.chat.id,
2887
+ voice=voice,
2888
+ caption=caption,
2889
+ parse_mode=parse_mode,
2890
+ caption_entities=caption_entities,
2891
+ duration=duration,
2892
+ disable_notification=disable_notification,
2893
+ reply_to_message_id=reply_to_message_id,
2894
+ partial_reply=partial_reply,
2895
+ reply_markup=reply_markup,
2896
+ progress=progress,
2897
+ progress_args=progress_args
2898
+ )
2899
+
2900
+ async def edit_text(
2901
+ self,
2902
+ text: str,
2903
+ parse_mode: Optional["enums.ParseMode"] = None,
2904
+ entities: List["types.MessageEntity"] = None,
2905
+ disable_web_page_preview: bool = None,
2906
+ reply_markup: "types.InlineKeyboardMarkup" = None
2907
+ ) -> "Message":
2908
+ """Bound method *edit_text* of :obj:`~pyrogram.types.Message`.
2909
+
2910
+ An alias exists as *edit*.
2911
+
2912
+ Use as a shortcut for:
2913
+
2914
+ .. code-block:: python
2915
+
2916
+ await client.edit_message_text(
2917
+ chat_id=message.chat.id,
2918
+ message_id=message.id,
2919
+ text="hello"
2920
+ )
2921
+
2922
+ Example:
2923
+ .. code-block:: python
2924
+
2925
+ await message.edit_text("hello")
2926
+
2927
+ Parameters:
2928
+ text (``str``):
2929
+ New text of the message.
2930
+
2931
+ parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
2932
+ By default, texts are parsed using both Markdown and HTML styles.
2933
+ You can combine both syntaxes together.
2934
+
2935
+ entities (List of :obj:`~pyrogram.types.MessageEntity`):
2936
+ List of special entities that appear in message text, which can be specified instead of *parse_mode*.
2937
+
2938
+ disable_web_page_preview (``bool``, *optional*):
2939
+ Disables link previews for links in this message.
2940
+
2941
+ reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup`, *optional*):
2942
+ An InlineKeyboardMarkup object.
2943
+
2944
+ Returns:
2945
+ On success, the edited :obj:`~pyrogram.types.Message` is returned.
2946
+
2947
+ Raises:
2948
+ RPCError: In case of a Telegram RPC error.
2949
+ """
2950
+ return await self._client.edit_message_text(
2951
+ chat_id=self.chat.id,
2952
+ message_id=self.id,
2953
+ text=text,
2954
+ parse_mode=parse_mode,
2955
+ entities=entities,
2956
+ disable_web_page_preview=disable_web_page_preview,
2957
+ reply_markup=reply_markup
2958
+ )
2959
+
2960
+ edit = edit_text
2961
+
2962
+ async def edit_caption(
2963
+ self,
2964
+ caption: str,
2965
+ parse_mode: Optional["enums.ParseMode"] = None,
2966
+ caption_entities: List["types.MessageEntity"] = None,
2967
+ reply_markup: "types.InlineKeyboardMarkup" = None
2968
+ ) -> "Message":
2969
+ """Bound method *edit_caption* of :obj:`~pyrogram.types.Message`.
2970
+
2971
+ Use as a shortcut for:
2972
+
2973
+ .. code-block:: python
2974
+
2975
+ await client.edit_message_caption(
2976
+ chat_id=message.chat.id,
2977
+ message_id=message.id,
2978
+ caption="hello"
2979
+ )
2980
+
2981
+ Example:
2982
+ .. code-block:: python
2983
+
2984
+ await message.edit_caption("hello")
2985
+
2986
+ Parameters:
2987
+ caption (``str``):
2988
+ New caption of the message.
2989
+
2990
+ parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
2991
+ By default, texts are parsed using both Markdown and HTML styles.
2992
+ You can combine both syntaxes together.
2993
+
2994
+ caption_entities (List of :obj:`~pyrogram.types.MessageEntity`):
2995
+ List of special entities that appear in the caption, which can be specified instead of *parse_mode*.
2996
+
2997
+ reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup`, *optional*):
2998
+ An InlineKeyboardMarkup object.
2999
+
3000
+ Returns:
3001
+ On success, the edited :obj:`~pyrogram.types.Message` is returned.
3002
+
3003
+ Raises:
3004
+ RPCError: In case of a Telegram RPC error.
3005
+ """
3006
+ return await self._client.edit_message_caption(
3007
+ chat_id=self.chat.id,
3008
+ message_id=self.id,
3009
+ caption=caption,
3010
+ parse_mode=parse_mode,
3011
+ caption_entities=caption_entities,
3012
+ reply_markup=reply_markup
3013
+ )
3014
+
3015
+ async def edit_media(
3016
+ self,
3017
+ media: "types.InputMedia",
3018
+ reply_markup: "types.InlineKeyboardMarkup" = None
3019
+ ) -> "Message":
3020
+ """Bound method *edit_media* of :obj:`~pyrogram.types.Message`.
3021
+
3022
+ Use as a shortcut for:
3023
+
3024
+ .. code-block:: python
3025
+
3026
+ await client.edit_message_media(
3027
+ chat_id=message.chat.id,
3028
+ message_id=message.id,
3029
+ media=media
3030
+ )
3031
+
3032
+ Example:
3033
+ .. code-block:: python
3034
+
3035
+ await message.edit_media(media)
3036
+
3037
+ Parameters:
3038
+ media (:obj:`~pyrogram.types.InputMedia`):
3039
+ One of the InputMedia objects describing an animation, audio, document, photo or video.
3040
+
3041
+ reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup`, *optional*):
3042
+ An InlineKeyboardMarkup object.
3043
+
3044
+ Returns:
3045
+ On success, the edited :obj:`~pyrogram.types.Message` is returned.
3046
+
3047
+ Raises:
3048
+ RPCError: In case of a Telegram RPC error.
3049
+ """
3050
+ return await self._client.edit_message_media(
3051
+ chat_id=self.chat.id,
3052
+ message_id=self.id,
3053
+ media=media,
3054
+ reply_markup=reply_markup
3055
+ )
3056
+
3057
+ async def edit_reply_markup(self, reply_markup: "types.InlineKeyboardMarkup" = None) -> "Message":
3058
+ """Bound method *edit_reply_markup* of :obj:`~pyrogram.types.Message`.
3059
+
3060
+ Use as a shortcut for:
3061
+
3062
+ .. code-block:: python
3063
+
3064
+ await client.edit_message_reply_markup(
3065
+ chat_id=message.chat.id,
3066
+ message_id=message.id,
3067
+ reply_markup=inline_reply_markup
3068
+ )
3069
+
3070
+ Example:
3071
+ .. code-block:: python
3072
+
3073
+ await message.edit_reply_markup(inline_reply_markup)
3074
+
3075
+ Parameters:
3076
+ reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup`):
3077
+ An InlineKeyboardMarkup object.
3078
+
3079
+ Returns:
3080
+ On success, if edited message is sent by the bot, the edited
3081
+ :obj:`~pyrogram.types.Message` is returned, otherwise True is returned.
3082
+
3083
+ Raises:
3084
+ RPCError: In case of a Telegram RPC error.
3085
+ """
3086
+ return await self._client.edit_message_reply_markup(
3087
+ chat_id=self.chat.id,
3088
+ message_id=self.id,
3089
+ reply_markup=reply_markup
3090
+ )
3091
+
3092
+ async def forward(
3093
+ self,
3094
+ chat_id: Union[int, str],
3095
+ disable_notification: bool = None,
3096
+ schedule_date: datetime = None
3097
+ ) -> Union["types.Message", List["types.Message"]]:
3098
+ """Bound method *forward* of :obj:`~pyrogram.types.Message`.
3099
+
3100
+ Use as a shortcut for:
3101
+
3102
+ .. code-block:: python
3103
+
3104
+ await client.forward_messages(
3105
+ chat_id=chat_id,
3106
+ from_chat_id=message.chat.id,
3107
+ message_ids=message.id
3108
+ )
3109
+
3110
+ Example:
3111
+ .. code-block:: python
3112
+
3113
+ await message.forward(chat_id)
3114
+
3115
+ Parameters:
3116
+ chat_id (``int`` | ``str``):
3117
+ Unique identifier (int) or username (str) of the target chat.
3118
+ For your personal cloud (Saved Messages) you can simply use "me" or "self".
3119
+ For a contact that exists in your Telegram address book you can use his phone number (str).
3120
+
3121
+ disable_notification (``bool``, *optional*):
3122
+ Sends the message silently.
3123
+ Users will receive a notification with no sound.
3124
+
3125
+ schedule_date (:py:obj:`~datetime.datetime`, *optional*):
3126
+ Date when the message will be automatically sent.
3127
+
3128
+ Returns:
3129
+ On success, the forwarded Message is returned.
3130
+
3131
+ Raises:
3132
+ RPCError: In case of a Telegram RPC error.
3133
+ """
3134
+ return await self._client.forward_messages(
3135
+ chat_id=chat_id,
3136
+ from_chat_id=self.chat.id,
3137
+ message_ids=self.id,
3138
+ disable_notification=disable_notification,
3139
+ schedule_date=schedule_date
3140
+ )
3141
+
3142
+ async def copy(
3143
+ self,
3144
+ chat_id: Union[int, str],
3145
+ caption: str = None,
3146
+ parse_mode: Optional["enums.ParseMode"] = None,
3147
+ caption_entities: List["types.MessageEntity"] = None,
3148
+ disable_notification: bool = None,
3149
+ reply_to_message_id: int = None,
3150
+ schedule_date: datetime = None,
3151
+ protect_content: bool = None,
3152
+ has_spoiler: bool = None,
3153
+ reply_markup: Union[
3154
+ "types.InlineKeyboardMarkup",
3155
+ "types.ReplyKeyboardMarkup",
3156
+ "types.ReplyKeyboardRemove",
3157
+ "types.ForceReply"
3158
+ ] = object
3159
+ ) -> Union["types.Message", List["types.Message"]]:
3160
+ """Bound method *copy* of :obj:`~pyrogram.types.Message`.
3161
+
3162
+ Use as a shortcut for:
3163
+
3164
+ .. code-block:: python
3165
+
3166
+ await client.copy_message(
3167
+ chat_id=chat_id,
3168
+ from_chat_id=message.chat.id,
3169
+ message_id=message.id
3170
+ )
3171
+
3172
+ Example:
3173
+ .. code-block:: python
3174
+
3175
+ await message.copy(chat_id)
3176
+
3177
+ Parameters:
3178
+ chat_id (``int`` | ``str``):
3179
+ Unique identifier (int) or username (str) of the target chat.
3180
+ For your personal cloud (Saved Messages) you can simply use "me" or "self".
3181
+ For a contact that exists in your Telegram address book you can use his phone number (str).
3182
+
3183
+ caption (``string``, *optional*):
3184
+ New caption for media, 0-1024 characters after entities parsing.
3185
+ If not specified, the original caption is kept.
3186
+ Pass "" (empty string) to remove the caption.
3187
+
3188
+ parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
3189
+ By default, texts are parsed using both Markdown and HTML styles.
3190
+ You can combine both syntaxes together.
3191
+
3192
+ caption_entities (List of :obj:`~pyrogram.types.MessageEntity`):
3193
+ List of special entities that appear in the new caption, which can be specified instead of *parse_mode*.
3194
+
3195
+ disable_notification (``bool``, *optional*):
3196
+ Sends the message silently.
3197
+ Users will receive a notification with no sound.
3198
+
3199
+ reply_to_message_id (``int``, *optional*):
3200
+ If the message is a reply, ID of the original message.
3201
+
3202
+ schedule_date (:py:obj:`~datetime.datetime`, *optional*):
3203
+ Date when the message will be automatically sent.
3204
+
3205
+ protect_content (``bool``, *optional*):
3206
+ Protects the contents of the sent message from forwarding and saving.
3207
+
3208
+ has_spoiler (``bool``, *optional*):
3209
+ True, if the message media is covered by a spoiler animation.
3210
+
3211
+ reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
3212
+ Additional interface options. An object for an inline keyboard, custom reply keyboard,
3213
+ instructions to remove reply keyboard or to force a reply from the user.
3214
+ If not specified, the original reply markup is kept.
3215
+ Pass None to remove the reply markup.
3216
+
3217
+ Returns:
3218
+ :obj:`~pyrogram.types.Message`: On success, the copied message is returned.
3219
+
3220
+ Raises:
3221
+ RPCError: In case of a Telegram RPC error.
3222
+ """
3223
+ if self.service:
3224
+ log.warning("Service messages cannot be copied. chat_id: %s, message_id: %s",
3225
+ self.chat.id, self.id)
3226
+ elif self.game and not await self._client.storage.is_bot():
3227
+ log.warning("Users cannot send messages with Game media type. chat_id: %s, message_id: %s",
3228
+ self.chat.id, self.id)
3229
+ elif self.empty:
3230
+ log.warning("Empty messages cannot be copied.")
3231
+ elif self.text:
3232
+ return await self._client.send_message(
3233
+ chat_id,
3234
+ text=self.text,
3235
+ entities=self.entities,
3236
+ parse_mode=enums.ParseMode.DISABLED,
3237
+ disable_web_page_preview=not self.web_page,
3238
+ disable_notification=disable_notification,
3239
+ reply_to_message_id=reply_to_message_id,
3240
+ schedule_date=schedule_date,
3241
+ protect_content=protect_content,
3242
+ reply_markup=self.reply_markup if reply_markup is object else reply_markup
3243
+ )
3244
+ elif self.media:
3245
+ send_media = partial(
3246
+ self._client.send_cached_media,
3247
+ chat_id=chat_id,
3248
+ disable_notification=disable_notification,
3249
+ reply_to_message_id=reply_to_message_id,
3250
+ schedule_date=schedule_date,
3251
+ protect_content=protect_content,
3252
+ has_spoiler=has_spoiler,
3253
+ reply_markup=self.reply_markup if reply_markup is object else reply_markup
3254
+ )
3255
+
3256
+ if self.photo:
3257
+ file_id = self.photo.file_id
3258
+ elif self.audio:
3259
+ file_id = self.audio.file_id
3260
+ elif self.document:
3261
+ file_id = self.document.file_id
3262
+ elif self.video:
3263
+ file_id = self.video.file_id
3264
+ elif self.animation:
3265
+ file_id = self.animation.file_id
3266
+ elif self.voice:
3267
+ file_id = self.voice.file_id
3268
+ elif self.sticker:
3269
+ file_id = self.sticker.file_id
3270
+ elif self.video_note:
3271
+ file_id = self.video_note.file_id
3272
+ elif self.contact:
3273
+ return await self._client.send_contact(
3274
+ chat_id,
3275
+ phone_number=self.contact.phone_number,
3276
+ first_name=self.contact.first_name,
3277
+ last_name=self.contact.last_name,
3278
+ vcard=self.contact.vcard,
3279
+ disable_notification=disable_notification,
3280
+ schedule_date=schedule_date
3281
+ )
3282
+ elif self.location:
3283
+ return await self._client.send_location(
3284
+ chat_id,
3285
+ latitude=self.location.latitude,
3286
+ longitude=self.location.longitude,
3287
+ disable_notification=disable_notification,
3288
+ schedule_date=schedule_date
3289
+ )
3290
+ elif self.venue:
3291
+ return await self._client.send_venue(
3292
+ chat_id,
3293
+ latitude=self.venue.location.latitude,
3294
+ longitude=self.venue.location.longitude,
3295
+ title=self.venue.title,
3296
+ address=self.venue.address,
3297
+ foursquare_id=self.venue.foursquare_id,
3298
+ foursquare_type=self.venue.foursquare_type,
3299
+ disable_notification=disable_notification,
3300
+ schedule_date=schedule_date
3301
+ )
3302
+ elif self.poll:
3303
+ return await self._client.send_poll(
3304
+ chat_id,
3305
+ question=self.poll.question,
3306
+ options=[opt.text for opt in self.poll.options],
3307
+ disable_notification=disable_notification,
3308
+ schedule_date=schedule_date
3309
+ )
3310
+ elif self.game:
3311
+ return await self._client.send_game(
3312
+ chat_id,
3313
+ game_short_name=self.game.short_name,
3314
+ disable_notification=disable_notification
3315
+ )
3316
+ else:
3317
+ raise ValueError("Unknown media type")
3318
+
3319
+ if self.sticker or self.video_note: # Sticker and VideoNote should have no caption
3320
+ return await send_media(file_id=file_id)
3321
+ else:
3322
+ if caption is None:
3323
+ caption = self.caption or ""
3324
+ caption_entities = self.caption_entities
3325
+
3326
+ return await send_media(
3327
+ file_id=file_id,
3328
+ caption=caption,
3329
+ parse_mode=parse_mode,
3330
+ caption_entities=caption_entities
3331
+ )
3332
+ else:
3333
+ raise ValueError("Can't copy this message")
3334
+
3335
+ async def delete(self, revoke: bool = True):
3336
+ """Bound method *delete* of :obj:`~pyrogram.types.Message`.
3337
+
3338
+ Use as a shortcut for:
3339
+
3340
+ .. code-block:: python
3341
+
3342
+ await client.delete_messages(
3343
+ chat_id=chat_id,
3344
+ message_ids=message.id
3345
+ )
3346
+
3347
+ Example:
3348
+ .. code-block:: python
3349
+
3350
+ await message.delete()
3351
+
3352
+ Parameters:
3353
+ revoke (``bool``, *optional*):
3354
+ Deletes messages on both parts.
3355
+ This is only for private cloud chats and normal groups, messages on
3356
+ channels and supergroups are always revoked (i.e.: deleted for everyone).
3357
+ Defaults to True.
3358
+
3359
+ Returns:
3360
+ True on success, False otherwise.
3361
+
3362
+ Raises:
3363
+ RPCError: In case of a Telegram RPC error.
3364
+ """
3365
+ return await self._client.delete_messages(
3366
+ chat_id=self.chat.id,
3367
+ message_ids=self.id,
3368
+ revoke=revoke
3369
+ )
3370
+
3371
+ async def click(self, x: Union[int, str] = 0, y: int = None, quote: bool = None, timeout: int = 10):
3372
+ """Bound method *click* of :obj:`~pyrogram.types.Message`.
3373
+
3374
+ Use as a shortcut for clicking a button attached to the message instead of:
3375
+
3376
+ - Clicking inline buttons:
3377
+
3378
+ .. code-block:: python
3379
+
3380
+ await client.request_callback_answer(
3381
+ chat_id=message.chat.id,
3382
+ message_id=message.id,
3383
+ callback_data=message.reply_markup[i][j].callback_data
3384
+ )
3385
+
3386
+ - Clicking normal buttons:
3387
+
3388
+ .. code-block:: python
3389
+
3390
+ await client.send_message(
3391
+ chat_id=message.chat.id,
3392
+ text=message.reply_markup[i][j].text
3393
+ )
3394
+
3395
+ Example:
3396
+ This method can be used in three different ways:
3397
+
3398
+ 1. Pass one integer argument only (e.g.: ``.click(2)``, to click a button at index 2).
3399
+ Buttons are counted left to right, starting from the top.
3400
+
3401
+ 2. Pass two integer arguments (e.g.: ``.click(1, 0)``, to click a button at position (1, 0)).
3402
+ The origin (0, 0) is top-left.
3403
+
3404
+ 3. Pass one string argument only (e.g.: ``.click("Settings")``, to click a button by using its label).
3405
+ Only the first matching button will be pressed.
3406
+
3407
+ Parameters:
3408
+ x (``int`` | ``str``):
3409
+ Used as integer index, integer abscissa (in pair with y) or as string label.
3410
+ Defaults to 0 (first button).
3411
+
3412
+ y (``int``, *optional*):
3413
+ Used as ordinate only (in pair with x).
3414
+
3415
+ quote (``bool``, *optional*):
3416
+ Useful for normal buttons only, where pressing it will result in a new message sent.
3417
+ If ``True``, the message will be sent as a reply to this message.
3418
+ Defaults to ``True`` in group chats and ``False`` in private chats.
3419
+
3420
+ timeout (``int``, *optional*):
3421
+ Timeout in seconds.
3422
+
3423
+ Returns:
3424
+ - The result of :meth:`~pyrogram.Client.request_callback_answer` in case of inline callback button clicks.
3425
+ - The result of :meth:`~Message.reply()` in case of normal button clicks.
3426
+ - A string in case the inline button is a URL, a *switch_inline_query* or a
3427
+ *switch_inline_query_current_chat* button.
3428
+
3429
+ Raises:
3430
+ RPCError: In case of a Telegram RPC error.
3431
+ ValueError: In case the provided index or position is out of range or the button label was not found.
3432
+ TimeoutError: In case, after clicking an inline button, the bot fails to answer within the timeout.
3433
+ """
3434
+
3435
+ if isinstance(self.reply_markup, types.ReplyKeyboardMarkup):
3436
+ keyboard = self.reply_markup.keyboard
3437
+ is_inline = False
3438
+ elif isinstance(self.reply_markup, types.InlineKeyboardMarkup):
3439
+ keyboard = self.reply_markup.inline_keyboard
3440
+ is_inline = True
3441
+ else:
3442
+ raise ValueError("The message doesn't contain any keyboard")
3443
+
3444
+ if isinstance(x, int) and y is None:
3445
+ try:
3446
+ button = [
3447
+ button
3448
+ for row in keyboard
3449
+ for button in row
3450
+ ][x]
3451
+ except IndexError:
3452
+ raise ValueError(f"The button at index {x} doesn't exist")
3453
+ elif isinstance(x, int) and isinstance(y, int):
3454
+ try:
3455
+ button = keyboard[y][x]
3456
+ except IndexError:
3457
+ raise ValueError(f"The button at position ({x}, {y}) doesn't exist")
3458
+ elif isinstance(x, str) and y is None:
3459
+ label = x.encode("utf-16", "surrogatepass").decode("utf-16")
3460
+
3461
+ try:
3462
+ button = [
3463
+ button
3464
+ for row in keyboard
3465
+ for button in row
3466
+ if label == button.text
3467
+ ][0]
3468
+ except IndexError:
3469
+ raise ValueError(f"The button with label '{x}' doesn't exists")
3470
+ else:
3471
+ raise ValueError("Invalid arguments")
3472
+
3473
+ if is_inline:
3474
+ if button.callback_data:
3475
+ return await self._client.request_callback_answer(
3476
+ chat_id=self.chat.id,
3477
+ message_id=self.id,
3478
+ callback_data=button.callback_data,
3479
+ timeout=timeout
3480
+ )
3481
+ elif button.url:
3482
+ return button.url
3483
+ elif button.switch_inline_query:
3484
+ return button.switch_inline_query
3485
+ elif button.switch_inline_query_current_chat:
3486
+ return button.switch_inline_query_current_chat
3487
+ else:
3488
+ raise ValueError("This button is not supported yet")
3489
+ else:
3490
+ await self.reply(button, quote=quote)
3491
+
3492
+ async def react(self, emoji: str = "", big: bool = False) -> bool:
3493
+ """Bound method *react* of :obj:`~pyrogram.types.Message`.
3494
+
3495
+ Use as a shortcut for:
3496
+
3497
+ .. code-block:: python
3498
+
3499
+ await client.send_reaction(
3500
+ chat_id=chat_id,
3501
+ message_id=message.id,
3502
+ emoji="🔥"
3503
+ )
3504
+
3505
+ Example:
3506
+ .. code-block:: python
3507
+
3508
+ await message.react(emoji="🔥")
3509
+
3510
+ Parameters:
3511
+ emoji (``str``, *optional*):
3512
+ Reaction emoji.
3513
+ Pass "" as emoji (default) to retract the reaction.
3514
+
3515
+ big (``bool``, *optional*):
3516
+ Pass True to show a bigger and longer reaction.
3517
+ Defaults to False.
3518
+
3519
+ Returns:
3520
+ ``bool``: On success, True is returned.
3521
+
3522
+ Raises:
3523
+ RPCError: In case of a Telegram RPC error.
3524
+ """
3525
+
3526
+ return await self._client.send_reaction(
3527
+ chat_id=self.chat.id,
3528
+ message_id=self.id,
3529
+ emoji=emoji,
3530
+ big=big
3531
+ )
3532
+
3533
+ async def retract_vote(
3534
+ self,
3535
+ ) -> "types.Poll":
3536
+ """Bound method *retract_vote* of :obj:`~pyrogram.types.Message`.
3537
+
3538
+ Use as a shortcut for:
3539
+
3540
+ .. code-block:: python
3541
+
3542
+ client.retract_vote(
3543
+ chat_id=message.chat.id,
3544
+ message_id=message_id,
3545
+ )
3546
+
3547
+ Example:
3548
+ .. code-block:: python
3549
+
3550
+ message.retract_vote()
3551
+
3552
+ Returns:
3553
+ :obj:`~pyrogram.types.Poll`: On success, the poll with the retracted vote is returned.
3554
+
3555
+ Raises:
3556
+ RPCError: In case of a Telegram RPC error.
3557
+ """
3558
+
3559
+ return await self._client.retract_vote(
3560
+ chat_id=self.chat.id,
3561
+ message_id=self.id
3562
+ )
3563
+
3564
+ async def download(
3565
+ self,
3566
+ file_name: str = "",
3567
+ in_memory: bool = False,
3568
+ block: bool = True,
3569
+ workers: int = 4,
3570
+ chunk_size: int = 1024 * 1024,
3571
+ use_experimental_download_boost: bool = False,
3572
+ progress: Callable = None,
3573
+ progress_args: tuple = ()
3574
+ ) -> str:
3575
+ """Bound method *download* of :obj:`~pyrogram.types.Message`.
3576
+
3577
+ Use as a shortcut for:
3578
+
3579
+ .. code-block:: python
3580
+
3581
+ await client.download_media(message)
3582
+
3583
+ Example:
3584
+ .. code-block:: python
3585
+
3586
+ await message.download()
3587
+
3588
+ Parameters:
3589
+ file_name (``str``, *optional*):
3590
+ A custom *file_name* to be used instead of the one provided by Telegram.
3591
+ By default, all files are downloaded in the *downloads* folder in your working directory.
3592
+ You can also specify a path for downloading files in a custom location: paths that end with "/"
3593
+ are considered directories. All non-existent folders will be created automatically.
3594
+
3595
+ in_memory (``bool``, *optional*):
3596
+ Pass True to download the media in-memory.
3597
+ A binary file-like object with its attribute ".name" set will be returned.
3598
+ Defaults to False.
3599
+
3600
+ block (``bool``, *optional*):
3601
+ Blocks the code execution until the file has been downloaded.
3602
+ Defaults to True.
3603
+
3604
+ progress (``Callable``, *optional*):
3605
+ Pass a callback function to view the file transmission progress.
3606
+ The function must take *(current, total)* as positional arguments (look at Other Parameters below for a
3607
+ detailed description) and will be called back each time a new file chunk has been successfully
3608
+ transmitted.
3609
+
3610
+ progress_args (``tuple``, *optional*):
3611
+ Extra custom arguments for the progress callback function.
3612
+ You can pass anything you need to be available in the progress callback scope; for example, a Message
3613
+ object or a Client instance in order to edit the message with the updated progress status.
3614
+
3615
+ Other Parameters:
3616
+ current (``int``):
3617
+ The amount of bytes transmitted so far.
3618
+
3619
+ total (``int``):
3620
+ The total size of the file.
3621
+
3622
+ *args (``tuple``, *optional*):
3623
+ Extra custom arguments as defined in the ``progress_args`` parameter.
3624
+ You can either keep ``*args`` or add every single extra argument in your function signature.
3625
+
3626
+ Returns:
3627
+ On success, the absolute path of the downloaded file as string is returned, None otherwise.
3628
+
3629
+ Raises:
3630
+ RPCError: In case of a Telegram RPC error.
3631
+ ``ValueError``: If the message doesn't contain any downloadable media
3632
+ """
3633
+ return await self._client.download_media(
3634
+ message=self,
3635
+ file_name=file_name,
3636
+ in_memory=in_memory,
3637
+ block=block,
3638
+ workers=workers,
3639
+ chunk_size=chunk_size,
3640
+ use_experimental_download_boost=use_experimental_download_boost,
3641
+ progress=progress,
3642
+ progress_args=progress_args,
3643
+ )
3644
+
3645
+ async def vote(
3646
+ self,
3647
+ option: int,
3648
+ ) -> "types.Poll":
3649
+ """Bound method *vote* of :obj:`~pyrogram.types.Message`.
3650
+
3651
+ Use as a shortcut for:
3652
+
3653
+ .. code-block:: python
3654
+
3655
+ client.vote_poll(
3656
+ chat_id=message.chat.id,
3657
+ message_id=message.id,
3658
+ option=1
3659
+ )
3660
+
3661
+ Example:
3662
+ .. code-block:: python
3663
+
3664
+ message.vote(6)
3665
+
3666
+ Parameters:
3667
+ option (``int``):
3668
+ Index of the poll option you want to vote for (0 to 9).
3669
+
3670
+ Returns:
3671
+ :obj:`~pyrogram.types.Poll`: On success, the poll with the chosen option is returned.
3672
+
3673
+ Raises:
3674
+ RPCError: In case of a Telegram RPC error.
3675
+ """
3676
+
3677
+ return await self._client.vote_poll(
3678
+ chat_id=self.chat.id,
3679
+ message_id=self.id,
3680
+ options=option
3681
+ )
3682
+
3683
+ async def pin(self, disable_notification: bool = False, both_sides: bool = False) -> "types.Message":
3684
+ """Bound method *pin* of :obj:`~pyrogram.types.Message`.
3685
+
3686
+ Use as a shortcut for:
3687
+
3688
+ .. code-block:: python
3689
+
3690
+ await client.pin_chat_message(
3691
+ chat_id=message.chat.id,
3692
+ message_id=message_id
3693
+ )
3694
+
3695
+ Example:
3696
+ .. code-block:: python
3697
+
3698
+ await message.pin()
3699
+
3700
+ Parameters:
3701
+ disable_notification (``bool``):
3702
+ Pass True, if it is not necessary to send a notification to all chat members about the new pinned
3703
+ message. Notifications are always disabled in channels.
3704
+
3705
+ both_sides (``bool``, *optional*):
3706
+ Pass True to pin the message for both sides (you and recipient).
3707
+ Applicable to private chats only. Defaults to False.
3708
+
3709
+ Returns:
3710
+ :obj:`~pyrogram.types.Message`: On success, the service message is returned.
3711
+
3712
+ Raises:
3713
+ RPCError: In case of a Telegram RPC error.
3714
+ """
3715
+ return await self._client.pin_chat_message(
3716
+ chat_id=self.chat.id,
3717
+ message_id=self.id,
3718
+ disable_notification=disable_notification,
3719
+ both_sides=both_sides
3720
+ )
3721
+
3722
+ async def unpin(self) -> bool:
3723
+ """Bound method *unpin* of :obj:`~pyrogram.types.Message`.
3724
+
3725
+ Use as a shortcut for:
3726
+
3727
+ .. code-block:: python
3728
+
3729
+ await client.unpin_chat_message(
3730
+ chat_id=message.chat.id,
3731
+ message_id=message_id
3732
+ )
3733
+
3734
+ Example:
3735
+ .. code-block:: python
3736
+
3737
+ await message.unpin()
3738
+
3739
+ Returns:
3740
+ True on success.
3741
+
3742
+ Raises:
3743
+ RPCError: In case of a Telegram RPC error.
3744
+ """
3745
+ return await self._client.unpin_chat_message(
3746
+ chat_id=self.chat.id,
3747
+ message_id=self.id
3748
+ )