pyrogrammod 2.2.0__py3-none-any.whl → 2.4.0__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.

Potentially problematic release.


This version of pyrogrammod might be problematic. Click here for more details.

Files changed (3309) hide show
  1. pyrogram/__init__.py +1 -1
  2. pyrogram/client.py +221 -103
  3. pyrogram/dispatcher.py +40 -7
  4. pyrogram/enums/__init__.py +18 -14
  5. pyrogram/enums/chat_action.py +9 -0
  6. pyrogram/enums/message_entity_type.py +12 -0
  7. pyrogram/enums/message_service_type.py +12 -0
  8. pyrogram/enums/rich_block_type.py +139 -0
  9. pyrogram/enums/rich_text_type.py +112 -0
  10. pyrogram/errors/exceptions/__init__.py +3 -3
  11. pyrogram/errors/exceptions/all.py +307 -225
  12. pyrogram/errors/exceptions/bad_request_400.py +438 -11
  13. pyrogram/errors/exceptions/flood_420.py +7 -0
  14. pyrogram/errors/exceptions/forbidden_403.py +50 -1
  15. pyrogram/errors/exceptions/internal_server_error_500.py +36 -8
  16. pyrogram/errors/exceptions/not_acceptable_406.py +75 -12
  17. pyrogram/handlers/__init__.py +1 -0
  18. pyrogram/handlers/guard_bot_query_handler.py +50 -0
  19. pyrogram/methods/__init__.py +4 -0
  20. pyrogram/methods/advanced/invoke.py +4 -1
  21. pyrogram/methods/advanced/save_file.py +118 -59
  22. pyrogram/methods/auth/initialize.py +3 -0
  23. pyrogram/methods/bots/__init__.py +15 -1
  24. pyrogram/methods/bots/answer_callback_query.py +1 -1
  25. pyrogram/methods/bots/answer_chat_join_request_query.py +95 -0
  26. pyrogram/methods/bots/answer_guard_bot_query.py +97 -0
  27. pyrogram/methods/bots/confirm_bot_connection.py +59 -0
  28. pyrogram/methods/bots/edit_bot_access_settings.py +78 -0
  29. pyrogram/methods/bots/get_bot_access_settings.py +56 -0
  30. pyrogram/methods/bots/send_chat_join_request_web_app.py +56 -0
  31. pyrogram/methods/bots/send_streaming_text.py +162 -0
  32. pyrogram/methods/chats/__init__.py +5 -1
  33. pyrogram/methods/chats/get_chat.py +1 -1
  34. pyrogram/methods/chats/join_chat.py +3 -3
  35. pyrogram/methods/chats/promote_chat_member.py +3 -1
  36. pyrogram/methods/chats/set_chat_guard_bot.py +83 -0
  37. pyrogram/methods/chats/set_chat_permissions.py +23 -11
  38. pyrogram/methods/chats/toggle_direct_messages.py +62 -0
  39. pyrogram/methods/communities/__init__.py +25 -0
  40. pyrogram/methods/communities/add_chat_to_community.py +103 -0
  41. pyrogram/methods/communities/approve_all_community_peer_links.py +46 -0
  42. pyrogram/methods/communities/approve_community_peer_link.py +53 -0
  43. pyrogram/methods/communities/ban_community_participant.py +53 -0
  44. pyrogram/methods/communities/create_community.py +54 -0
  45. pyrogram/methods/communities/get_community_participant_chats.py +41 -0
  46. pyrogram/methods/communities/get_community_peer_link_requests.py +45 -0
  47. pyrogram/methods/communities/get_joined_communities.py +22 -0
  48. pyrogram/methods/communities/toggle_community_collapsed.py +44 -0
  49. pyrogram/methods/communities/toggle_community_peer_link.py +65 -0
  50. pyrogram/methods/decorators/__init__.py +3 -1
  51. pyrogram/methods/decorators/on_guard_bot_query.py +78 -0
  52. pyrogram/methods/ephemeral/__init__.py +21 -0
  53. pyrogram/methods/ephemeral/delete_ephemeral_message.py +51 -0
  54. pyrogram/methods/ephemeral/edit_ephemeral_message_caption.py +70 -0
  55. pyrogram/methods/ephemeral/edit_ephemeral_message_media.py +59 -0
  56. pyrogram/methods/ephemeral/edit_ephemeral_message_reply_markup.py +54 -0
  57. pyrogram/methods/ephemeral/edit_ephemeral_message_text.py +70 -0
  58. pyrogram/methods/ephemeral/get_ephemeral_callback_answer.py +45 -0
  59. pyrogram/methods/ephemeral/report_ephemeral_message.py +50 -0
  60. pyrogram/methods/ephemeral/send_ephemeral_message.py +61 -0
  61. pyrogram/methods/messages/__init__.py +29 -1
  62. pyrogram/methods/messages/compose_rich_message_with_ai.py +51 -0
  63. pyrogram/methods/messages/delete_monoforum_history.py +62 -0
  64. pyrogram/methods/messages/delete_web_browser_exceptions.py +42 -0
  65. pyrogram/methods/messages/download_media.py +4 -1
  66. pyrogram/methods/messages/edit_message_text.py +30 -3
  67. pyrogram/methods/messages/forward_messages.py +7 -2
  68. pyrogram/methods/messages/get_monoforum_dialogs.py +61 -0
  69. pyrogram/methods/messages/get_monoforum_history.py +132 -0
  70. pyrogram/methods/messages/get_poll_stats.py +61 -0
  71. pyrogram/methods/messages/get_web_browser_settings.py +43 -0
  72. pyrogram/methods/messages/read_monoforum_history.py +62 -0
  73. pyrogram/methods/messages/request_chat_join_web_view.py +56 -0
  74. pyrogram/methods/messages/send_animation.py +5 -0
  75. pyrogram/methods/messages/send_audio.py +5 -0
  76. pyrogram/methods/messages/send_cached_media.py +5 -0
  77. pyrogram/methods/messages/send_contact.py +5 -0
  78. pyrogram/methods/messages/send_dice.py +5 -0
  79. pyrogram/methods/messages/send_document.py +5 -0
  80. pyrogram/methods/messages/send_location.py +5 -0
  81. pyrogram/methods/messages/send_media_group.py +6 -1
  82. pyrogram/methods/messages/send_message.py +31 -2
  83. pyrogram/methods/messages/send_photo.py +5 -0
  84. pyrogram/methods/messages/send_poll.py +5 -0
  85. pyrogram/methods/messages/send_reaction.py +6 -4
  86. pyrogram/methods/messages/send_rich_message.py +108 -0
  87. pyrogram/methods/messages/send_rich_message_draft.py +86 -0
  88. pyrogram/methods/messages/send_sticker.py +5 -0
  89. pyrogram/methods/messages/send_venue.py +5 -0
  90. pyrogram/methods/messages/send_video.py +5 -0
  91. pyrogram/methods/messages/send_video_note.py +5 -0
  92. pyrogram/methods/messages/send_voice.py +5 -0
  93. pyrogram/methods/messages/toggle_web_browser_exception.py +68 -0
  94. pyrogram/methods/messages/translate_rich_message.py +50 -0
  95. pyrogram/methods/messages/update_web_browser_settings.py +56 -0
  96. pyrogram/methods/utilities/start.py +3 -0
  97. pyrogram/methods/utilities/stop.py +5 -1
  98. pyrogram/raw/all.py +476 -188
  99. pyrogram/raw/base/__init__.py +41 -4
  100. pyrogram/raw/base/access_point_rule.py +19 -1
  101. pyrogram/raw/base/account/__init__.py +5 -0
  102. pyrogram/raw/base/account/authorization_form.py +29 -1
  103. pyrogram/raw/base/account/authorizations.py +29 -1
  104. pyrogram/raw/base/account/auto_download_settings.py +29 -1
  105. pyrogram/raw/base/account/auto_save_settings.py +29 -1
  106. pyrogram/raw/base/account/business_chat_links.py +29 -1
  107. pyrogram/raw/base/account/chat_themes.py +57 -0
  108. pyrogram/raw/base/account/connected_bots.py +29 -1
  109. pyrogram/raw/base/account/content_settings.py +29 -1
  110. pyrogram/raw/base/account/email_verified.py +30 -1
  111. pyrogram/raw/base/account/emoji_statuses.py +33 -1
  112. pyrogram/raw/base/account/paid_messages_revenue.py +29 -1
  113. pyrogram/raw/base/account/passkey_registration_options.py +56 -0
  114. pyrogram/raw/base/account/passkeys.py +56 -0
  115. pyrogram/raw/base/account/password.py +29 -1
  116. pyrogram/raw/base/account/password_input_settings.py +19 -1
  117. pyrogram/raw/base/account/password_settings.py +29 -1
  118. pyrogram/raw/base/account/privacy_rules.py +30 -1
  119. pyrogram/raw/base/account/reset_password_result.py +31 -1
  120. pyrogram/raw/base/account/resolved_business_chat_links.py +29 -1
  121. pyrogram/raw/base/account/saved_music_ids.py +57 -0
  122. pyrogram/raw/base/account/saved_ringtone.py +30 -1
  123. pyrogram/raw/base/account/saved_ringtones.py +30 -1
  124. pyrogram/raw/base/account/sent_email_code.py +29 -1
  125. pyrogram/raw/base/account/takeout.py +29 -1
  126. pyrogram/raw/base/account/themes.py +31 -1
  127. pyrogram/raw/base/account/tmp_password.py +29 -1
  128. pyrogram/raw/base/account/wall_papers.py +30 -1
  129. pyrogram/raw/base/account/web_authorizations.py +29 -1
  130. pyrogram/raw/base/account/web_browser_settings.py +59 -0
  131. pyrogram/raw/base/account_days_ttl.py +29 -1
  132. pyrogram/raw/base/ai_compose_tone.py +58 -0
  133. pyrogram/raw/base/ai_compose_tone_example.py +56 -0
  134. pyrogram/raw/base/{messages/message_empty.py → aicompose/__init__.py} +1 -4
  135. pyrogram/raw/base/aicompose/tones.py +58 -0
  136. pyrogram/raw/base/attach_menu_bot.py +19 -1
  137. pyrogram/raw/base/attach_menu_bot_icon.py +19 -1
  138. pyrogram/raw/base/attach_menu_bot_icon_color.py +19 -1
  139. pyrogram/raw/base/attach_menu_bots.py +30 -1
  140. pyrogram/raw/base/attach_menu_bots_bot.py +29 -1
  141. pyrogram/raw/base/attach_menu_peer_type.py +23 -1
  142. pyrogram/raw/base/auction_bid_level.py +46 -0
  143. pyrogram/raw/base/auth/__init__.py +1 -0
  144. pyrogram/raw/base/auth/authorization.py +37 -1
  145. pyrogram/raw/base/auth/code_type.py +23 -1
  146. pyrogram/raw/base/auth/exported_authorization.py +29 -1
  147. pyrogram/raw/base/auth/logged_out.py +29 -1
  148. pyrogram/raw/base/auth/login_token.py +32 -1
  149. pyrogram/raw/base/auth/passkey_login_options.py +56 -0
  150. pyrogram/raw/base/auth/password_recovery.py +29 -1
  151. pyrogram/raw/base/auth/sent_code.py +37 -1
  152. pyrogram/raw/base/auth/sent_code_type.py +29 -1
  153. pyrogram/raw/base/authorization.py +29 -1
  154. pyrogram/raw/base/auto_download_settings.py +19 -1
  155. pyrogram/raw/base/auto_save_exception.py +19 -1
  156. pyrogram/raw/base/auto_save_settings.py +19 -1
  157. pyrogram/raw/base/available_effect.py +19 -1
  158. pyrogram/raw/base/available_reaction.py +19 -1
  159. pyrogram/raw/base/bad_msg_notification.py +20 -1
  160. pyrogram/raw/base/bank_card_open_url.py +19 -1
  161. pyrogram/raw/base/base_theme.py +23 -1
  162. pyrogram/raw/base/bind_auth_key_inner.py +19 -1
  163. pyrogram/raw/base/birthday.py +19 -1
  164. pyrogram/raw/base/boost.py +19 -1
  165. pyrogram/raw/base/bot_app.py +20 -1
  166. pyrogram/raw/base/bot_app_settings.py +19 -1
  167. pyrogram/raw/base/bot_business_connection.py +19 -1
  168. pyrogram/raw/base/bot_command.py +29 -1
  169. pyrogram/raw/base/bot_command_scope.py +25 -1
  170. pyrogram/raw/base/bot_info.py +19 -1
  171. pyrogram/raw/base/bot_inline_message.py +26 -1
  172. pyrogram/raw/base/bot_inline_result.py +20 -1
  173. pyrogram/raw/base/bot_menu_button.py +31 -1
  174. pyrogram/raw/base/bot_preview_media.py +31 -1
  175. pyrogram/raw/base/bot_verification.py +19 -1
  176. pyrogram/raw/base/bot_verifier_settings.py +19 -1
  177. pyrogram/raw/base/bots/__init__.py +3 -0
  178. pyrogram/raw/base/bots/access_settings.py +56 -0
  179. pyrogram/raw/base/bots/bot_info.py +29 -1
  180. pyrogram/raw/base/bots/exported_bot_token.py +56 -0
  181. pyrogram/raw/base/bots/popular_app_bots.py +29 -1
  182. pyrogram/raw/base/bots/preview_info.py +29 -1
  183. pyrogram/raw/base/bots/requested_button.py +56 -0
  184. pyrogram/raw/base/business_away_message.py +19 -1
  185. pyrogram/raw/base/business_away_message_schedule.py +21 -1
  186. pyrogram/raw/base/business_bot_recipients.py +19 -1
  187. pyrogram/raw/base/business_bot_rights.py +19 -1
  188. pyrogram/raw/base/business_chat_link.py +30 -1
  189. pyrogram/raw/base/business_greeting_message.py +19 -1
  190. pyrogram/raw/base/business_intro.py +19 -1
  191. pyrogram/raw/base/business_location.py +19 -1
  192. pyrogram/raw/base/business_recipients.py +19 -1
  193. pyrogram/raw/base/business_weekly_open.py +19 -1
  194. pyrogram/raw/base/business_work_hours.py +19 -1
  195. pyrogram/raw/base/cdn_config.py +29 -1
  196. pyrogram/raw/base/cdn_public_key.py +19 -1
  197. pyrogram/raw/base/channel_admin_log_event.py +19 -1
  198. pyrogram/raw/base/channel_admin_log_event_action.py +70 -1
  199. pyrogram/raw/base/channel_admin_log_events_filter.py +19 -1
  200. pyrogram/raw/base/channel_location.py +20 -1
  201. pyrogram/raw/base/channel_messages_filter.py +20 -1
  202. pyrogram/raw/base/channel_participant.py +24 -1
  203. pyrogram/raw/base/channel_participants_filter.py +26 -1
  204. pyrogram/raw/base/channels/admin_log_results.py +29 -1
  205. pyrogram/raw/base/channels/channel_participant.py +29 -1
  206. pyrogram/raw/base/channels/channel_participants.py +30 -1
  207. pyrogram/raw/base/channels/send_as_peers.py +29 -1
  208. pyrogram/raw/base/channels/sponsored_message_report_result.py +31 -1
  209. pyrogram/raw/base/chat.py +25 -1
  210. pyrogram/raw/base/chat_admin_rights.py +19 -1
  211. pyrogram/raw/base/chat_admin_with_invites.py +19 -1
  212. pyrogram/raw/base/chat_banned_rights.py +19 -1
  213. pyrogram/raw/base/chat_full.py +21 -1
  214. pyrogram/raw/base/chat_invite.py +31 -1
  215. pyrogram/raw/base/chat_invite_importer.py +19 -1
  216. pyrogram/raw/base/chat_onlines.py +29 -1
  217. pyrogram/raw/base/chat_participant.py +21 -1
  218. pyrogram/raw/base/chat_participants.py +20 -1
  219. pyrogram/raw/base/chat_photo.py +20 -1
  220. pyrogram/raw/base/chat_reactions.py +21 -1
  221. pyrogram/raw/base/chat_theme.py +47 -0
  222. pyrogram/raw/base/chatlists/chatlist_invite.py +30 -1
  223. pyrogram/raw/base/chatlists/chatlist_updates.py +29 -1
  224. pyrogram/raw/base/chatlists/exported_chatlist_invite.py +29 -1
  225. pyrogram/raw/base/chatlists/exported_invites.py +29 -1
  226. pyrogram/raw/base/client_dh_inner_data.py +19 -1
  227. pyrogram/raw/base/code_settings.py +19 -1
  228. pyrogram/raw/base/{messages/web_view_result.py → communities/__init__.py} +2 -4
  229. pyrogram/raw/base/communities/participant_joined_chats.py +56 -0
  230. pyrogram/raw/base/communities/peer_link_requests.py +56 -0
  231. pyrogram/raw/base/community_peer.py +46 -0
  232. pyrogram/raw/base/community_peer_request.py +46 -0
  233. pyrogram/raw/base/config.py +29 -1
  234. pyrogram/raw/base/connected_bot.py +19 -1
  235. pyrogram/raw/base/connected_bot_star_ref.py +19 -1
  236. pyrogram/raw/base/contact.py +19 -1
  237. pyrogram/raw/base/contact_birthday.py +19 -1
  238. pyrogram/raw/base/contact_status.py +29 -1
  239. pyrogram/raw/base/contacts/blocked.py +30 -1
  240. pyrogram/raw/base/contacts/contact_birthdays.py +29 -1
  241. pyrogram/raw/base/contacts/contacts.py +30 -1
  242. pyrogram/raw/base/contacts/found.py +29 -1
  243. pyrogram/raw/base/contacts/imported_contacts.py +29 -1
  244. pyrogram/raw/base/contacts/resolved_peer.py +30 -1
  245. pyrogram/raw/base/contacts/sponsored_peers.py +30 -1
  246. pyrogram/raw/base/contacts/top_peers.py +31 -1
  247. pyrogram/raw/base/data_json.py +31 -1
  248. pyrogram/raw/base/dc_option.py +19 -1
  249. pyrogram/raw/base/default_history_ttl.py +29 -1
  250. pyrogram/raw/base/destroy_auth_key_res.py +31 -1
  251. pyrogram/raw/base/destroy_session_res.py +30 -1
  252. pyrogram/raw/base/dialog.py +21 -1
  253. pyrogram/raw/base/dialog_filter.py +21 -1
  254. pyrogram/raw/base/dialog_filter_suggested.py +29 -1
  255. pyrogram/raw/base/dialog_peer.py +31 -1
  256. pyrogram/raw/base/disallowed_gifts_settings.py +19 -1
  257. pyrogram/raw/base/document.py +33 -1
  258. pyrogram/raw/base/document_attribute.py +26 -1
  259. pyrogram/raw/base/draft_message.py +20 -1
  260. pyrogram/raw/base/email_verification.py +21 -1
  261. pyrogram/raw/base/email_verify_purpose.py +21 -1
  262. pyrogram/raw/base/emoji_group.py +21 -1
  263. pyrogram/raw/base/emoji_keyword.py +20 -1
  264. pyrogram/raw/base/emoji_keywords_difference.py +30 -1
  265. pyrogram/raw/base/emoji_language.py +29 -1
  266. pyrogram/raw/base/emoji_list.py +34 -1
  267. pyrogram/raw/base/emoji_status.py +22 -1
  268. pyrogram/raw/base/emoji_url.py +29 -1
  269. pyrogram/raw/base/encrypted_chat.py +34 -1
  270. pyrogram/raw/base/encrypted_file.py +30 -1
  271. pyrogram/raw/base/encrypted_message.py +20 -1
  272. pyrogram/raw/base/ephemeral_message.py +46 -0
  273. pyrogram/raw/base/exported_chat_invite.py +30 -1
  274. pyrogram/raw/base/exported_chatlist_invite.py +29 -1
  275. pyrogram/raw/base/exported_contact_token.py +29 -1
  276. pyrogram/raw/base/exported_message_link.py +29 -1
  277. pyrogram/raw/base/exported_story_link.py +29 -1
  278. pyrogram/raw/base/fact_check.py +29 -1
  279. pyrogram/raw/base/file_hash.py +31 -1
  280. pyrogram/raw/base/folder.py +19 -1
  281. pyrogram/raw/base/folder_peer.py +19 -1
  282. pyrogram/raw/base/forum_topic.py +20 -1
  283. pyrogram/raw/base/found_story.py +19 -1
  284. pyrogram/raw/base/fragment/collectible_info.py +29 -1
  285. pyrogram/raw/base/game.py +19 -1
  286. pyrogram/raw/base/geo_point.py +20 -1
  287. pyrogram/raw/base/geo_point_address.py +19 -1
  288. pyrogram/raw/base/global_privacy_settings.py +30 -1
  289. pyrogram/raw/base/group_call.py +20 -1
  290. pyrogram/raw/base/group_call_donor.py +46 -0
  291. pyrogram/raw/base/group_call_message.py +46 -0
  292. pyrogram/raw/base/group_call_participant.py +19 -1
  293. pyrogram/raw/base/group_call_participant_video.py +19 -1
  294. pyrogram/raw/base/group_call_participant_video_source_group.py +19 -1
  295. pyrogram/raw/base/group_call_stream_channel.py +19 -1
  296. pyrogram/raw/base/help/app_config.py +30 -1
  297. pyrogram/raw/base/help/app_update.py +30 -1
  298. pyrogram/raw/base/help/config_simple.py +19 -1
  299. pyrogram/raw/base/help/countries_list.py +30 -1
  300. pyrogram/raw/base/help/country.py +19 -1
  301. pyrogram/raw/base/help/country_code.py +19 -1
  302. pyrogram/raw/base/help/deep_link_info.py +30 -1
  303. pyrogram/raw/base/help/invite_text.py +29 -1
  304. pyrogram/raw/base/help/passport_config.py +30 -1
  305. pyrogram/raw/base/help/peer_color_option.py +19 -1
  306. pyrogram/raw/base/help/peer_color_set.py +20 -1
  307. pyrogram/raw/base/help/peer_colors.py +31 -1
  308. pyrogram/raw/base/help/premium_promo.py +29 -1
  309. pyrogram/raw/base/help/promo_data.py +30 -1
  310. pyrogram/raw/base/help/recent_me_urls.py +29 -1
  311. pyrogram/raw/base/help/support.py +29 -1
  312. pyrogram/raw/base/help/support_name.py +29 -1
  313. pyrogram/raw/base/help/terms_of_service.py +19 -1
  314. pyrogram/raw/base/help/terms_of_service_update.py +30 -1
  315. pyrogram/raw/base/help/timezones_list.py +30 -1
  316. pyrogram/raw/base/help/user_info.py +31 -1
  317. pyrogram/raw/base/high_score.py +19 -1
  318. pyrogram/raw/base/http_wait.py +19 -1
  319. pyrogram/raw/base/imported_contact.py +19 -1
  320. pyrogram/raw/base/inline_bot_switch_pm.py +19 -1
  321. pyrogram/raw/base/inline_bot_web_view.py +19 -1
  322. pyrogram/raw/base/inline_query_peer_type.py +24 -1
  323. pyrogram/raw/base/input_ai_compose_tone.py +49 -0
  324. pyrogram/raw/base/input_app_event.py +19 -1
  325. pyrogram/raw/base/input_bot_app.py +20 -1
  326. pyrogram/raw/base/input_bot_inline_message.py +27 -1
  327. pyrogram/raw/base/input_bot_inline_message_id.py +30 -1
  328. pyrogram/raw/base/input_bot_inline_result.py +22 -1
  329. pyrogram/raw/base/input_business_away_message.py +19 -1
  330. pyrogram/raw/base/input_business_bot_recipients.py +19 -1
  331. pyrogram/raw/base/input_business_chat_link.py +19 -1
  332. pyrogram/raw/base/input_business_greeting_message.py +19 -1
  333. pyrogram/raw/base/input_business_intro.py +19 -1
  334. pyrogram/raw/base/input_business_recipients.py +19 -1
  335. pyrogram/raw/base/input_channel.py +21 -1
  336. pyrogram/raw/base/input_chat_photo.py +21 -1
  337. pyrogram/raw/base/input_chat_theme.py +48 -0
  338. pyrogram/raw/base/input_chatlist.py +19 -1
  339. pyrogram/raw/base/input_check_password_srp.py +20 -1
  340. pyrogram/raw/base/input_client_proxy.py +19 -1
  341. pyrogram/raw/base/input_collectible.py +20 -1
  342. pyrogram/raw/base/input_contact.py +19 -1
  343. pyrogram/raw/base/input_dialog_peer.py +21 -1
  344. pyrogram/raw/base/input_document.py +20 -1
  345. pyrogram/raw/base/input_encrypted_chat.py +19 -1
  346. pyrogram/raw/base/input_encrypted_file.py +22 -1
  347. pyrogram/raw/base/input_file.py +21 -1
  348. pyrogram/raw/base/input_file_location.py +28 -1
  349. pyrogram/raw/base/input_folder_peer.py +19 -1
  350. pyrogram/raw/base/input_game.py +20 -1
  351. pyrogram/raw/base/input_geo_point.py +20 -1
  352. pyrogram/raw/base/input_group_call.py +21 -1
  353. pyrogram/raw/base/input_invoice.py +33 -1
  354. pyrogram/raw/base/input_media.py +38 -1
  355. pyrogram/raw/base/input_message.py +22 -1
  356. pyrogram/raw/base/input_message_read_metric.py +46 -0
  357. pyrogram/raw/base/input_notify_peer.py +24 -1
  358. pyrogram/raw/base/input_passkey_credential.py +47 -0
  359. pyrogram/raw/base/input_passkey_response.py +47 -0
  360. pyrogram/raw/base/input_payment_credentials.py +22 -1
  361. pyrogram/raw/base/input_peer.py +25 -1
  362. pyrogram/raw/base/input_peer_notify_settings.py +19 -1
  363. pyrogram/raw/base/input_phone_call.py +19 -1
  364. pyrogram/raw/base/input_photo.py +20 -1
  365. pyrogram/raw/base/input_privacy_key.py +32 -1
  366. pyrogram/raw/base/input_privacy_rule.py +30 -1
  367. pyrogram/raw/base/input_quick_reply_shortcut.py +20 -1
  368. pyrogram/raw/base/input_reply_to.py +22 -1
  369. pyrogram/raw/base/input_rich_file.py +47 -0
  370. pyrogram/raw/base/input_rich_message.py +48 -0
  371. pyrogram/raw/base/input_saved_star_gift.py +21 -1
  372. pyrogram/raw/base/input_secure_file.py +20 -1
  373. pyrogram/raw/base/input_secure_value.py +19 -1
  374. pyrogram/raw/base/input_single_media.py +19 -1
  375. pyrogram/raw/base/input_star_gift_auction.py +47 -0
  376. pyrogram/raw/base/input_stars_transaction.py +19 -1
  377. pyrogram/raw/base/input_sticker_set.py +30 -1
  378. pyrogram/raw/base/input_sticker_set_item.py +19 -1
  379. pyrogram/raw/base/input_stickered_media.py +20 -1
  380. pyrogram/raw/base/input_store_payment_purpose.py +26 -1
  381. pyrogram/raw/base/input_theme.py +20 -1
  382. pyrogram/raw/base/input_theme_settings.py +19 -1
  383. pyrogram/raw/base/input_user.py +22 -1
  384. pyrogram/raw/base/input_wall_paper.py +21 -1
  385. pyrogram/raw/base/input_web_document.py +19 -1
  386. pyrogram/raw/base/input_web_file_location.py +21 -1
  387. pyrogram/raw/base/invoice.py +19 -1
  388. pyrogram/raw/base/ip_port.py +20 -1
  389. pyrogram/raw/base/join_chat_bot_result.py +49 -0
  390. pyrogram/raw/base/json_object_value.py +19 -1
  391. pyrogram/raw/base/json_value.py +24 -1
  392. pyrogram/raw/base/keyboard_button.py +46 -1
  393. pyrogram/raw/base/keyboard_button_row.py +19 -1
  394. pyrogram/raw/base/keyboard_button_style.py +46 -0
  395. pyrogram/raw/base/labeled_price.py +19 -1
  396. pyrogram/raw/base/lang_pack_difference.py +30 -1
  397. pyrogram/raw/base/lang_pack_language.py +30 -1
  398. pyrogram/raw/base/lang_pack_string.py +31 -1
  399. pyrogram/raw/base/mask_coords.py +19 -1
  400. pyrogram/raw/base/media_area.py +27 -1
  401. pyrogram/raw/base/media_area_coordinates.py +19 -1
  402. pyrogram/raw/base/message.py +21 -1
  403. pyrogram/raw/base/message_action.py +86 -1
  404. pyrogram/raw/base/message_entity.py +43 -1
  405. pyrogram/raw/base/message_extended_media.py +20 -1
  406. pyrogram/raw/base/message_fwd_header.py +19 -1
  407. pyrogram/raw/base/message_media.py +48 -1
  408. pyrogram/raw/base/message_peer_reaction.py +19 -1
  409. pyrogram/raw/base/message_peer_vote.py +21 -1
  410. pyrogram/raw/base/message_range.py +29 -1
  411. pyrogram/raw/base/message_reactions.py +19 -1
  412. pyrogram/raw/base/message_reactor.py +19 -1
  413. pyrogram/raw/base/message_replies.py +19 -1
  414. pyrogram/raw/base/message_reply_header.py +20 -1
  415. pyrogram/raw/base/message_report_option.py +19 -1
  416. pyrogram/raw/base/message_views.py +19 -1
  417. pyrogram/raw/base/messages/__init__.py +6 -2
  418. pyrogram/raw/base/messages/affected_found_messages.py +29 -1
  419. pyrogram/raw/base/messages/affected_history.py +36 -1
  420. pyrogram/raw/base/messages/affected_messages.py +32 -1
  421. pyrogram/raw/base/messages/all_stickers.py +32 -1
  422. pyrogram/raw/base/messages/archived_stickers.py +29 -1
  423. pyrogram/raw/base/messages/available_effects.py +30 -1
  424. pyrogram/raw/base/messages/available_reactions.py +30 -1
  425. pyrogram/raw/base/messages/bot_app.py +29 -1
  426. pyrogram/raw/base/messages/bot_callback_answer.py +30 -1
  427. pyrogram/raw/base/messages/bot_prepared_inline_message.py +29 -1
  428. pyrogram/raw/base/messages/bot_results.py +29 -1
  429. pyrogram/raw/base/messages/chat_admins_with_invites.py +29 -1
  430. pyrogram/raw/base/messages/chat_full.py +30 -1
  431. pyrogram/raw/base/messages/chat_invite_importers.py +29 -1
  432. pyrogram/raw/base/messages/chat_invite_join_result.py +58 -0
  433. pyrogram/raw/base/messages/chats.py +38 -1
  434. pyrogram/raw/base/messages/checked_history_import_peer.py +29 -1
  435. pyrogram/raw/base/messages/composed_message_with_ai.py +56 -0
  436. pyrogram/raw/base/messages/composed_rich_message_with_ai.py +56 -0
  437. pyrogram/raw/base/messages/dh_config.py +30 -1
  438. pyrogram/raw/base/messages/dialog_filters.py +29 -1
  439. pyrogram/raw/base/messages/dialogs.py +31 -1
  440. pyrogram/raw/base/messages/discussion_message.py +29 -1
  441. pyrogram/raw/base/messages/emoji_game_info.py +57 -0
  442. pyrogram/raw/base/messages/emoji_game_outcome.py +46 -0
  443. pyrogram/raw/base/messages/emoji_groups.py +33 -1
  444. pyrogram/raw/base/messages/exported_chat_invite.py +31 -1
  445. pyrogram/raw/base/messages/exported_chat_invites.py +29 -1
  446. pyrogram/raw/base/messages/faved_stickers.py +30 -1
  447. pyrogram/raw/base/messages/featured_stickers.py +32 -1
  448. pyrogram/raw/base/messages/forum_topics.py +30 -1
  449. pyrogram/raw/base/messages/found_sticker_sets.py +31 -1
  450. pyrogram/raw/base/messages/found_stickers.py +30 -1
  451. pyrogram/raw/base/messages/high_scores.py +30 -1
  452. pyrogram/raw/base/messages/history_import.py +29 -1
  453. pyrogram/raw/base/messages/history_import_parsed.py +29 -1
  454. pyrogram/raw/base/messages/inactive_chats.py +29 -1
  455. pyrogram/raw/base/messages/invited_users.py +31 -1
  456. pyrogram/raw/base/messages/message_edit_data.py +29 -1
  457. pyrogram/raw/base/messages/message_reactions_list.py +29 -1
  458. pyrogram/raw/base/messages/message_views.py +29 -1
  459. pyrogram/raw/base/messages/messages.py +49 -1
  460. pyrogram/raw/base/messages/my_stickers.py +29 -1
  461. pyrogram/raw/base/messages/peer_dialogs.py +30 -1
  462. pyrogram/raw/base/messages/peer_settings.py +29 -1
  463. pyrogram/raw/base/messages/prepared_inline_message.py +29 -1
  464. pyrogram/raw/base/messages/quick_replies.py +30 -1
  465. pyrogram/raw/base/messages/reactions.py +32 -1
  466. pyrogram/raw/base/messages/recent_stickers.py +30 -1
  467. pyrogram/raw/base/messages/saved_dialogs.py +33 -1
  468. pyrogram/raw/base/messages/saved_gifs.py +30 -1
  469. pyrogram/raw/base/messages/saved_reaction_tags.py +30 -1
  470. pyrogram/raw/base/messages/search_counter.py +29 -1
  471. pyrogram/raw/base/messages/search_results_calendar.py +29 -1
  472. pyrogram/raw/base/messages/search_results_positions.py +29 -1
  473. pyrogram/raw/base/messages/sent_encrypted_message.py +32 -1
  474. pyrogram/raw/base/messages/sponsored_messages.py +30 -1
  475. pyrogram/raw/base/messages/sticker_set.py +38 -1
  476. pyrogram/raw/base/messages/sticker_set_install_result.py +30 -1
  477. pyrogram/raw/base/messages/stickers.py +30 -1
  478. pyrogram/raw/base/messages/transcribed_audio.py +29 -1
  479. pyrogram/raw/base/messages/translated_rich_message.py +56 -0
  480. pyrogram/raw/base/messages/translated_text.py +29 -1
  481. pyrogram/raw/base/messages/votes_list.py +29 -1
  482. pyrogram/raw/base/messages/web_page.py +29 -1
  483. pyrogram/raw/base/messages/web_page_preview.py +29 -1
  484. pyrogram/raw/base/messages_filter.py +36 -1
  485. pyrogram/raw/base/missing_invitee.py +19 -1
  486. pyrogram/raw/base/msg_detailed_info.py +20 -1
  487. pyrogram/raw/base/msg_resend_req.py +20 -1
  488. pyrogram/raw/base/msgs_ack.py +19 -1
  489. pyrogram/raw/base/msgs_all_info.py +19 -1
  490. pyrogram/raw/base/msgs_state_info.py +19 -1
  491. pyrogram/raw/base/msgs_state_req.py +19 -1
  492. pyrogram/raw/base/my_boost.py +19 -1
  493. pyrogram/raw/base/nearest_dc.py +29 -1
  494. pyrogram/raw/base/new_session.py +19 -1
  495. pyrogram/raw/base/notification_sound.py +22 -1
  496. pyrogram/raw/base/notify_peer.py +24 -1
  497. pyrogram/raw/base/outbox_read_date.py +29 -1
  498. pyrogram/raw/base/page.py +19 -1
  499. pyrogram/raw/base/page_block.py +57 -1
  500. pyrogram/raw/base/page_caption.py +19 -1
  501. pyrogram/raw/base/page_list_item.py +20 -1
  502. pyrogram/raw/base/page_list_ordered_item.py +20 -1
  503. pyrogram/raw/base/page_related_article.py +19 -1
  504. pyrogram/raw/base/page_table_cell.py +19 -1
  505. pyrogram/raw/base/page_table_row.py +19 -1
  506. pyrogram/raw/base/paid_reaction_privacy.py +21 -1
  507. pyrogram/raw/base/passkey.py +56 -0
  508. pyrogram/raw/base/password_kdf_algo.py +20 -1
  509. pyrogram/raw/base/payment_charge.py +19 -1
  510. pyrogram/raw/base/payment_form_method.py +19 -1
  511. pyrogram/raw/base/payment_requested_info.py +19 -1
  512. pyrogram/raw/base/payment_saved_credentials.py +19 -1
  513. pyrogram/raw/base/payments/__init__.py +7 -0
  514. pyrogram/raw/base/payments/bank_card_data.py +29 -1
  515. pyrogram/raw/base/payments/check_can_send_gift_result.py +57 -0
  516. pyrogram/raw/base/payments/checked_gift_code.py +29 -1
  517. pyrogram/raw/base/payments/connected_star_ref_bots.py +32 -1
  518. pyrogram/raw/base/payments/exported_invoice.py +29 -1
  519. pyrogram/raw/base/payments/giveaway_info.py +30 -1
  520. pyrogram/raw/base/payments/payment_form.py +31 -1
  521. pyrogram/raw/base/payments/payment_receipt.py +30 -1
  522. pyrogram/raw/base/payments/payment_result.py +31 -1
  523. pyrogram/raw/base/payments/resale_star_gifts.py +29 -1
  524. pyrogram/raw/base/payments/saved_info.py +29 -1
  525. pyrogram/raw/base/payments/saved_star_gifts.py +31 -1
  526. pyrogram/raw/base/payments/star_gift_active_auctions.py +57 -0
  527. pyrogram/raw/base/payments/star_gift_auction_acquired_gifts.py +56 -0
  528. pyrogram/raw/base/payments/star_gift_auction_state.py +56 -0
  529. pyrogram/raw/base/payments/star_gift_collections.py +57 -0
  530. pyrogram/raw/base/payments/star_gift_upgrade_attributes.py +56 -0
  531. pyrogram/raw/base/payments/star_gift_upgrade_preview.py +29 -1
  532. pyrogram/raw/base/payments/star_gift_withdrawal_url.py +29 -1
  533. pyrogram/raw/base/payments/star_gifts.py +30 -1
  534. pyrogram/raw/base/payments/stars_revenue_ads_account_url.py +29 -1
  535. pyrogram/raw/base/payments/stars_revenue_stats.py +29 -1
  536. pyrogram/raw/base/payments/stars_revenue_withdrawal_url.py +29 -1
  537. pyrogram/raw/base/payments/stars_status.py +32 -1
  538. pyrogram/raw/base/payments/suggested_star_ref_bots.py +29 -1
  539. pyrogram/raw/base/payments/unique_star_gift.py +29 -1
  540. pyrogram/raw/base/payments/unique_star_gift_value_info.py +56 -0
  541. pyrogram/raw/base/payments/validated_requested_info.py +29 -1
  542. pyrogram/raw/base/peer.py +31 -1
  543. pyrogram/raw/base/peer_blocked.py +19 -1
  544. pyrogram/raw/base/peer_color.py +21 -1
  545. pyrogram/raw/base/peer_located.py +20 -1
  546. pyrogram/raw/base/peer_notify_settings.py +29 -1
  547. pyrogram/raw/base/peer_settings.py +19 -1
  548. pyrogram/raw/base/peer_stories.py +19 -1
  549. pyrogram/raw/base/pending_suggestion.py +19 -1
  550. pyrogram/raw/base/phone/__init__.py +1 -0
  551. pyrogram/raw/base/phone/exported_group_call_invite.py +29 -1
  552. pyrogram/raw/base/phone/group_call.py +29 -1
  553. pyrogram/raw/base/phone/group_call_stars.py +56 -0
  554. pyrogram/raw/base/phone/group_call_stream_channels.py +29 -1
  555. pyrogram/raw/base/phone/group_call_stream_rtmp_url.py +29 -1
  556. pyrogram/raw/base/phone/group_participants.py +29 -1
  557. pyrogram/raw/base/phone/join_as_peers.py +29 -1
  558. pyrogram/raw/base/phone/phone_call.py +31 -1
  559. pyrogram/raw/base/phone_call.py +24 -1
  560. pyrogram/raw/base/phone_call_discard_reason.py +23 -1
  561. pyrogram/raw/base/phone_call_protocol.py +19 -1
  562. pyrogram/raw/base/phone_connection.py +20 -1
  563. pyrogram/raw/base/photo.py +20 -1
  564. pyrogram/raw/base/photo_size.py +24 -1
  565. pyrogram/raw/base/photos/photo.py +31 -1
  566. pyrogram/raw/base/photos/photos.py +30 -1
  567. pyrogram/raw/base/poll.py +19 -1
  568. pyrogram/raw/base/poll_answer.py +20 -1
  569. pyrogram/raw/base/poll_answer_voters.py +19 -1
  570. pyrogram/raw/base/poll_results.py +19 -1
  571. pyrogram/raw/base/pong.py +30 -1
  572. pyrogram/raw/base/popular_contact.py +19 -1
  573. pyrogram/raw/base/post_address.py +19 -1
  574. pyrogram/raw/base/post_interaction_counters.py +20 -1
  575. pyrogram/raw/base/pq_inner_data.py +22 -1
  576. pyrogram/raw/base/premium/boosts_list.py +30 -1
  577. pyrogram/raw/base/premium/boosts_status.py +29 -1
  578. pyrogram/raw/base/premium/my_boosts.py +30 -1
  579. pyrogram/raw/base/premium_gift_code_option.py +29 -1
  580. pyrogram/raw/base/premium_subscription_option.py +19 -1
  581. pyrogram/raw/base/prepaid_giveaway.py +20 -1
  582. pyrogram/raw/base/privacy_key.py +32 -1
  583. pyrogram/raw/base/privacy_rule.py +30 -1
  584. pyrogram/raw/base/profile_tab.py +53 -0
  585. pyrogram/raw/base/public_forward.py +20 -1
  586. pyrogram/raw/base/quick_reply.py +19 -1
  587. pyrogram/raw/base/reaction.py +22 -1
  588. pyrogram/raw/base/reaction_count.py +19 -1
  589. pyrogram/raw/base/reaction_notifications_from.py +20 -1
  590. pyrogram/raw/base/reactions_notify_settings.py +30 -1
  591. pyrogram/raw/base/read_participant_date.py +29 -1
  592. pyrogram/raw/base/received_notify_message.py +29 -1
  593. pyrogram/raw/base/recent_me_url.py +23 -1
  594. pyrogram/raw/base/recent_story.py +56 -0
  595. pyrogram/raw/base/reply_markup.py +22 -1
  596. pyrogram/raw/base/report_reason.py +28 -1
  597. pyrogram/raw/base/report_result.py +33 -1
  598. pyrogram/raw/base/request_peer_type.py +22 -1
  599. pyrogram/raw/base/requested_peer.py +21 -1
  600. pyrogram/raw/base/requirement_to_contact.py +31 -1
  601. pyrogram/raw/base/res_pq.py +30 -1
  602. pyrogram/raw/base/restriction_reason.py +19 -1
  603. pyrogram/raw/base/rich_message.py +46 -0
  604. pyrogram/raw/base/rich_text.py +48 -1
  605. pyrogram/raw/base/rpc_drop_answer.py +31 -1
  606. pyrogram/raw/base/rpc_error.py +19 -1
  607. pyrogram/raw/base/rpc_result.py +19 -1
  608. pyrogram/raw/base/saved_contact.py +29 -1
  609. pyrogram/raw/base/saved_dialog.py +20 -1
  610. pyrogram/raw/base/saved_reaction_tag.py +19 -1
  611. pyrogram/raw/base/saved_star_gift.py +19 -1
  612. pyrogram/raw/base/search_posts_flood.py +56 -0
  613. pyrogram/raw/base/search_results_calendar_period.py +19 -1
  614. pyrogram/raw/base/search_results_position.py +19 -1
  615. pyrogram/raw/base/secure_credentials_encrypted.py +19 -1
  616. pyrogram/raw/base/secure_data.py +19 -1
  617. pyrogram/raw/base/secure_file.py +20 -1
  618. pyrogram/raw/base/secure_password_kdf_algo.py +21 -1
  619. pyrogram/raw/base/secure_plain_data.py +20 -1
  620. pyrogram/raw/base/secure_required_type.py +20 -1
  621. pyrogram/raw/base/secure_secret_settings.py +19 -1
  622. pyrogram/raw/base/secure_value.py +31 -1
  623. pyrogram/raw/base/secure_value_error.py +27 -1
  624. pyrogram/raw/base/secure_value_hash.py +19 -1
  625. pyrogram/raw/base/secure_value_type.py +31 -1
  626. pyrogram/raw/base/send_as_peer.py +19 -1
  627. pyrogram/raw/base/send_message_action.py +39 -1
  628. pyrogram/raw/base/server_dh_inner_data.py +19 -1
  629. pyrogram/raw/base/server_dh_params.py +30 -1
  630. pyrogram/raw/base/set_client_dh_params_answer.py +31 -1
  631. pyrogram/raw/base/shipping_option.py +19 -1
  632. pyrogram/raw/base/sms_job.py +29 -1
  633. pyrogram/raw/base/smsjobs/eligibility_to_join.py +29 -1
  634. pyrogram/raw/base/smsjobs/status.py +29 -1
  635. pyrogram/raw/base/sponsored_message.py +19 -1
  636. pyrogram/raw/base/sponsored_message_report_option.py +19 -1
  637. pyrogram/raw/base/sponsored_peer.py +19 -1
  638. pyrogram/raw/base/star_gift.py +20 -1
  639. pyrogram/raw/base/star_gift_active_auction_state.py +46 -0
  640. pyrogram/raw/base/star_gift_attribute.py +22 -1
  641. pyrogram/raw/base/star_gift_attribute_counter.py +19 -1
  642. pyrogram/raw/base/star_gift_attribute_id.py +21 -1
  643. pyrogram/raw/base/star_gift_attribute_rarity.py +50 -0
  644. pyrogram/raw/base/star_gift_auction_acquired_gift.py +46 -0
  645. pyrogram/raw/base/star_gift_auction_round.py +47 -0
  646. pyrogram/raw/base/star_gift_auction_state.py +48 -0
  647. pyrogram/raw/base/star_gift_auction_user_state.py +46 -0
  648. pyrogram/raw/base/star_gift_background.py +46 -0
  649. pyrogram/raw/base/star_gift_collection.py +57 -0
  650. pyrogram/raw/base/star_gift_upgrade_price.py +46 -0
  651. pyrogram/raw/base/star_ref_program.py +29 -1
  652. pyrogram/raw/base/stars_amount.py +20 -1
  653. pyrogram/raw/base/stars_gift_option.py +29 -1
  654. pyrogram/raw/base/stars_giveaway_option.py +29 -1
  655. pyrogram/raw/base/stars_giveaway_winners_option.py +19 -1
  656. pyrogram/raw/base/stars_rating.py +46 -0
  657. pyrogram/raw/base/stars_revenue_status.py +19 -1
  658. pyrogram/raw/base/stars_subscription.py +19 -1
  659. pyrogram/raw/base/stars_subscription_pricing.py +19 -1
  660. pyrogram/raw/base/stars_topup_option.py +29 -1
  661. pyrogram/raw/base/stars_transaction.py +19 -1
  662. pyrogram/raw/base/stars_transaction_peer.py +26 -1
  663. pyrogram/raw/base/stats/__init__.py +1 -3
  664. pyrogram/raw/base/stats/broadcast_stats.py +29 -1
  665. pyrogram/raw/base/stats/megagroup_stats.py +29 -1
  666. pyrogram/raw/base/stats/message_stats.py +29 -1
  667. pyrogram/raw/base/stats/poll_stats.py +56 -0
  668. pyrogram/raw/base/stats/public_forwards.py +30 -1
  669. pyrogram/raw/base/stats/story_stats.py +29 -1
  670. pyrogram/raw/base/stats_abs_value_and_prev.py +19 -1
  671. pyrogram/raw/base/stats_date_range_days.py +19 -1
  672. pyrogram/raw/base/stats_graph.py +31 -1
  673. pyrogram/raw/base/stats_group_top_admin.py +19 -1
  674. pyrogram/raw/base/stats_group_top_inviter.py +19 -1
  675. pyrogram/raw/base/stats_group_top_poster.py +19 -1
  676. pyrogram/raw/base/stats_percent_value.py +19 -1
  677. pyrogram/raw/base/stats_url.py +19 -1
  678. pyrogram/raw/base/sticker_keyword.py +19 -1
  679. pyrogram/raw/base/sticker_pack.py +19 -1
  680. pyrogram/raw/base/sticker_set.py +19 -1
  681. pyrogram/raw/base/sticker_set_covered.py +32 -1
  682. pyrogram/raw/base/stickers/suggested_short_name.py +29 -1
  683. pyrogram/raw/base/storage/file_type.py +28 -1
  684. pyrogram/raw/base/stories/__init__.py +1 -0
  685. pyrogram/raw/base/stories/albums.py +57 -0
  686. pyrogram/raw/base/stories/all_stories.py +30 -1
  687. pyrogram/raw/base/stories/can_send_story_count.py +29 -1
  688. pyrogram/raw/base/stories/found_stories.py +29 -1
  689. pyrogram/raw/base/stories/peer_stories.py +29 -1
  690. pyrogram/raw/base/stories/stories.py +32 -1
  691. pyrogram/raw/base/stories/story_reactions_list.py +29 -1
  692. pyrogram/raw/base/stories/story_views.py +29 -1
  693. pyrogram/raw/base/stories/story_views_list.py +29 -1
  694. pyrogram/raw/base/stories_stealth_mode.py +19 -1
  695. pyrogram/raw/base/story_album.py +57 -0
  696. pyrogram/raw/base/story_fwd_header.py +19 -1
  697. pyrogram/raw/base/story_item.py +21 -1
  698. pyrogram/raw/base/story_reaction.py +21 -1
  699. pyrogram/raw/base/story_view.py +21 -1
  700. pyrogram/raw/base/story_views.py +19 -1
  701. pyrogram/raw/base/suggested_post.py +46 -0
  702. pyrogram/raw/base/text_with_entities.py +29 -1
  703. pyrogram/raw/base/theme.py +31 -1
  704. pyrogram/raw/base/theme_settings.py +19 -1
  705. pyrogram/raw/base/timezone.py +19 -1
  706. pyrogram/raw/base/todo_completion.py +46 -0
  707. pyrogram/raw/base/todo_item.py +46 -0
  708. pyrogram/raw/base/todo_list.py +46 -0
  709. pyrogram/raw/base/top_peer.py +19 -1
  710. pyrogram/raw/base/top_peer_category.py +28 -1
  711. pyrogram/raw/base/top_peer_category_peers.py +19 -1
  712. pyrogram/raw/base/update.py +183 -1
  713. pyrogram/raw/base/updates/channel_difference.py +31 -1
  714. pyrogram/raw/base/updates/difference.py +32 -1
  715. pyrogram/raw/base/updates/state.py +29 -1
  716. pyrogram/raw/base/updates_t.py +168 -1
  717. pyrogram/raw/base/upload/cdn_file.py +30 -1
  718. pyrogram/raw/base/upload/file.py +30 -1
  719. pyrogram/raw/base/upload/web_file.py +29 -1
  720. pyrogram/raw/base/url_auth_result.py +32 -1
  721. pyrogram/raw/base/user.py +38 -1
  722. pyrogram/raw/base/user_full.py +19 -1
  723. pyrogram/raw/base/user_profile_photo.py +20 -1
  724. pyrogram/raw/base/user_status.py +24 -1
  725. pyrogram/raw/base/username.py +19 -1
  726. pyrogram/raw/base/users/__init__.py +1 -0
  727. pyrogram/raw/base/users/saved_music.py +58 -0
  728. pyrogram/raw/base/users/user_full.py +29 -1
  729. pyrogram/raw/base/users/users.py +30 -1
  730. pyrogram/raw/base/video_size.py +21 -1
  731. pyrogram/raw/base/wall_paper.py +32 -1
  732. pyrogram/raw/base/wall_paper_settings.py +19 -1
  733. pyrogram/raw/base/web_authorization.py +19 -1
  734. pyrogram/raw/base/web_document.py +20 -1
  735. pyrogram/raw/base/web_domain_exception.py +46 -0
  736. pyrogram/raw/base/web_page.py +22 -1
  737. pyrogram/raw/base/web_page_attribute.py +25 -1
  738. pyrogram/raw/base/web_view_message_sent.py +29 -1
  739. pyrogram/raw/base/web_view_result.py +33 -1
  740. pyrogram/raw/core/tl_object.py +5 -3
  741. pyrogram/raw/functions/__init__.py +1 -1
  742. pyrogram/raw/functions/account/__init__.py +14 -1
  743. pyrogram/raw/functions/account/accept_authorization.py +13 -10
  744. pyrogram/raw/functions/account/cancel_password_email.py +8 -5
  745. pyrogram/raw/functions/account/change_authorization_settings.py +12 -9
  746. pyrogram/raw/functions/account/change_phone.py +11 -8
  747. pyrogram/raw/functions/account/check_username.py +9 -6
  748. pyrogram/raw/functions/account/clear_recent_emoji_statuses.py +8 -5
  749. pyrogram/raw/functions/{contacts/import_card.py → account/confirm_bot_connection.py} +20 -17
  750. pyrogram/raw/functions/account/confirm_password_email.py +9 -6
  751. pyrogram/raw/functions/account/confirm_phone.py +10 -7
  752. pyrogram/raw/functions/account/create_business_chat_link.py +9 -6
  753. pyrogram/raw/functions/account/create_theme.py +12 -9
  754. pyrogram/raw/functions/account/decline_password_reset.py +8 -5
  755. pyrogram/raw/functions/account/delete_account.py +10 -7
  756. pyrogram/raw/functions/account/delete_auto_save_exceptions.py +8 -5
  757. pyrogram/raw/functions/account/delete_business_chat_link.py +9 -6
  758. pyrogram/raw/functions/account/delete_passkey.py +75 -0
  759. pyrogram/raw/functions/account/delete_secure_value.py +9 -6
  760. pyrogram/raw/functions/account/delete_web_browser_settings_exceptions.py +70 -0
  761. pyrogram/raw/functions/account/disable_peer_connected_bot.py +9 -6
  762. pyrogram/raw/functions/account/edit_business_chat_link.py +10 -7
  763. pyrogram/raw/functions/account/finish_takeout_session.py +9 -6
  764. pyrogram/raw/functions/account/get_account_ttl.py +8 -5
  765. pyrogram/raw/functions/account/get_all_secure_values.py +8 -5
  766. pyrogram/raw/functions/account/get_authorization_form.py +11 -8
  767. pyrogram/raw/functions/account/get_authorizations.py +8 -5
  768. pyrogram/raw/functions/account/get_auto_download_settings.py +8 -5
  769. pyrogram/raw/functions/account/get_auto_save_settings.py +8 -5
  770. pyrogram/raw/functions/account/get_bot_business_connection.py +12 -6
  771. pyrogram/raw/functions/account/get_business_chat_links.py +8 -5
  772. pyrogram/raw/functions/account/get_channel_default_emoji_statuses.py +9 -6
  773. pyrogram/raw/functions/account/get_channel_restricted_status_emojis.py +9 -6
  774. pyrogram/raw/functions/account/get_chat_themes.py +9 -6
  775. pyrogram/raw/functions/account/get_collectible_emoji_statuses.py +9 -6
  776. pyrogram/raw/functions/account/get_connected_bots.py +8 -5
  777. pyrogram/raw/functions/account/get_contact_sign_up_notification.py +8 -5
  778. pyrogram/raw/functions/account/get_content_settings.py +8 -5
  779. pyrogram/raw/functions/account/get_default_background_emojis.py +9 -6
  780. pyrogram/raw/functions/account/get_default_emoji_statuses.py +9 -6
  781. pyrogram/raw/functions/account/get_default_group_photo_emojis.py +9 -6
  782. pyrogram/raw/functions/account/get_default_profile_photo_emojis.py +9 -6
  783. pyrogram/raw/functions/account/get_global_privacy_settings.py +8 -5
  784. pyrogram/raw/functions/account/get_multi_wall_papers.py +9 -6
  785. pyrogram/raw/functions/account/get_notify_exceptions.py +11 -8
  786. pyrogram/raw/functions/account/get_notify_settings.py +9 -6
  787. pyrogram/raw/functions/account/get_paid_messages_revenue.py +28 -13
  788. pyrogram/raw/functions/account/get_passkeys.py +70 -0
  789. pyrogram/raw/functions/account/get_password.py +8 -5
  790. pyrogram/raw/functions/account/get_password_settings.py +9 -6
  791. pyrogram/raw/functions/account/get_privacy.py +9 -6
  792. pyrogram/raw/functions/account/get_reactions_notify_settings.py +8 -5
  793. pyrogram/raw/functions/account/get_recent_emoji_statuses.py +9 -6
  794. pyrogram/raw/functions/account/get_saved_music_ids.py +75 -0
  795. pyrogram/raw/functions/account/get_saved_ringtones.py +9 -6
  796. pyrogram/raw/functions/account/get_secure_value.py +9 -6
  797. pyrogram/raw/functions/account/get_theme.py +10 -7
  798. pyrogram/raw/functions/account/get_themes.py +10 -7
  799. pyrogram/raw/functions/account/get_tmp_password.py +10 -7
  800. pyrogram/raw/functions/account/get_unique_gift_chat_themes.py +91 -0
  801. pyrogram/raw/functions/account/get_wall_paper.py +9 -6
  802. pyrogram/raw/functions/account/get_wall_papers.py +9 -6
  803. pyrogram/raw/functions/account/get_web_authorizations.py +8 -5
  804. pyrogram/raw/functions/{messages/get_all_chats.py → account/get_web_browser_settings.py} +20 -17
  805. pyrogram/raw/functions/account/init_passkey_registration.py +70 -0
  806. pyrogram/raw/functions/account/init_takeout_session.py +15 -12
  807. pyrogram/raw/functions/account/install_theme.py +12 -9
  808. pyrogram/raw/functions/account/install_wall_paper.py +10 -7
  809. pyrogram/raw/functions/account/invalidate_sign_in_codes.py +9 -6
  810. pyrogram/raw/functions/account/register_device.py +14 -11
  811. pyrogram/raw/functions/account/register_passkey.py +75 -0
  812. pyrogram/raw/functions/account/reorder_usernames.py +9 -6
  813. pyrogram/raw/functions/account/report_peer.py +11 -8
  814. pyrogram/raw/functions/account/report_profile_photo.py +12 -9
  815. pyrogram/raw/functions/account/resend_password_email.py +8 -5
  816. pyrogram/raw/functions/account/reset_authorization.py +9 -6
  817. pyrogram/raw/functions/account/reset_notify_settings.py +8 -5
  818. pyrogram/raw/functions/account/reset_password.py +8 -5
  819. pyrogram/raw/functions/account/reset_wall_papers.py +8 -5
  820. pyrogram/raw/functions/account/reset_web_authorization.py +9 -6
  821. pyrogram/raw/functions/account/reset_web_authorizations.py +8 -5
  822. pyrogram/raw/functions/account/resolve_business_chat_link.py +9 -6
  823. pyrogram/raw/functions/account/save_auto_download_settings.py +11 -8
  824. pyrogram/raw/functions/account/save_auto_save_settings.py +13 -10
  825. pyrogram/raw/functions/account/save_music.py +93 -0
  826. pyrogram/raw/functions/account/save_ringtone.py +10 -7
  827. pyrogram/raw/functions/account/save_secure_value.py +10 -7
  828. pyrogram/raw/functions/account/save_theme.py +10 -7
  829. pyrogram/raw/functions/account/save_wall_paper.py +11 -8
  830. pyrogram/raw/functions/account/send_change_phone_code.py +10 -7
  831. pyrogram/raw/functions/account/send_confirm_phone_code.py +10 -7
  832. pyrogram/raw/functions/account/send_verify_email_code.py +10 -7
  833. pyrogram/raw/functions/account/send_verify_phone_code.py +10 -7
  834. pyrogram/raw/functions/account/set_account_ttl.py +9 -6
  835. pyrogram/raw/functions/account/set_authorization_ttl.py +9 -6
  836. pyrogram/raw/functions/account/set_contact_sign_up_notification.py +9 -6
  837. pyrogram/raw/functions/account/set_content_settings.py +9 -6
  838. pyrogram/raw/functions/account/set_global_privacy_settings.py +9 -6
  839. pyrogram/raw/functions/account/set_main_profile_tab.py +75 -0
  840. pyrogram/raw/functions/account/set_privacy.py +10 -7
  841. pyrogram/raw/functions/account/set_reactions_notify_settings.py +9 -6
  842. pyrogram/raw/functions/account/toggle_connected_bot_paused.py +10 -7
  843. pyrogram/raw/functions/account/toggle_no_paid_messages_exception.py +99 -0
  844. pyrogram/raw/functions/account/toggle_sponsored_messages.py +9 -6
  845. pyrogram/raw/functions/account/toggle_username.py +10 -7
  846. pyrogram/raw/functions/account/toggle_web_browser_settings_exception.py +92 -0
  847. pyrogram/raw/functions/account/unregister_device.py +11 -8
  848. pyrogram/raw/functions/account/update_birthday.py +9 -6
  849. pyrogram/raw/functions/account/update_business_away_message.py +9 -6
  850. pyrogram/raw/functions/account/update_business_greeting_message.py +9 -6
  851. pyrogram/raw/functions/account/update_business_intro.py +9 -6
  852. pyrogram/raw/functions/account/update_business_location.py +10 -7
  853. pyrogram/raw/functions/account/update_business_work_hours.py +10 -6
  854. pyrogram/raw/functions/account/update_color.py +20 -25
  855. pyrogram/raw/functions/account/update_connected_bot.py +12 -9
  856. pyrogram/raw/functions/account/update_device_locked.py +9 -6
  857. pyrogram/raw/functions/account/update_emoji_status.py +9 -6
  858. pyrogram/raw/functions/account/update_notify_settings.py +10 -7
  859. pyrogram/raw/functions/account/update_password_settings.py +10 -7
  860. pyrogram/raw/functions/account/update_personal_channel.py +9 -6
  861. pyrogram/raw/functions/account/update_profile.py +11 -8
  862. pyrogram/raw/functions/account/update_status.py +9 -6
  863. pyrogram/raw/functions/account/update_theme.py +14 -11
  864. pyrogram/raw/functions/account/update_username.py +9 -6
  865. pyrogram/raw/functions/account/update_web_browser_settings.py +81 -0
  866. pyrogram/raw/functions/account/upload_ringtone.py +11 -8
  867. pyrogram/raw/functions/account/upload_theme.py +12 -9
  868. pyrogram/raw/functions/account/upload_wall_paper.py +12 -9
  869. pyrogram/raw/functions/account/verify_email.py +10 -7
  870. pyrogram/raw/functions/account/verify_phone.py +11 -8
  871. pyrogram/raw/{base/broadcast_revenue_transaction.py → functions/aicompose/__init__.py} +7 -4
  872. pyrogram/raw/functions/aicompose/create_tone.py +99 -0
  873. pyrogram/raw/functions/aicompose/delete_tone.py +75 -0
  874. pyrogram/raw/functions/aicompose/get_tone.py +75 -0
  875. pyrogram/raw/functions/aicompose/get_tone_example.py +83 -0
  876. pyrogram/raw/functions/aicompose/get_tones.py +75 -0
  877. pyrogram/raw/functions/aicompose/save_tone.py +83 -0
  878. pyrogram/raw/functions/aicompose/update_tone.py +113 -0
  879. pyrogram/raw/functions/auth/__init__.py +3 -0
  880. pyrogram/raw/functions/auth/accept_login_token.py +9 -6
  881. pyrogram/raw/functions/auth/bind_temp_auth_key.py +12 -9
  882. pyrogram/raw/functions/auth/cancel_code.py +10 -7
  883. pyrogram/raw/functions/auth/check_paid_auth.py +91 -0
  884. pyrogram/raw/functions/auth/check_password.py +9 -6
  885. pyrogram/raw/functions/auth/check_recovery_password.py +9 -6
  886. pyrogram/raw/functions/auth/drop_temp_auth_keys.py +9 -6
  887. pyrogram/raw/functions/auth/export_authorization.py +9 -6
  888. pyrogram/raw/functions/auth/export_login_token.py +12 -8
  889. pyrogram/raw/functions/auth/finish_passkey_login.py +95 -0
  890. pyrogram/raw/functions/auth/import_authorization.py +10 -7
  891. pyrogram/raw/functions/auth/import_bot_authorization.py +12 -9
  892. pyrogram/raw/functions/auth/import_login_token.py +9 -6
  893. pyrogram/raw/functions/auth/import_web_token_authorization.py +11 -8
  894. pyrogram/raw/functions/auth/init_passkey_login.py +83 -0
  895. pyrogram/raw/functions/auth/log_out.py +8 -5
  896. pyrogram/raw/functions/auth/recover_password.py +10 -7
  897. pyrogram/raw/functions/auth/report_missing_code.py +11 -8
  898. pyrogram/raw/functions/auth/request_firebase_sms.py +13 -10
  899. pyrogram/raw/functions/auth/request_password_recovery.py +8 -5
  900. pyrogram/raw/functions/auth/resend_code.py +11 -8
  901. pyrogram/raw/functions/auth/reset_authorizations.py +8 -5
  902. pyrogram/raw/functions/auth/reset_login_email.py +10 -7
  903. pyrogram/raw/functions/auth/send_code.py +12 -9
  904. pyrogram/raw/functions/auth/sign_in.py +12 -9
  905. pyrogram/raw/functions/auth/sign_up.py +13 -10
  906. pyrogram/raw/functions/bots/__init__.py +8 -0
  907. pyrogram/raw/functions/bots/add_preview_media.py +11 -8
  908. pyrogram/raw/functions/bots/allow_send_message.py +9 -6
  909. pyrogram/raw/functions/bots/answer_webhook_json_query.py +10 -7
  910. pyrogram/raw/functions/bots/can_send_message.py +9 -6
  911. pyrogram/raw/functions/bots/check_download_file_params.py +11 -8
  912. pyrogram/raw/functions/bots/check_username.py +75 -0
  913. pyrogram/raw/functions/bots/create_bot.py +99 -0
  914. pyrogram/raw/functions/bots/delete_preview_media.py +11 -8
  915. pyrogram/raw/functions/bots/edit_access_settings.py +93 -0
  916. pyrogram/raw/functions/bots/edit_preview_media.py +12 -9
  917. pyrogram/raw/functions/bots/export_bot_token.py +83 -0
  918. pyrogram/raw/functions/bots/get_access_settings.py +75 -0
  919. pyrogram/raw/functions/bots/get_admined_bots.py +8 -5
  920. pyrogram/raw/functions/bots/get_bot_commands.py +10 -7
  921. pyrogram/raw/functions/bots/get_bot_info.py +10 -7
  922. pyrogram/raw/functions/bots/get_bot_menu_button.py +9 -6
  923. pyrogram/raw/functions/bots/get_bot_recommendations.py +9 -6
  924. pyrogram/raw/functions/bots/get_popular_app_bots.py +10 -7
  925. pyrogram/raw/functions/bots/get_preview_info.py +10 -7
  926. pyrogram/raw/functions/bots/get_preview_medias.py +9 -6
  927. pyrogram/raw/functions/bots/get_requested_web_view_button.py +83 -0
  928. pyrogram/raw/functions/bots/invoke_web_view_custom_method.py +11 -8
  929. pyrogram/raw/functions/bots/reorder_preview_medias.py +11 -8
  930. pyrogram/raw/functions/bots/reorder_usernames.py +10 -7
  931. pyrogram/raw/functions/{payments/request_recurring_payment.py → bots/request_web_view_button.py} +22 -27
  932. pyrogram/raw/functions/bots/reset_bot_commands.py +10 -7
  933. pyrogram/raw/functions/bots/send_custom_request.py +10 -7
  934. pyrogram/raw/functions/bots/set_bot_broadcast_default_admin_rights.py +9 -6
  935. pyrogram/raw/functions/bots/set_bot_commands.py +11 -8
  936. pyrogram/raw/functions/bots/set_bot_group_default_admin_rights.py +9 -6
  937. pyrogram/raw/functions/bots/set_bot_info.py +13 -10
  938. pyrogram/raw/functions/bots/set_bot_menu_button.py +10 -7
  939. pyrogram/raw/functions/bots/set_custom_verification.py +12 -9
  940. pyrogram/raw/functions/bots/set_join_chat_results.py +83 -0
  941. pyrogram/raw/functions/bots/toggle_user_emoji_status_permission.py +10 -7
  942. pyrogram/raw/functions/bots/toggle_username.py +11 -8
  943. pyrogram/raw/functions/bots/update_star_ref_program.py +11 -8
  944. pyrogram/raw/functions/bots/update_user_emoji_status.py +10 -7
  945. pyrogram/raw/functions/channels/__init__.py +3 -8
  946. pyrogram/raw/functions/channels/check_search_posts_flood.py +78 -0
  947. pyrogram/raw/functions/channels/check_username.py +10 -7
  948. pyrogram/raw/functions/channels/convert_to_gigagroup.py +9 -6
  949. pyrogram/raw/functions/channels/create_channel.py +17 -14
  950. pyrogram/raw/functions/channels/deactivate_all_usernames.py +9 -6
  951. pyrogram/raw/functions/channels/delete_channel.py +9 -6
  952. pyrogram/raw/functions/channels/delete_history.py +11 -8
  953. pyrogram/raw/functions/channels/delete_messages.py +10 -7
  954. pyrogram/raw/functions/channels/delete_participant_history.py +10 -7
  955. pyrogram/raw/functions/channels/edit_admin.py +25 -19
  956. pyrogram/raw/functions/channels/edit_banned.py +11 -8
  957. pyrogram/raw/functions/channels/edit_location.py +11 -8
  958. pyrogram/raw/functions/channels/edit_photo.py +10 -7
  959. pyrogram/raw/functions/channels/edit_title.py +10 -7
  960. pyrogram/raw/functions/channels/export_message_link.py +12 -9
  961. pyrogram/raw/functions/channels/get_admin_log.py +15 -12
  962. pyrogram/raw/functions/channels/get_admined_public_channels.py +19 -10
  963. pyrogram/raw/functions/channels/get_channel_recommendations.py +9 -6
  964. pyrogram/raw/functions/channels/get_channels.py +9 -6
  965. pyrogram/raw/functions/channels/get_full_channel.py +9 -6
  966. pyrogram/raw/functions/channels/get_groups_for_discussion.py +8 -5
  967. pyrogram/raw/functions/channels/get_inactive_channels.py +8 -5
  968. pyrogram/raw/functions/channels/get_left_channels.py +9 -6
  969. pyrogram/raw/functions/channels/get_message_author.py +83 -0
  970. pyrogram/raw/functions/channels/get_messages.py +10 -7
  971. pyrogram/raw/functions/channels/get_participant.py +10 -7
  972. pyrogram/raw/functions/channels/get_participants.py +13 -10
  973. pyrogram/raw/functions/channels/get_send_as.py +19 -10
  974. pyrogram/raw/functions/channels/invite_to_channel.py +10 -7
  975. pyrogram/raw/functions/channels/join_channel.py +12 -9
  976. pyrogram/raw/functions/channels/leave_channel.py +9 -6
  977. pyrogram/raw/functions/channels/read_history.py +10 -7
  978. pyrogram/raw/functions/channels/read_message_contents.py +10 -7
  979. pyrogram/raw/functions/channels/reorder_usernames.py +10 -7
  980. pyrogram/raw/functions/channels/report_anti_spam_false_positive.py +10 -7
  981. pyrogram/raw/functions/channels/report_spam.py +11 -8
  982. pyrogram/raw/functions/channels/restrict_sponsored_messages.py +10 -7
  983. pyrogram/raw/functions/channels/search_posts.py +46 -22
  984. pyrogram/raw/functions/channels/set_boosts_to_unblock_restrictions.py +10 -7
  985. pyrogram/raw/functions/channels/set_discussion_group.py +10 -7
  986. pyrogram/raw/functions/channels/set_emoji_stickers.py +10 -7
  987. pyrogram/raw/functions/channels/set_main_profile_tab.py +83 -0
  988. pyrogram/raw/functions/channels/set_stickers.py +10 -7
  989. pyrogram/raw/functions/channels/toggle_anti_spam.py +10 -7
  990. pyrogram/raw/functions/channels/toggle_autotranslation.py +10 -7
  991. pyrogram/raw/functions/channels/toggle_forum.py +23 -12
  992. pyrogram/raw/functions/channels/toggle_join_request.py +34 -13
  993. pyrogram/raw/functions/channels/toggle_join_to_send.py +10 -7
  994. pyrogram/raw/functions/channels/toggle_participants_hidden.py +10 -7
  995. pyrogram/raw/functions/channels/toggle_pre_history_hidden.py +10 -7
  996. pyrogram/raw/functions/channels/toggle_signatures.py +11 -8
  997. pyrogram/raw/functions/channels/toggle_slow_mode.py +10 -7
  998. pyrogram/raw/functions/channels/toggle_username.py +11 -8
  999. pyrogram/raw/functions/channels/toggle_view_forum_as_messages.py +10 -7
  1000. pyrogram/raw/functions/channels/update_color.py +12 -9
  1001. pyrogram/raw/functions/channels/update_emoji_status.py +10 -7
  1002. pyrogram/raw/functions/channels/update_paid_messages_price.py +25 -14
  1003. pyrogram/raw/functions/channels/update_username.py +10 -7
  1004. pyrogram/raw/functions/chatlists/check_chatlist_invite.py +9 -6
  1005. pyrogram/raw/functions/chatlists/delete_exported_invite.py +10 -7
  1006. pyrogram/raw/functions/chatlists/edit_exported_invite.py +15 -18
  1007. pyrogram/raw/functions/chatlists/export_chatlist_invite.py +11 -8
  1008. pyrogram/raw/functions/chatlists/get_chatlist_updates.py +9 -6
  1009. pyrogram/raw/functions/chatlists/get_exported_invites.py +9 -6
  1010. pyrogram/raw/functions/chatlists/get_leave_chatlist_suggestions.py +9 -6
  1011. pyrogram/raw/functions/chatlists/hide_chatlist_updates.py +9 -6
  1012. pyrogram/raw/functions/chatlists/join_chatlist_invite.py +10 -7
  1013. pyrogram/raw/functions/chatlists/join_chatlist_updates.py +10 -7
  1014. pyrogram/raw/functions/chatlists/leave_chatlist.py +10 -7
  1015. pyrogram/raw/functions/communities/__init__.py +33 -0
  1016. pyrogram/raw/functions/communities/create.py +100 -0
  1017. pyrogram/raw/functions/{messages/send_encrypted_multi_media.py → communities/get_joined_communities.py} +14 -11
  1018. pyrogram/raw/functions/communities/get_participant_joined_chats.py +83 -0
  1019. pyrogram/raw/functions/communities/get_peer_link_requests.py +91 -0
  1020. pyrogram/raw/functions/{account/add_no_paid_messages_exception.py → communities/toggle_all_peer_link_request_approval.py} +23 -20
  1021. pyrogram/raw/{types/update_transcribe_audio.py → functions/communities/toggle_community_collapsed_in_dialogs.py} +24 -29
  1022. pyrogram/raw/functions/communities/toggle_participant_banned.py +91 -0
  1023. pyrogram/raw/functions/communities/toggle_peer_link.py +103 -0
  1024. pyrogram/raw/functions/communities/toggle_peer_link_request_approval.py +91 -0
  1025. pyrogram/raw/functions/contacts/__init__.py +1 -1
  1026. pyrogram/raw/functions/contacts/accept_contact.py +9 -6
  1027. pyrogram/raw/functions/contacts/add_contact.py +28 -15
  1028. pyrogram/raw/functions/contacts/block.py +10 -7
  1029. pyrogram/raw/functions/contacts/block_from_replies.py +12 -9
  1030. pyrogram/raw/functions/contacts/delete_by_phones.py +9 -6
  1031. pyrogram/raw/functions/contacts/delete_contacts.py +9 -6
  1032. pyrogram/raw/functions/contacts/edit_close_friends.py +9 -6
  1033. pyrogram/raw/functions/contacts/export_contact_token.py +8 -5
  1034. pyrogram/raw/functions/contacts/get_birthdays.py +8 -5
  1035. pyrogram/raw/functions/contacts/get_blocked.py +11 -8
  1036. pyrogram/raw/functions/contacts/get_contact_i_ds.py +10 -6
  1037. pyrogram/raw/functions/contacts/get_contacts.py +9 -6
  1038. pyrogram/raw/functions/contacts/get_located.py +11 -8
  1039. pyrogram/raw/functions/contacts/get_saved.py +8 -5
  1040. pyrogram/raw/functions/contacts/get_sponsored_peers.py +9 -6
  1041. pyrogram/raw/functions/contacts/get_statuses.py +8 -5
  1042. pyrogram/raw/functions/contacts/get_top_peers.py +29 -20
  1043. pyrogram/raw/functions/contacts/import_contact_token.py +9 -6
  1044. pyrogram/raw/functions/contacts/import_contacts.py +9 -6
  1045. pyrogram/raw/functions/contacts/reset_saved.py +8 -5
  1046. pyrogram/raw/functions/contacts/reset_top_peer_rating.py +10 -7
  1047. pyrogram/raw/functions/contacts/resolve_phone.py +9 -6
  1048. pyrogram/raw/functions/contacts/resolve_username.py +10 -7
  1049. pyrogram/raw/functions/contacts/search.py +30 -13
  1050. pyrogram/raw/functions/contacts/set_blocked.py +11 -8
  1051. pyrogram/raw/functions/contacts/toggle_top_peers.py +9 -6
  1052. pyrogram/raw/functions/contacts/unblock.py +10 -7
  1053. pyrogram/raw/functions/contacts/update_contact_note.py +83 -0
  1054. pyrogram/raw/functions/contest/save_developer_info.py +6 -4
  1055. pyrogram/raw/functions/destroy_auth_key.py +6 -4
  1056. pyrogram/raw/functions/destroy_session.py +6 -4
  1057. pyrogram/raw/functions/ephemeral/__init__.py +29 -0
  1058. pyrogram/raw/functions/{stats/get_broadcast_revenue_withdrawal_url.py → ephemeral/delete_message.py} +28 -17
  1059. pyrogram/raw/functions/ephemeral/edit_message.py +131 -0
  1060. pyrogram/raw/functions/ephemeral/get_callback_answer.py +94 -0
  1061. pyrogram/raw/functions/ephemeral/report_message.py +99 -0
  1062. pyrogram/raw/functions/ephemeral/send_message.py +160 -0
  1063. pyrogram/raw/functions/folders/__init__.py +0 -1
  1064. pyrogram/raw/functions/folders/edit_peer_folders.py +9 -6
  1065. pyrogram/raw/functions/fragment/get_collectible_info.py +9 -6
  1066. pyrogram/raw/functions/get_future_salts.py +6 -4
  1067. pyrogram/raw/functions/help/accept_terms_of_service.py +9 -6
  1068. pyrogram/raw/functions/help/dismiss_suggestion.py +10 -7
  1069. pyrogram/raw/functions/help/edit_user_info.py +11 -8
  1070. pyrogram/raw/functions/help/get_app_config.py +9 -6
  1071. pyrogram/raw/functions/help/get_app_update.py +9 -6
  1072. pyrogram/raw/functions/help/get_cdn_config.py +8 -5
  1073. pyrogram/raw/functions/help/get_config.py +8 -5
  1074. pyrogram/raw/functions/help/get_countries_list.py +10 -7
  1075. pyrogram/raw/functions/help/get_deep_link_info.py +9 -6
  1076. pyrogram/raw/functions/help/get_invite_text.py +8 -5
  1077. pyrogram/raw/functions/help/get_nearest_dc.py +8 -5
  1078. pyrogram/raw/functions/help/get_passport_config.py +9 -6
  1079. pyrogram/raw/functions/help/get_peer_colors.py +9 -6
  1080. pyrogram/raw/functions/help/get_peer_profile_colors.py +9 -6
  1081. pyrogram/raw/functions/help/get_premium_promo.py +8 -5
  1082. pyrogram/raw/functions/help/get_promo_data.py +8 -5
  1083. pyrogram/raw/functions/help/get_recent_me_urls.py +9 -6
  1084. pyrogram/raw/functions/help/get_support.py +8 -5
  1085. pyrogram/raw/functions/help/get_support_name.py +8 -5
  1086. pyrogram/raw/functions/help/get_terms_of_service_update.py +8 -5
  1087. pyrogram/raw/functions/help/get_timezones_list.py +9 -6
  1088. pyrogram/raw/functions/help/get_user_info.py +9 -6
  1089. pyrogram/raw/functions/help/hide_promo_data.py +9 -6
  1090. pyrogram/raw/functions/help/save_app_log.py +9 -6
  1091. pyrogram/raw/functions/help/set_bot_updates_status.py +10 -7
  1092. pyrogram/raw/functions/init_connection.py +18 -15
  1093. pyrogram/raw/functions/invoke_after_msg.py +10 -7
  1094. pyrogram/raw/functions/invoke_after_msgs.py +10 -7
  1095. pyrogram/raw/functions/invoke_with_apns_secret.py +13 -10
  1096. pyrogram/raw/functions/invoke_with_business_connection.py +10 -7
  1097. pyrogram/raw/functions/invoke_with_google_play_integrity.py +11 -8
  1098. pyrogram/raw/functions/invoke_with_layer.py +10 -7
  1099. pyrogram/raw/functions/invoke_with_messages_range.py +10 -7
  1100. pyrogram/raw/functions/invoke_with_re_captcha.py +10 -7
  1101. pyrogram/raw/functions/invoke_with_takeout.py +10 -7
  1102. pyrogram/raw/functions/invoke_without_updates.py +9 -6
  1103. pyrogram/raw/functions/langpack/get_difference.py +11 -8
  1104. pyrogram/raw/functions/langpack/get_lang_pack.py +10 -7
  1105. pyrogram/raw/functions/langpack/get_language.py +10 -7
  1106. pyrogram/raw/functions/langpack/get_languages.py +9 -6
  1107. pyrogram/raw/functions/langpack/get_strings.py +11 -8
  1108. pyrogram/raw/functions/messages/__init__.py +34 -6
  1109. pyrogram/raw/functions/messages/accept_encryption.py +11 -8
  1110. pyrogram/raw/functions/messages/accept_url_auth.py +33 -15
  1111. pyrogram/raw/functions/messages/add_chat_user.py +11 -8
  1112. pyrogram/raw/functions/messages/add_poll_answer.py +91 -0
  1113. pyrogram/raw/functions/messages/append_todo_list.py +91 -0
  1114. pyrogram/raw/functions/messages/check_chat_invite.py +9 -6
  1115. pyrogram/raw/functions/messages/check_history_import.py +9 -6
  1116. pyrogram/raw/functions/messages/check_history_import_peer.py +9 -6
  1117. pyrogram/raw/functions/messages/check_quick_reply_shortcut.py +9 -6
  1118. pyrogram/raw/functions/messages/check_url_auth_match_code.py +83 -0
  1119. pyrogram/raw/functions/messages/clear_all_drafts.py +8 -5
  1120. pyrogram/raw/functions/messages/clear_recent_reactions.py +8 -5
  1121. pyrogram/raw/functions/messages/clear_recent_stickers.py +9 -6
  1122. pyrogram/raw/functions/messages/click_sponsored_message.py +11 -8
  1123. pyrogram/raw/functions/messages/compose_message_with_ai.py +108 -0
  1124. pyrogram/raw/functions/messages/compose_rich_message_with_ai.py +110 -0
  1125. pyrogram/raw/functions/messages/create_chat.py +11 -8
  1126. pyrogram/raw/functions/{channels → messages}/create_forum_topic.py +30 -21
  1127. pyrogram/raw/{types/stats/broadcast_revenue_withdrawal_url.py → functions/messages/decline_url_auth.py} +15 -21
  1128. pyrogram/raw/functions/messages/delete_chat.py +9 -6
  1129. pyrogram/raw/functions/messages/delete_chat_user.py +11 -8
  1130. pyrogram/raw/functions/messages/delete_exported_chat_invite.py +10 -7
  1131. pyrogram/raw/functions/messages/delete_fact_check.py +10 -7
  1132. pyrogram/raw/functions/messages/delete_history.py +14 -11
  1133. pyrogram/raw/functions/messages/delete_messages.py +10 -7
  1134. pyrogram/raw/functions/messages/delete_participant_reaction.py +91 -0
  1135. pyrogram/raw/functions/messages/delete_participant_reactions.py +83 -0
  1136. pyrogram/raw/functions/messages/delete_phone_call_history.py +9 -6
  1137. pyrogram/raw/functions/messages/delete_poll_answer.py +91 -0
  1138. pyrogram/raw/functions/messages/delete_quick_reply_messages.py +10 -7
  1139. pyrogram/raw/functions/messages/delete_quick_reply_shortcut.py +10 -6
  1140. pyrogram/raw/functions/messages/delete_revoked_exported_chat_invites.py +10 -7
  1141. pyrogram/raw/functions/messages/delete_saved_history.py +27 -14
  1142. pyrogram/raw/functions/messages/delete_scheduled_messages.py +10 -7
  1143. pyrogram/raw/functions/{channels → messages}/delete_topic_history.py +20 -17
  1144. pyrogram/raw/functions/messages/discard_encryption.py +10 -7
  1145. pyrogram/raw/functions/messages/edit_chat_about.py +10 -7
  1146. pyrogram/raw/functions/messages/edit_chat_admin.py +11 -8
  1147. pyrogram/raw/functions/{channels/edit_creator.py → messages/edit_chat_creator.py} +22 -19
  1148. pyrogram/raw/functions/messages/edit_chat_default_banned_rights.py +10 -7
  1149. pyrogram/raw/functions/messages/edit_chat_participant_rank.py +91 -0
  1150. pyrogram/raw/functions/messages/edit_chat_photo.py +10 -7
  1151. pyrogram/raw/functions/messages/edit_chat_title.py +10 -7
  1152. pyrogram/raw/functions/messages/edit_exported_chat_invite.py +15 -12
  1153. pyrogram/raw/functions/messages/edit_fact_check.py +11 -8
  1154. pyrogram/raw/functions/{channels → messages}/edit_forum_topic.py +24 -21
  1155. pyrogram/raw/functions/messages/edit_inline_bot_message.py +29 -16
  1156. pyrogram/raw/functions/messages/edit_message.py +41 -19
  1157. pyrogram/raw/functions/messages/edit_quick_reply_shortcut.py +11 -7
  1158. pyrogram/raw/functions/messages/export_chat_invite.py +15 -12
  1159. pyrogram/raw/functions/messages/fave_sticker.py +10 -7
  1160. pyrogram/raw/functions/messages/forward_messages.py +68 -27
  1161. pyrogram/raw/functions/messages/get_admins_with_invites.py +9 -6
  1162. pyrogram/raw/functions/messages/get_all_drafts.py +9 -5
  1163. pyrogram/raw/functions/messages/get_all_stickers.py +9 -6
  1164. pyrogram/raw/functions/messages/get_archived_stickers.py +12 -9
  1165. pyrogram/raw/functions/messages/get_attach_menu_bot.py +9 -6
  1166. pyrogram/raw/functions/messages/get_attach_menu_bots.py +9 -6
  1167. pyrogram/raw/functions/messages/get_attached_stickers.py +9 -6
  1168. pyrogram/raw/functions/messages/get_available_effects.py +9 -6
  1169. pyrogram/raw/functions/messages/get_available_reactions.py +9 -6
  1170. pyrogram/raw/functions/messages/get_bot_app.py +10 -7
  1171. pyrogram/raw/functions/messages/get_bot_callback_answer.py +13 -10
  1172. pyrogram/raw/functions/messages/get_chat_invite_importers.py +16 -13
  1173. pyrogram/raw/functions/messages/get_chats.py +9 -6
  1174. pyrogram/raw/functions/messages/get_common_chats.py +11 -8
  1175. pyrogram/raw/functions/messages/get_custom_emoji_documents.py +9 -6
  1176. pyrogram/raw/functions/messages/get_default_history_ttl.py +8 -5
  1177. pyrogram/raw/functions/messages/get_default_tag_reactions.py +9 -6
  1178. pyrogram/raw/functions/messages/get_dh_config.py +10 -7
  1179. pyrogram/raw/functions/messages/get_dialog_filters.py +8 -5
  1180. pyrogram/raw/functions/messages/get_dialog_unread_marks.py +26 -14
  1181. pyrogram/raw/functions/messages/get_dialogs.py +15 -12
  1182. pyrogram/raw/functions/messages/get_discussion_message.py +10 -7
  1183. pyrogram/raw/functions/messages/get_document_by_hash.py +11 -8
  1184. pyrogram/raw/functions/messages/get_emoji_game_info.py +70 -0
  1185. pyrogram/raw/functions/messages/get_emoji_groups.py +9 -6
  1186. pyrogram/raw/functions/messages/get_emoji_keywords.py +9 -6
  1187. pyrogram/raw/functions/messages/get_emoji_keywords_difference.py +10 -7
  1188. pyrogram/raw/functions/messages/get_emoji_keywords_languages.py +9 -6
  1189. pyrogram/raw/functions/messages/get_emoji_profile_photo_groups.py +9 -6
  1190. pyrogram/raw/functions/messages/get_emoji_status_groups.py +9 -6
  1191. pyrogram/raw/functions/messages/get_emoji_sticker_groups.py +9 -6
  1192. pyrogram/raw/functions/messages/get_emoji_stickers.py +9 -6
  1193. pyrogram/raw/functions/messages/get_emoji_url.py +9 -6
  1194. pyrogram/raw/functions/messages/get_exported_chat_invite.py +10 -7
  1195. pyrogram/raw/functions/messages/get_exported_chat_invites.py +14 -11
  1196. pyrogram/raw/functions/messages/get_extended_media.py +10 -7
  1197. pyrogram/raw/functions/messages/get_fact_check.py +10 -7
  1198. pyrogram/raw/functions/messages/get_faved_stickers.py +9 -6
  1199. pyrogram/raw/functions/messages/get_featured_emoji_stickers.py +9 -6
  1200. pyrogram/raw/functions/messages/get_featured_stickers.py +9 -6
  1201. pyrogram/raw/functions/{channels → messages}/get_forum_topics.py +24 -21
  1202. pyrogram/raw/functions/{channels → messages}/get_forum_topics_by_id.py +20 -17
  1203. pyrogram/raw/functions/messages/get_full_chat.py +9 -6
  1204. pyrogram/raw/functions/messages/get_future_chat_creator_after_leave.py +75 -0
  1205. pyrogram/raw/functions/messages/get_game_high_scores.py +11 -8
  1206. pyrogram/raw/functions/messages/get_history.py +16 -13
  1207. pyrogram/raw/functions/messages/get_inline_bot_results.py +13 -10
  1208. pyrogram/raw/functions/messages/get_inline_game_high_scores.py +10 -7
  1209. pyrogram/raw/functions/messages/get_mask_stickers.py +9 -6
  1210. pyrogram/raw/functions/messages/get_message_edit_data.py +10 -7
  1211. pyrogram/raw/functions/messages/get_message_reactions_list.py +13 -10
  1212. pyrogram/raw/functions/messages/get_message_read_participants.py +10 -7
  1213. pyrogram/raw/functions/messages/get_messages.py +9 -6
  1214. pyrogram/raw/functions/messages/get_messages_reactions.py +10 -7
  1215. pyrogram/raw/functions/messages/get_messages_views.py +11 -8
  1216. pyrogram/raw/functions/messages/get_my_stickers.py +10 -7
  1217. pyrogram/raw/functions/messages/get_old_featured_stickers.py +11 -8
  1218. pyrogram/raw/functions/messages/get_onlines.py +9 -6
  1219. pyrogram/raw/functions/messages/get_outbox_read_date.py +10 -7
  1220. pyrogram/raw/functions/messages/get_paid_reaction_privacy.py +8 -5
  1221. pyrogram/raw/functions/messages/get_peer_dialogs.py +9 -6
  1222. pyrogram/raw/functions/messages/get_peer_settings.py +9 -6
  1223. pyrogram/raw/functions/messages/get_personal_channel_history.py +107 -0
  1224. pyrogram/raw/functions/messages/get_pinned_dialogs.py +9 -6
  1225. pyrogram/raw/functions/messages/get_pinned_saved_dialogs.py +8 -5
  1226. pyrogram/raw/functions/messages/get_poll_results.py +23 -12
  1227. pyrogram/raw/functions/messages/get_poll_votes.py +13 -10
  1228. pyrogram/raw/functions/messages/get_prepared_inline_message.py +10 -7
  1229. pyrogram/raw/functions/messages/get_quick_replies.py +9 -6
  1230. pyrogram/raw/functions/messages/get_quick_reply_messages.py +11 -8
  1231. pyrogram/raw/functions/messages/get_recent_locations.py +11 -8
  1232. pyrogram/raw/functions/messages/get_recent_reactions.py +10 -7
  1233. pyrogram/raw/functions/messages/get_recent_stickers.py +10 -7
  1234. pyrogram/raw/functions/messages/get_replies.py +17 -14
  1235. pyrogram/raw/functions/messages/{forward_message.py → get_rich_message.py} +16 -21
  1236. pyrogram/raw/functions/messages/get_saved_dialogs.py +29 -16
  1237. pyrogram/raw/functions/messages/get_saved_dialogs_by_id.py +87 -0
  1238. pyrogram/raw/functions/messages/get_saved_gifs.py +9 -6
  1239. pyrogram/raw/functions/messages/get_saved_history.py +35 -20
  1240. pyrogram/raw/functions/messages/get_saved_reaction_tags.py +10 -7
  1241. pyrogram/raw/functions/messages/get_scheduled_history.py +10 -7
  1242. pyrogram/raw/functions/messages/get_scheduled_messages.py +10 -7
  1243. pyrogram/raw/functions/messages/get_search_counters.py +12 -9
  1244. pyrogram/raw/functions/messages/get_search_results_calendar.py +13 -10
  1245. pyrogram/raw/functions/messages/get_search_results_positions.py +13 -10
  1246. pyrogram/raw/functions/messages/get_split_ranges.py +8 -5
  1247. pyrogram/raw/functions/messages/get_sponsored_messages.py +27 -13
  1248. pyrogram/raw/functions/messages/get_sticker_set.py +10 -7
  1249. pyrogram/raw/functions/messages/get_stickers.py +10 -7
  1250. pyrogram/raw/functions/messages/get_suggested_dialog_filters.py +8 -5
  1251. pyrogram/raw/functions/messages/get_top_reactions.py +10 -7
  1252. pyrogram/raw/functions/messages/get_unread_mentions.py +15 -12
  1253. pyrogram/raw/functions/messages/get_unread_poll_votes.py +126 -0
  1254. pyrogram/raw/functions/messages/get_unread_reactions.py +30 -17
  1255. pyrogram/raw/functions/messages/get_web_page.py +10 -7
  1256. pyrogram/raw/functions/messages/get_web_page_preview.py +10 -7
  1257. pyrogram/raw/functions/messages/hide_all_chat_join_requests.py +11 -8
  1258. pyrogram/raw/functions/messages/hide_chat_join_request.py +11 -8
  1259. pyrogram/raw/functions/messages/hide_peer_settings_bar.py +9 -6
  1260. pyrogram/raw/functions/messages/import_chat_invite.py +12 -9
  1261. pyrogram/raw/functions/messages/init_history_import.py +11 -8
  1262. pyrogram/raw/functions/messages/install_sticker_set.py +10 -7
  1263. pyrogram/raw/functions/messages/mark_dialog_unread.py +25 -12
  1264. pyrogram/raw/functions/messages/migrate_chat.py +9 -6
  1265. pyrogram/raw/functions/messages/prolong_web_view.py +14 -11
  1266. pyrogram/raw/functions/messages/rate_transcribed_audio.py +12 -9
  1267. pyrogram/raw/functions/messages/read_discussion.py +11 -8
  1268. pyrogram/raw/functions/messages/read_encrypted_history.py +10 -7
  1269. pyrogram/raw/functions/messages/read_featured_stickers.py +9 -6
  1270. pyrogram/raw/functions/messages/read_history.py +10 -7
  1271. pyrogram/raw/functions/messages/read_mentions.py +10 -7
  1272. pyrogram/raw/functions/messages/read_message_contents.py +9 -6
  1273. pyrogram/raw/functions/messages/read_poll_votes.py +86 -0
  1274. pyrogram/raw/functions/messages/read_reactions.py +25 -12
  1275. pyrogram/raw/functions/messages/read_saved_history.py +91 -0
  1276. pyrogram/raw/functions/messages/received_messages.py +9 -6
  1277. pyrogram/raw/functions/messages/received_queue.py +10 -6
  1278. pyrogram/raw/functions/messages/reorder_pinned_dialogs.py +11 -8
  1279. pyrogram/raw/functions/{channels → messages}/reorder_pinned_forum_topics.py +21 -18
  1280. pyrogram/raw/functions/messages/reorder_pinned_saved_dialogs.py +10 -7
  1281. pyrogram/raw/functions/messages/reorder_quick_replies.py +9 -6
  1282. pyrogram/raw/functions/messages/reorder_sticker_sets.py +11 -8
  1283. pyrogram/raw/functions/messages/report.py +12 -9
  1284. pyrogram/raw/functions/messages/report_encrypted_spam.py +9 -6
  1285. pyrogram/raw/functions/messages/report_messages_delivery.py +11 -8
  1286. pyrogram/raw/functions/messages/report_music_listen.py +83 -0
  1287. pyrogram/raw/functions/messages/report_reaction.py +11 -8
  1288. pyrogram/raw/functions/messages/report_read_metrics.py +83 -0
  1289. pyrogram/raw/functions/messages/report_spam.py +9 -6
  1290. pyrogram/raw/functions/messages/report_sponsored_message.py +10 -7
  1291. pyrogram/raw/functions/messages/request_app_web_view.py +16 -13
  1292. pyrogram/raw/functions/messages/request_chat_join_web_view.py +95 -0
  1293. pyrogram/raw/functions/messages/request_encryption.py +11 -8
  1294. pyrogram/raw/functions/messages/request_main_web_view.py +15 -12
  1295. pyrogram/raw/functions/messages/request_simple_web_view.py +17 -14
  1296. pyrogram/raw/functions/messages/request_url_auth.py +26 -14
  1297. pyrogram/raw/functions/messages/request_web_view.py +20 -17
  1298. pyrogram/raw/functions/messages/save_default_send_as.py +10 -7
  1299. pyrogram/raw/functions/messages/save_draft.py +40 -17
  1300. pyrogram/raw/functions/messages/save_gif.py +10 -7
  1301. pyrogram/raw/functions/messages/save_prepared_inline_message.py +11 -8
  1302. pyrogram/raw/functions/messages/save_recent_sticker.py +11 -8
  1303. pyrogram/raw/functions/messages/search.py +23 -20
  1304. pyrogram/raw/functions/messages/search_custom_emoji.py +10 -7
  1305. pyrogram/raw/functions/messages/search_emoji_sticker_sets.py +11 -8
  1306. pyrogram/raw/functions/messages/search_global.py +34 -21
  1307. pyrogram/raw/functions/messages/search_sent_media.py +12 -8
  1308. pyrogram/raw/functions/messages/search_sticker_sets.py +11 -8
  1309. pyrogram/raw/functions/messages/search_stickers.py +15 -12
  1310. pyrogram/raw/functions/messages/send_bot_requested_peer.py +37 -22
  1311. pyrogram/raw/functions/messages/send_encrypted.py +12 -9
  1312. pyrogram/raw/functions/messages/send_encrypted_file.py +13 -10
  1313. pyrogram/raw/functions/messages/send_encrypted_service.py +11 -8
  1314. pyrogram/raw/functions/messages/send_inline_bot_result.py +21 -18
  1315. pyrogram/raw/functions/messages/send_media.py +51 -29
  1316. pyrogram/raw/functions/messages/send_message.py +60 -28
  1317. pyrogram/raw/functions/messages/send_multi_media.py +23 -20
  1318. pyrogram/raw/functions/messages/send_paid_reaction.py +13 -10
  1319. pyrogram/raw/functions/messages/send_quick_reply_messages.py +12 -9
  1320. pyrogram/raw/functions/messages/send_reaction.py +13 -10
  1321. pyrogram/raw/functions/messages/send_scheduled_messages.py +10 -7
  1322. pyrogram/raw/functions/messages/send_screenshot_notification.py +11 -8
  1323. pyrogram/raw/functions/messages/send_vote.py +11 -8
  1324. pyrogram/raw/functions/messages/send_web_view_data.py +12 -9
  1325. pyrogram/raw/functions/messages/send_web_view_result_message.py +10 -7
  1326. pyrogram/raw/functions/messages/set_bot_callback_answer.py +13 -10
  1327. pyrogram/raw/functions/messages/set_bot_guest_chat_result.py +83 -0
  1328. pyrogram/raw/functions/messages/set_bot_precheckout_results.py +13 -8
  1329. pyrogram/raw/functions/messages/set_bot_shipping_results.py +11 -8
  1330. pyrogram/raw/functions/messages/set_chat_available_reactions.py +12 -9
  1331. pyrogram/raw/functions/messages/set_chat_theme.py +19 -16
  1332. pyrogram/raw/functions/messages/set_chat_wall_paper.py +14 -11
  1333. pyrogram/raw/functions/messages/set_default_history_ttl.py +9 -6
  1334. pyrogram/raw/functions/messages/set_default_reaction.py +9 -6
  1335. pyrogram/raw/functions/messages/set_encrypted_typing.py +10 -7
  1336. pyrogram/raw/functions/messages/set_game_score.py +14 -11
  1337. pyrogram/raw/functions/messages/set_history_ttl.py +10 -7
  1338. pyrogram/raw/functions/messages/set_inline_bot_results.py +16 -13
  1339. pyrogram/raw/functions/messages/set_inline_game_score.py +13 -10
  1340. pyrogram/raw/functions/messages/set_typing.py +11 -8
  1341. pyrogram/raw/functions/messages/start_bot.py +12 -9
  1342. pyrogram/raw/functions/messages/start_history_import.py +11 -7
  1343. pyrogram/raw/functions/messages/summarize_text.py +103 -0
  1344. pyrogram/raw/functions/messages/toggle_bot_in_attach_menu.py +11 -8
  1345. pyrogram/raw/functions/messages/toggle_dialog_filter_tags.py +9 -6
  1346. pyrogram/raw/functions/messages/toggle_dialog_pin.py +10 -7
  1347. pyrogram/raw/functions/messages/toggle_no_forwards.py +28 -14
  1348. pyrogram/raw/functions/messages/toggle_paid_reaction_privacy.py +11 -8
  1349. pyrogram/raw/functions/messages/toggle_peer_translations.py +10 -7
  1350. pyrogram/raw/functions/messages/toggle_saved_dialog_pin.py +10 -7
  1351. pyrogram/raw/functions/messages/toggle_sticker_sets.py +12 -9
  1352. pyrogram/raw/functions/messages/toggle_suggested_post_approval.py +109 -0
  1353. pyrogram/raw/functions/messages/toggle_todo_completed.py +99 -0
  1354. pyrogram/raw/functions/messages/transcribe_audio.py +10 -7
  1355. pyrogram/raw/functions/messages/translate_rich_message.py +116 -0
  1356. pyrogram/raw/functions/messages/translate_text.py +26 -14
  1357. pyrogram/raw/functions/messages/uninstall_sticker_set.py +9 -6
  1358. pyrogram/raw/functions/messages/unpin_all_messages.py +25 -12
  1359. pyrogram/raw/functions/messages/update_dialog_filter.py +10 -7
  1360. pyrogram/raw/functions/messages/update_dialog_filters_order.py +9 -6
  1361. pyrogram/raw/functions/{channels → messages}/update_pinned_forum_topic.py +21 -18
  1362. pyrogram/raw/functions/messages/update_pinned_message.py +13 -10
  1363. pyrogram/raw/functions/messages/update_saved_reaction_tag.py +10 -7
  1364. pyrogram/raw/functions/messages/upload_encrypted_file.py +10 -7
  1365. pyrogram/raw/functions/messages/upload_imported_media.py +12 -9
  1366. pyrogram/raw/functions/messages/upload_media.py +11 -8
  1367. pyrogram/raw/functions/messages/view_sponsored_message.py +9 -6
  1368. pyrogram/raw/functions/payments/__init__.py +15 -1
  1369. pyrogram/raw/functions/payments/apply_gift_code.py +9 -6
  1370. pyrogram/raw/functions/payments/assign_app_store_transaction.py +10 -7
  1371. pyrogram/raw/functions/payments/assign_play_market_transaction.py +10 -7
  1372. pyrogram/raw/functions/payments/bot_cancel_stars_subscription.py +11 -8
  1373. pyrogram/raw/functions/payments/can_purchase_store.py +9 -6
  1374. pyrogram/raw/functions/payments/change_stars_subscription.py +11 -8
  1375. pyrogram/raw/functions/payments/check_can_send_gift.py +75 -0
  1376. pyrogram/raw/functions/payments/check_gift_code.py +9 -6
  1377. pyrogram/raw/functions/payments/clear_saved_info.py +10 -7
  1378. pyrogram/raw/functions/payments/connect_star_ref_bot.py +10 -7
  1379. pyrogram/raw/functions/payments/convert_star_gift.py +9 -6
  1380. pyrogram/raw/functions/payments/craft_star_gift.py +75 -0
  1381. pyrogram/raw/functions/payments/create_star_gift_collection.py +91 -0
  1382. pyrogram/raw/functions/payments/delete_star_gift_collection.py +83 -0
  1383. pyrogram/raw/functions/payments/edit_connected_star_ref_bot.py +11 -8
  1384. pyrogram/raw/functions/payments/export_invoice.py +9 -6
  1385. pyrogram/raw/functions/payments/fulfill_stars_subscription.py +10 -7
  1386. pyrogram/raw/functions/payments/get_bank_card_data.py +9 -6
  1387. pyrogram/raw/functions/payments/get_connected_star_ref_bot.py +10 -7
  1388. pyrogram/raw/functions/payments/get_connected_star_ref_bots.py +12 -9
  1389. pyrogram/raw/functions/payments/get_craft_star_gifts.py +91 -0
  1390. pyrogram/raw/functions/payments/get_giveaway_info.py +10 -7
  1391. pyrogram/raw/functions/payments/get_payment_form.py +10 -7
  1392. pyrogram/raw/functions/payments/get_payment_receipt.py +10 -7
  1393. pyrogram/raw/functions/payments/get_premium_gift_code_options.py +9 -6
  1394. pyrogram/raw/functions/payments/get_resale_star_gifts.py +30 -15
  1395. pyrogram/raw/functions/payments/get_saved_info.py +8 -5
  1396. pyrogram/raw/functions/payments/get_saved_star_gift.py +9 -6
  1397. pyrogram/raw/functions/payments/get_saved_star_gifts.py +54 -24
  1398. pyrogram/raw/functions/payments/get_star_gift_active_auctions.py +75 -0
  1399. pyrogram/raw/functions/payments/get_star_gift_auction_acquired_gifts.py +75 -0
  1400. pyrogram/raw/functions/payments/get_star_gift_auction_state.py +83 -0
  1401. pyrogram/raw/functions/payments/get_star_gift_collections.py +83 -0
  1402. pyrogram/raw/functions/payments/get_star_gift_upgrade_attributes.py +75 -0
  1403. pyrogram/raw/functions/payments/get_star_gift_upgrade_preview.py +9 -6
  1404. pyrogram/raw/functions/payments/get_star_gift_withdrawal_url.py +10 -7
  1405. pyrogram/raw/functions/payments/get_star_gifts.py +9 -6
  1406. pyrogram/raw/functions/payments/get_stars_gift_options.py +9 -6
  1407. pyrogram/raw/functions/payments/get_stars_giveaway_options.py +8 -5
  1408. pyrogram/raw/functions/payments/get_stars_revenue_ads_account_url.py +9 -6
  1409. pyrogram/raw/functions/payments/get_stars_revenue_stats.py +19 -10
  1410. pyrogram/raw/functions/payments/get_stars_revenue_withdrawal_url.py +33 -21
  1411. pyrogram/raw/functions/payments/get_stars_status.py +24 -13
  1412. pyrogram/raw/functions/payments/get_stars_subscriptions.py +11 -8
  1413. pyrogram/raw/functions/payments/get_stars_topup_options.py +8 -5
  1414. pyrogram/raw/functions/payments/get_stars_transactions.py +24 -15
  1415. pyrogram/raw/functions/payments/get_stars_transactions_by_id.py +25 -14
  1416. pyrogram/raw/functions/payments/get_suggested_star_ref_bots.py +13 -10
  1417. pyrogram/raw/functions/payments/get_unique_star_gift.py +9 -6
  1418. pyrogram/raw/functions/payments/get_unique_star_gift_value_info.py +75 -0
  1419. pyrogram/raw/functions/payments/launch_prepaid_giveaway.py +11 -8
  1420. pyrogram/raw/functions/payments/refund_stars_charge.py +10 -7
  1421. pyrogram/raw/functions/payments/reorder_star_gift_collections.py +83 -0
  1422. pyrogram/raw/functions/payments/resolve_star_gift_offer.py +83 -0
  1423. pyrogram/raw/functions/payments/save_star_gift.py +10 -7
  1424. pyrogram/raw/functions/payments/send_payment_form.py +14 -11
  1425. pyrogram/raw/functions/payments/send_star_gift_offer.py +118 -0
  1426. pyrogram/raw/functions/payments/send_stars_form.py +10 -7
  1427. pyrogram/raw/functions/payments/toggle_chat_star_gift_notifications.py +10 -7
  1428. pyrogram/raw/functions/payments/toggle_star_gifts_pinned_to_top.py +10 -7
  1429. pyrogram/raw/functions/payments/transfer_star_gift.py +10 -7
  1430. pyrogram/raw/functions/payments/update_star_gift_collection.py +124 -0
  1431. pyrogram/raw/functions/payments/update_star_gift_price.py +19 -16
  1432. pyrogram/raw/functions/payments/upgrade_star_gift.py +10 -7
  1433. pyrogram/raw/functions/payments/validate_requested_info.py +11 -8
  1434. pyrogram/raw/functions/phone/__init__.py +6 -0
  1435. pyrogram/raw/functions/phone/accept_call.py +11 -8
  1436. pyrogram/raw/functions/phone/check_group_call.py +10 -7
  1437. pyrogram/raw/functions/phone/confirm_call.py +12 -9
  1438. pyrogram/raw/functions/phone/create_conference_call.py +15 -12
  1439. pyrogram/raw/functions/phone/create_group_call.py +13 -10
  1440. pyrogram/raw/functions/phone/decline_conference_call_invite.py +9 -6
  1441. pyrogram/raw/functions/phone/delete_conference_call_participants.py +13 -10
  1442. pyrogram/raw/functions/phone/delete_group_call_messages.py +91 -0
  1443. pyrogram/raw/functions/phone/delete_group_call_participant_messages.py +91 -0
  1444. pyrogram/raw/functions/phone/discard_call.py +13 -10
  1445. pyrogram/raw/functions/phone/discard_group_call.py +9 -6
  1446. pyrogram/raw/functions/phone/edit_group_call_participant.py +16 -13
  1447. pyrogram/raw/functions/phone/edit_group_call_title.py +10 -7
  1448. pyrogram/raw/functions/phone/export_group_call_invite.py +10 -7
  1449. pyrogram/raw/functions/phone/get_call_config.py +8 -5
  1450. pyrogram/raw/functions/phone/get_group_call.py +10 -7
  1451. pyrogram/raw/functions/phone/get_group_call_chain_blocks.py +12 -9
  1452. pyrogram/raw/functions/phone/get_group_call_join_as.py +9 -6
  1453. pyrogram/raw/functions/phone/get_group_call_stars.py +75 -0
  1454. pyrogram/raw/functions/phone/get_group_call_stream_channels.py +10 -6
  1455. pyrogram/raw/functions/phone/get_group_call_stream_rtmp_url.py +25 -14
  1456. pyrogram/raw/functions/phone/get_group_participants.py +13 -10
  1457. pyrogram/raw/functions/phone/invite_conference_call_participant.py +11 -8
  1458. pyrogram/raw/functions/phone/invite_to_group_call.py +10 -7
  1459. pyrogram/raw/functions/phone/join_group_call.py +16 -13
  1460. pyrogram/raw/functions/phone/join_group_call_presentation.py +10 -7
  1461. pyrogram/raw/functions/phone/leave_group_call.py +10 -7
  1462. pyrogram/raw/functions/phone/leave_group_call_presentation.py +9 -6
  1463. pyrogram/raw/functions/phone/received_call.py +9 -6
  1464. pyrogram/raw/functions/phone/request_call.py +13 -10
  1465. pyrogram/raw/functions/phone/save_call_debug.py +10 -7
  1466. pyrogram/raw/functions/phone/save_call_log.py +10 -7
  1467. pyrogram/raw/functions/phone/save_default_group_call_join_as.py +10 -7
  1468. pyrogram/raw/functions/phone/save_default_send_as.py +83 -0
  1469. pyrogram/raw/functions/phone/send_conference_call_broadcast.py +10 -7
  1470. pyrogram/raw/functions/phone/send_group_call_encrypted_message.py +83 -0
  1471. pyrogram/raw/functions/phone/send_group_call_message.py +112 -0
  1472. pyrogram/raw/functions/phone/send_signaling_data.py +10 -7
  1473. pyrogram/raw/functions/phone/set_call_rating.py +12 -9
  1474. pyrogram/raw/functions/phone/start_scheduled_group_call.py +9 -6
  1475. pyrogram/raw/functions/phone/toggle_group_call_record.py +13 -10
  1476. pyrogram/raw/functions/phone/toggle_group_call_settings.py +34 -13
  1477. pyrogram/raw/functions/phone/toggle_group_call_start_subscription.py +10 -7
  1478. pyrogram/raw/functions/photos/delete_photos.py +9 -6
  1479. pyrogram/raw/functions/photos/get_user_photos.py +12 -9
  1480. pyrogram/raw/functions/photos/update_profile_photo.py +11 -8
  1481. pyrogram/raw/functions/photos/upload_contact_profile_photo.py +15 -12
  1482. pyrogram/raw/functions/photos/upload_profile_photo.py +14 -11
  1483. pyrogram/raw/functions/ping.py +6 -4
  1484. pyrogram/raw/functions/ping_delay_disconnect.py +6 -4
  1485. pyrogram/raw/functions/premium/apply_boost.py +10 -7
  1486. pyrogram/raw/functions/premium/get_boosts_list.py +12 -9
  1487. pyrogram/raw/functions/premium/get_boosts_status.py +9 -6
  1488. pyrogram/raw/functions/premium/get_my_boosts.py +8 -5
  1489. pyrogram/raw/functions/premium/get_user_boosts.py +10 -7
  1490. pyrogram/raw/functions/req_dh_params.py +6 -4
  1491. pyrogram/raw/functions/req_pq.py +6 -4
  1492. pyrogram/raw/functions/req_pq_multi.py +6 -4
  1493. pyrogram/raw/functions/rpc_drop_answer.py +6 -4
  1494. pyrogram/raw/functions/set_client_dh_params.py +6 -4
  1495. pyrogram/raw/functions/smsjobs/finish_job.py +10 -7
  1496. pyrogram/raw/functions/smsjobs/get_sms_job.py +9 -6
  1497. pyrogram/raw/functions/smsjobs/get_status.py +8 -5
  1498. pyrogram/raw/functions/smsjobs/is_eligible_to_join.py +8 -5
  1499. pyrogram/raw/functions/smsjobs/join.py +8 -5
  1500. pyrogram/raw/functions/smsjobs/leave.py +8 -5
  1501. pyrogram/raw/functions/smsjobs/update_settings.py +9 -6
  1502. pyrogram/raw/functions/stats/__init__.py +1 -3
  1503. pyrogram/raw/functions/stats/get_broadcast_stats.py +10 -7
  1504. pyrogram/raw/functions/stats/get_megagroup_stats.py +10 -7
  1505. pyrogram/raw/functions/stats/get_message_public_forwards.py +13 -9
  1506. pyrogram/raw/functions/stats/get_message_stats.py +11 -8
  1507. pyrogram/raw/functions/{messages/get_stats_url.py → stats/get_poll_stats.py} +23 -20
  1508. pyrogram/raw/functions/stats/get_story_public_forwards.py +12 -9
  1509. pyrogram/raw/functions/stats/get_story_stats.py +11 -8
  1510. pyrogram/raw/functions/stats/load_async_graph.py +10 -7
  1511. pyrogram/raw/functions/stickers/add_sticker_to_set.py +10 -7
  1512. pyrogram/raw/functions/stickers/change_sticker.py +12 -9
  1513. pyrogram/raw/functions/stickers/change_sticker_position.py +10 -7
  1514. pyrogram/raw/functions/stickers/check_short_name.py +9 -6
  1515. pyrogram/raw/functions/stickers/create_sticker_set.py +17 -14
  1516. pyrogram/raw/functions/stickers/delete_sticker_set.py +9 -6
  1517. pyrogram/raw/functions/stickers/remove_sticker_from_set.py +9 -6
  1518. pyrogram/raw/functions/stickers/rename_sticker_set.py +10 -7
  1519. pyrogram/raw/functions/stickers/replace_sticker.py +10 -7
  1520. pyrogram/raw/functions/stickers/set_sticker_set_thumb.py +11 -8
  1521. pyrogram/raw/functions/stickers/suggest_short_name.py +9 -6
  1522. pyrogram/raw/functions/stories/__init__.py +7 -0
  1523. pyrogram/raw/functions/stories/activate_stealth_mode.py +10 -7
  1524. pyrogram/raw/functions/stories/can_send_story.py +9 -6
  1525. pyrogram/raw/functions/stories/create_album.py +91 -0
  1526. pyrogram/raw/functions/{stats/get_broadcast_revenue_stats.py → stories/delete_album.py} +26 -23
  1527. pyrogram/raw/functions/stories/delete_stories.py +10 -7
  1528. pyrogram/raw/functions/stories/edit_story.py +30 -17
  1529. pyrogram/raw/functions/stories/export_story_link.py +10 -7
  1530. pyrogram/raw/functions/{stats/get_broadcast_revenue_transactions.py → stories/get_album_stories.py} +27 -16
  1531. pyrogram/raw/functions/stories/get_albums.py +83 -0
  1532. pyrogram/raw/functions/stories/get_all_read_peer_stories.py +8 -5
  1533. pyrogram/raw/functions/stories/get_all_stories.py +11 -8
  1534. pyrogram/raw/functions/stories/get_chats_to_send.py +8 -5
  1535. pyrogram/raw/functions/stories/get_peer_max_i_ds.py +12 -9
  1536. pyrogram/raw/functions/stories/get_peer_stories.py +9 -6
  1537. pyrogram/raw/functions/stories/get_pinned_stories.py +11 -8
  1538. pyrogram/raw/functions/stories/get_stories_archive.py +11 -8
  1539. pyrogram/raw/functions/stories/get_stories_by_id.py +10 -7
  1540. pyrogram/raw/functions/stories/get_stories_views.py +10 -7
  1541. pyrogram/raw/functions/stories/get_story_reactions_list.py +14 -11
  1542. pyrogram/raw/functions/stories/get_story_views_list.py +16 -13
  1543. pyrogram/raw/functions/stories/increment_story_views.py +10 -7
  1544. pyrogram/raw/functions/stories/read_stories.py +10 -7
  1545. pyrogram/raw/functions/stories/reorder_albums.py +83 -0
  1546. pyrogram/raw/functions/stories/report.py +12 -9
  1547. pyrogram/raw/functions/stories/search_posts.py +13 -10
  1548. pyrogram/raw/functions/stories/send_reaction.py +12 -9
  1549. pyrogram/raw/functions/stories/send_story.py +46 -23
  1550. pyrogram/raw/functions/stories/start_live.py +148 -0
  1551. pyrogram/raw/functions/stories/toggle_all_stories_hidden.py +9 -6
  1552. pyrogram/raw/functions/stories/toggle_peer_stories_hidden.py +10 -7
  1553. pyrogram/raw/functions/stories/toggle_pinned.py +11 -8
  1554. pyrogram/raw/functions/stories/toggle_pinned_to_top.py +10 -7
  1555. pyrogram/raw/functions/stories/update_album.py +124 -0
  1556. pyrogram/raw/functions/updates/get_channel_difference.py +13 -10
  1557. pyrogram/raw/functions/updates/get_difference.py +14 -11
  1558. pyrogram/raw/functions/updates/get_state.py +8 -5
  1559. pyrogram/raw/functions/upload/get_cdn_file.py +11 -8
  1560. pyrogram/raw/functions/upload/get_cdn_file_hashes.py +10 -7
  1561. pyrogram/raw/functions/upload/get_file.py +13 -10
  1562. pyrogram/raw/functions/upload/get_file_hashes.py +10 -7
  1563. pyrogram/raw/functions/upload/get_web_file.py +11 -8
  1564. pyrogram/raw/functions/upload/reupload_cdn_file.py +10 -7
  1565. pyrogram/raw/functions/upload/save_big_file_part.py +12 -9
  1566. pyrogram/raw/functions/upload/save_file_part.py +11 -8
  1567. pyrogram/raw/functions/users/__init__.py +3 -0
  1568. pyrogram/raw/functions/users/get_full_user.py +9 -6
  1569. pyrogram/raw/functions/users/get_requirements_to_contact.py +9 -6
  1570. pyrogram/raw/functions/users/get_saved_music.py +99 -0
  1571. pyrogram/raw/functions/users/get_saved_music_by_id.py +83 -0
  1572. pyrogram/raw/functions/users/get_users.py +9 -6
  1573. pyrogram/raw/functions/users/set_secure_value_errors.py +10 -7
  1574. pyrogram/raw/functions/users/suggest_birthday.py +83 -0
  1575. pyrogram/raw/types/__init__.py +179 -21
  1576. pyrogram/raw/types/access_point_rule.py +6 -4
  1577. pyrogram/raw/types/account/__init__.py +8 -0
  1578. pyrogram/raw/types/account/authorization_form.py +12 -10
  1579. pyrogram/raw/types/account/authorizations.py +9 -7
  1580. pyrogram/raw/types/account/auto_download_settings.py +10 -8
  1581. pyrogram/raw/types/account/auto_save_settings.py +13 -11
  1582. pyrogram/raw/types/account/business_chat_links.py +10 -8
  1583. pyrogram/raw/types/account/chat_themes.py +118 -0
  1584. pyrogram/raw/types/account/chat_themes_not_modified.py +78 -0
  1585. pyrogram/raw/types/account/connected_bots.py +9 -7
  1586. pyrogram/raw/types/account/content_settings.py +9 -7
  1587. pyrogram/raw/types/account/email_verified.py +8 -6
  1588. pyrogram/raw/types/account/email_verified_login.py +9 -7
  1589. pyrogram/raw/types/account/emoji_statuses.py +9 -7
  1590. pyrogram/raw/types/account/emoji_statuses_not_modified.py +7 -5
  1591. pyrogram/raw/types/account/paid_messages_revenue.py +8 -6
  1592. pyrogram/raw/types/account/passkey_registration_options.py +83 -0
  1593. pyrogram/raw/types/account/passkeys.py +83 -0
  1594. pyrogram/raw/types/account/password.py +20 -18
  1595. pyrogram/raw/types/account/password_input_settings.py +12 -10
  1596. pyrogram/raw/types/account/password_settings.py +9 -7
  1597. pyrogram/raw/types/account/privacy_rules.py +10 -8
  1598. pyrogram/raw/types/account/reset_password_failed_wait.py +8 -6
  1599. pyrogram/raw/types/account/reset_password_ok.py +7 -5
  1600. pyrogram/raw/types/account/reset_password_requested_wait.py +8 -6
  1601. pyrogram/raw/types/account/resolved_business_chat_links.py +12 -10
  1602. pyrogram/raw/types/account/saved_music_ids.py +83 -0
  1603. pyrogram/raw/types/account/saved_music_ids_not_modified.py +78 -0
  1604. pyrogram/raw/types/account/saved_ringtone.py +7 -5
  1605. pyrogram/raw/types/account/saved_ringtone_converted.py +8 -6
  1606. pyrogram/raw/types/account/saved_ringtones.py +9 -7
  1607. pyrogram/raw/types/account/saved_ringtones_not_modified.py +7 -5
  1608. pyrogram/raw/types/account/sent_email_code.py +9 -7
  1609. pyrogram/raw/types/account/takeout.py +8 -6
  1610. pyrogram/raw/types/account/themes.py +9 -7
  1611. pyrogram/raw/types/account/themes_not_modified.py +7 -5
  1612. pyrogram/raw/types/account/tmp_password.py +9 -7
  1613. pyrogram/raw/types/account/wall_papers.py +9 -7
  1614. pyrogram/raw/types/account/wall_papers_not_modified.py +7 -5
  1615. pyrogram/raw/types/account/web_authorizations.py +9 -7
  1616. pyrogram/raw/types/account/web_browser_settings.py +115 -0
  1617. pyrogram/raw/types/account/web_browser_settings_not_modified.py +80 -0
  1618. pyrogram/raw/types/account_days_ttl.py +8 -6
  1619. pyrogram/raw/types/ai_compose_tone.py +162 -0
  1620. pyrogram/raw/types/ai_compose_tone_default.py +100 -0
  1621. pyrogram/raw/types/ai_compose_tone_example.py +91 -0
  1622. pyrogram/raw/{base/premium_gift_option.py → types/aicompose/__init__.py} +2 -4
  1623. pyrogram/raw/types/aicompose/tones.py +100 -0
  1624. pyrogram/raw/types/aicompose/tones_not_modified.py +79 -0
  1625. pyrogram/raw/types/attach_menu_bot.py +17 -15
  1626. pyrogram/raw/types/attach_menu_bot_icon.py +10 -8
  1627. pyrogram/raw/types/attach_menu_bot_icon_color.py +9 -7
  1628. pyrogram/raw/types/attach_menu_bots.py +10 -8
  1629. pyrogram/raw/types/attach_menu_bots_bot.py +9 -7
  1630. pyrogram/raw/types/attach_menu_bots_not_modified.py +7 -5
  1631. pyrogram/raw/types/attach_menu_peer_type_bot_pm.py +7 -5
  1632. pyrogram/raw/types/attach_menu_peer_type_broadcast.py +7 -5
  1633. pyrogram/raw/types/attach_menu_peer_type_chat.py +7 -5
  1634. pyrogram/raw/types/attach_menu_peer_type_pm.py +7 -5
  1635. pyrogram/raw/types/attach_menu_peer_type_same_bot_pm.py +7 -5
  1636. pyrogram/raw/types/{broadcast_revenue_transaction_refund.py → auction_bid_level.py} +25 -23
  1637. pyrogram/raw/types/auth/__init__.py +1 -0
  1638. pyrogram/raw/types/auth/authorization.py +14 -11
  1639. pyrogram/raw/types/auth/authorization_sign_up_required.py +10 -7
  1640. pyrogram/raw/types/auth/code_type_call.py +7 -5
  1641. pyrogram/raw/types/auth/code_type_flash_call.py +7 -5
  1642. pyrogram/raw/types/auth/code_type_fragment_sms.py +7 -5
  1643. pyrogram/raw/types/auth/code_type_missed_call.py +7 -5
  1644. pyrogram/raw/types/auth/code_type_sms.py +7 -5
  1645. pyrogram/raw/types/auth/exported_authorization.py +9 -7
  1646. pyrogram/raw/types/auth/logged_out.py +8 -6
  1647. pyrogram/raw/types/auth/login_token.py +9 -7
  1648. pyrogram/raw/types/auth/login_token_migrate_to.py +9 -7
  1649. pyrogram/raw/types/auth/login_token_success.py +8 -6
  1650. pyrogram/raw/types/auth/passkey_login_options.py +83 -0
  1651. pyrogram/raw/types/auth/password_recovery.py +8 -6
  1652. pyrogram/raw/types/auth/sent_code.py +13 -10
  1653. pyrogram/raw/types/auth/sent_code_payment_required.py +56 -13
  1654. pyrogram/raw/types/auth/sent_code_success.py +10 -7
  1655. pyrogram/raw/types/auth/sent_code_type_app.py +8 -6
  1656. pyrogram/raw/types/auth/sent_code_type_call.py +8 -6
  1657. pyrogram/raw/types/auth/sent_code_type_email_code.py +13 -11
  1658. pyrogram/raw/types/auth/sent_code_type_firebase_sms.py +13 -11
  1659. pyrogram/raw/types/auth/sent_code_type_flash_call.py +8 -6
  1660. pyrogram/raw/types/auth/sent_code_type_fragment_sms.py +9 -7
  1661. pyrogram/raw/types/auth/sent_code_type_missed_call.py +9 -7
  1662. pyrogram/raw/types/auth/sent_code_type_set_up_email_required.py +9 -7
  1663. pyrogram/raw/types/auth/sent_code_type_sms.py +8 -6
  1664. pyrogram/raw/types/auth/sent_code_type_sms_phrase.py +8 -6
  1665. pyrogram/raw/types/auth/sent_code_type_sms_word.py +8 -6
  1666. pyrogram/raw/types/authorization.py +25 -23
  1667. pyrogram/raw/types/auto_download_settings.py +18 -16
  1668. pyrogram/raw/types/auto_save_exception.py +9 -7
  1669. pyrogram/raw/types/auto_save_settings.py +10 -8
  1670. pyrogram/raw/types/available_effect.py +13 -11
  1671. pyrogram/raw/types/available_reaction.py +18 -16
  1672. pyrogram/raw/types/bad_msg_notification.py +6 -4
  1673. pyrogram/raw/types/bad_server_salt.py +6 -4
  1674. pyrogram/raw/types/bank_card_open_url.py +9 -7
  1675. pyrogram/raw/types/base_theme_arctic.py +7 -5
  1676. pyrogram/raw/types/base_theme_classic.py +7 -5
  1677. pyrogram/raw/types/base_theme_day.py +7 -5
  1678. pyrogram/raw/types/base_theme_night.py +7 -5
  1679. pyrogram/raw/types/base_theme_tinted.py +7 -5
  1680. pyrogram/raw/types/bind_auth_key_inner.py +6 -4
  1681. pyrogram/raw/types/birthday.py +10 -8
  1682. pyrogram/raw/types/boost.py +18 -16
  1683. pyrogram/raw/types/bot_app.py +15 -13
  1684. pyrogram/raw/types/bot_app_not_modified.py +7 -5
  1685. pyrogram/raw/types/bot_app_settings.py +12 -10
  1686. pyrogram/raw/types/bot_business_connection.py +13 -11
  1687. pyrogram/raw/types/bot_command.py +23 -13
  1688. pyrogram/raw/types/bot_command_scope_chat_admins.py +7 -5
  1689. pyrogram/raw/types/bot_command_scope_chats.py +7 -5
  1690. pyrogram/raw/types/bot_command_scope_default.py +7 -5
  1691. pyrogram/raw/types/bot_command_scope_peer.py +8 -6
  1692. pyrogram/raw/types/bot_command_scope_peer_admins.py +8 -6
  1693. pyrogram/raw/types/bot_command_scope_peer_user.py +9 -7
  1694. pyrogram/raw/types/bot_command_scope_users.py +7 -5
  1695. pyrogram/raw/types/bot_info.py +17 -15
  1696. pyrogram/raw/types/bot_inline_media_result.py +14 -12
  1697. pyrogram/raw/types/bot_inline_message_media_auto.py +11 -9
  1698. pyrogram/raw/types/bot_inline_message_media_contact.py +12 -10
  1699. pyrogram/raw/types/bot_inline_message_media_geo.py +12 -10
  1700. pyrogram/raw/types/bot_inline_message_media_invoice.py +15 -13
  1701. pyrogram/raw/types/bot_inline_message_media_venue.py +14 -12
  1702. pyrogram/raw/types/bot_inline_message_media_web_page.py +16 -14
  1703. pyrogram/raw/types/bot_inline_message_rich_message.py +86 -0
  1704. pyrogram/raw/types/bot_inline_message_text.py +12 -10
  1705. pyrogram/raw/types/bot_inline_result.py +15 -13
  1706. pyrogram/raw/types/bot_menu_button.py +9 -7
  1707. pyrogram/raw/types/bot_menu_button_commands.py +7 -5
  1708. pyrogram/raw/types/bot_menu_button_default.py +7 -5
  1709. pyrogram/raw/types/bot_preview_media.py +9 -7
  1710. pyrogram/raw/types/bot_verification.py +10 -8
  1711. pyrogram/raw/types/bot_verifier_settings.py +11 -9
  1712. pyrogram/raw/types/bots/__init__.py +3 -0
  1713. pyrogram/raw/types/bots/access_settings.py +93 -0
  1714. pyrogram/raw/types/bots/bot_info.py +10 -8
  1715. pyrogram/raw/types/bots/exported_bot_token.py +83 -0
  1716. pyrogram/raw/types/bots/popular_app_bots.py +9 -7
  1717. pyrogram/raw/types/bots/preview_info.py +9 -7
  1718. pyrogram/raw/types/bots/requested_button.py +83 -0
  1719. pyrogram/raw/types/business_away_message.py +11 -9
  1720. pyrogram/raw/types/business_away_message_schedule_always.py +7 -5
  1721. pyrogram/raw/types/business_away_message_schedule_custom.py +9 -7
  1722. pyrogram/raw/types/business_away_message_schedule_outside_work_hours.py +7 -5
  1723. pyrogram/raw/types/business_bot_recipients.py +14 -12
  1724. pyrogram/raw/types/business_bot_rights.py +21 -19
  1725. pyrogram/raw/types/business_chat_link.py +12 -10
  1726. pyrogram/raw/types/business_greeting_message.py +10 -8
  1727. pyrogram/raw/types/business_intro.py +10 -8
  1728. pyrogram/raw/types/business_location.py +9 -7
  1729. pyrogram/raw/types/business_recipients.py +13 -11
  1730. pyrogram/raw/types/business_weekly_open.py +9 -7
  1731. pyrogram/raw/types/business_work_hours.py +10 -8
  1732. pyrogram/raw/types/cdn_config.py +8 -6
  1733. pyrogram/raw/types/cdn_public_key.py +9 -7
  1734. pyrogram/raw/types/channel.py +97 -58
  1735. pyrogram/raw/types/channel_admin_log_event.py +11 -9
  1736. pyrogram/raw/types/channel_admin_log_event_action_change_about.py +9 -7
  1737. pyrogram/raw/types/channel_admin_log_event_action_change_available_reactions.py +9 -7
  1738. pyrogram/raw/types/channel_admin_log_event_action_change_emoji_status.py +9 -7
  1739. pyrogram/raw/types/channel_admin_log_event_action_change_emoji_sticker_set.py +9 -7
  1740. pyrogram/raw/types/channel_admin_log_event_action_change_history_ttl.py +9 -7
  1741. pyrogram/raw/types/channel_admin_log_event_action_change_linked_chat.py +9 -7
  1742. pyrogram/raw/types/channel_admin_log_event_action_change_location.py +9 -7
  1743. pyrogram/raw/types/channel_admin_log_event_action_change_peer_color.py +9 -7
  1744. pyrogram/raw/types/channel_admin_log_event_action_change_photo.py +9 -7
  1745. pyrogram/raw/types/channel_admin_log_event_action_change_profile_peer_color.py +9 -7
  1746. pyrogram/raw/types/channel_admin_log_event_action_change_sticker_set.py +9 -7
  1747. pyrogram/raw/types/channel_admin_log_event_action_change_title.py +9 -7
  1748. pyrogram/raw/types/channel_admin_log_event_action_change_username.py +9 -7
  1749. pyrogram/raw/types/channel_admin_log_event_action_change_usernames.py +9 -7
  1750. pyrogram/raw/types/channel_admin_log_event_action_change_wallpaper.py +9 -7
  1751. pyrogram/raw/types/channel_admin_log_event_action_create_topic.py +8 -6
  1752. pyrogram/raw/types/channel_admin_log_event_action_default_banned_rights.py +9 -7
  1753. pyrogram/raw/types/channel_admin_log_event_action_delete_message.py +8 -6
  1754. pyrogram/raw/types/channel_admin_log_event_action_delete_topic.py +8 -6
  1755. pyrogram/raw/types/channel_admin_log_event_action_discard_group_call.py +8 -6
  1756. pyrogram/raw/types/channel_admin_log_event_action_edit_message.py +9 -7
  1757. pyrogram/raw/types/channel_admin_log_event_action_edit_topic.py +9 -7
  1758. pyrogram/raw/types/channel_admin_log_event_action_exported_invite_delete.py +8 -6
  1759. pyrogram/raw/types/channel_admin_log_event_action_exported_invite_edit.py +9 -7
  1760. pyrogram/raw/types/channel_admin_log_event_action_exported_invite_revoke.py +8 -6
  1761. pyrogram/raw/types/channel_admin_log_event_action_participant_edit_rank.py +90 -0
  1762. pyrogram/raw/types/channel_admin_log_event_action_participant_invite.py +8 -6
  1763. pyrogram/raw/types/channel_admin_log_event_action_participant_join.py +7 -5
  1764. pyrogram/raw/types/channel_admin_log_event_action_participant_join_by_invite.py +9 -7
  1765. pyrogram/raw/types/channel_admin_log_event_action_participant_join_by_request.py +9 -7
  1766. pyrogram/raw/types/channel_admin_log_event_action_participant_leave.py +7 -5
  1767. pyrogram/raw/types/channel_admin_log_event_action_participant_mute.py +8 -6
  1768. pyrogram/raw/types/channel_admin_log_event_action_participant_sub_extend.py +9 -7
  1769. pyrogram/raw/types/channel_admin_log_event_action_participant_toggle_admin.py +9 -7
  1770. pyrogram/raw/types/channel_admin_log_event_action_participant_toggle_ban.py +9 -7
  1771. pyrogram/raw/types/channel_admin_log_event_action_participant_unmute.py +8 -6
  1772. pyrogram/raw/types/channel_admin_log_event_action_participant_volume.py +8 -6
  1773. pyrogram/raw/types/channel_admin_log_event_action_pin_topic.py +9 -7
  1774. pyrogram/raw/types/channel_admin_log_event_action_send_message.py +8 -6
  1775. pyrogram/raw/types/channel_admin_log_event_action_start_group_call.py +8 -6
  1776. pyrogram/raw/types/channel_admin_log_event_action_stop_poll.py +8 -6
  1777. pyrogram/raw/types/channel_admin_log_event_action_toggle_anti_spam.py +8 -6
  1778. pyrogram/raw/types/channel_admin_log_event_action_toggle_autotranslation.py +8 -6
  1779. pyrogram/raw/types/channel_admin_log_event_action_toggle_forum.py +8 -6
  1780. pyrogram/raw/types/channel_admin_log_event_action_toggle_group_call_setting.py +8 -6
  1781. pyrogram/raw/types/channel_admin_log_event_action_toggle_invites.py +8 -6
  1782. pyrogram/raw/types/channel_admin_log_event_action_toggle_no_forwards.py +8 -6
  1783. pyrogram/raw/types/channel_admin_log_event_action_toggle_pre_history_hidden.py +8 -6
  1784. pyrogram/raw/types/channel_admin_log_event_action_toggle_signature_profiles.py +8 -6
  1785. pyrogram/raw/types/channel_admin_log_event_action_toggle_signatures.py +8 -6
  1786. pyrogram/raw/types/channel_admin_log_event_action_toggle_slow_mode.py +9 -7
  1787. pyrogram/raw/types/channel_admin_log_event_action_update_pinned.py +8 -6
  1788. pyrogram/raw/types/channel_admin_log_events_filter.py +35 -27
  1789. pyrogram/raw/types/channel_forbidden.py +22 -14
  1790. pyrogram/raw/types/channel_full.py +103 -73
  1791. pyrogram/raw/types/channel_location.py +9 -7
  1792. pyrogram/raw/types/channel_location_empty.py +7 -5
  1793. pyrogram/raw/types/channel_messages_filter.py +9 -7
  1794. pyrogram/raw/types/channel_messages_filter_empty.py +7 -5
  1795. pyrogram/raw/types/channel_participant.py +24 -13
  1796. pyrogram/raw/types/channel_participant_admin.py +14 -12
  1797. pyrogram/raw/types/channel_participant_banned.py +26 -15
  1798. pyrogram/raw/types/channel_participant_creator.py +10 -8
  1799. pyrogram/raw/types/channel_participant_left.py +8 -6
  1800. pyrogram/raw/types/channel_participant_self.py +26 -15
  1801. pyrogram/raw/types/channel_participants_admins.py +7 -5
  1802. pyrogram/raw/types/channel_participants_banned.py +8 -6
  1803. pyrogram/raw/types/channel_participants_bots.py +7 -5
  1804. pyrogram/raw/types/channel_participants_contacts.py +8 -6
  1805. pyrogram/raw/types/channel_participants_kicked.py +8 -6
  1806. pyrogram/raw/types/channel_participants_mentions.py +10 -7
  1807. pyrogram/raw/types/channel_participants_recent.py +7 -5
  1808. pyrogram/raw/types/channel_participants_search.py +8 -6
  1809. pyrogram/raw/types/channels/admin_log_results.py +10 -8
  1810. pyrogram/raw/types/channels/channel_participant.py +10 -8
  1811. pyrogram/raw/types/channels/channel_participants.py +11 -9
  1812. pyrogram/raw/types/channels/channel_participants_not_modified.py +7 -5
  1813. pyrogram/raw/types/channels/send_as_peers.py +10 -8
  1814. pyrogram/raw/types/channels/sponsored_message_report_result_ads_hidden.py +7 -5
  1815. pyrogram/raw/types/channels/sponsored_message_report_result_choose_option.py +9 -7
  1816. pyrogram/raw/types/channels/sponsored_message_report_result_reported.py +7 -5
  1817. pyrogram/raw/types/chat.py +25 -29
  1818. pyrogram/raw/types/chat_admin_rights.py +42 -22
  1819. pyrogram/raw/types/chat_admin_with_invites.py +10 -8
  1820. pyrogram/raw/types/chat_banned_rights.py +48 -28
  1821. pyrogram/raw/types/chat_empty.py +8 -6
  1822. pyrogram/raw/types/chat_forbidden.py +9 -7
  1823. pyrogram/raw/types/chat_full.py +27 -25
  1824. pyrogram/raw/types/chat_invite.py +25 -23
  1825. pyrogram/raw/types/chat_invite_already.py +8 -6
  1826. pyrogram/raw/types/chat_invite_exported.py +21 -19
  1827. pyrogram/raw/types/chat_invite_importer.py +13 -11
  1828. pyrogram/raw/types/chat_invite_peek.py +9 -7
  1829. pyrogram/raw/types/chat_invite_public_join_requests.py +7 -5
  1830. pyrogram/raw/types/chat_onlines.py +8 -6
  1831. pyrogram/raw/types/chat_participant.py +28 -15
  1832. pyrogram/raw/types/chat_participant_admin.py +28 -15
  1833. pyrogram/raw/types/chat_participant_creator.py +26 -13
  1834. pyrogram/raw/types/chat_participants.py +10 -8
  1835. pyrogram/raw/types/chat_participants_forbidden.py +9 -7
  1836. pyrogram/raw/types/chat_photo.py +11 -9
  1837. pyrogram/raw/types/chat_photo_empty.py +7 -5
  1838. pyrogram/raw/types/chat_reactions_all.py +8 -6
  1839. pyrogram/raw/types/chat_reactions_none.py +7 -5
  1840. pyrogram/raw/types/chat_reactions_some.py +8 -6
  1841. pyrogram/raw/types/chat_theme.py +74 -0
  1842. pyrogram/raw/types/chat_theme_unique_gift.py +82 -0
  1843. pyrogram/raw/types/chatlists/chatlist_invite.py +13 -11
  1844. pyrogram/raw/types/chatlists/chatlist_invite_already.py +12 -10
  1845. pyrogram/raw/types/chatlists/chatlist_updates.py +10 -8
  1846. pyrogram/raw/types/chatlists/exported_chatlist_invite.py +9 -7
  1847. pyrogram/raw/types/chatlists/exported_invites.py +10 -8
  1848. pyrogram/raw/types/client_dh_inner_data.py +6 -4
  1849. pyrogram/raw/types/code_settings.py +16 -14
  1850. pyrogram/raw/{base/broadcast_revenue_balances.py → types/communities/__init__.py} +2 -4
  1851. pyrogram/raw/types/{stats/broadcast_revenue_stats.py → communities/participant_joined_chats.py} +31 -29
  1852. pyrogram/raw/types/communities/peer_link_requests.py +118 -0
  1853. pyrogram/raw/types/community.py +157 -0
  1854. pyrogram/raw/types/community_forbidden.py +93 -0
  1855. pyrogram/raw/types/community_full.py +127 -0
  1856. pyrogram/raw/types/community_peer.py +91 -0
  1857. pyrogram/raw/types/community_peer_request.py +98 -0
  1858. pyrogram/raw/types/config.py +54 -52
  1859. pyrogram/raw/types/connected_bot.py +41 -13
  1860. pyrogram/raw/types/connected_bot_star_ref.py +15 -13
  1861. pyrogram/raw/types/contact.py +9 -7
  1862. pyrogram/raw/types/contact_birthday.py +9 -7
  1863. pyrogram/raw/types/contact_status.py +9 -7
  1864. pyrogram/raw/types/contacts/blocked.py +10 -8
  1865. pyrogram/raw/types/contacts/blocked_slice.py +11 -9
  1866. pyrogram/raw/types/contacts/contact_birthdays.py +9 -7
  1867. pyrogram/raw/types/contacts/contacts.py +10 -8
  1868. pyrogram/raw/types/contacts/contacts_not_modified.py +7 -5
  1869. pyrogram/raw/types/contacts/found.py +11 -9
  1870. pyrogram/raw/types/contacts/imported_contacts.py +11 -9
  1871. pyrogram/raw/types/contacts/resolved_peer.py +10 -8
  1872. pyrogram/raw/types/contacts/sponsored_peers.py +10 -8
  1873. pyrogram/raw/types/contacts/sponsored_peers_empty.py +7 -5
  1874. pyrogram/raw/types/contacts/top_peers.py +10 -8
  1875. pyrogram/raw/types/contacts/top_peers_disabled.py +7 -5
  1876. pyrogram/raw/types/contacts/top_peers_not_modified.py +7 -5
  1877. pyrogram/raw/types/data_json.py +8 -6
  1878. pyrogram/raw/types/dc_option.py +17 -15
  1879. pyrogram/raw/types/default_history_ttl.py +8 -6
  1880. pyrogram/raw/types/destroy_auth_key_fail.py +6 -4
  1881. pyrogram/raw/types/destroy_auth_key_none.py +6 -4
  1882. pyrogram/raw/types/destroy_auth_key_ok.py +6 -4
  1883. pyrogram/raw/types/destroy_session_none.py +6 -4
  1884. pyrogram/raw/types/destroy_session_ok.py +6 -4
  1885. pyrogram/raw/types/dh_gen_fail.py +6 -4
  1886. pyrogram/raw/types/dh_gen_ok.py +6 -4
  1887. pyrogram/raw/types/dh_gen_retry.py +6 -4
  1888. pyrogram/raw/types/dialog.py +35 -25
  1889. pyrogram/raw/types/dialog_community.py +90 -0
  1890. pyrogram/raw/types/dialog_filter.py +23 -21
  1891. pyrogram/raw/types/dialog_filter_chatlist.py +15 -13
  1892. pyrogram/raw/types/dialog_filter_default.py +7 -5
  1893. pyrogram/raw/types/dialog_filter_suggested.py +9 -7
  1894. pyrogram/raw/types/dialog_folder.py +15 -13
  1895. pyrogram/raw/types/dialog_peer.py +8 -6
  1896. pyrogram/raw/types/dialog_peer_community.py +83 -0
  1897. pyrogram/raw/types/dialog_peer_folder.py +8 -6
  1898. pyrogram/raw/types/disallowed_gifts_settings.py +20 -12
  1899. pyrogram/raw/types/document.py +17 -15
  1900. pyrogram/raw/types/document_attribute_animated.py +7 -5
  1901. pyrogram/raw/types/document_attribute_audio.py +12 -10
  1902. pyrogram/raw/types/document_attribute_custom_emoji.py +11 -9
  1903. pyrogram/raw/types/document_attribute_filename.py +8 -6
  1904. pyrogram/raw/types/document_attribute_has_stickers.py +7 -5
  1905. pyrogram/raw/types/document_attribute_image_size.py +9 -7
  1906. pyrogram/raw/types/document_attribute_sticker.py +11 -9
  1907. pyrogram/raw/types/document_attribute_video.py +16 -14
  1908. pyrogram/raw/types/document_empty.py +8 -6
  1909. pyrogram/raw/types/draft_message.py +39 -17
  1910. pyrogram/raw/types/draft_message_empty.py +8 -6
  1911. pyrogram/raw/types/email_verification_apple.py +8 -6
  1912. pyrogram/raw/types/email_verification_code.py +8 -6
  1913. pyrogram/raw/types/email_verification_google.py +8 -6
  1914. pyrogram/raw/types/email_verify_purpose_login_change.py +7 -5
  1915. pyrogram/raw/types/email_verify_purpose_login_setup.py +9 -7
  1916. pyrogram/raw/types/email_verify_purpose_passport.py +7 -5
  1917. pyrogram/raw/types/emoji_group.py +10 -8
  1918. pyrogram/raw/types/emoji_group_greeting.py +10 -8
  1919. pyrogram/raw/types/emoji_group_premium.py +9 -7
  1920. pyrogram/raw/types/emoji_keyword.py +9 -7
  1921. pyrogram/raw/types/emoji_keyword_deleted.py +9 -7
  1922. pyrogram/raw/types/emoji_keywords_difference.py +11 -9
  1923. pyrogram/raw/types/emoji_language.py +8 -6
  1924. pyrogram/raw/types/emoji_list.py +9 -7
  1925. pyrogram/raw/types/emoji_list_not_modified.py +7 -5
  1926. pyrogram/raw/types/emoji_status.py +9 -7
  1927. pyrogram/raw/types/emoji_status_collectible.py +17 -15
  1928. pyrogram/raw/types/emoji_status_empty.py +7 -5
  1929. pyrogram/raw/types/emoji_url.py +8 -6
  1930. pyrogram/raw/types/encrypted_chat.py +14 -12
  1931. pyrogram/raw/types/encrypted_chat_discarded.py +9 -7
  1932. pyrogram/raw/types/encrypted_chat_empty.py +8 -6
  1933. pyrogram/raw/types/encrypted_chat_requested.py +14 -12
  1934. pyrogram/raw/types/encrypted_chat_waiting.py +12 -10
  1935. pyrogram/raw/types/encrypted_file.py +12 -10
  1936. pyrogram/raw/types/encrypted_file_empty.py +7 -5
  1937. pyrogram/raw/types/encrypted_message.py +12 -10
  1938. pyrogram/raw/types/encrypted_message_service.py +11 -9
  1939. pyrogram/raw/types/ephemeral_message.py +171 -0
  1940. pyrogram/raw/types/exported_chatlist_invite.py +14 -17
  1941. pyrogram/raw/types/exported_contact_token.py +9 -7
  1942. pyrogram/raw/types/exported_message_link.py +9 -7
  1943. pyrogram/raw/types/exported_story_link.py +8 -6
  1944. pyrogram/raw/types/fact_check.py +11 -9
  1945. pyrogram/raw/types/file_hash.py +10 -8
  1946. pyrogram/raw/types/folder.py +13 -11
  1947. pyrogram/raw/types/folder_peer.py +9 -7
  1948. pyrogram/raw/types/forum_topic.py +53 -29
  1949. pyrogram/raw/types/forum_topic_deleted.py +8 -6
  1950. pyrogram/raw/types/found_story.py +9 -7
  1951. pyrogram/raw/types/fragment/collectible_info.py +13 -11
  1952. pyrogram/raw/types/game.py +14 -12
  1953. pyrogram/raw/types/geo_point.py +11 -9
  1954. pyrogram/raw/types/geo_point_address.py +11 -9
  1955. pyrogram/raw/types/geo_point_empty.py +7 -5
  1956. pyrogram/raw/types/global_privacy_settings.py +15 -13
  1957. pyrogram/raw/types/group_call.py +70 -31
  1958. pyrogram/raw/types/group_call_discarded.py +10 -8
  1959. pyrogram/raw/types/group_call_donor.py +98 -0
  1960. pyrogram/raw/types/group_call_message.py +115 -0
  1961. pyrogram/raw/types/group_call_participant.py +39 -28
  1962. pyrogram/raw/types/group_call_participant_video.py +11 -9
  1963. pyrogram/raw/types/group_call_participant_video_source_group.py +9 -7
  1964. pyrogram/raw/types/group_call_stream_channel.py +10 -8
  1965. pyrogram/raw/types/help/app_config.py +9 -7
  1966. pyrogram/raw/types/help/app_config_not_modified.py +7 -5
  1967. pyrogram/raw/types/help/app_update.py +15 -13
  1968. pyrogram/raw/types/help/config_simple.py +6 -4
  1969. pyrogram/raw/types/help/countries_list.py +9 -7
  1970. pyrogram/raw/types/help/countries_list_not_modified.py +7 -5
  1971. pyrogram/raw/types/help/country.py +12 -10
  1972. pyrogram/raw/types/help/country_code.py +10 -8
  1973. pyrogram/raw/types/help/deep_link_info.py +10 -8
  1974. pyrogram/raw/types/help/deep_link_info_empty.py +7 -5
  1975. pyrogram/raw/types/help/invite_text.py +8 -6
  1976. pyrogram/raw/types/help/no_app_update.py +7 -5
  1977. pyrogram/raw/types/help/passport_config.py +9 -7
  1978. pyrogram/raw/types/help/passport_config_not_modified.py +7 -5
  1979. pyrogram/raw/types/help/peer_color_option.py +13 -11
  1980. pyrogram/raw/types/help/peer_color_profile_set.py +10 -8
  1981. pyrogram/raw/types/help/peer_color_set.py +8 -6
  1982. pyrogram/raw/types/help/peer_colors.py +9 -7
  1983. pyrogram/raw/types/help/peer_colors_not_modified.py +7 -5
  1984. pyrogram/raw/types/help/premium_promo.py +13 -11
  1985. pyrogram/raw/types/help/promo_data.py +17 -15
  1986. pyrogram/raw/types/help/promo_data_empty.py +8 -6
  1987. pyrogram/raw/types/help/recent_me_urls.py +10 -8
  1988. pyrogram/raw/types/help/support.py +9 -7
  1989. pyrogram/raw/types/help/support_name.py +8 -6
  1990. pyrogram/raw/types/help/terms_of_service.py +12 -10
  1991. pyrogram/raw/types/help/terms_of_service_update.py +9 -7
  1992. pyrogram/raw/types/help/terms_of_service_update_empty.py +8 -6
  1993. pyrogram/raw/types/help/timezones_list.py +9 -7
  1994. pyrogram/raw/types/help/timezones_list_not_modified.py +7 -5
  1995. pyrogram/raw/types/help/user_info.py +11 -9
  1996. pyrogram/raw/types/help/user_info_empty.py +7 -5
  1997. pyrogram/raw/types/high_score.py +10 -8
  1998. pyrogram/raw/types/http_wait.py +6 -4
  1999. pyrogram/raw/types/imported_contact.py +9 -7
  2000. pyrogram/raw/types/inline_bot_switch_pm.py +9 -7
  2001. pyrogram/raw/types/inline_bot_web_view.py +9 -7
  2002. pyrogram/raw/types/inline_query_peer_type_bot_pm.py +7 -5
  2003. pyrogram/raw/types/inline_query_peer_type_broadcast.py +7 -5
  2004. pyrogram/raw/types/inline_query_peer_type_chat.py +7 -5
  2005. pyrogram/raw/types/inline_query_peer_type_megagroup.py +7 -5
  2006. pyrogram/raw/types/inline_query_peer_type_pm.py +7 -5
  2007. pyrogram/raw/types/inline_query_peer_type_same_bot_pm.py +7 -5
  2008. pyrogram/raw/types/input_ai_compose_tone_default.py +74 -0
  2009. pyrogram/raw/types/input_ai_compose_tone_id.py +82 -0
  2010. pyrogram/raw/types/input_ai_compose_tone_single_use.py +74 -0
  2011. pyrogram/raw/types/input_ai_compose_tone_slug.py +74 -0
  2012. pyrogram/raw/types/input_app_event.py +11 -9
  2013. pyrogram/raw/types/input_bot_app_id.py +9 -7
  2014. pyrogram/raw/types/input_bot_app_short_name.py +9 -7
  2015. pyrogram/raw/types/input_bot_inline_message_game.py +8 -6
  2016. pyrogram/raw/types/input_bot_inline_message_id.py +19 -8
  2017. pyrogram/raw/types/input_bot_inline_message_id64.py +20 -9
  2018. pyrogram/raw/types/input_bot_inline_message_media_auto.py +11 -9
  2019. pyrogram/raw/types/input_bot_inline_message_media_contact.py +12 -10
  2020. pyrogram/raw/types/input_bot_inline_message_media_geo.py +12 -10
  2021. pyrogram/raw/types/input_bot_inline_message_media_invoice.py +15 -13
  2022. pyrogram/raw/types/input_bot_inline_message_media_venue.py +14 -12
  2023. pyrogram/raw/types/input_bot_inline_message_media_web_page.py +15 -13
  2024. pyrogram/raw/types/input_bot_inline_message_rich_message.py +86 -0
  2025. pyrogram/raw/types/input_bot_inline_message_text.py +12 -10
  2026. pyrogram/raw/types/input_bot_inline_result.py +15 -13
  2027. pyrogram/raw/types/input_bot_inline_result_document.py +13 -11
  2028. pyrogram/raw/types/input_bot_inline_result_game.py +10 -8
  2029. pyrogram/raw/types/input_bot_inline_result_photo.py +11 -9
  2030. pyrogram/raw/types/input_business_away_message.py +11 -9
  2031. pyrogram/raw/types/input_business_bot_recipients.py +14 -12
  2032. pyrogram/raw/types/input_business_chat_link.py +10 -8
  2033. pyrogram/raw/types/input_business_greeting_message.py +10 -8
  2034. pyrogram/raw/types/input_business_intro.py +10 -8
  2035. pyrogram/raw/types/input_business_recipients.py +13 -11
  2036. pyrogram/raw/types/input_channel.py +9 -7
  2037. pyrogram/raw/types/input_channel_empty.py +7 -5
  2038. pyrogram/raw/types/input_channel_from_message.py +10 -8
  2039. pyrogram/raw/types/input_chat_photo.py +8 -6
  2040. pyrogram/raw/types/input_chat_photo_empty.py +7 -5
  2041. pyrogram/raw/types/input_chat_theme.py +74 -0
  2042. pyrogram/raw/types/{message_action_phone_number_request.py → input_chat_theme_empty.py} +13 -11
  2043. pyrogram/raw/types/input_chat_theme_unique_gift.py +74 -0
  2044. pyrogram/raw/types/input_chat_uploaded_photo.py +11 -9
  2045. pyrogram/raw/types/input_chatlist_dialog_filter.py +8 -6
  2046. pyrogram/raw/types/input_check_password_empty.py +7 -5
  2047. pyrogram/raw/types/input_check_password_srp.py +10 -8
  2048. pyrogram/raw/types/input_client_proxy.py +9 -7
  2049. pyrogram/raw/types/input_collectible_phone.py +8 -6
  2050. pyrogram/raw/types/input_collectible_username.py +8 -6
  2051. pyrogram/raw/types/input_dialog_peer.py +8 -6
  2052. pyrogram/raw/types/input_dialog_peer_community.py +74 -0
  2053. pyrogram/raw/types/input_dialog_peer_folder.py +8 -6
  2054. pyrogram/raw/types/input_document.py +10 -8
  2055. pyrogram/raw/types/input_document_empty.py +7 -5
  2056. pyrogram/raw/types/input_document_file_location.py +11 -9
  2057. pyrogram/raw/types/input_emoji_status_collectible.py +9 -7
  2058. pyrogram/raw/types/input_encrypted_chat.py +9 -7
  2059. pyrogram/raw/types/input_encrypted_file.py +9 -7
  2060. pyrogram/raw/types/input_encrypted_file_big_uploaded.py +10 -8
  2061. pyrogram/raw/types/input_encrypted_file_empty.py +7 -5
  2062. pyrogram/raw/types/input_encrypted_file_location.py +9 -7
  2063. pyrogram/raw/types/input_encrypted_file_uploaded.py +11 -9
  2064. pyrogram/raw/types/input_file.py +11 -9
  2065. pyrogram/raw/types/input_file_big.py +10 -8
  2066. pyrogram/raw/types/input_file_location.py +11 -9
  2067. pyrogram/raw/types/input_file_story_document.py +8 -6
  2068. pyrogram/raw/types/input_folder_peer.py +9 -7
  2069. pyrogram/raw/types/input_game_id.py +9 -7
  2070. pyrogram/raw/types/input_game_short_name.py +9 -7
  2071. pyrogram/raw/types/input_geo_point.py +10 -8
  2072. pyrogram/raw/types/input_geo_point_empty.py +7 -5
  2073. pyrogram/raw/types/input_group_call.py +9 -7
  2074. pyrogram/raw/types/input_group_call_invite_message.py +8 -6
  2075. pyrogram/raw/types/input_group_call_slug.py +8 -6
  2076. pyrogram/raw/types/input_group_call_stream.py +12 -10
  2077. pyrogram/raw/types/input_invoice_business_bot_transfer_stars.py +9 -7
  2078. pyrogram/raw/types/input_invoice_chat_invite_subscription.py +8 -6
  2079. pyrogram/raw/types/input_invoice_message.py +9 -7
  2080. pyrogram/raw/types/input_invoice_premium_auth_code.py +74 -0
  2081. pyrogram/raw/types/input_invoice_premium_gift_code.py +9 -7
  2082. pyrogram/raw/types/input_invoice_premium_gift_stars.py +10 -8
  2083. pyrogram/raw/types/input_invoice_slug.py +8 -6
  2084. pyrogram/raw/types/input_invoice_star_gift.py +12 -10
  2085. pyrogram/raw/types/input_invoice_star_gift_auction_bid.py +116 -0
  2086. pyrogram/raw/types/input_invoice_star_gift_drop_original_details.py +74 -0
  2087. pyrogram/raw/types/input_invoice_star_gift_prepaid_upgrade.py +82 -0
  2088. pyrogram/raw/types/input_invoice_star_gift_resale.py +24 -14
  2089. pyrogram/raw/types/input_invoice_star_gift_transfer.py +9 -7
  2090. pyrogram/raw/types/input_invoice_star_gift_upgrade.py +9 -7
  2091. pyrogram/raw/types/input_invoice_stars.py +8 -6
  2092. pyrogram/raw/types/input_keyboard_button_request_peer.py +38 -17
  2093. pyrogram/raw/types/input_keyboard_button_url_auth.py +36 -15
  2094. pyrogram/raw/types/input_keyboard_button_user_profile.py +37 -14
  2095. pyrogram/raw/types/input_media_area_channel_post.py +10 -8
  2096. pyrogram/raw/types/input_media_area_venue.py +10 -8
  2097. pyrogram/raw/types/input_media_contact.py +11 -9
  2098. pyrogram/raw/types/input_media_dice.py +8 -6
  2099. pyrogram/raw/types/input_media_document.py +13 -11
  2100. pyrogram/raw/types/input_media_document_external.py +12 -10
  2101. pyrogram/raw/types/input_media_empty.py +7 -5
  2102. pyrogram/raw/types/input_media_game.py +8 -6
  2103. pyrogram/raw/types/input_media_geo_live.py +12 -10
  2104. pyrogram/raw/types/input_media_geo_point.py +8 -6
  2105. pyrogram/raw/types/input_media_invoice.py +16 -14
  2106. pyrogram/raw/types/input_media_paid_media.py +10 -8
  2107. pyrogram/raw/types/input_media_photo.py +31 -13
  2108. pyrogram/raw/types/input_media_photo_external.py +10 -8
  2109. pyrogram/raw/types/input_media_poll.py +40 -18
  2110. pyrogram/raw/types/input_media_stake_dice.py +90 -0
  2111. pyrogram/raw/types/input_media_story.py +9 -7
  2112. pyrogram/raw/types/input_media_todo.py +74 -0
  2113. pyrogram/raw/types/input_media_uploaded_document.py +18 -16
  2114. pyrogram/raw/types/input_media_uploaded_photo.py +32 -14
  2115. pyrogram/raw/types/input_media_venue.py +13 -11
  2116. pyrogram/raw/types/input_media_web_page.py +11 -9
  2117. pyrogram/raw/types/input_message_callback_query.py +9 -7
  2118. pyrogram/raw/types/input_message_entity_mention_name.py +10 -8
  2119. pyrogram/raw/types/input_message_id.py +8 -6
  2120. pyrogram/raw/types/input_message_pinned.py +7 -5
  2121. pyrogram/raw/types/input_message_read_metric.py +114 -0
  2122. pyrogram/raw/types/input_message_reply_to.py +8 -6
  2123. pyrogram/raw/types/input_messages_filter_chat_photos.py +7 -5
  2124. pyrogram/raw/types/input_messages_filter_contacts.py +7 -5
  2125. pyrogram/raw/types/input_messages_filter_document.py +7 -5
  2126. pyrogram/raw/types/input_messages_filter_empty.py +7 -5
  2127. pyrogram/raw/types/input_messages_filter_geo.py +7 -5
  2128. pyrogram/raw/types/input_messages_filter_gif.py +7 -5
  2129. pyrogram/raw/types/input_messages_filter_music.py +7 -5
  2130. pyrogram/raw/types/input_messages_filter_my_mentions.py +7 -5
  2131. pyrogram/raw/types/input_messages_filter_phone_calls.py +8 -6
  2132. pyrogram/raw/types/input_messages_filter_photo_video.py +7 -5
  2133. pyrogram/raw/types/input_messages_filter_photos.py +7 -5
  2134. pyrogram/raw/types/input_messages_filter_pinned.py +7 -5
  2135. pyrogram/raw/types/{input_messages_filter_photo_video_documents.py → input_messages_filter_poll.py} +12 -10
  2136. pyrogram/raw/types/input_messages_filter_round_video.py +7 -5
  2137. pyrogram/raw/types/input_messages_filter_round_voice.py +7 -5
  2138. pyrogram/raw/types/input_messages_filter_url.py +7 -5
  2139. pyrogram/raw/types/input_messages_filter_video.py +7 -5
  2140. pyrogram/raw/types/input_messages_filter_voice.py +7 -5
  2141. pyrogram/raw/types/input_notify_broadcasts.py +7 -5
  2142. pyrogram/raw/types/input_notify_chats.py +7 -5
  2143. pyrogram/raw/types/input_notify_community.py +74 -0
  2144. pyrogram/raw/types/input_notify_forum_topic.py +9 -7
  2145. pyrogram/raw/types/input_notify_peer.py +8 -6
  2146. pyrogram/raw/types/input_notify_users.py +7 -5
  2147. pyrogram/raw/types/input_page_block_map.py +106 -0
  2148. pyrogram/raw/types/input_passkey_credential_firebase_pnv.py +74 -0
  2149. pyrogram/raw/types/input_passkey_credential_public_key.py +90 -0
  2150. pyrogram/raw/types/input_passkey_response_login.py +98 -0
  2151. pyrogram/raw/types/input_passkey_response_register.py +82 -0
  2152. pyrogram/raw/types/input_payment_credentials.py +9 -7
  2153. pyrogram/raw/types/input_payment_credentials_apple_pay.py +8 -6
  2154. pyrogram/raw/types/input_payment_credentials_google_pay.py +8 -6
  2155. pyrogram/raw/types/input_payment_credentials_saved.py +9 -7
  2156. pyrogram/raw/types/input_peer_channel.py +9 -7
  2157. pyrogram/raw/types/input_peer_channel_from_message.py +10 -8
  2158. pyrogram/raw/types/input_peer_chat.py +8 -6
  2159. pyrogram/raw/types/input_peer_color_collectible.py +74 -0
  2160. pyrogram/raw/types/input_peer_empty.py +7 -5
  2161. pyrogram/raw/types/input_peer_notify_settings.py +14 -12
  2162. pyrogram/raw/types/input_peer_photo_file_location.py +10 -8
  2163. pyrogram/raw/types/input_peer_self.py +7 -5
  2164. pyrogram/raw/types/input_peer_user.py +9 -7
  2165. pyrogram/raw/types/input_peer_user_from_message.py +10 -8
  2166. pyrogram/raw/types/input_phone_call.py +9 -7
  2167. pyrogram/raw/types/input_phone_contact.py +30 -16
  2168. pyrogram/raw/types/input_photo.py +10 -8
  2169. pyrogram/raw/types/input_photo_empty.py +7 -5
  2170. pyrogram/raw/types/input_photo_file_location.py +11 -9
  2171. pyrogram/raw/types/input_photo_legacy_file_location.py +13 -11
  2172. pyrogram/raw/types/input_poll_answer.py +86 -0
  2173. pyrogram/raw/types/input_privacy_key_about.py +7 -5
  2174. pyrogram/raw/types/input_privacy_key_added_by_phone.py +7 -5
  2175. pyrogram/raw/types/input_privacy_key_birthday.py +7 -5
  2176. pyrogram/raw/types/input_privacy_key_chat_invite.py +7 -5
  2177. pyrogram/raw/types/input_privacy_key_forwards.py +7 -5
  2178. pyrogram/raw/types/input_privacy_key_no_paid_messages.py +7 -5
  2179. pyrogram/raw/types/input_privacy_key_phone_call.py +7 -5
  2180. pyrogram/raw/types/input_privacy_key_phone_number.py +7 -5
  2181. pyrogram/raw/types/input_privacy_key_phone_p2_p.py +7 -5
  2182. pyrogram/raw/types/input_privacy_key_profile_photo.py +7 -5
  2183. pyrogram/raw/types/input_privacy_key_saved_music.py +69 -0
  2184. pyrogram/raw/types/input_privacy_key_star_gifts_auto_save.py +7 -5
  2185. pyrogram/raw/types/input_privacy_key_status_timestamp.py +7 -5
  2186. pyrogram/raw/types/input_privacy_key_voice_messages.py +7 -5
  2187. pyrogram/raw/types/input_privacy_value_allow_all.py +7 -5
  2188. pyrogram/raw/types/input_privacy_value_allow_bots.py +7 -5
  2189. pyrogram/raw/types/input_privacy_value_allow_chat_participants.py +8 -6
  2190. pyrogram/raw/types/input_privacy_value_allow_close_friends.py +7 -5
  2191. pyrogram/raw/types/input_privacy_value_allow_contacts.py +7 -5
  2192. pyrogram/raw/types/input_privacy_value_allow_premium.py +7 -5
  2193. pyrogram/raw/types/input_privacy_value_allow_users.py +8 -6
  2194. pyrogram/raw/types/input_privacy_value_disallow_all.py +7 -5
  2195. pyrogram/raw/types/input_privacy_value_disallow_bots.py +7 -5
  2196. pyrogram/raw/types/input_privacy_value_disallow_chat_participants.py +8 -6
  2197. pyrogram/raw/types/input_privacy_value_disallow_contacts.py +7 -5
  2198. pyrogram/raw/types/input_privacy_value_disallow_users.py +8 -6
  2199. pyrogram/raw/types/input_quick_reply_shortcut.py +8 -6
  2200. pyrogram/raw/types/input_quick_reply_shortcut_id.py +8 -6
  2201. pyrogram/raw/{functions/folders/delete_folder.py → types/input_reply_to_ephemeral_message.py} +20 -18
  2202. pyrogram/raw/types/input_reply_to_message.py +46 -16
  2203. pyrogram/raw/types/input_reply_to_mono_forum.py +74 -0
  2204. pyrogram/raw/types/input_reply_to_story.py +9 -7
  2205. pyrogram/raw/types/input_report_reason_child_abuse.py +7 -5
  2206. pyrogram/raw/types/input_report_reason_copyright.py +7 -5
  2207. pyrogram/raw/types/input_report_reason_fake.py +7 -5
  2208. pyrogram/raw/types/input_report_reason_geo_irrelevant.py +7 -5
  2209. pyrogram/raw/types/input_report_reason_illegal_drugs.py +7 -5
  2210. pyrogram/raw/types/input_report_reason_other.py +7 -5
  2211. pyrogram/raw/types/input_report_reason_personal_details.py +7 -5
  2212. pyrogram/raw/types/input_report_reason_pornography.py +7 -5
  2213. pyrogram/raw/types/input_report_reason_spam.py +7 -5
  2214. pyrogram/raw/types/input_report_reason_violence.py +7 -5
  2215. pyrogram/raw/types/input_rich_file_document.py +82 -0
  2216. pyrogram/raw/types/input_rich_file_photo.py +82 -0
  2217. pyrogram/raw/types/input_rich_message.py +118 -0
  2218. pyrogram/raw/types/input_rich_message_html.py +98 -0
  2219. pyrogram/raw/types/input_rich_message_markdown.py +98 -0
  2220. pyrogram/raw/types/input_saved_star_gift_chat.py +9 -7
  2221. pyrogram/raw/types/input_saved_star_gift_slug.py +8 -6
  2222. pyrogram/raw/types/input_saved_star_gift_user.py +8 -6
  2223. pyrogram/raw/types/input_secure_file.py +9 -7
  2224. pyrogram/raw/types/input_secure_file_location.py +9 -7
  2225. pyrogram/raw/types/input_secure_file_uploaded.py +12 -10
  2226. pyrogram/raw/types/input_secure_value.py +15 -13
  2227. pyrogram/raw/types/input_send_message_rich_message_draft_action.py +82 -0
  2228. pyrogram/raw/types/input_single_media.py +11 -9
  2229. pyrogram/raw/types/input_star_gift_auction.py +74 -0
  2230. pyrogram/raw/types/input_star_gift_auction_slug.py +74 -0
  2231. pyrogram/raw/types/input_stars_transaction.py +9 -7
  2232. pyrogram/raw/types/input_sticker_set_animated_emoji.py +7 -5
  2233. pyrogram/raw/types/input_sticker_set_animated_emoji_animations.py +7 -5
  2234. pyrogram/raw/types/input_sticker_set_dice.py +8 -6
  2235. pyrogram/raw/types/input_sticker_set_emoji_channel_default_statuses.py +7 -5
  2236. pyrogram/raw/types/input_sticker_set_emoji_default_statuses.py +7 -5
  2237. pyrogram/raw/types/input_sticker_set_emoji_default_topic_icons.py +7 -5
  2238. pyrogram/raw/types/input_sticker_set_emoji_generic_animations.py +7 -5
  2239. pyrogram/raw/types/input_sticker_set_empty.py +7 -5
  2240. pyrogram/raw/types/input_sticker_set_id.py +9 -7
  2241. pyrogram/raw/types/input_sticker_set_item.py +11 -9
  2242. pyrogram/raw/types/input_sticker_set_premium_gifts.py +7 -5
  2243. pyrogram/raw/types/input_sticker_set_short_name.py +8 -6
  2244. pyrogram/raw/types/input_sticker_set_thumb.py +9 -7
  2245. pyrogram/raw/types/input_sticker_set_ton_gifts.py +69 -0
  2246. pyrogram/raw/types/input_stickered_media_document.py +8 -6
  2247. pyrogram/raw/types/input_stickered_media_photo.py +8 -6
  2248. pyrogram/raw/types/input_store_payment_auth_code.py +25 -15
  2249. pyrogram/raw/types/input_store_payment_gift_premium.py +10 -8
  2250. pyrogram/raw/types/input_store_payment_premium_gift_code.py +12 -10
  2251. pyrogram/raw/types/input_store_payment_premium_giveaway.py +17 -15
  2252. pyrogram/raw/types/input_store_payment_premium_subscription.py +9 -7
  2253. pyrogram/raw/types/input_store_payment_stars_gift.py +11 -9
  2254. pyrogram/raw/types/input_store_payment_stars_giveaway.py +19 -17
  2255. pyrogram/raw/types/input_store_payment_stars_topup.py +29 -15
  2256. pyrogram/raw/types/input_takeout_file_location.py +7 -5
  2257. pyrogram/raw/types/input_theme.py +9 -7
  2258. pyrogram/raw/types/input_theme_settings.py +14 -12
  2259. pyrogram/raw/types/input_theme_slug.py +8 -6
  2260. pyrogram/raw/types/input_user.py +9 -7
  2261. pyrogram/raw/types/input_user_empty.py +7 -5
  2262. pyrogram/raw/types/input_user_from_message.py +10 -8
  2263. pyrogram/raw/types/input_user_self.py +7 -5
  2264. pyrogram/raw/types/input_wall_paper.py +9 -7
  2265. pyrogram/raw/types/input_wall_paper_no_file.py +8 -6
  2266. pyrogram/raw/types/input_wall_paper_slug.py +8 -6
  2267. pyrogram/raw/types/input_web_document.py +11 -9
  2268. pyrogram/raw/types/input_web_file_audio_album_thumb_location.py +11 -9
  2269. pyrogram/raw/types/input_web_file_geo_point_location.py +13 -11
  2270. pyrogram/raw/types/input_web_file_location.py +9 -7
  2271. pyrogram/raw/types/invoice.py +22 -20
  2272. pyrogram/raw/types/ip_port.py +6 -4
  2273. pyrogram/raw/types/ip_port_secret.py +6 -4
  2274. pyrogram/raw/types/join_chat_bot_result_approved.py +69 -0
  2275. pyrogram/raw/types/join_chat_bot_result_declined.py +69 -0
  2276. pyrogram/raw/types/{message_action_user_joined.py → join_chat_bot_result_queued.py} +13 -11
  2277. pyrogram/raw/types/{web_page_url_pending.py → join_chat_bot_result_web_view.py} +13 -11
  2278. pyrogram/raw/types/json_array.py +8 -6
  2279. pyrogram/raw/types/json_bool.py +8 -6
  2280. pyrogram/raw/types/json_null.py +7 -5
  2281. pyrogram/raw/types/json_number.py +8 -6
  2282. pyrogram/raw/types/json_object.py +8 -6
  2283. pyrogram/raw/types/json_object_value.py +9 -7
  2284. pyrogram/raw/types/json_string.py +8 -6
  2285. pyrogram/raw/types/keyboard_button.py +36 -13
  2286. pyrogram/raw/types/keyboard_button_buy.py +36 -13
  2287. pyrogram/raw/types/keyboard_button_callback.py +34 -13
  2288. pyrogram/raw/types/keyboard_button_copy.py +37 -14
  2289. pyrogram/raw/types/keyboard_button_game.py +36 -13
  2290. pyrogram/raw/types/keyboard_button_request_geo_location.py +36 -13
  2291. pyrogram/raw/types/keyboard_button_request_peer.py +39 -16
  2292. pyrogram/raw/types/keyboard_button_request_phone.py +36 -13
  2293. pyrogram/raw/types/keyboard_button_request_poll.py +33 -12
  2294. pyrogram/raw/types/keyboard_button_row.py +8 -6
  2295. pyrogram/raw/types/keyboard_button_simple_web_view.py +37 -14
  2296. pyrogram/raw/types/keyboard_button_style.py +95 -0
  2297. pyrogram/raw/types/keyboard_button_switch_inline.py +35 -14
  2298. pyrogram/raw/types/keyboard_button_url.py +37 -14
  2299. pyrogram/raw/types/keyboard_button_url_auth.py +35 -14
  2300. pyrogram/raw/types/keyboard_button_user_profile.py +37 -14
  2301. pyrogram/raw/types/keyboard_button_web_view.py +37 -14
  2302. pyrogram/raw/types/labeled_price.py +9 -7
  2303. pyrogram/raw/types/lang_pack_difference.py +11 -9
  2304. pyrogram/raw/types/lang_pack_language.py +18 -16
  2305. pyrogram/raw/types/lang_pack_string.py +9 -7
  2306. pyrogram/raw/types/lang_pack_string_deleted.py +8 -6
  2307. pyrogram/raw/types/lang_pack_string_pluralized.py +14 -12
  2308. pyrogram/raw/types/mask_coords.py +11 -9
  2309. pyrogram/raw/types/media_area_channel_post.py +10 -8
  2310. pyrogram/raw/types/media_area_coordinates.py +13 -11
  2311. pyrogram/raw/types/media_area_geo_point.py +10 -8
  2312. pyrogram/raw/types/media_area_star_gift.py +9 -7
  2313. pyrogram/raw/types/media_area_suggested_reaction.py +11 -9
  2314. pyrogram/raw/types/media_area_url.py +9 -7
  2315. pyrogram/raw/types/media_area_venue.py +14 -12
  2316. pyrogram/raw/types/media_area_weather.py +11 -9
  2317. pyrogram/raw/types/message.py +121 -50
  2318. pyrogram/raw/types/message_action_boost_apply.py +8 -6
  2319. pyrogram/raw/types/message_action_bot_allowed.py +11 -9
  2320. pyrogram/raw/types/message_action_change_community.py +77 -0
  2321. pyrogram/raw/types/message_action_change_creator.py +74 -0
  2322. pyrogram/raw/types/message_action_channel_create.py +8 -6
  2323. pyrogram/raw/types/message_action_channel_migrate_from.py +9 -7
  2324. pyrogram/raw/types/message_action_chat_add_user.py +8 -6
  2325. pyrogram/raw/types/message_action_chat_create.py +9 -7
  2326. pyrogram/raw/types/message_action_chat_delete_photo.py +7 -5
  2327. pyrogram/raw/types/message_action_chat_delete_user.py +8 -6
  2328. pyrogram/raw/types/message_action_chat_edit_photo.py +8 -6
  2329. pyrogram/raw/types/message_action_chat_edit_title.py +8 -6
  2330. pyrogram/raw/types/message_action_chat_joined_by_link.py +8 -6
  2331. pyrogram/raw/types/message_action_chat_joined_by_request.py +7 -5
  2332. pyrogram/raw/types/message_action_chat_migrate_to.py +8 -6
  2333. pyrogram/raw/types/message_action_conference_call.py +13 -11
  2334. pyrogram/raw/types/message_action_contact_sign_up.py +7 -5
  2335. pyrogram/raw/types/message_action_custom_action.py +8 -6
  2336. pyrogram/raw/types/message_action_empty.py +7 -5
  2337. pyrogram/raw/types/message_action_game_score.py +9 -7
  2338. pyrogram/raw/types/message_action_geo_proximity_reached.py +10 -8
  2339. pyrogram/raw/types/message_action_gift_code.py +26 -24
  2340. pyrogram/raw/types/message_action_gift_premium.py +22 -20
  2341. pyrogram/raw/types/message_action_gift_stars.py +13 -11
  2342. pyrogram/raw/types/{premium_gift_option.py → message_action_gift_ton.py} +38 -37
  2343. pyrogram/raw/types/message_action_giveaway_launch.py +8 -6
  2344. pyrogram/raw/types/message_action_giveaway_results.py +10 -8
  2345. pyrogram/raw/types/message_action_group_call.py +9 -7
  2346. pyrogram/raw/types/message_action_group_call_scheduled.py +9 -7
  2347. pyrogram/raw/types/message_action_history_clear.py +7 -5
  2348. pyrogram/raw/types/message_action_invite_to_group_call.py +9 -7
  2349. pyrogram/raw/types/message_action_managed_bot_created.py +74 -0
  2350. pyrogram/raw/types/message_action_new_creator_pending.py +74 -0
  2351. pyrogram/raw/types/message_action_no_forwards_request.py +90 -0
  2352. pyrogram/raw/types/message_action_no_forwards_toggle.py +82 -0
  2353. pyrogram/raw/types/message_action_paid_messages_price.py +23 -13
  2354. pyrogram/raw/types/message_action_paid_messages_refunded.py +9 -7
  2355. pyrogram/raw/types/message_action_payment_refunded.py +12 -10
  2356. pyrogram/raw/types/message_action_payment_sent.py +13 -11
  2357. pyrogram/raw/types/message_action_payment_sent_me.py +16 -14
  2358. pyrogram/raw/types/message_action_phone_call.py +11 -9
  2359. pyrogram/raw/types/message_action_pin_message.py +7 -5
  2360. pyrogram/raw/types/{message_action_user_updated_photo.py → message_action_poll_append_answer.py} +19 -17
  2361. pyrogram/raw/types/message_action_poll_delete_answer.py +74 -0
  2362. pyrogram/raw/types/message_action_prize_stars.py +12 -10
  2363. pyrogram/raw/types/message_action_requested_peer.py +9 -7
  2364. pyrogram/raw/types/message_action_requested_peer_sent_me.py +9 -7
  2365. pyrogram/raw/types/message_action_screenshot_taken.py +7 -5
  2366. pyrogram/raw/types/message_action_secure_values_sent.py +8 -6
  2367. pyrogram/raw/types/message_action_secure_values_sent_me.py +9 -7
  2368. pyrogram/raw/types/message_action_set_chat_theme.py +17 -15
  2369. pyrogram/raw/types/message_action_set_chat_wall_paper.py +10 -8
  2370. pyrogram/raw/types/message_action_set_messages_ttl.py +9 -7
  2371. pyrogram/raw/types/message_action_star_gift.py +84 -33
  2372. pyrogram/raw/types/message_action_star_gift_purchase_offer.py +104 -0
  2373. pyrogram/raw/types/message_action_star_gift_purchase_offer_declined.py +90 -0
  2374. pyrogram/raw/types/message_action_star_gift_unique.py +74 -29
  2375. pyrogram/raw/types/{message_action_login_unknown_location.py → message_action_suggest_birthday.py} +19 -25
  2376. pyrogram/raw/types/message_action_suggest_profile_photo.py +8 -6
  2377. pyrogram/raw/types/message_action_suggested_post_approval.py +108 -0
  2378. pyrogram/raw/types/message_action_suggested_post_refund.py +74 -0
  2379. pyrogram/raw/types/message_action_suggested_post_success.py +74 -0
  2380. pyrogram/raw/types/message_action_todo_append_tasks.py +74 -0
  2381. pyrogram/raw/types/message_action_todo_completions.py +82 -0
  2382. pyrogram/raw/types/message_action_topic_create.py +19 -11
  2383. pyrogram/raw/types/message_action_topic_edit.py +11 -9
  2384. pyrogram/raw/types/message_action_web_view_data_sent.py +8 -6
  2385. pyrogram/raw/types/message_action_web_view_data_sent_me.py +9 -7
  2386. pyrogram/raw/types/message_empty.py +9 -7
  2387. pyrogram/raw/types/message_entity_bank_card.py +9 -7
  2388. pyrogram/raw/types/message_entity_blockquote.py +10 -8
  2389. pyrogram/raw/types/message_entity_bold.py +9 -7
  2390. pyrogram/raw/types/message_entity_bot_command.py +9 -7
  2391. pyrogram/raw/types/message_entity_cashtag.py +9 -7
  2392. pyrogram/raw/types/message_entity_code.py +9 -7
  2393. pyrogram/raw/types/message_entity_custom_emoji.py +11 -8
  2394. pyrogram/raw/types/message_entity_diff_delete.py +82 -0
  2395. pyrogram/raw/types/message_entity_diff_insert.py +82 -0
  2396. pyrogram/raw/types/message_entity_diff_replace.py +90 -0
  2397. pyrogram/raw/types/message_entity_email.py +9 -7
  2398. pyrogram/raw/types/message_entity_formatted_date.py +128 -0
  2399. pyrogram/raw/types/message_entity_hashtag.py +9 -7
  2400. pyrogram/raw/types/message_entity_italic.py +9 -7
  2401. pyrogram/raw/types/message_entity_mention.py +9 -7
  2402. pyrogram/raw/types/message_entity_mention_name.py +10 -8
  2403. pyrogram/raw/types/message_entity_phone.py +9 -7
  2404. pyrogram/raw/types/message_entity_pre.py +10 -8
  2405. pyrogram/raw/types/message_entity_spoiler.py +9 -7
  2406. pyrogram/raw/types/message_entity_strike.py +9 -7
  2407. pyrogram/raw/types/message_entity_text_url.py +10 -8
  2408. pyrogram/raw/types/message_entity_underline.py +9 -7
  2409. pyrogram/raw/types/message_entity_unknown.py +9 -7
  2410. pyrogram/raw/types/message_entity_url.py +9 -7
  2411. pyrogram/raw/types/message_extended_media.py +8 -6
  2412. pyrogram/raw/types/message_extended_media_preview.py +11 -9
  2413. pyrogram/raw/types/message_fwd_header.py +20 -18
  2414. pyrogram/raw/types/message_media_contact.py +12 -10
  2415. pyrogram/raw/types/message_media_dice.py +28 -14
  2416. pyrogram/raw/types/message_media_document.py +17 -15
  2417. pyrogram/raw/types/message_media_empty.py +7 -5
  2418. pyrogram/raw/types/message_media_game.py +8 -6
  2419. pyrogram/raw/types/message_media_geo.py +8 -6
  2420. pyrogram/raw/types/message_media_geo_live.py +11 -9
  2421. pyrogram/raw/types/message_media_giveaway.py +16 -14
  2422. pyrogram/raw/types/message_media_giveaway_results.py +19 -17
  2423. pyrogram/raw/types/message_media_invoice.py +17 -15
  2424. pyrogram/raw/types/message_media_paid_media.py +9 -7
  2425. pyrogram/raw/types/message_media_photo.py +31 -13
  2426. pyrogram/raw/types/message_media_poll.py +28 -14
  2427. pyrogram/raw/types/message_media_story.py +11 -9
  2428. pyrogram/raw/types/message_media_to_do.py +96 -0
  2429. pyrogram/raw/types/message_media_unsupported.py +7 -5
  2430. pyrogram/raw/types/message_media_venue.py +13 -11
  2431. pyrogram/raw/types/message_media_video_stream.py +92 -0
  2432. pyrogram/raw/types/message_media_web_page.py +12 -10
  2433. pyrogram/raw/types/message_peer_reaction.py +13 -11
  2434. pyrogram/raw/types/message_peer_vote.py +10 -8
  2435. pyrogram/raw/types/message_peer_vote_input_option.py +9 -7
  2436. pyrogram/raw/types/message_peer_vote_multiple.py +10 -8
  2437. pyrogram/raw/types/message_range.py +9 -7
  2438. pyrogram/raw/types/message_reactions.py +13 -11
  2439. pyrogram/raw/types/message_reactor.py +12 -10
  2440. pyrogram/raw/types/message_replies.py +14 -12
  2441. pyrogram/raw/types/message_reply_header.py +46 -20
  2442. pyrogram/raw/types/message_reply_story_header.py +9 -7
  2443. pyrogram/raw/types/message_report_option.py +9 -7
  2444. pyrogram/raw/types/message_service.py +37 -25
  2445. pyrogram/raw/types/message_views.py +10 -8
  2446. pyrogram/raw/types/messages/__init__.py +8 -2
  2447. pyrogram/raw/types/messages/affected_found_messages.py +11 -9
  2448. pyrogram/raw/types/messages/affected_history.py +13 -10
  2449. pyrogram/raw/types/messages/affected_messages.py +9 -7
  2450. pyrogram/raw/types/messages/all_stickers.py +9 -7
  2451. pyrogram/raw/types/messages/all_stickers_not_modified.py +7 -5
  2452. pyrogram/raw/types/messages/archived_stickers.py +9 -7
  2453. pyrogram/raw/types/messages/available_effects.py +10 -8
  2454. pyrogram/raw/types/messages/available_effects_not_modified.py +7 -5
  2455. pyrogram/raw/types/messages/available_reactions.py +9 -7
  2456. pyrogram/raw/types/messages/available_reactions_not_modified.py +7 -5
  2457. pyrogram/raw/types/messages/bot_app.py +11 -9
  2458. pyrogram/raw/types/messages/bot_callback_answer.py +15 -12
  2459. pyrogram/raw/types/messages/bot_prepared_inline_message.py +9 -7
  2460. pyrogram/raw/types/messages/bot_results.py +15 -13
  2461. pyrogram/raw/types/messages/channel_messages.py +19 -14
  2462. pyrogram/raw/types/messages/chat_admins_with_invites.py +9 -7
  2463. pyrogram/raw/types/messages/chat_full.py +10 -8
  2464. pyrogram/raw/types/messages/chat_invite_importers.py +10 -8
  2465. pyrogram/raw/types/messages/chat_invite_join_result_ok.py +84 -0
  2466. pyrogram/raw/types/messages/chat_invite_join_result_web_view.py +100 -0
  2467. pyrogram/raw/types/messages/chats.py +9 -7
  2468. pyrogram/raw/types/messages/chats_slice.py +10 -8
  2469. pyrogram/raw/types/messages/checked_history_import_peer.py +8 -6
  2470. pyrogram/raw/types/messages/composed_message_with_ai.py +95 -0
  2471. pyrogram/raw/types/messages/{web_view_result.py → composed_rich_message_with_ai.py} +17 -23
  2472. pyrogram/raw/types/messages/dh_config.py +11 -9
  2473. pyrogram/raw/types/messages/dh_config_not_modified.py +8 -6
  2474. pyrogram/raw/types/messages/dialog_filters.py +9 -7
  2475. pyrogram/raw/types/messages/dialogs.py +11 -9
  2476. pyrogram/raw/types/messages/dialogs_not_modified.py +8 -6
  2477. pyrogram/raw/types/messages/dialogs_slice.py +12 -10
  2478. pyrogram/raw/types/messages/discussion_message.py +14 -12
  2479. pyrogram/raw/types/messages/emoji_game_dice_info.py +118 -0
  2480. pyrogram/raw/types/messages/emoji_game_outcome.py +90 -0
  2481. pyrogram/raw/types/messages/emoji_game_unavailable.py +78 -0
  2482. pyrogram/raw/types/messages/emoji_groups.py +9 -7
  2483. pyrogram/raw/types/messages/emoji_groups_not_modified.py +7 -5
  2484. pyrogram/raw/types/messages/exported_chat_invite.py +9 -7
  2485. pyrogram/raw/types/messages/exported_chat_invite_replaced.py +10 -8
  2486. pyrogram/raw/types/messages/exported_chat_invites.py +10 -8
  2487. pyrogram/raw/types/messages/faved_stickers.py +10 -8
  2488. pyrogram/raw/types/messages/faved_stickers_not_modified.py +7 -5
  2489. pyrogram/raw/types/messages/featured_stickers.py +12 -10
  2490. pyrogram/raw/types/messages/featured_stickers_not_modified.py +8 -6
  2491. pyrogram/raw/types/messages/forum_topics.py +16 -14
  2492. pyrogram/raw/types/messages/found_sticker_sets.py +9 -7
  2493. pyrogram/raw/types/messages/found_sticker_sets_not_modified.py +7 -5
  2494. pyrogram/raw/types/messages/found_stickers.py +10 -8
  2495. pyrogram/raw/types/messages/found_stickers_not_modified.py +8 -6
  2496. pyrogram/raw/types/messages/high_scores.py +9 -7
  2497. pyrogram/raw/types/messages/history_import.py +8 -6
  2498. pyrogram/raw/types/messages/history_import_parsed.py +11 -8
  2499. pyrogram/raw/types/messages/inactive_chats.py +10 -8
  2500. pyrogram/raw/types/messages/invited_users.py +9 -7
  2501. pyrogram/raw/types/messages/message_edit_data.py +8 -6
  2502. pyrogram/raw/types/messages/message_reactions_list.py +12 -10
  2503. pyrogram/raw/types/messages/message_views.py +10 -8
  2504. pyrogram/raw/types/messages/messages.py +27 -14
  2505. pyrogram/raw/types/messages/messages_not_modified.py +12 -7
  2506. pyrogram/raw/types/messages/messages_slice.py +41 -18
  2507. pyrogram/raw/types/messages/my_stickers.py +9 -7
  2508. pyrogram/raw/types/messages/peer_dialogs.py +12 -10
  2509. pyrogram/raw/types/messages/peer_settings.py +10 -8
  2510. pyrogram/raw/types/messages/prepared_inline_message.py +12 -10
  2511. pyrogram/raw/types/messages/quick_replies.py +11 -9
  2512. pyrogram/raw/types/messages/quick_replies_not_modified.py +7 -5
  2513. pyrogram/raw/types/messages/reactions.py +9 -7
  2514. pyrogram/raw/types/messages/reactions_not_modified.py +7 -5
  2515. pyrogram/raw/types/messages/recent_stickers.py +11 -9
  2516. pyrogram/raw/types/messages/recent_stickers_not_modified.py +7 -5
  2517. pyrogram/raw/types/messages/saved_dialogs.py +13 -10
  2518. pyrogram/raw/types/messages/saved_dialogs_not_modified.py +10 -7
  2519. pyrogram/raw/types/messages/saved_dialogs_slice.py +14 -11
  2520. pyrogram/raw/types/messages/saved_gifs.py +9 -7
  2521. pyrogram/raw/types/messages/saved_gifs_not_modified.py +7 -5
  2522. pyrogram/raw/types/messages/saved_reaction_tags.py +9 -7
  2523. pyrogram/raw/types/messages/saved_reaction_tags_not_modified.py +7 -5
  2524. pyrogram/raw/types/messages/search_counter.py +10 -8
  2525. pyrogram/raw/types/messages/search_results_calendar.py +16 -14
  2526. pyrogram/raw/types/messages/search_results_positions.py +9 -7
  2527. pyrogram/raw/types/messages/sent_encrypted_file.py +10 -9
  2528. pyrogram/raw/types/messages/sent_encrypted_message.py +9 -8
  2529. pyrogram/raw/types/messages/sponsored_messages.py +34 -14
  2530. pyrogram/raw/types/messages/sponsored_messages_empty.py +7 -5
  2531. pyrogram/raw/types/messages/sticker_set.py +11 -9
  2532. pyrogram/raw/types/messages/sticker_set_install_result_archive.py +8 -6
  2533. pyrogram/raw/types/messages/sticker_set_install_result_success.py +7 -5
  2534. pyrogram/raw/types/messages/sticker_set_not_modified.py +7 -5
  2535. pyrogram/raw/types/messages/stickers.py +9 -7
  2536. pyrogram/raw/types/messages/stickers_not_modified.py +7 -5
  2537. pyrogram/raw/types/messages/transcribed_audio.py +12 -10
  2538. pyrogram/raw/types/messages/translate_result.py +8 -6
  2539. pyrogram/raw/types/messages/translated_rich_message.py +83 -0
  2540. pyrogram/raw/types/messages/votes_list.py +12 -10
  2541. pyrogram/raw/types/messages/web_page.py +10 -8
  2542. pyrogram/raw/types/messages/web_page_preview.py +22 -12
  2543. pyrogram/raw/types/missing_invitee.py +10 -8
  2544. pyrogram/raw/types/mono_forum_dialog.py +138 -0
  2545. pyrogram/raw/types/msg_detailed_info.py +6 -4
  2546. pyrogram/raw/types/msg_new_detailed_info.py +6 -4
  2547. pyrogram/raw/types/msg_resend_ans_req.py +6 -4
  2548. pyrogram/raw/types/msg_resend_req.py +6 -4
  2549. pyrogram/raw/types/msgs_ack.py +6 -4
  2550. pyrogram/raw/types/msgs_all_info.py +6 -4
  2551. pyrogram/raw/types/msgs_state_info.py +6 -4
  2552. pyrogram/raw/types/msgs_state_req.py +6 -4
  2553. pyrogram/raw/types/my_boost.py +12 -10
  2554. pyrogram/raw/types/nearest_dc.py +10 -8
  2555. pyrogram/raw/types/new_session_created.py +6 -4
  2556. pyrogram/raw/types/notification_sound_default.py +7 -5
  2557. pyrogram/raw/types/notification_sound_local.py +9 -7
  2558. pyrogram/raw/types/notification_sound_none.py +7 -5
  2559. pyrogram/raw/types/notification_sound_ringtone.py +8 -6
  2560. pyrogram/raw/types/notify_broadcasts.py +7 -5
  2561. pyrogram/raw/types/notify_chats.py +7 -5
  2562. pyrogram/raw/types/notify_community.py +74 -0
  2563. pyrogram/raw/types/notify_forum_topic.py +9 -7
  2564. pyrogram/raw/types/notify_peer.py +8 -6
  2565. pyrogram/raw/types/notify_users.py +7 -5
  2566. pyrogram/raw/types/outbox_read_date.py +8 -6
  2567. pyrogram/raw/types/page.py +15 -13
  2568. pyrogram/raw/types/page_block_anchor.py +8 -6
  2569. pyrogram/raw/types/page_block_audio.py +9 -7
  2570. pyrogram/raw/types/page_block_author_date.py +9 -7
  2571. pyrogram/raw/types/page_block_blockquote.py +9 -7
  2572. pyrogram/raw/types/{channel_admin_log_event_action_change_theme.py → page_block_blockquote_blocks.py} +23 -21
  2573. pyrogram/raw/types/page_block_channel.py +8 -6
  2574. pyrogram/raw/types/page_block_collage.py +9 -7
  2575. pyrogram/raw/types/page_block_cover.py +8 -6
  2576. pyrogram/raw/types/page_block_details.py +10 -8
  2577. pyrogram/raw/types/page_block_divider.py +7 -5
  2578. pyrogram/raw/types/page_block_embed.py +15 -13
  2579. pyrogram/raw/types/page_block_embed_post.py +14 -12
  2580. pyrogram/raw/types/page_block_footer.py +8 -6
  2581. pyrogram/raw/types/page_block_header.py +8 -6
  2582. pyrogram/raw/types/page_block_heading1.py +74 -0
  2583. pyrogram/raw/types/page_block_heading2.py +74 -0
  2584. pyrogram/raw/types/page_block_heading3.py +74 -0
  2585. pyrogram/raw/types/page_block_heading4.py +74 -0
  2586. pyrogram/raw/types/page_block_heading5.py +74 -0
  2587. pyrogram/raw/types/page_block_heading6.py +74 -0
  2588. pyrogram/raw/types/page_block_kicker.py +8 -6
  2589. pyrogram/raw/types/page_block_list.py +8 -6
  2590. pyrogram/raw/types/page_block_map.py +12 -10
  2591. pyrogram/raw/types/{message_action_ttl_change.py → page_block_math.py} +19 -17
  2592. pyrogram/raw/types/page_block_ordered_list.py +40 -12
  2593. pyrogram/raw/types/page_block_paragraph.py +8 -6
  2594. pyrogram/raw/types/page_block_photo.py +19 -11
  2595. pyrogram/raw/types/page_block_preformatted.py +9 -7
  2596. pyrogram/raw/types/page_block_pullquote.py +9 -7
  2597. pyrogram/raw/types/page_block_related_articles.py +9 -7
  2598. pyrogram/raw/types/page_block_slideshow.py +9 -7
  2599. pyrogram/raw/types/page_block_subheader.py +8 -6
  2600. pyrogram/raw/types/page_block_subtitle.py +8 -6
  2601. pyrogram/raw/types/page_block_table.py +11 -9
  2602. pyrogram/raw/types/page_block_thinking.py +74 -0
  2603. pyrogram/raw/types/page_block_title.py +8 -6
  2604. pyrogram/raw/types/page_block_unsupported.py +7 -5
  2605. pyrogram/raw/types/page_block_video.py +19 -11
  2606. pyrogram/raw/types/page_caption.py +9 -7
  2607. pyrogram/raw/types/page_list_item_blocks.py +28 -12
  2608. pyrogram/raw/types/page_list_item_text.py +28 -12
  2609. pyrogram/raw/types/page_list_ordered_item_blocks.py +52 -17
  2610. pyrogram/raw/types/page_list_ordered_item_text.py +52 -17
  2611. pyrogram/raw/types/page_related_article.py +14 -12
  2612. pyrogram/raw/types/page_table_cell.py +15 -13
  2613. pyrogram/raw/types/page_table_row.py +8 -6
  2614. pyrogram/raw/types/paid_reaction_privacy_anonymous.py +7 -5
  2615. pyrogram/raw/types/paid_reaction_privacy_default.py +7 -5
  2616. pyrogram/raw/types/paid_reaction_privacy_peer.py +8 -6
  2617. pyrogram/raw/types/passkey.py +119 -0
  2618. pyrogram/raw/types/password_kdf_algo_sha256_sha256_pbkdf2_hmacsha512iter100000_sha256_mod_pow.py +11 -9
  2619. pyrogram/raw/types/password_kdf_algo_unknown.py +7 -5
  2620. pyrogram/raw/types/payment_charge.py +9 -7
  2621. pyrogram/raw/types/payment_form_method.py +9 -7
  2622. pyrogram/raw/types/payment_requested_info.py +11 -9
  2623. pyrogram/raw/types/payment_saved_credentials_card.py +9 -7
  2624. pyrogram/raw/types/payments/__init__.py +10 -0
  2625. pyrogram/raw/types/payments/bank_card_data.py +9 -7
  2626. pyrogram/raw/types/payments/check_can_send_gift_result_fail.py +83 -0
  2627. pyrogram/raw/types/payments/check_can_send_gift_result_ok.py +78 -0
  2628. pyrogram/raw/types/payments/checked_gift_code.py +25 -23
  2629. pyrogram/raw/types/payments/connected_star_ref_bots.py +10 -8
  2630. pyrogram/raw/types/payments/exported_invoice.py +8 -6
  2631. pyrogram/raw/types/payments/giveaway_info.py +13 -11
  2632. pyrogram/raw/types/payments/giveaway_info_results.py +15 -13
  2633. pyrogram/raw/types/payments/payment_form.py +23 -21
  2634. pyrogram/raw/types/payments/payment_form_star_gift.py +9 -7
  2635. pyrogram/raw/types/payments/payment_form_stars.py +17 -27
  2636. pyrogram/raw/types/payments/payment_receipt.py +21 -19
  2637. pyrogram/raw/types/payments/payment_receipt_stars.py +17 -15
  2638. pyrogram/raw/types/payments/payment_result.py +8 -6
  2639. pyrogram/raw/types/payments/payment_verification_needed.py +8 -6
  2640. pyrogram/raw/types/payments/resale_star_gifts.py +15 -13
  2641. pyrogram/raw/types/payments/saved_info.py +9 -7
  2642. pyrogram/raw/types/payments/saved_star_gifts.py +15 -12
  2643. pyrogram/raw/types/payments/star_gift_active_auctions.py +99 -0
  2644. pyrogram/raw/types/payments/star_gift_active_auctions_not_modified.py +78 -0
  2645. pyrogram/raw/types/payments/star_gift_auction_acquired_gifts.py +99 -0
  2646. pyrogram/raw/types/payments/star_gift_auction_state.py +123 -0
  2647. pyrogram/raw/types/payments/star_gift_collections.py +83 -0
  2648. pyrogram/raw/types/payments/star_gift_collections_not_modified.py +78 -0
  2649. pyrogram/raw/types/payments/star_gift_upgrade_attributes.py +83 -0
  2650. pyrogram/raw/types/payments/star_gift_upgrade_preview.py +29 -11
  2651. pyrogram/raw/types/payments/star_gift_withdrawal_url.py +8 -6
  2652. pyrogram/raw/types/payments/star_gifts.py +30 -12
  2653. pyrogram/raw/types/payments/star_gifts_not_modified.py +7 -5
  2654. pyrogram/raw/types/payments/stars_revenue_ads_account_url.py +8 -6
  2655. pyrogram/raw/types/payments/stars_revenue_stats.py +29 -15
  2656. pyrogram/raw/types/payments/stars_revenue_withdrawal_url.py +8 -6
  2657. pyrogram/raw/types/payments/stars_status.py +15 -13
  2658. pyrogram/raw/types/payments/suggested_star_ref_bots.py +11 -9
  2659. pyrogram/raw/types/payments/unique_star_gift.py +22 -12
  2660. pyrogram/raw/types/payments/unique_star_gift_value_info.py +192 -0
  2661. pyrogram/raw/types/payments/validated_requested_info.py +9 -7
  2662. pyrogram/raw/types/peer_blocked.py +9 -7
  2663. pyrogram/raw/types/peer_channel.py +8 -6
  2664. pyrogram/raw/types/peer_chat.py +8 -6
  2665. pyrogram/raw/types/peer_color.py +9 -7
  2666. pyrogram/raw/types/peer_color_collectible.py +127 -0
  2667. pyrogram/raw/types/peer_located.py +10 -8
  2668. pyrogram/raw/types/peer_notify_settings.py +18 -16
  2669. pyrogram/raw/types/peer_self_located.py +8 -6
  2670. pyrogram/raw/types/peer_settings.py +28 -26
  2671. pyrogram/raw/types/peer_stories.py +10 -8
  2672. pyrogram/raw/types/peer_user.py +8 -6
  2673. pyrogram/raw/types/pending_suggestion.py +11 -9
  2674. pyrogram/raw/types/phone/__init__.py +1 -0
  2675. pyrogram/raw/types/phone/exported_group_call_invite.py +8 -6
  2676. pyrogram/raw/types/phone/group_call.py +12 -10
  2677. pyrogram/raw/types/phone/group_call_stars.py +107 -0
  2678. pyrogram/raw/types/phone/group_call_stream_channels.py +8 -6
  2679. pyrogram/raw/types/phone/group_call_stream_rtmp_url.py +9 -7
  2680. pyrogram/raw/types/phone/group_participants.py +13 -11
  2681. pyrogram/raw/types/phone/join_as_peers.py +10 -8
  2682. pyrogram/raw/types/phone/phone_call.py +9 -7
  2683. pyrogram/raw/types/phone_call.py +21 -19
  2684. pyrogram/raw/types/phone_call_accepted.py +15 -13
  2685. pyrogram/raw/types/phone_call_discard_reason_busy.py +7 -5
  2686. pyrogram/raw/types/phone_call_discard_reason_disconnect.py +7 -5
  2687. pyrogram/raw/types/phone_call_discard_reason_hangup.py +7 -5
  2688. pyrogram/raw/types/phone_call_discard_reason_migrate_conference_call.py +8 -6
  2689. pyrogram/raw/types/phone_call_discard_reason_missed.py +7 -5
  2690. pyrogram/raw/types/phone_call_discarded.py +13 -11
  2691. pyrogram/raw/types/phone_call_empty.py +8 -6
  2692. pyrogram/raw/types/phone_call_protocol.py +12 -10
  2693. pyrogram/raw/types/phone_call_requested.py +15 -13
  2694. pyrogram/raw/types/phone_call_waiting.py +15 -13
  2695. pyrogram/raw/types/phone_connection.py +13 -11
  2696. pyrogram/raw/types/phone_connection_webrtc.py +15 -13
  2697. pyrogram/raw/types/photo.py +15 -13
  2698. pyrogram/raw/types/photo_cached_size.py +11 -9
  2699. pyrogram/raw/types/photo_empty.py +8 -6
  2700. pyrogram/raw/types/photo_path_size.py +9 -7
  2701. pyrogram/raw/types/photo_size.py +11 -9
  2702. pyrogram/raw/types/photo_size_empty.py +8 -6
  2703. pyrogram/raw/types/photo_size_progressive.py +11 -9
  2704. pyrogram/raw/types/photo_stripped_size.py +9 -7
  2705. pyrogram/raw/types/photos/photo.py +9 -7
  2706. pyrogram/raw/types/photos/photos.py +9 -7
  2707. pyrogram/raw/types/photos/photos_slice.py +10 -8
  2708. pyrogram/raw/types/poll.py +75 -19
  2709. pyrogram/raw/types/poll_answer.py +47 -14
  2710. pyrogram/raw/types/poll_answer_voters.py +32 -19
  2711. pyrogram/raw/types/poll_results.py +40 -16
  2712. pyrogram/raw/types/pong.py +6 -4
  2713. pyrogram/raw/types/popular_contact.py +9 -7
  2714. pyrogram/raw/types/post_address.py +13 -11
  2715. pyrogram/raw/types/post_interaction_counters_message.py +11 -9
  2716. pyrogram/raw/types/post_interaction_counters_story.py +11 -9
  2717. pyrogram/raw/types/pq_inner_data.py +6 -4
  2718. pyrogram/raw/types/pq_inner_data_dc.py +6 -4
  2719. pyrogram/raw/types/pq_inner_data_temp.py +6 -4
  2720. pyrogram/raw/types/pq_inner_data_temp_dc.py +6 -4
  2721. pyrogram/raw/types/premium/boosts_list.py +11 -9
  2722. pyrogram/raw/types/premium/boosts_status.py +17 -15
  2723. pyrogram/raw/types/premium/my_boosts.py +10 -8
  2724. pyrogram/raw/types/premium_gift_code_option.py +13 -11
  2725. pyrogram/raw/types/premium_subscription_option.py +15 -13
  2726. pyrogram/raw/types/prepaid_giveaway.py +11 -9
  2727. pyrogram/raw/types/prepaid_stars_giveaway.py +12 -10
  2728. pyrogram/raw/types/privacy_key_about.py +7 -5
  2729. pyrogram/raw/types/privacy_key_added_by_phone.py +7 -5
  2730. pyrogram/raw/types/privacy_key_birthday.py +7 -5
  2731. pyrogram/raw/types/privacy_key_chat_invite.py +7 -5
  2732. pyrogram/raw/types/privacy_key_forwards.py +7 -5
  2733. pyrogram/raw/types/privacy_key_no_paid_messages.py +7 -5
  2734. pyrogram/raw/types/privacy_key_phone_call.py +7 -5
  2735. pyrogram/raw/types/privacy_key_phone_number.py +7 -5
  2736. pyrogram/raw/types/privacy_key_phone_p2_p.py +7 -5
  2737. pyrogram/raw/types/privacy_key_profile_photo.py +7 -5
  2738. pyrogram/raw/types/{message_action_created_broadcast_list.py → privacy_key_saved_music.py} +13 -11
  2739. pyrogram/raw/types/privacy_key_star_gifts_auto_save.py +7 -5
  2740. pyrogram/raw/types/privacy_key_status_timestamp.py +7 -5
  2741. pyrogram/raw/types/privacy_key_voice_messages.py +7 -5
  2742. pyrogram/raw/types/privacy_value_allow_all.py +7 -5
  2743. pyrogram/raw/types/privacy_value_allow_bots.py +7 -5
  2744. pyrogram/raw/types/privacy_value_allow_chat_participants.py +8 -6
  2745. pyrogram/raw/types/privacy_value_allow_close_friends.py +7 -5
  2746. pyrogram/raw/types/privacy_value_allow_contacts.py +7 -5
  2747. pyrogram/raw/types/privacy_value_allow_premium.py +7 -5
  2748. pyrogram/raw/types/privacy_value_allow_users.py +8 -6
  2749. pyrogram/raw/types/privacy_value_disallow_all.py +7 -5
  2750. pyrogram/raw/types/privacy_value_disallow_bots.py +7 -5
  2751. pyrogram/raw/types/privacy_value_disallow_chat_participants.py +8 -6
  2752. pyrogram/raw/types/privacy_value_disallow_contacts.py +7 -5
  2753. pyrogram/raw/types/privacy_value_disallow_users.py +8 -6
  2754. pyrogram/raw/types/profile_tab_files.py +69 -0
  2755. pyrogram/raw/types/{user_status_hidden.py → profile_tab_gifs.py} +13 -11
  2756. pyrogram/raw/types/{messages/message_empty.py → profile_tab_gifts.py} +13 -11
  2757. pyrogram/raw/types/profile_tab_links.py +69 -0
  2758. pyrogram/raw/types/profile_tab_media.py +69 -0
  2759. pyrogram/raw/types/profile_tab_music.py +69 -0
  2760. pyrogram/raw/types/profile_tab_posts.py +69 -0
  2761. pyrogram/raw/types/profile_tab_voice.py +69 -0
  2762. pyrogram/raw/types/public_forward_message.py +8 -6
  2763. pyrogram/raw/types/public_forward_story.py +9 -7
  2764. pyrogram/raw/types/quick_reply.py +11 -9
  2765. pyrogram/raw/types/reaction_count.py +10 -8
  2766. pyrogram/raw/types/reaction_custom_emoji.py +8 -6
  2767. pyrogram/raw/types/reaction_emoji.py +8 -6
  2768. pyrogram/raw/types/reaction_empty.py +7 -5
  2769. pyrogram/raw/types/reaction_notifications_from_all.py +7 -5
  2770. pyrogram/raw/types/reaction_notifications_from_contacts.py +7 -5
  2771. pyrogram/raw/types/reaction_paid.py +7 -5
  2772. pyrogram/raw/types/reactions_notify_settings.py +26 -14
  2773. pyrogram/raw/types/read_participant_date.py +9 -7
  2774. pyrogram/raw/types/received_notify_message.py +9 -7
  2775. pyrogram/raw/types/recent_me_url_chat.py +9 -7
  2776. pyrogram/raw/types/recent_me_url_chat_invite.py +9 -7
  2777. pyrogram/raw/types/recent_me_url_sticker_set.py +9 -7
  2778. pyrogram/raw/types/recent_me_url_unknown.py +8 -6
  2779. pyrogram/raw/types/recent_me_url_user.py +9 -7
  2780. pyrogram/raw/types/recent_story.py +92 -0
  2781. pyrogram/raw/types/reply_inline_markup.py +8 -6
  2782. pyrogram/raw/types/reply_keyboard_force_reply.py +10 -8
  2783. pyrogram/raw/types/reply_keyboard_hide.py +8 -6
  2784. pyrogram/raw/types/reply_keyboard_markup.py +13 -11
  2785. pyrogram/raw/types/report_result_add_comment.py +11 -8
  2786. pyrogram/raw/types/report_result_choose_option.py +11 -8
  2787. pyrogram/raw/types/report_result_reported.py +9 -6
  2788. pyrogram/raw/types/request_peer_type_broadcast.py +22 -20
  2789. pyrogram/raw/types/request_peer_type_chat.py +33 -31
  2790. pyrogram/raw/types/request_peer_type_create_bot.py +92 -0
  2791. pyrogram/raw/types/request_peer_type_user.py +9 -7
  2792. pyrogram/raw/types/requested_peer_channel.py +11 -9
  2793. pyrogram/raw/types/requested_peer_chat.py +10 -8
  2794. pyrogram/raw/types/requested_peer_user.py +12 -10
  2795. pyrogram/raw/types/requirement_to_contact_empty.py +7 -5
  2796. pyrogram/raw/types/requirement_to_contact_paid_messages.py +8 -6
  2797. pyrogram/raw/types/requirement_to_contact_premium.py +7 -5
  2798. pyrogram/raw/types/res_pq.py +6 -4
  2799. pyrogram/raw/types/restriction_reason.py +10 -8
  2800. pyrogram/raw/types/rich_message.py +104 -0
  2801. pyrogram/raw/types/rpc_answer_dropped.py +6 -4
  2802. pyrogram/raw/types/rpc_answer_dropped_running.py +6 -4
  2803. pyrogram/raw/types/rpc_answer_unknown.py +6 -4
  2804. pyrogram/raw/types/rpc_error.py +6 -4
  2805. pyrogram/raw/types/rpc_result.py +6 -4
  2806. pyrogram/raw/types/saved_dialog.py +10 -8
  2807. pyrogram/raw/types/saved_phone_contact.py +11 -9
  2808. pyrogram/raw/types/saved_reaction_tag.py +10 -8
  2809. pyrogram/raw/types/saved_star_gift.py +81 -27
  2810. pyrogram/raw/types/search_posts_flood.py +116 -0
  2811. pyrogram/raw/types/search_result_position.py +10 -8
  2812. pyrogram/raw/types/search_results_calendar_period.py +11 -9
  2813. pyrogram/raw/types/secure_credentials_encrypted.py +10 -8
  2814. pyrogram/raw/types/secure_data.py +10 -8
  2815. pyrogram/raw/types/secure_file.py +14 -12
  2816. pyrogram/raw/types/secure_file_empty.py +7 -5
  2817. pyrogram/raw/types/secure_password_kdf_algo_pbkdf2_hmacsha512iter100000.py +8 -6
  2818. pyrogram/raw/types/secure_password_kdf_algo_sha512.py +8 -6
  2819. pyrogram/raw/types/secure_password_kdf_algo_unknown.py +7 -5
  2820. pyrogram/raw/types/secure_plain_email.py +8 -6
  2821. pyrogram/raw/types/secure_plain_phone.py +8 -6
  2822. pyrogram/raw/types/secure_required_type.py +11 -9
  2823. pyrogram/raw/types/secure_required_type_one_of.py +8 -6
  2824. pyrogram/raw/types/secure_secret_settings.py +10 -8
  2825. pyrogram/raw/types/secure_value.py +16 -14
  2826. pyrogram/raw/types/secure_value_error.py +10 -8
  2827. pyrogram/raw/types/secure_value_error_data.py +11 -9
  2828. pyrogram/raw/types/secure_value_error_file.py +10 -8
  2829. pyrogram/raw/types/secure_value_error_files.py +10 -8
  2830. pyrogram/raw/types/secure_value_error_front_side.py +10 -8
  2831. pyrogram/raw/types/secure_value_error_reverse_side.py +10 -8
  2832. pyrogram/raw/types/secure_value_error_selfie.py +10 -8
  2833. pyrogram/raw/types/secure_value_error_translation_file.py +10 -8
  2834. pyrogram/raw/types/secure_value_error_translation_files.py +10 -8
  2835. pyrogram/raw/types/secure_value_hash.py +9 -7
  2836. pyrogram/raw/types/secure_value_type_address.py +7 -5
  2837. pyrogram/raw/types/secure_value_type_bank_statement.py +7 -5
  2838. pyrogram/raw/types/secure_value_type_driver_license.py +7 -5
  2839. pyrogram/raw/types/secure_value_type_email.py +7 -5
  2840. pyrogram/raw/types/secure_value_type_identity_card.py +7 -5
  2841. pyrogram/raw/types/secure_value_type_internal_passport.py +7 -5
  2842. pyrogram/raw/types/secure_value_type_passport.py +7 -5
  2843. pyrogram/raw/types/secure_value_type_passport_registration.py +7 -5
  2844. pyrogram/raw/types/secure_value_type_personal_details.py +7 -5
  2845. pyrogram/raw/types/secure_value_type_phone.py +7 -5
  2846. pyrogram/raw/types/secure_value_type_rental_agreement.py +7 -5
  2847. pyrogram/raw/types/secure_value_type_temporary_registration.py +7 -5
  2848. pyrogram/raw/types/secure_value_type_utility_bill.py +7 -5
  2849. pyrogram/raw/types/send_as_peer.py +9 -7
  2850. pyrogram/raw/types/send_message_cancel_action.py +7 -5
  2851. pyrogram/raw/types/send_message_choose_contact_action.py +7 -5
  2852. pyrogram/raw/types/send_message_choose_sticker_action.py +7 -5
  2853. pyrogram/raw/types/send_message_emoji_interaction.py +10 -8
  2854. pyrogram/raw/types/send_message_emoji_interaction_seen.py +8 -6
  2855. pyrogram/raw/types/send_message_game_play_action.py +7 -5
  2856. pyrogram/raw/types/send_message_geo_location_action.py +7 -5
  2857. pyrogram/raw/types/send_message_history_import_action.py +8 -6
  2858. pyrogram/raw/types/send_message_record_audio_action.py +7 -5
  2859. pyrogram/raw/types/send_message_record_round_action.py +7 -5
  2860. pyrogram/raw/types/send_message_record_video_action.py +7 -5
  2861. pyrogram/raw/types/send_message_rich_message_draft_action.py +82 -0
  2862. pyrogram/raw/types/send_message_text_draft_action.py +82 -0
  2863. pyrogram/raw/types/send_message_typing_action.py +7 -5
  2864. pyrogram/raw/types/send_message_upload_audio_action.py +8 -6
  2865. pyrogram/raw/types/send_message_upload_document_action.py +8 -6
  2866. pyrogram/raw/types/send_message_upload_photo_action.py +8 -6
  2867. pyrogram/raw/types/send_message_upload_round_action.py +8 -6
  2868. pyrogram/raw/types/send_message_upload_video_action.py +8 -6
  2869. pyrogram/raw/types/server_dh_inner_data.py +6 -4
  2870. pyrogram/raw/types/server_dh_params_fail.py +6 -4
  2871. pyrogram/raw/types/server_dh_params_ok.py +6 -4
  2872. pyrogram/raw/types/shipping_option.py +10 -8
  2873. pyrogram/raw/types/sms_job.py +10 -8
  2874. pyrogram/raw/types/smsjobs/eligible_to_join.py +9 -7
  2875. pyrogram/raw/types/smsjobs/status.py +15 -13
  2876. pyrogram/raw/types/speaking_in_group_call_action.py +7 -5
  2877. pyrogram/raw/types/sponsored_message.py +43 -23
  2878. pyrogram/raw/types/sponsored_message_report_option.py +9 -7
  2879. pyrogram/raw/types/sponsored_peer.py +11 -9
  2880. pyrogram/raw/types/star_gift.py +133 -30
  2881. pyrogram/raw/types/star_gift_active_auction_state.py +90 -0
  2882. pyrogram/raw/types/star_gift_attribute_backdrop.py +23 -21
  2883. pyrogram/raw/types/star_gift_attribute_counter.py +9 -7
  2884. pyrogram/raw/types/star_gift_attribute_id_backdrop.py +8 -6
  2885. pyrogram/raw/types/star_gift_attribute_id_model.py +8 -6
  2886. pyrogram/raw/types/star_gift_attribute_id_pattern.py +8 -6
  2887. pyrogram/raw/types/star_gift_attribute_model.py +29 -19
  2888. pyrogram/raw/types/star_gift_attribute_original_details.py +11 -9
  2889. pyrogram/raw/types/star_gift_attribute_pattern.py +19 -17
  2890. pyrogram/raw/types/star_gift_attribute_rarity.py +74 -0
  2891. pyrogram/raw/types/star_gift_attribute_rarity_epic.py +69 -0
  2892. pyrogram/raw/types/star_gift_attribute_rarity_legendary.py +69 -0
  2893. pyrogram/raw/types/star_gift_attribute_rarity_rare.py +69 -0
  2894. pyrogram/raw/types/star_gift_attribute_rarity_uncommon.py +69 -0
  2895. pyrogram/raw/types/star_gift_auction_acquired_gift.py +133 -0
  2896. pyrogram/raw/types/star_gift_auction_round.py +82 -0
  2897. pyrogram/raw/types/star_gift_auction_round_extendable.py +98 -0
  2898. pyrogram/raw/types/star_gift_auction_state.py +162 -0
  2899. pyrogram/raw/types/star_gift_auction_state_finished.py +119 -0
  2900. pyrogram/raw/types/star_gift_auction_state_not_modified.py +69 -0
  2901. pyrogram/raw/types/star_gift_auction_user_state.py +119 -0
  2902. pyrogram/raw/types/star_gift_background.py +90 -0
  2903. pyrogram/raw/types/star_gift_collection.py +120 -0
  2904. pyrogram/raw/types/star_gift_unique.py +154 -28
  2905. pyrogram/raw/types/star_gift_upgrade_price.py +82 -0
  2906. pyrogram/raw/types/star_ref_program.py +12 -10
  2907. pyrogram/raw/types/stars_amount.py +9 -7
  2908. pyrogram/raw/types/stars_gift_option.py +12 -10
  2909. pyrogram/raw/types/stars_giveaway_option.py +15 -13
  2910. pyrogram/raw/types/stars_giveaway_winners_option.py +10 -8
  2911. pyrogram/raw/types/stars_rating.py +101 -0
  2912. pyrogram/raw/types/stars_revenue_status.py +12 -10
  2913. pyrogram/raw/types/stars_subscription.py +19 -17
  2914. pyrogram/raw/types/stars_subscription_pricing.py +9 -7
  2915. pyrogram/raw/types/stars_ton_amount.py +74 -0
  2916. pyrogram/raw/types/stars_topup_option.py +12 -10
  2917. pyrogram/raw/types/stars_transaction.py +100 -68
  2918. pyrogram/raw/types/stars_transaction_peer.py +8 -6
  2919. pyrogram/raw/types/stars_transaction_peer_ads.py +7 -5
  2920. pyrogram/raw/types/stars_transaction_peer_api.py +7 -5
  2921. pyrogram/raw/types/stars_transaction_peer_app_store.py +7 -5
  2922. pyrogram/raw/types/stars_transaction_peer_fragment.py +7 -5
  2923. pyrogram/raw/types/stars_transaction_peer_play_market.py +7 -5
  2924. pyrogram/raw/types/stars_transaction_peer_premium_bot.py +7 -5
  2925. pyrogram/raw/types/stars_transaction_peer_unsupported.py +7 -5
  2926. pyrogram/raw/types/stats/__init__.py +1 -3
  2927. pyrogram/raw/types/stats/broadcast_stats.py +29 -27
  2928. pyrogram/raw/types/stats/megagroup_stats.py +24 -22
  2929. pyrogram/raw/types/stats/message_stats.py +9 -7
  2930. pyrogram/raw/types/stats/poll_stats.py +83 -0
  2931. pyrogram/raw/types/stats/public_forwards.py +12 -10
  2932. pyrogram/raw/types/stats/story_stats.py +9 -7
  2933. pyrogram/raw/types/stats_abs_value_and_prev.py +9 -7
  2934. pyrogram/raw/types/stats_date_range_days.py +9 -7
  2935. pyrogram/raw/types/stats_graph.py +9 -7
  2936. pyrogram/raw/types/stats_graph_async.py +8 -6
  2937. pyrogram/raw/types/stats_graph_error.py +8 -6
  2938. pyrogram/raw/types/stats_group_top_admin.py +11 -9
  2939. pyrogram/raw/types/stats_group_top_inviter.py +9 -7
  2940. pyrogram/raw/types/stats_group_top_poster.py +10 -8
  2941. pyrogram/raw/types/stats_percent_value.py +10 -7
  2942. pyrogram/raw/types/stats_url.py +8 -15
  2943. pyrogram/raw/types/sticker_keyword.py +9 -7
  2944. pyrogram/raw/types/sticker_pack.py +10 -7
  2945. pyrogram/raw/types/sticker_set.py +25 -23
  2946. pyrogram/raw/types/sticker_set_covered.py +9 -7
  2947. pyrogram/raw/types/sticker_set_full_covered.py +12 -9
  2948. pyrogram/raw/types/sticker_set_multi_covered.py +9 -7
  2949. pyrogram/raw/types/sticker_set_no_covered.py +8 -6
  2950. pyrogram/raw/types/stickers/suggested_short_name.py +8 -6
  2951. pyrogram/raw/types/storage/file_gif.py +7 -5
  2952. pyrogram/raw/types/storage/file_jpeg.py +7 -5
  2953. pyrogram/raw/types/storage/file_mov.py +7 -5
  2954. pyrogram/raw/types/storage/file_mp3.py +7 -5
  2955. pyrogram/raw/types/storage/file_mp4.py +7 -5
  2956. pyrogram/raw/types/storage/file_partial.py +7 -5
  2957. pyrogram/raw/types/storage/file_pdf.py +7 -5
  2958. pyrogram/raw/types/storage/file_png.py +7 -5
  2959. pyrogram/raw/types/storage/file_unknown.py +7 -5
  2960. pyrogram/raw/types/storage/file_webp.py +7 -5
  2961. pyrogram/raw/types/stories/__init__.py +2 -0
  2962. pyrogram/raw/types/stories/albums.py +91 -0
  2963. pyrogram/raw/types/stories/albums_not_modified.py +78 -0
  2964. pyrogram/raw/types/stories/all_stories.py +14 -12
  2965. pyrogram/raw/types/stories/all_stories_not_modified.py +9 -7
  2966. pyrogram/raw/types/stories/can_send_story_count.py +8 -6
  2967. pyrogram/raw/types/stories/found_stories.py +12 -10
  2968. pyrogram/raw/types/stories/peer_stories.py +10 -8
  2969. pyrogram/raw/types/stories/stories.py +14 -11
  2970. pyrogram/raw/types/stories/story_reactions_list.py +12 -10
  2971. pyrogram/raw/types/stories/story_views.py +9 -7
  2972. pyrogram/raw/types/stories/story_views_list.py +15 -13
  2973. pyrogram/raw/types/stories_stealth_mode.py +9 -7
  2974. pyrogram/raw/types/story_album.py +114 -0
  2975. pyrogram/raw/types/story_fwd_header.py +10 -8
  2976. pyrogram/raw/types/story_item.py +53 -31
  2977. pyrogram/raw/types/story_item_deleted.py +8 -6
  2978. pyrogram/raw/types/story_item_skipped.py +20 -12
  2979. pyrogram/raw/types/story_reaction.py +10 -8
  2980. pyrogram/raw/types/story_reaction_public_forward.py +8 -6
  2981. pyrogram/raw/types/story_reaction_public_repost.py +9 -7
  2982. pyrogram/raw/types/story_view.py +12 -10
  2983. pyrogram/raw/types/story_view_public_forward.py +10 -8
  2984. pyrogram/raw/types/story_view_public_repost.py +11 -9
  2985. pyrogram/raw/types/story_views.py +13 -11
  2986. pyrogram/raw/types/suggested_post.py +99 -0
  2987. pyrogram/raw/types/text_anchor.py +9 -7
  2988. pyrogram/raw/types/text_auto_email.py +74 -0
  2989. pyrogram/raw/types/text_auto_phone.py +74 -0
  2990. pyrogram/raw/types/text_auto_url.py +74 -0
  2991. pyrogram/raw/types/text_bank_card.py +74 -0
  2992. pyrogram/raw/types/text_bold.py +8 -6
  2993. pyrogram/raw/types/text_bot_command.py +74 -0
  2994. pyrogram/raw/types/text_cashtag.py +74 -0
  2995. pyrogram/raw/types/text_concat.py +8 -6
  2996. pyrogram/raw/types/text_custom_emoji.py +82 -0
  2997. pyrogram/raw/types/text_date.py +120 -0
  2998. pyrogram/raw/types/text_diff.py +82 -0
  2999. pyrogram/raw/types/text_email.py +9 -7
  3000. pyrogram/raw/types/text_empty.py +7 -5
  3001. pyrogram/raw/types/text_fixed.py +8 -6
  3002. pyrogram/raw/types/text_hashtag.py +74 -0
  3003. pyrogram/raw/types/text_image.py +10 -8
  3004. pyrogram/raw/types/text_italic.py +8 -6
  3005. pyrogram/raw/types/text_marked.py +8 -6
  3006. pyrogram/raw/{functions/messages/set_web_view_result.py → types/text_math.py} +20 -18
  3007. pyrogram/raw/types/text_mention.py +74 -0
  3008. pyrogram/raw/types/text_mention_name.py +82 -0
  3009. pyrogram/raw/types/text_phone.py +9 -7
  3010. pyrogram/raw/types/text_plain.py +8 -6
  3011. pyrogram/raw/types/text_spoiler.py +74 -0
  3012. pyrogram/raw/types/text_strike.py +8 -6
  3013. pyrogram/raw/types/text_subscript.py +8 -6
  3014. pyrogram/raw/types/text_superscript.py +8 -6
  3015. pyrogram/raw/types/text_underline.py +8 -6
  3016. pyrogram/raw/types/text_url.py +10 -8
  3017. pyrogram/raw/types/text_with_entities.py +18 -7
  3018. pyrogram/raw/types/theme.py +18 -16
  3019. pyrogram/raw/types/theme_settings.py +13 -11
  3020. pyrogram/raw/types/timezone.py +10 -8
  3021. pyrogram/raw/types/{broadcast_revenue_transaction_proceeds.py → todo_completion.py} +30 -28
  3022. pyrogram/raw/types/todo_item.py +82 -0
  3023. pyrogram/raw/types/todo_list.py +96 -0
  3024. pyrogram/raw/types/top_peer.py +9 -7
  3025. pyrogram/raw/types/top_peer_category_bots_app.py +7 -5
  3026. pyrogram/raw/types/top_peer_category_bots_guest_chat.py +69 -0
  3027. pyrogram/raw/types/top_peer_category_bots_inline.py +7 -5
  3028. pyrogram/raw/types/top_peer_category_bots_pm.py +7 -5
  3029. pyrogram/raw/types/top_peer_category_channels.py +7 -5
  3030. pyrogram/raw/types/top_peer_category_correspondents.py +7 -5
  3031. pyrogram/raw/types/top_peer_category_forward_chats.py +7 -5
  3032. pyrogram/raw/types/top_peer_category_forward_users.py +7 -5
  3033. pyrogram/raw/types/top_peer_category_groups.py +7 -5
  3034. pyrogram/raw/types/top_peer_category_peers.py +10 -8
  3035. pyrogram/raw/types/top_peer_category_phone_calls.py +7 -5
  3036. pyrogram/raw/types/update_ai_compose_tones.py +69 -0
  3037. pyrogram/raw/types/update_attach_menu_bots.py +7 -5
  3038. pyrogram/raw/types/update_auto_save_settings.py +7 -5
  3039. pyrogram/raw/types/update_bot_business_connect.py +9 -7
  3040. pyrogram/raw/types/update_bot_callback_query.py +14 -12
  3041. pyrogram/raw/types/update_bot_chat_boost.py +10 -8
  3042. pyrogram/raw/types/update_bot_chat_invite_requester.py +30 -17
  3043. pyrogram/raw/types/update_bot_commands.py +10 -8
  3044. pyrogram/raw/types/update_bot_delete_business_message.py +11 -9
  3045. pyrogram/raw/types/update_bot_edit_business_message.py +11 -9
  3046. pyrogram/raw/types/update_bot_guest_chat_query.py +102 -0
  3047. pyrogram/raw/types/update_bot_inline_query.py +13 -11
  3048. pyrogram/raw/types/update_bot_inline_send.py +12 -10
  3049. pyrogram/raw/types/update_bot_menu_button.py +9 -7
  3050. pyrogram/raw/types/update_bot_message_reaction.py +14 -12
  3051. pyrogram/raw/types/update_bot_message_reactions.py +12 -10
  3052. pyrogram/raw/types/update_bot_new_business_message.py +11 -9
  3053. pyrogram/raw/types/update_bot_precheckout_query.py +14 -12
  3054. pyrogram/raw/types/update_bot_purchased_paid_media.py +10 -8
  3055. pyrogram/raw/types/update_bot_shipping_query.py +11 -9
  3056. pyrogram/raw/types/update_bot_stars_subscription.py +110 -0
  3057. pyrogram/raw/types/update_bot_stopped.py +11 -9
  3058. pyrogram/raw/types/update_bot_webhook_json.py +8 -6
  3059. pyrogram/raw/types/update_bot_webhook_json_query.py +10 -8
  3060. pyrogram/raw/types/update_business_bot_callback_query.py +14 -12
  3061. pyrogram/raw/types/update_channel.py +8 -6
  3062. pyrogram/raw/types/update_channel_available_messages.py +9 -7
  3063. pyrogram/raw/types/update_channel_message_forwards.py +10 -8
  3064. pyrogram/raw/types/update_channel_message_views.py +10 -8
  3065. pyrogram/raw/types/update_channel_participant.py +16 -14
  3066. pyrogram/raw/types/update_channel_read_messages_contents.py +25 -13
  3067. pyrogram/raw/types/update_channel_too_long.py +9 -7
  3068. pyrogram/raw/types/update_channel_user_typing.py +11 -9
  3069. pyrogram/raw/types/update_channel_view_forum_as_messages.py +10 -7
  3070. pyrogram/raw/types/update_channel_web_page.py +11 -9
  3071. pyrogram/raw/types/update_chat.py +8 -6
  3072. pyrogram/raw/types/update_chat_default_banned_rights.py +10 -8
  3073. pyrogram/raw/types/update_chat_participant.py +15 -13
  3074. pyrogram/raw/types/update_chat_participant_add.py +12 -10
  3075. pyrogram/raw/types/update_chat_participant_admin.py +11 -9
  3076. pyrogram/raw/types/update_chat_participant_delete.py +10 -8
  3077. pyrogram/raw/types/update_chat_participant_rank.py +98 -0
  3078. pyrogram/raw/types/update_chat_participants.py +8 -6
  3079. pyrogram/raw/types/update_chat_user_typing.py +10 -8
  3080. pyrogram/raw/types/update_config.py +7 -5
  3081. pyrogram/raw/types/update_contacts_reset.py +7 -5
  3082. pyrogram/raw/types/update_dc_options.py +8 -6
  3083. pyrogram/raw/types/update_delete_channel_messages.py +11 -9
  3084. pyrogram/raw/types/{update_broadcast_revenue_transactions.py → update_delete_ephemeral_messages.py} +18 -16
  3085. pyrogram/raw/types/update_delete_group_call_messages.py +82 -0
  3086. pyrogram/raw/types/update_delete_messages.py +10 -8
  3087. pyrogram/raw/types/update_delete_quick_reply.py +8 -6
  3088. pyrogram/raw/types/update_delete_quick_reply_messages.py +9 -7
  3089. pyrogram/raw/types/update_delete_scheduled_messages.py +10 -8
  3090. pyrogram/raw/types/update_dialog_filter.py +9 -7
  3091. pyrogram/raw/types/update_dialog_filter_order.py +8 -6
  3092. pyrogram/raw/types/update_dialog_filters.py +7 -5
  3093. pyrogram/raw/types/update_dialog_pinned.py +10 -8
  3094. pyrogram/raw/types/update_dialog_unread_mark.py +24 -12
  3095. pyrogram/raw/types/update_draft_message.py +25 -13
  3096. pyrogram/raw/types/update_edit_channel_message.py +10 -8
  3097. pyrogram/raw/types/update_edit_ephemeral_message.py +74 -0
  3098. pyrogram/raw/types/update_edit_message.py +10 -8
  3099. pyrogram/raw/types/update_emoji_game_info.py +74 -0
  3100. pyrogram/raw/types/update_encrypted_chat_typing.py +8 -6
  3101. pyrogram/raw/types/update_encrypted_messages_read.py +10 -8
  3102. pyrogram/raw/types/update_encryption.py +9 -7
  3103. pyrogram/raw/types/update_ephemeral_bot_callback_query.py +114 -0
  3104. pyrogram/raw/types/update_faved_stickers.py +7 -5
  3105. pyrogram/raw/types/update_folder_peers.py +10 -8
  3106. pyrogram/raw/types/update_geo_live_viewed.py +9 -7
  3107. pyrogram/raw/types/update_group_call.py +27 -18
  3108. pyrogram/raw/types/update_group_call_chain_blocks.py +11 -9
  3109. pyrogram/raw/types/update_group_call_connection.py +9 -7
  3110. pyrogram/raw/types/update_group_call_encrypted_message.py +90 -0
  3111. pyrogram/raw/types/update_group_call_message.py +82 -0
  3112. pyrogram/raw/types/update_group_call_participants.py +10 -8
  3113. pyrogram/raw/types/update_inline_bot_callback_query.py +13 -11
  3114. pyrogram/raw/{functions/messages/get_web_view_result.py → types/update_join_chat_web_view_decision.py} +25 -23
  3115. pyrogram/raw/types/update_lang_pack.py +8 -6
  3116. pyrogram/raw/types/update_lang_pack_too_long.py +8 -6
  3117. pyrogram/raw/types/update_login_token.py +7 -5
  3118. pyrogram/raw/types/{update_bot_subscription_expire.py → update_managed_bot.py} +21 -27
  3119. pyrogram/raw/types/update_message_extended_media.py +10 -8
  3120. pyrogram/raw/types/update_message_id.py +9 -7
  3121. pyrogram/raw/types/update_message_poll.py +43 -13
  3122. pyrogram/raw/types/update_message_poll_vote.py +24 -14
  3123. pyrogram/raw/types/update_message_reactions.py +26 -14
  3124. pyrogram/raw/types/update_mono_forum_no_paid_exception.py +90 -0
  3125. pyrogram/raw/types/update_move_sticker_set_to_top.py +10 -8
  3126. pyrogram/raw/types/update_new_authorization.py +12 -10
  3127. pyrogram/raw/types/update_new_bot_connection.py +109 -0
  3128. pyrogram/raw/types/update_new_channel_message.py +10 -8
  3129. pyrogram/raw/types/update_new_encrypted_message.py +9 -7
  3130. pyrogram/raw/types/update_new_ephemeral_message.py +74 -0
  3131. pyrogram/raw/types/update_new_message.py +10 -8
  3132. pyrogram/raw/types/update_new_quick_reply.py +8 -6
  3133. pyrogram/raw/types/update_new_scheduled_message.py +8 -6
  3134. pyrogram/raw/types/update_new_sticker_set.py +8 -6
  3135. pyrogram/raw/types/update_new_story_reaction.py +10 -8
  3136. pyrogram/raw/types/update_notify_settings.py +9 -7
  3137. pyrogram/raw/types/update_paid_reaction_privacy.py +8 -6
  3138. pyrogram/raw/types/update_peer_blocked.py +10 -8
  3139. pyrogram/raw/types/update_peer_history_ttl.py +9 -7
  3140. pyrogram/raw/types/update_peer_located.py +8 -6
  3141. pyrogram/raw/types/update_peer_settings.py +9 -7
  3142. pyrogram/raw/types/update_peer_wallpaper.py +10 -8
  3143. pyrogram/raw/types/update_pending_join_requests.py +10 -8
  3144. pyrogram/raw/types/update_phone_call.py +8 -6
  3145. pyrogram/raw/types/update_phone_call_signaling_data.py +9 -7
  3146. pyrogram/raw/types/update_pinned_channel_messages.py +12 -10
  3147. pyrogram/raw/types/update_pinned_dialogs.py +9 -7
  3148. pyrogram/raw/types/{update_channel_pinned_topic.py → update_pinned_forum_topic.py} +21 -19
  3149. pyrogram/raw/types/{update_channel_pinned_topics.py → update_pinned_forum_topics.py} +20 -18
  3150. pyrogram/raw/types/update_pinned_messages.py +12 -10
  3151. pyrogram/raw/types/update_pinned_saved_dialogs.py +8 -6
  3152. pyrogram/raw/types/update_privacy.py +9 -7
  3153. pyrogram/raw/types/update_pts_changed.py +7 -5
  3154. pyrogram/raw/types/update_quick_replies.py +8 -6
  3155. pyrogram/raw/types/update_quick_reply_message.py +8 -6
  3156. pyrogram/raw/types/update_read_channel_discussion_inbox.py +12 -10
  3157. pyrogram/raw/types/update_read_channel_discussion_outbox.py +10 -8
  3158. pyrogram/raw/types/update_read_channel_inbox.py +12 -10
  3159. pyrogram/raw/types/update_read_channel_outbox.py +9 -7
  3160. pyrogram/raw/types/update_read_featured_emoji_stickers.py +7 -5
  3161. pyrogram/raw/types/update_read_featured_stickers.py +7 -5
  3162. pyrogram/raw/types/update_read_history_inbox.py +27 -16
  3163. pyrogram/raw/types/update_read_history_outbox.py +11 -9
  3164. pyrogram/raw/types/update_read_messages_contents.py +11 -9
  3165. pyrogram/raw/types/update_read_mono_forum_inbox.py +90 -0
  3166. pyrogram/raw/types/update_read_mono_forum_outbox.py +90 -0
  3167. pyrogram/raw/types/update_read_stories.py +9 -7
  3168. pyrogram/raw/types/update_recent_emoji_statuses.py +7 -5
  3169. pyrogram/raw/types/update_recent_reactions.py +7 -5
  3170. pyrogram/raw/types/update_recent_stickers.py +7 -5
  3171. pyrogram/raw/types/update_saved_dialog_pinned.py +9 -7
  3172. pyrogram/raw/types/update_saved_gifs.py +7 -5
  3173. pyrogram/raw/types/update_saved_reaction_tags.py +7 -5
  3174. pyrogram/raw/types/update_saved_ringtones.py +7 -5
  3175. pyrogram/raw/types/update_sent_phone_code.py +8 -6
  3176. pyrogram/raw/types/update_sent_story_reaction.py +10 -8
  3177. pyrogram/raw/types/update_service_notification.py +14 -12
  3178. pyrogram/raw/types/update_short.py +35 -18
  3179. pyrogram/raw/types/update_short_chat_message.py +49 -32
  3180. pyrogram/raw/types/update_short_message.py +48 -31
  3181. pyrogram/raw/types/update_short_sent_message.py +41 -24
  3182. pyrogram/raw/types/update_sms_job.py +8 -6
  3183. pyrogram/raw/types/update_star_gift_auction_state.py +82 -0
  3184. pyrogram/raw/types/update_star_gift_auction_user_state.py +82 -0
  3185. pyrogram/raw/types/update_star_gift_craft_fail.py +69 -0
  3186. pyrogram/raw/types/update_stars_balance.py +8 -6
  3187. pyrogram/raw/types/update_stars_revenue_status.py +9 -7
  3188. pyrogram/raw/types/update_sticker_sets.py +9 -7
  3189. pyrogram/raw/types/update_sticker_sets_order.py +10 -8
  3190. pyrogram/raw/types/update_stories_stealth_mode.py +8 -6
  3191. pyrogram/raw/types/update_story.py +9 -7
  3192. pyrogram/raw/types/update_story_id.py +9 -7
  3193. pyrogram/raw/types/update_theme.py +8 -6
  3194. pyrogram/raw/types/update_transcribed_audio.py +12 -10
  3195. pyrogram/raw/types/update_user.py +8 -6
  3196. pyrogram/raw/types/update_user_emoji_status.py +9 -7
  3197. pyrogram/raw/types/update_user_name.py +11 -9
  3198. pyrogram/raw/types/update_user_phone.py +9 -7
  3199. pyrogram/raw/types/update_user_status.py +9 -7
  3200. pyrogram/raw/types/update_user_typing.py +27 -14
  3201. pyrogram/raw/types/update_web_browser_exception.py +91 -0
  3202. pyrogram/raw/types/update_web_browser_settings.py +80 -0
  3203. pyrogram/raw/types/update_web_page.py +10 -8
  3204. pyrogram/raw/types/update_web_view_result_sent.py +8 -6
  3205. pyrogram/raw/types/updates/channel_difference.py +14 -12
  3206. pyrogram/raw/types/updates/channel_difference_empty.py +10 -8
  3207. pyrogram/raw/types/updates/channel_difference_too_long.py +13 -11
  3208. pyrogram/raw/types/updates/difference.py +13 -11
  3209. pyrogram/raw/types/updates/difference_empty.py +9 -7
  3210. pyrogram/raw/types/updates/difference_slice.py +13 -11
  3211. pyrogram/raw/types/updates/difference_too_long.py +8 -6
  3212. pyrogram/raw/types/updates/state.py +12 -10
  3213. pyrogram/raw/types/updates_combined.py +39 -22
  3214. pyrogram/raw/types/updates_t.py +38 -21
  3215. pyrogram/raw/types/updates_too_long.py +33 -16
  3216. pyrogram/raw/types/upload/cdn_file.py +8 -6
  3217. pyrogram/raw/types/upload/cdn_file_reupload_needed.py +8 -6
  3218. pyrogram/raw/types/upload/file.py +10 -8
  3219. pyrogram/raw/types/upload/file_cdn_redirect.py +12 -10
  3220. pyrogram/raw/types/upload/web_file.py +12 -10
  3221. pyrogram/raw/types/url_auth_result_accepted.py +20 -15
  3222. pyrogram/raw/types/url_auth_result_default.py +7 -5
  3223. pyrogram/raw/types/url_auth_result_request.py +97 -13
  3224. pyrogram/raw/types/user.py +102 -58
  3225. pyrogram/raw/types/user_empty.py +12 -8
  3226. pyrogram/raw/types/user_full.py +153 -64
  3227. pyrogram/raw/types/user_profile_photo.py +12 -10
  3228. pyrogram/raw/types/user_profile_photo_empty.py +7 -5
  3229. pyrogram/raw/types/user_status_empty.py +7 -5
  3230. pyrogram/raw/types/user_status_last_month.py +8 -6
  3231. pyrogram/raw/types/user_status_last_week.py +8 -6
  3232. pyrogram/raw/types/user_status_offline.py +8 -6
  3233. pyrogram/raw/types/user_status_online.py +8 -6
  3234. pyrogram/raw/types/user_status_recently.py +8 -6
  3235. pyrogram/raw/types/username.py +10 -8
  3236. pyrogram/raw/types/users/__init__.py +2 -0
  3237. pyrogram/raw/types/users/saved_music.py +92 -0
  3238. pyrogram/raw/types/{stats/broadcast_revenue_transactions.py → users/saved_music_not_modified.py} +19 -24
  3239. pyrogram/raw/types/users/user_full.py +10 -8
  3240. pyrogram/raw/types/users/users.py +8 -6
  3241. pyrogram/raw/types/users/users_slice.py +9 -7
  3242. pyrogram/raw/types/video_size.py +12 -10
  3243. pyrogram/raw/types/video_size_emoji_markup.py +9 -7
  3244. pyrogram/raw/types/video_size_sticker_markup.py +10 -8
  3245. pyrogram/raw/types/wall_paper.py +16 -14
  3246. pyrogram/raw/types/wall_paper_no_file.py +11 -9
  3247. pyrogram/raw/types/wall_paper_settings.py +16 -14
  3248. pyrogram/raw/types/web_authorization.py +16 -14
  3249. pyrogram/raw/types/web_document.py +12 -10
  3250. pyrogram/raw/types/web_document_no_proxy.py +11 -9
  3251. pyrogram/raw/types/web_domain_exception.py +101 -0
  3252. pyrogram/raw/types/web_page.py +27 -25
  3253. pyrogram/raw/types/web_page_attribute_ai_compose_tone.py +74 -0
  3254. pyrogram/raw/types/web_page_attribute_star_gift_auction.py +82 -0
  3255. pyrogram/raw/types/web_page_attribute_star_gift_collection.py +74 -0
  3256. pyrogram/raw/types/web_page_attribute_sticker_set.py +10 -8
  3257. pyrogram/raw/types/web_page_attribute_story.py +10 -8
  3258. pyrogram/raw/types/web_page_attribute_theme.py +9 -7
  3259. pyrogram/raw/types/web_page_attribute_unique_star_gift.py +8 -6
  3260. pyrogram/raw/types/web_page_empty.py +9 -7
  3261. pyrogram/raw/types/web_page_not_modified.py +8 -6
  3262. pyrogram/raw/types/web_page_pending.py +10 -8
  3263. pyrogram/raw/types/web_view_message_sent.py +8 -6
  3264. pyrogram/raw/types/web_view_result_url.py +21 -12
  3265. pyrogram/session/session.py +183 -69
  3266. pyrogram/sync.py +19 -1
  3267. pyrogram/types/bots_and_keyboards/__init__.py +2 -0
  3268. pyrogram/types/bots_and_keyboards/callback_query.py +1 -1
  3269. pyrogram/types/bots_and_keyboards/inline_keyboard_button.py +42 -17
  3270. pyrogram/types/bots_and_keyboards/keyboard_button.py +23 -9
  3271. pyrogram/types/bots_and_keyboards/keyboard_button_style.py +73 -0
  3272. pyrogram/types/bots_and_keyboards/login_url.py +5 -4
  3273. pyrogram/types/inline_mode/chosen_inline_result.py +1 -1
  3274. pyrogram/types/input_message_content/__init__.py +2 -1
  3275. pyrogram/types/input_message_content/input_rich_message_content.py +52 -0
  3276. pyrogram/types/messages_and_media/__init__.py +11 -2
  3277. pyrogram/types/messages_and_media/input_rich_message.py +77 -0
  3278. pyrogram/types/messages_and_media/link_preview_options.py +59 -0
  3279. pyrogram/types/messages_and_media/message.py +176 -24
  3280. pyrogram/types/messages_and_media/poll.py +1 -0
  3281. pyrogram/types/messages_and_media/poll_link.py +77 -0
  3282. pyrogram/types/messages_and_media/poll_option.py +8 -1
  3283. pyrogram/types/messages_and_media/rich_block.py +485 -0
  3284. pyrogram/types/messages_and_media/rich_message.py +65 -0
  3285. pyrogram/types/messages_and_media/rich_text.py +304 -0
  3286. pyrogram/types/messages_and_media/star_gift.py +242 -0
  3287. pyrogram/types/object.py +1 -1
  3288. pyrogram/types/user_and_chats/__init__.py +5 -1
  3289. pyrogram/types/user_and_chats/chat.py +197 -2
  3290. pyrogram/types/user_and_chats/chat_join_request.py +40 -1
  3291. pyrogram/types/user_and_chats/chat_permissions.py +67 -7
  3292. pyrogram/types/user_and_chats/chat_privileges.py +26 -2
  3293. pyrogram/types/user_and_chats/guard_bot_query.py +145 -0
  3294. pyrogram/types/user_and_chats/peer_color.py +100 -0
  3295. pyrogram/types/user_and_chats/user.py +106 -2
  3296. pyrogram/utils.py +4 -4
  3297. {pyrogrammod-2.2.0.dist-info → pyrogrammod-2.4.0.dist-info}/METADATA +40 -44
  3298. pyrogrammod-2.4.0.dist-info/RECORD +3682 -0
  3299. {pyrogrammod-2.2.0.dist-info → pyrogrammod-2.4.0.dist-info}/WHEEL +1 -2
  3300. pyrogram/raw/base/stats/broadcast_revenue_stats.py +0 -28
  3301. pyrogram/raw/base/stats/broadcast_revenue_transactions.py +0 -28
  3302. pyrogram/raw/base/stats/broadcast_revenue_withdrawal_url.py +0 -28
  3303. pyrogram/raw/types/broadcast_revenue_balances.py +0 -96
  3304. pyrogram/raw/types/broadcast_revenue_transaction_withdrawal.py +0 -120
  3305. pyrogrammod-2.2.0.dist-info/RECORD +0 -3269
  3306. pyrogrammod-2.2.0.dist-info/top_level.txt +0 -1
  3307. {pyrogrammod-2.2.0.dist-info → pyrogrammod-2.4.0.dist-info}/licenses/COPYING +0 -0
  3308. {pyrogrammod-2.2.0.dist-info → pyrogrammod-2.4.0.dist-info}/licenses/COPYING.lesser +0 -0
  3309. {pyrogrammod-2.2.0.dist-info → pyrogrammod-2.4.0.dist-info}/licenses/NOTICE +0 -0
pyrogram/__init__.py CHANGED
@@ -16,7 +16,7 @@
16
16
  # You should have received a copy of the GNU Lesser General Public License
17
17
  # along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
18
18
 
19
- __version__ = "2.2.0"
19
+ __version__ = "2.4.0"
20
20
  __license__ = "GNU Lesser General Public License v3.0 (LGPL-3.0)"
21
21
  __copyright__ = "Copyright (C) 2017-present Dan <https://github.com/delivrance>"
22
22
 
pyrogram/client.py CHANGED
@@ -48,12 +48,12 @@ from pyrogram.errors import CDNFileHashMismatch, AuthBytesInvalid, ChannelInvali
48
48
  from pyrogram.errors import (
49
49
  SessionPasswordNeeded,
50
50
  VolumeLocNotFound, ChannelPrivate,
51
- BadRequest,
51
+ BadRequest,
52
52
  AuthBytesInvalid,
53
- FloodWait,
53
+ FloodWait,
54
54
  FloodPremiumWait,
55
- ChannelInvalid,
56
- PersistentTimestampInvalid,
55
+ ChannelInvalid,
56
+ PersistentTimestampInvalid,
57
57
  PersistentTimestampOutdated
58
58
  )
59
59
  from pyrogram.handlers.handler import Handler
@@ -202,6 +202,14 @@ class Client(Methods):
202
202
  Set the maximum amount of concurrent transmissions (uploads & downloads).
203
203
  A value that is too high may result in network related issues.
204
204
  Defaults to 1.
205
+
206
+ use_experimental_upload_boost (``bool``, *optional*):
207
+ If True, uploads multiple file parts in parallel instead of sequentially.
208
+ May significantly increase upload speed on fast connections. Defaults to False.
209
+
210
+ use_experimental_download_boost (``bool``, *optional*):
211
+ If True, downloads multiple file chunks in parallel instead of sequentially.
212
+ May significantly increase download speed on fast connections. Defaults to False.
205
213
  """
206
214
 
207
215
  APP_VERSION = f"PyrogramMod {__version__}"
@@ -257,7 +265,9 @@ class Client(Methods):
257
265
  hide_password: bool = False,
258
266
  max_concurrent_transmissions: int = MAX_CONCURRENT_TRANSMISSIONS,
259
267
  connection_factory: Type[Connection] = Connection,
260
- protocol_factory: Type[TCP] = TCPAbridged
268
+ protocol_factory: Type[TCP] = TCPAbridged,
269
+ use_experimental_upload_boost: bool = False,
270
+ use_experimental_download_boost: bool = False
261
271
  ):
262
272
  super().__init__()
263
273
 
@@ -289,6 +299,8 @@ class Client(Methods):
289
299
  self.max_concurrent_transmissions = max_concurrent_transmissions
290
300
  self.connection_factory = connection_factory
291
301
  self.protocol_factory = protocol_factory
302
+ self.use_experimental_upload_boost = use_experimental_upload_boost
303
+ self.use_experimental_download_boost = use_experimental_download_boost
292
304
  self.executor = ThreadPoolExecutor(self.workers, thread_name_prefix="Handler")
293
305
 
294
306
  if self.session_string:
@@ -330,7 +342,7 @@ class Client(Methods):
330
342
  self.updates_watchdog_event = asyncio.Event()
331
343
  self.last_update_time = datetime.now()
332
344
 
333
- self.loop = asyncio.get_event_loop()
345
+ self.loop = None
334
346
  self.config_file = config_file
335
347
 
336
348
  def __enter__(self):
@@ -977,14 +989,14 @@ class Client(Methods):
977
989
  log.warning('[%s] No plugin loaded from "%s"', self.name, root)
978
990
 
979
991
  async def handle_download(self, packet):
980
- file_id, directory, file_name, in_memory, file_size, progress, progress_args = packet
992
+ file_id, directory, file_name, in_memory, file_size, progress, progress_args, workers, chunk_size, use_experimental_download_boost = packet
981
993
 
982
994
  os.makedirs(directory, exist_ok=True) if not in_memory else None
983
995
  temp_file_path = os.path.abspath(re.sub("\\\\", "/", os.path.join(directory, file_name))) + ".temp"
984
996
  file = BytesIO() if in_memory else open(temp_file_path, "wb")
985
997
 
986
998
  try:
987
- async for chunk in self.get_file(file_id, file_size, 0, 0, progress, progress_args):
999
+ async for chunk in self.get_file(file_id, file_size, 0, 0, progress, progress_args, workers, chunk_size, use_experimental_download_boost):
988
1000
  file.write(chunk)
989
1001
  except BaseException as e:
990
1002
  if not in_memory:
@@ -1015,8 +1027,14 @@ class Client(Methods):
1015
1027
  limit: int = 0,
1016
1028
  offset: int = 0,
1017
1029
  progress: Callable = None,
1018
- progress_args: tuple = ()
1030
+ progress_args: tuple = (),
1031
+ workers: int = 4,
1032
+ chunk_size: int = 1024 * 1024,
1033
+ use_experimental_download_boost: bool = None
1019
1034
  ) -> AsyncGenerator[bytes, None]:
1035
+ if use_experimental_download_boost is None:
1036
+ use_experimental_download_boost = getattr(self, "use_experimental_download_boost", False)
1037
+
1020
1038
  async with self.get_file_semaphore:
1021
1039
  file_type = file_id.file_type
1022
1040
 
@@ -1057,11 +1075,6 @@ class Client(Methods):
1057
1075
  thumb_size=file_id.thumbnail_size
1058
1076
  )
1059
1077
 
1060
- current = 0
1061
- total = abs(limit) or (1 << 31) - 1
1062
- chunk_size = 1024 * 1024
1063
- offset_bytes = abs(offset) * chunk_size
1064
-
1065
1078
  dc_id = file_id.dc_id
1066
1079
 
1067
1080
  try:
@@ -1099,133 +1112,238 @@ class Client(Methods):
1099
1112
  else:
1100
1113
  raise AuthBytesInvalid
1101
1114
 
1102
- r = await session.invoke(
1103
- raw.functions.upload.GetFile(
1104
- location=location,
1105
- offset=offset_bytes,
1106
- limit=chunk_size
1107
- ),
1108
- sleep_threshold=30
1109
- )
1115
+ if not use_experimental_download_boost:
1116
+ current = 0
1117
+ total = abs(limit) or (1 << 31) - 1
1118
+ offset_bytes = abs(offset) * chunk_size
1119
+
1120
+ r = await session.invoke(
1121
+ raw.functions.upload.GetFile(
1122
+ location=location,
1123
+ offset=offset_bytes,
1124
+ limit=chunk_size
1125
+ ),
1126
+ sleep_threshold=30
1127
+ )
1110
1128
 
1111
- if isinstance(r, raw.types.upload.File):
1112
- while True:
1113
- chunk = r.bytes
1129
+ if isinstance(r, raw.types.upload.File):
1130
+ while True:
1131
+ chunk = r.bytes
1114
1132
 
1115
- yield chunk
1133
+ yield chunk
1116
1134
 
1117
- current += 1
1118
- offset_bytes += chunk_size
1135
+ current += 1
1136
+ offset_bytes += chunk_size
1119
1137
 
1120
- if progress:
1121
- func = functools.partial(
1122
- progress,
1123
- min(offset_bytes, file_size)
1124
- if file_size != 0
1125
- else offset_bytes,
1126
- file_size,
1127
- *progress_args
1138
+ if progress:
1139
+ func = functools.partial(
1140
+ progress,
1141
+ min(offset_bytes, file_size)
1142
+ if file_size != 0
1143
+ else offset_bytes,
1144
+ file_size,
1145
+ *progress_args
1146
+ )
1147
+ if inspect.iscoroutinefunction(progress):
1148
+ await func()
1149
+ else:
1150
+ await self.loop.run_in_executor(self.executor, func)
1151
+
1152
+ if len(chunk) < chunk_size or current >= total:
1153
+ break
1154
+
1155
+ r = await session.invoke(
1156
+ raw.functions.upload.GetFile(
1157
+ location=location,
1158
+ offset=offset_bytes,
1159
+ limit=chunk_size
1160
+ ),
1161
+ sleep_threshold=30
1128
1162
  )
1129
1163
 
1130
- if inspect.iscoroutinefunction(progress):
1131
- await func()
1132
- else:
1133
- await self.loop.run_in_executor(self.executor, func)
1164
+ elif isinstance(r, raw.types.upload.FileCdnRedirect):
1165
+ cdn_session = Session(
1166
+ self, r.dc_id, await Auth(self, r.dc_id, await self.storage.test_mode()).create(),
1167
+ await self.storage.test_mode(), is_media=True, is_cdn=True
1168
+ )
1134
1169
 
1135
- if len(chunk) < chunk_size or current >= total:
1136
- break
1170
+ try:
1171
+ await cdn_session.start()
1172
+
1173
+ while True:
1174
+ r2 = await cdn_session.invoke(
1175
+ raw.functions.upload.GetCdnFile(
1176
+ file_token=r.file_token,
1177
+ offset=offset_bytes,
1178
+ limit=chunk_size
1179
+ )
1180
+ )
1181
+
1182
+ if isinstance(r2, raw.types.upload.CdnFileReuploadNeeded):
1183
+ try:
1184
+ await session.invoke(
1185
+ raw.functions.upload.ReuploadCdnFile(
1186
+ file_token=r.file_token,
1187
+ request_token=r2.request_token
1188
+ )
1189
+ )
1190
+ except VolumeLocNotFound:
1191
+ break
1192
+ else:
1193
+ continue
1194
+
1195
+ chunk = r2.bytes
1196
+
1197
+ # https://core.telegram.org/cdn#decrypting-files
1198
+ decrypted_chunk = aes.ctr256_decrypt(
1199
+ chunk,
1200
+ r.encryption_key,
1201
+ bytearray(
1202
+ r.encryption_iv[:-4]
1203
+ + (offset_bytes // 16).to_bytes(4, "big")
1204
+ )
1205
+ )
1206
+
1207
+ hashes = await session.invoke(
1208
+ raw.functions.upload.GetCdnFileHashes(
1209
+ file_token=r.file_token,
1210
+ offset=offset_bytes
1211
+ )
1212
+ )
1137
1213
 
1214
+ # https://core.telegram.org/cdn#verifying-files
1215
+ for i, h in enumerate(hashes):
1216
+ cdn_chunk = decrypted_chunk[h.limit * i: h.limit * (i + 1)]
1217
+ CDNFileHashMismatch.check(
1218
+ h.hash == sha256(cdn_chunk).digest(),
1219
+ "h.hash == sha256(cdn_chunk).digest()"
1220
+ )
1221
+
1222
+ yield decrypted_chunk
1223
+
1224
+ current += 1
1225
+ offset_bytes += chunk_size
1226
+
1227
+ if progress:
1228
+ func = functools.partial(
1229
+ progress,
1230
+ min(offset_bytes, file_size) if file_size != 0 else offset_bytes,
1231
+ file_size,
1232
+ *progress_args
1233
+ )
1234
+
1235
+ if inspect.iscoroutinefunction(progress):
1236
+ await func()
1237
+ else:
1238
+ await self.loop.run_in_executor(self.executor, func)
1239
+
1240
+ if len(chunk) < chunk_size or current >= total:
1241
+ break
1242
+ except Exception as e:
1243
+ raise e
1244
+ finally:
1245
+ await cdn_session.stop()
1246
+ else:
1247
+ total = abs(limit) or file_size or (1 << 31) - 1
1248
+ total_chunks = (total + chunk_size - 1) // chunk_size
1249
+ next_chunk = 0
1250
+ completed = 0
1251
+ buffer = {}
1252
+
1253
+ async def _fetch_chunk(idx: int):
1254
+ offset_bytes = idx * chunk_size
1138
1255
  r = await session.invoke(
1139
1256
  raw.functions.upload.GetFile(
1140
1257
  location=location,
1141
1258
  offset=offset_bytes,
1142
1259
  limit=chunk_size
1143
1260
  ),
1144
- sleep_threshold=30
1261
+ sleep_threshold=5
1145
1262
  )
1146
1263
 
1147
- elif isinstance(r, raw.types.upload.FileCdnRedirect):
1148
- cdn_session = Session(
1149
- self, r.dc_id, await Auth(self, r.dc_id, await self.storage.test_mode()).create(),
1150
- await self.storage.test_mode(), is_media=True, is_cdn=True
1151
- )
1152
-
1153
- try:
1154
- await cdn_session.start()
1155
-
1156
- while True:
1157
- r2 = await cdn_session.invoke(
1158
- raw.functions.upload.GetCdnFile(
1159
- file_token=r.file_token,
1160
- offset=offset_bytes,
1161
- limit=chunk_size
1162
- )
1264
+ if isinstance(r, raw.types.upload.File):
1265
+ return idx, r.bytes
1266
+ elif isinstance(r, raw.types.upload.FileCdnRedirect):
1267
+ cdn_session = Session(
1268
+ self, r.dc_id,
1269
+ await Auth(self, r.dc_id, await self.storage.test_mode()).create(),
1270
+ await self.storage.test_mode(),
1271
+ is_media=True,
1272
+ is_cdn=True
1163
1273
  )
1164
-
1165
- if isinstance(r2, raw.types.upload.CdnFileReuploadNeeded):
1166
- try:
1274
+ await cdn_session.start()
1275
+ try:
1276
+ r2 = await cdn_session.invoke(
1277
+ raw.functions.upload.GetCdnFile(
1278
+ file_token=r.file_token,
1279
+ offset=offset_bytes,
1280
+ limit=chunk_size
1281
+ )
1282
+ )
1283
+ if isinstance(r2, raw.types.upload.CdnFileReuploadNeeded):
1167
1284
  await session.invoke(
1168
1285
  raw.functions.upload.ReuploadCdnFile(
1169
1286
  file_token=r.file_token,
1170
1287
  request_token=r2.request_token
1171
1288
  )
1172
1289
  )
1173
- except VolumeLocNotFound:
1174
- break
1175
- else:
1176
- continue
1177
-
1178
- chunk = r2.bytes
1179
-
1180
- # https://core.telegram.org/cdn#decrypting-files
1181
- decrypted_chunk = aes.ctr256_decrypt(
1182
- chunk,
1183
- r.encryption_key,
1184
- bytearray(
1185
- r.encryption_iv[:-4]
1186
- + (offset_bytes // 16).to_bytes(4, "big")
1290
+ return await _fetch_chunk(idx)
1291
+
1292
+ chunk = r2.bytes
1293
+ decrypted_chunk = aes.ctr256_decrypt(
1294
+ chunk,
1295
+ r.encryption_key,
1296
+ bytearray(
1297
+ r.encryption_iv[:-4]
1298
+ + (offset_bytes // 16).to_bytes(4, "big")
1299
+ )
1187
1300
  )
1188
- )
1189
-
1190
- hashes = await session.invoke(
1191
- raw.functions.upload.GetCdnFileHashes(
1192
- file_token=r.file_token,
1193
- offset=offset_bytes
1301
+ hashes = await session.invoke(
1302
+ raw.functions.upload.GetCdnFileHashes(
1303
+ file_token=r.file_token,
1304
+ offset=offset_bytes
1305
+ )
1194
1306
  )
1195
- )
1307
+ for i, h in enumerate(hashes):
1308
+ cdn_chunk = decrypted_chunk[h.limit * i: h.limit * (i + 1)]
1309
+ CDNFileHashMismatch.check(
1310
+ h.hash == sha256(cdn_chunk).digest(),
1311
+ "h.hash == sha256(cdn_chunk).digest()"
1312
+ )
1313
+ return idx, decrypted_chunk
1314
+ finally:
1315
+ await cdn_session.stop()
1196
1316
 
1197
- # https://core.telegram.org/cdn#verifying-files
1198
- for i, h in enumerate(hashes):
1199
- cdn_chunk = decrypted_chunk[h.limit * i: h.limit * (i + 1)]
1200
- CDNFileHashMismatch.check(
1201
- h.hash == sha256(cdn_chunk).digest(),
1202
- "h.hash == sha256(cdn_chunk).digest()"
1203
- )
1317
+ raise RuntimeError("Unexpected response type")
1204
1318
 
1205
- yield decrypted_chunk
1319
+ # Loop principale parallelo
1320
+ while completed < total_chunks:
1321
+ tasks = []
1322
+ for _ in range(min(workers, total_chunks - next_chunk)):
1323
+ tasks.append(asyncio.create_task(_fetch_chunk(next_chunk)))
1324
+ next_chunk += 1
1206
1325
 
1207
- current += 1
1208
- offset_bytes += chunk_size
1326
+ for coro in asyncio.as_completed(tasks):
1327
+ idx, data = await coro
1328
+ buffer[idx] = data
1209
1329
 
1210
- if progress:
1330
+ while completed in buffer:
1331
+ chunk = buffer.pop(completed)
1332
+ yield chunk
1333
+ completed += 1
1334
+
1335
+ if progress and (completed * chunk_size) % (5 * 1024 * 1024) == 0:
1211
1336
  func = functools.partial(
1212
1337
  progress,
1213
- min(offset_bytes, file_size) if file_size != 0 else offset_bytes,
1338
+ min(completed * chunk_size, file_size) if file_size else completed * chunk_size,
1214
1339
  file_size,
1215
1340
  *progress_args
1216
1341
  )
1217
-
1218
1342
  if inspect.iscoroutinefunction(progress):
1219
1343
  await func()
1220
1344
  else:
1221
1345
  await self.loop.run_in_executor(self.executor, func)
1222
1346
 
1223
- if len(chunk) < chunk_size or current >= total:
1224
- break
1225
- except Exception as e:
1226
- raise e
1227
- finally:
1228
- await cdn_session.stop()
1229
1347
  except pyrogram.StopTransmission:
1230
1348
  raise
1231
1349
  except (FloodWait, FloodPremiumWait):
@@ -1256,4 +1374,4 @@ class Cache:
1256
1374
 
1257
1375
  if len(self.store) > self.capacity:
1258
1376
  for _ in range(self.capacity // 2 + 1):
1259
- del self.store[next(iter(self.store))]
1377
+ del self.store[next(iter(self.store))]
pyrogram/dispatcher.py CHANGED
@@ -26,7 +26,8 @@ from pyrogram import utils
26
26
  from pyrogram.handlers import (
27
27
  CallbackQueryHandler, MessageHandler, EditedMessageHandler, DeletedMessagesHandler,
28
28
  UserStatusHandler, RawUpdateHandler, InlineQueryHandler, PollHandler,
29
- ChosenInlineResultHandler, ChatMemberUpdatedHandler, ChatJoinRequestHandler
29
+ ChosenInlineResultHandler, ChatMemberUpdatedHandler, ChatJoinRequestHandler,
30
+ GuardBotQueryHandler,
30
31
  )
31
32
  from pyrogram.raw.types import (
32
33
  UpdateNewMessage, UpdateNewChannelMessage, UpdateNewScheduledMessage,
@@ -35,7 +36,7 @@ from pyrogram.raw.types import (
35
36
  UpdateBotCallbackQuery, UpdateInlineBotCallbackQuery,
36
37
  UpdateUserStatus, UpdateBotInlineQuery, UpdateMessagePoll,
37
38
  UpdateBotInlineSend, UpdateChatParticipant, UpdateChannelParticipant,
38
- UpdateBotChatInviteRequester
39
+ UpdateBotChatInviteRequester, UpdateBotGuestChatQuery,
39
40
  )
40
41
 
41
42
  log = logging.getLogger(__name__)
@@ -52,10 +53,11 @@ class Dispatcher:
52
53
  POLL_UPDATES = (UpdateMessagePoll,)
53
54
  CHOSEN_INLINE_RESULT_UPDATES = (UpdateBotInlineSend,)
54
55
  CHAT_JOIN_REQUEST_UPDATES = (UpdateBotChatInviteRequester,)
56
+ GUARD_BOT_QUERY_UPDATES = (UpdateBotGuestChatQuery,)
55
57
 
56
58
  def __init__(self, client: "pyrogram.Client"):
57
59
  self.client = client
58
- self.loop = asyncio.get_event_loop()
60
+ self.loop = None
59
61
 
60
62
  self.handler_worker_tasks = []
61
63
  self.locks_list = []
@@ -127,6 +129,12 @@ class Dispatcher:
127
129
  ChatJoinRequestHandler
128
130
  )
129
131
 
132
+ async def guard_bot_query_parser(update, users, chats):
133
+ return (
134
+ await pyrogram.types.GuardBotQuery._parse(self.client, update, users, chats),
135
+ GuardBotQueryHandler,
136
+ )
137
+
130
138
  self.update_parsers = {
131
139
  Dispatcher.NEW_MESSAGE_UPDATES: message_parser,
132
140
  Dispatcher.EDIT_MESSAGE_UPDATES: edited_message_parser,
@@ -137,19 +145,27 @@ class Dispatcher:
137
145
  Dispatcher.POLL_UPDATES: poll_parser,
138
146
  Dispatcher.CHOSEN_INLINE_RESULT_UPDATES: chosen_inline_result_parser,
139
147
  Dispatcher.CHAT_MEMBER_UPDATES: chat_member_updated_parser,
140
- Dispatcher.CHAT_JOIN_REQUEST_UPDATES: chat_join_request_parser
148
+ Dispatcher.CHAT_JOIN_REQUEST_UPDATES: chat_join_request_parser,
149
+ Dispatcher.GUARD_BOT_QUERY_UPDATES: guard_bot_query_parser,
141
150
  }
142
151
 
143
152
  self.update_parsers = {key: value for key_tuple, value in self.update_parsers.items() for key in key_tuple}
144
153
 
145
154
  async def start(self):
146
155
  if not self.client.no_updates:
156
+ loop = asyncio.get_running_loop()
157
+ self.loop = loop
158
+
147
159
  for i in range(self.client.workers):
148
160
  self.locks_list.append(asyncio.Lock())
149
161
 
150
- self.handler_worker_tasks.append(
151
- self.loop.create_task(self.handler_worker(self.locks_list[-1]))
152
- )
162
+ task = loop.create_task(self.handler_worker(self.locks_list[-1]))
163
+
164
+ # Avoid noisy \"Task was destroyed but it is pending\" warnings when the loop exits abruptly.
165
+ if hasattr(task, "_log_destroy_pending"):
166
+ task._log_destroy_pending = False
167
+
168
+ self.handler_worker_tasks.append(task)
153
169
 
154
170
  log.info("Started %s HandlerTasks", self.client.workers)
155
171
 
@@ -169,7 +185,17 @@ class Dispatcher:
169
185
 
170
186
  log.info("Stopped %s HandlerTasks", self.client.workers)
171
187
 
188
+ self.loop = None
189
+
172
190
  def add_handler(self, handler, group: int):
191
+ if self.loop is None or not self.handler_worker_tasks:
192
+ if group not in self.groups:
193
+ self.groups[group] = []
194
+ self.groups = OrderedDict(sorted(self.groups.items()))
195
+
196
+ self.groups[group].append(handler)
197
+ return
198
+
173
199
  async def fn():
174
200
  for lock in self.locks_list:
175
201
  await lock.acquire()
@@ -187,6 +213,13 @@ class Dispatcher:
187
213
  self.loop.create_task(fn())
188
214
 
189
215
  def remove_handler(self, handler, group: int):
216
+ if self.loop is None or not self.handler_worker_tasks:
217
+ if group not in self.groups:
218
+ raise ValueError(f"Group {group} does not exist. Handler was not removed.")
219
+
220
+ self.groups[group].remove(handler)
221
+ return
222
+
190
223
  async def fn():
191
224
  for lock in self.locks_list:
192
225
  await lock.acquire()
@@ -28,22 +28,26 @@ from .messages_filter import MessagesFilter
28
28
  from .next_code_type import NextCodeType
29
29
  from .parse_mode import ParseMode
30
30
  from .poll_type import PollType
31
+ from .rich_block_type import RichBlockType
32
+ from .rich_text_type import RichTextType
31
33
  from .sent_code_type import SentCodeType
32
34
  from .user_status import UserStatus
33
35
 
34
36
  __all__ = [
35
- 'ChatAction',
36
- 'ChatEventAction',
37
- 'ChatMemberStatus',
38
- 'ChatMembersFilter',
39
- 'ChatType',
40
- 'MessageEntityType',
41
- 'MessageMediaType',
42
- 'MessageServiceType',
43
- 'MessagesFilter',
44
- 'NextCodeType',
45
- 'ParseMode',
46
- 'PollType',
47
- 'SentCodeType',
48
- 'UserStatus'
37
+ 'ChatAction',
38
+ 'ChatEventAction',
39
+ 'ChatMemberStatus',
40
+ 'ChatMembersFilter',
41
+ 'ChatType',
42
+ 'MessageEntityType',
43
+ 'MessageMediaType',
44
+ 'MessageServiceType',
45
+ 'MessagesFilter',
46
+ 'NextCodeType',
47
+ 'ParseMode',
48
+ 'PollType',
49
+ 'RichBlockType',
50
+ 'RichTextType',
51
+ 'SentCodeType',
52
+ 'UserStatus',
49
53
  ]
@@ -68,5 +68,14 @@ class ChatAction(AutoName):
68
68
  CHOOSE_STICKER = raw.types.SendMessageChooseStickerAction
69
69
  "Choosing sticker"
70
70
 
71
+ EMOJI_INTERACTION = raw.types.SendMessageEmojiInteraction
72
+ "Playing emoji interaction"
73
+
74
+ EMOJI_INTERACTION_SEEN = raw.types.SendMessageEmojiInteractionSeen
75
+ "Emoji interaction seen"
76
+
77
+ TEXT_DRAFT = raw.types.SendMessageTextDraftAction
78
+ "Streaming text draft"
79
+
71
80
  CANCEL = raw.types.SendMessageCancelAction
72
81
  "Cancel ongoing chat action"
@@ -80,5 +80,17 @@ class MessageEntityType(AutoName):
80
80
  CUSTOM_EMOJI = raw.types.MessageEntityCustomEmoji
81
81
  "Custom emoji"
82
82
 
83
+ FORMATTED_DATE = raw.types.MessageEntityFormattedDate
84
+ "Formatted date text"
85
+
86
+ DIFF_INSERT = raw.types.MessageEntityDiffInsert
87
+ "Inserted diff text"
88
+
89
+ DIFF_REPLACE = raw.types.MessageEntityDiffReplace
90
+ "Replaced diff text"
91
+
92
+ DIFF_DELETE = raw.types.MessageEntityDiffDelete
93
+ "Deleted diff text"
94
+
83
95
  UNKNOWN = raw.types.MessageEntityUnknown
84
96
  "Unknown message entity type"
@@ -71,3 +71,15 @@ class MessageServiceType(AutoName):
71
71
 
72
72
  WEB_APP_DATA = auto()
73
73
  "Web app data"
74
+
75
+ STAR_GIFT = auto()
76
+ "Star gift received"
77
+
78
+ STAR_GIFT_UNIQUE = auto()
79
+ "Unique/collectible star gift"
80
+
81
+ NEW_CREATOR_PENDING = auto()
82
+ "New creator transfer pending"
83
+
84
+ CHANGE_CREATOR = auto()
85
+ "Creator changed"