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