xn-pyrogram 2.2.23__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyrogram/__init__.py +38 -0
- pyrogram/client.py +1554 -0
- pyrogram/connection/__init__.py +19 -0
- pyrogram/connection/connection.py +92 -0
- pyrogram/connection/transport/__init__.py +19 -0
- pyrogram/connection/transport/tcp/__init__.py +24 -0
- pyrogram/connection/transport/tcp/tcp.py +248 -0
- pyrogram/connection/transport/tcp/tcp_abridged.py +66 -0
- pyrogram/connection/transport/tcp/tcp_abridged_o.py +106 -0
- pyrogram/connection/transport/tcp/tcp_full.py +73 -0
- pyrogram/connection/transport/tcp/tcp_intermediate.py +54 -0
- pyrogram/connection/transport/tcp/tcp_intermediate_o.py +88 -0
- pyrogram/crypto/__init__.py +17 -0
- pyrogram/crypto/aes.py +130 -0
- pyrogram/crypto/mtproto.py +100 -0
- pyrogram/crypto/prime.py +82 -0
- pyrogram/crypto/rsa.py +259 -0
- pyrogram/dispatcher.py +514 -0
- pyrogram/enums/__init__.py +107 -0
- pyrogram/enums/auto_name.py +27 -0
- pyrogram/enums/block_list.py +31 -0
- pyrogram/enums/business_schedule.py +34 -0
- pyrogram/enums/button_style.py +37 -0
- pyrogram/enums/chat_action.py +72 -0
- pyrogram/enums/chat_event_action.py +140 -0
- pyrogram/enums/chat_join_request_query_result.py +34 -0
- pyrogram/enums/chat_join_type.py +34 -0
- pyrogram/enums/chat_member_status.py +43 -0
- pyrogram/enums/chat_members_filter.py +42 -0
- pyrogram/enums/chat_type.py +46 -0
- pyrogram/enums/client_platform.py +49 -0
- pyrogram/enums/folder_color.py +47 -0
- pyrogram/enums/gift_attribute_type.py +36 -0
- pyrogram/enums/gift_for_resale_order.py +34 -0
- pyrogram/enums/gift_purchase_offer_state.py +34 -0
- pyrogram/enums/gift_type.py +31 -0
- pyrogram/enums/mask_point_type.py +35 -0
- pyrogram/enums/media_area_type.py +46 -0
- pyrogram/enums/message_entity_type.py +87 -0
- pyrogram/enums/message_media_type.py +94 -0
- pyrogram/enums/message_origin_type.py +40 -0
- pyrogram/enums/message_service_type.py +235 -0
- pyrogram/enums/messages_filter.py +78 -0
- pyrogram/enums/next_code_type.py +39 -0
- pyrogram/enums/paid_reaction_privacy.py +35 -0
- pyrogram/enums/parse_mode.py +37 -0
- pyrogram/enums/payment_form_type.py +34 -0
- pyrogram/enums/phone_call_discard_reason.py +40 -0
- pyrogram/enums/phone_number_code_type.py +34 -0
- pyrogram/enums/poll_type.py +31 -0
- pyrogram/enums/privacy_key.py +66 -0
- pyrogram/enums/privacy_rule_type.py +61 -0
- pyrogram/enums/profile_color.py +71 -0
- pyrogram/enums/profile_tab.py +48 -0
- pyrogram/enums/reply_color.py +94 -0
- pyrogram/enums/sent_code_type.py +57 -0
- pyrogram/enums/sticker_type.py +34 -0
- pyrogram/enums/stories_privacy_rules.py +36 -0
- pyrogram/enums/suggested_post_refund_reason.py +31 -0
- pyrogram/enums/suggested_post_state.py +34 -0
- pyrogram/enums/top_chat_category.py +54 -0
- pyrogram/enums/upgraded_gift_origin.py +46 -0
- pyrogram/enums/user_status.py +43 -0
- pyrogram/errors/__init__.py +65 -0
- pyrogram/errors/exceptions/__init__.py +26 -0
- pyrogram/errors/exceptions/all.py +937 -0
- pyrogram/errors/exceptions/bad_request_400.py +4970 -0
- pyrogram/errors/exceptions/flood_420.py +98 -0
- pyrogram/errors/exceptions/forbidden_403.py +469 -0
- pyrogram/errors/exceptions/internal_server_error_500.py +420 -0
- pyrogram/errors/exceptions/not_acceptable_406.py +301 -0
- pyrogram/errors/exceptions/see_other_303.py +63 -0
- pyrogram/errors/exceptions/service_unavailable_503.py +49 -0
- pyrogram/errors/exceptions/unauthorized_401.py +91 -0
- pyrogram/errors/rpc_error.py +103 -0
- pyrogram/file_id.py +486 -0
- pyrogram/filters.py +1255 -0
- pyrogram/handlers/__init__.py +48 -0
- pyrogram/handlers/business_connection_handler.py +56 -0
- pyrogram/handlers/business_message_handler.py +56 -0
- pyrogram/handlers/callback_query_handler.py +55 -0
- pyrogram/handlers/chat_boost_handler.py +55 -0
- pyrogram/handlers/chat_join_request_handler.py +55 -0
- pyrogram/handlers/chat_member_updated_handler.py +55 -0
- pyrogram/handlers/chosen_inline_result_handler.py +58 -0
- pyrogram/handlers/connect_handler.py +50 -0
- pyrogram/handlers/deleted_business_messages_handler.py +69 -0
- pyrogram/handlers/deleted_messages_handler.py +68 -0
- pyrogram/handlers/disconnect_handler.py +50 -0
- pyrogram/handlers/edited_business_message_handler.py +56 -0
- pyrogram/handlers/edited_message_handler.py +55 -0
- pyrogram/handlers/error_handler.py +98 -0
- pyrogram/handlers/guest_message_handler.py +55 -0
- pyrogram/handlers/handler.py +41 -0
- pyrogram/handlers/inline_query_handler.py +55 -0
- pyrogram/handlers/managed_bot_updated_handler.py +53 -0
- pyrogram/handlers/message_handler.py +55 -0
- pyrogram/handlers/message_reaction_count_handler.py +59 -0
- pyrogram/handlers/message_reaction_handler.py +59 -0
- pyrogram/handlers/poll_handler.py +54 -0
- pyrogram/handlers/pre_checkout_query_handler.py +55 -0
- pyrogram/handlers/purchased_paid_media_handler.py +57 -0
- pyrogram/handlers/raw_update_handler.py +87 -0
- pyrogram/handlers/shipping_query_handler.py +56 -0
- pyrogram/handlers/start_handler.py +46 -0
- pyrogram/handlers/stop_handler.py +47 -0
- pyrogram/handlers/story_handler.py +53 -0
- pyrogram/handlers/user_status_handler.py +51 -0
- pyrogram/methods/__init__.py +59 -0
- pyrogram/methods/account/__init__.py +42 -0
- pyrogram/methods/account/add_profile_audio.py +151 -0
- pyrogram/methods/account/get_account_ttl.py +44 -0
- pyrogram/methods/account/get_global_privacy_settings.py +39 -0
- pyrogram/methods/account/get_privacy.py +55 -0
- pyrogram/methods/account/remove_profile_audio.py +50 -0
- pyrogram/methods/account/set_account_ttl.py +55 -0
- pyrogram/methods/account/set_global_privacy_settings.py +124 -0
- pyrogram/methods/account/set_inactive_session_ttl.py +51 -0
- pyrogram/methods/account/set_privacy.py +76 -0
- pyrogram/methods/account/set_profile_audio_position.py +63 -0
- pyrogram/methods/advanced/__init__.py +31 -0
- pyrogram/methods/advanced/invoke.py +118 -0
- pyrogram/methods/advanced/recover_gaps.py +184 -0
- pyrogram/methods/advanced/resolve_peer.py +153 -0
- pyrogram/methods/advanced/save_file.py +225 -0
- pyrogram/methods/auth/__init__.py +61 -0
- pyrogram/methods/auth/accept_terms_of_service.py +44 -0
- pyrogram/methods/auth/change_phone_number.py +59 -0
- pyrogram/methods/auth/check_password.py +60 -0
- pyrogram/methods/auth/connect.py +56 -0
- pyrogram/methods/auth/disconnect.py +41 -0
- pyrogram/methods/auth/get_active_sessions.py +39 -0
- pyrogram/methods/auth/get_password_hint.py +38 -0
- pyrogram/methods/auth/initialize.py +50 -0
- pyrogram/methods/auth/log_out.py +51 -0
- pyrogram/methods/auth/recover_password.py +57 -0
- pyrogram/methods/auth/resend_phone_number_code.py +63 -0
- pyrogram/methods/auth/reset_session.py +44 -0
- pyrogram/methods/auth/reset_sessions.py +39 -0
- pyrogram/methods/auth/send_phone_number_code.py +187 -0
- pyrogram/methods/auth/send_recovery_code.py +43 -0
- pyrogram/methods/auth/sign_in.py +81 -0
- pyrogram/methods/auth/sign_in_bot.py +78 -0
- pyrogram/methods/auth/sign_up.py +73 -0
- pyrogram/methods/auth/terminate.py +67 -0
- pyrogram/methods/bots/__init__.py +99 -0
- pyrogram/methods/bots/answer_callback_query.py +81 -0
- pyrogram/methods/bots/answer_chat_join_request_query.py +47 -0
- pyrogram/methods/bots/answer_guest_query.py +61 -0
- pyrogram/methods/bots/answer_inline_query.py +112 -0
- pyrogram/methods/bots/answer_pre_checkout_query.py +66 -0
- pyrogram/methods/bots/answer_shipping_query.py +81 -0
- pyrogram/methods/bots/answer_web_app_query.py +53 -0
- pyrogram/methods/bots/check_bot_username.py +39 -0
- pyrogram/methods/bots/create_bot.py +64 -0
- pyrogram/methods/bots/create_invoice_link.py +167 -0
- pyrogram/methods/bots/delete_bot_commands.py +62 -0
- pyrogram/methods/bots/edit_user_star_subscription.py +56 -0
- pyrogram/methods/bots/get_bot_commands.py +67 -0
- pyrogram/methods/bots/get_bot_default_privileges.py +59 -0
- pyrogram/methods/bots/get_bot_info_description.py +63 -0
- pyrogram/methods/bots/get_bot_info_short_description.py +63 -0
- pyrogram/methods/bots/get_bot_name.py +62 -0
- pyrogram/methods/bots/get_chat_menu_button.py +66 -0
- pyrogram/methods/bots/get_game_high_scores.py +72 -0
- pyrogram/methods/bots/get_inline_bot_results.py +92 -0
- pyrogram/methods/bots/get_managed_bot_access_settings.py +47 -0
- pyrogram/methods/bots/get_managed_bot_token.py +48 -0
- pyrogram/methods/bots/get_owned_bots.py +44 -0
- pyrogram/methods/bots/refund_star_payment.py +54 -0
- pyrogram/methods/bots/replace_managed_bot_token.py +48 -0
- pyrogram/methods/bots/request_callback_answer.py +91 -0
- pyrogram/methods/bots/send_chat_join_request_web_app.py +49 -0
- pyrogram/methods/bots/send_game.py +139 -0
- pyrogram/methods/bots/send_inline_bot_result.py +171 -0
- pyrogram/methods/bots/send_invoice.py +268 -0
- pyrogram/methods/bots/set_bot_commands.py +73 -0
- pyrogram/methods/bots/set_bot_default_privileges.py +81 -0
- pyrogram/methods/bots/set_bot_info_description.py +66 -0
- pyrogram/methods/bots/set_bot_info_short_description.py +66 -0
- pyrogram/methods/bots/set_bot_name.py +66 -0
- pyrogram/methods/bots/set_chat_menu_button.py +56 -0
- pyrogram/methods/bots/set_game_score.py +100 -0
- pyrogram/methods/bots/set_managed_bot_access_settings.py +60 -0
- pyrogram/methods/business/__init__.py +33 -0
- pyrogram/methods/business/delete_business_messages.py +70 -0
- pyrogram/methods/business/get_business_account_gifts.py +151 -0
- pyrogram/methods/business/get_business_account_star_balance.py +60 -0
- pyrogram/methods/business/get_business_connection.py +53 -0
- pyrogram/methods/business/transfer_business_account_stars.py +72 -0
- pyrogram/methods/chats/__init__.py +181 -0
- pyrogram/methods/chats/add_chat_members.py +97 -0
- pyrogram/methods/chats/archive_chats.py +71 -0
- pyrogram/methods/chats/ban_chat_member.py +124 -0
- pyrogram/methods/chats/close_forum_topic.py +58 -0
- pyrogram/methods/chats/create_channel.py +56 -0
- pyrogram/methods/chats/create_folder.py +179 -0
- pyrogram/methods/chats/create_folder_invite_link.py +67 -0
- pyrogram/methods/chats/create_forum_topic.py +68 -0
- pyrogram/methods/chats/create_group.py +67 -0
- pyrogram/methods/chats/create_supergroup.py +78 -0
- pyrogram/methods/chats/delete_all_message_reactions.py +74 -0
- pyrogram/methods/chats/delete_channel.py +52 -0
- pyrogram/methods/chats/delete_chat_photo.py +70 -0
- pyrogram/methods/chats/delete_folder.py +51 -0
- pyrogram/methods/chats/delete_folder_invite_link.py +70 -0
- pyrogram/methods/chats/delete_forum_topic.py +57 -0
- pyrogram/methods/chats/delete_message_reaction.py +81 -0
- pyrogram/methods/chats/delete_supergroup.py +52 -0
- pyrogram/methods/chats/delete_user_history.py +55 -0
- pyrogram/methods/chats/edit_folder.py +186 -0
- pyrogram/methods/chats/edit_folder_invite_link.py +85 -0
- pyrogram/methods/chats/edit_forum_topic.py +77 -0
- pyrogram/methods/chats/get_chat.py +105 -0
- pyrogram/methods/chats/get_chat_event_log.py +109 -0
- pyrogram/methods/chats/get_chat_member.py +92 -0
- pyrogram/methods/chats/get_chat_members.py +158 -0
- pyrogram/methods/chats/get_chat_members_count.py +69 -0
- pyrogram/methods/chats/get_chat_online_count.py +51 -0
- pyrogram/methods/chats/get_chat_settings.py +61 -0
- pyrogram/methods/chats/get_chats_for_folder_invite_link.py +78 -0
- pyrogram/methods/chats/get_dialogs.py +133 -0
- pyrogram/methods/chats/get_dialogs_count.py +76 -0
- pyrogram/methods/chats/get_direct_messages_topics.py +109 -0
- pyrogram/methods/chats/get_direct_messages_topics_by_id.py +77 -0
- pyrogram/methods/chats/get_folder_invite_links.py +52 -0
- pyrogram/methods/chats/get_folders.py +76 -0
- pyrogram/methods/chats/get_forum_topics.py +103 -0
- pyrogram/methods/chats/get_forum_topics_by_id.py +80 -0
- pyrogram/methods/chats/get_personal_channels.py +48 -0
- pyrogram/methods/chats/get_send_as_chats.py +69 -0
- pyrogram/methods/chats/get_similar_channels.py +59 -0
- pyrogram/methods/chats/get_suitable_discussion_chats.py +47 -0
- pyrogram/methods/chats/get_top_chats.py +104 -0
- pyrogram/methods/chats/join_chat.py +65 -0
- pyrogram/methods/chats/join_folder.py +79 -0
- pyrogram/methods/chats/leave_chat.py +77 -0
- pyrogram/methods/chats/leave_folder.py +83 -0
- pyrogram/methods/chats/mark_chat_unread.py +47 -0
- pyrogram/methods/chats/pin_chat_message.py +77 -0
- pyrogram/methods/chats/pin_forum_topic.py +57 -0
- pyrogram/methods/chats/process_chat_has_protected_content_disable_request.py +57 -0
- pyrogram/methods/chats/promote_chat_member.py +106 -0
- pyrogram/methods/chats/reorder_folders.py +61 -0
- pyrogram/methods/chats/restrict_chat_member.py +85 -0
- pyrogram/methods/chats/set_administrator_title.py +85 -0
- pyrogram/methods/chats/set_chat_description.py +66 -0
- pyrogram/methods/chats/set_chat_direct_messages_group.py +67 -0
- pyrogram/methods/chats/set_chat_discussion_group.py +91 -0
- pyrogram/methods/chats/set_chat_member_tag.py +68 -0
- pyrogram/methods/chats/set_chat_permissions.py +76 -0
- pyrogram/methods/chats/set_chat_photo.py +124 -0
- pyrogram/methods/chats/set_chat_protected_content.py +51 -0
- pyrogram/methods/chats/set_chat_title.py +69 -0
- pyrogram/methods/chats/set_chat_ttl.py +67 -0
- pyrogram/methods/chats/set_chat_username.py +68 -0
- pyrogram/methods/chats/set_main_profile_tab.py +71 -0
- pyrogram/methods/chats/set_send_as_chat.py +57 -0
- pyrogram/methods/chats/set_slow_mode.py +63 -0
- pyrogram/methods/chats/set_upgraded_gift_colors.py +47 -0
- pyrogram/methods/chats/toggle_folder_tags.py +51 -0
- pyrogram/methods/chats/toggle_forum_topics.py +72 -0
- pyrogram/methods/chats/toggle_join_to_send.py +65 -0
- pyrogram/methods/chats/transfer_chat_ownership.py +84 -0
- pyrogram/methods/chats/unarchive_chats.py +71 -0
- pyrogram/methods/chats/unban_chat_member.py +64 -0
- pyrogram/methods/chats/unpin_all_chat_messages.py +55 -0
- pyrogram/methods/chats/unpin_chat_message.py +61 -0
- pyrogram/methods/chats/unpin_forum_topic.py +58 -0
- pyrogram/methods/chats/update_chat_notifications.py +92 -0
- pyrogram/methods/chats/update_color.py +78 -0
- pyrogram/methods/contacts/__init__.py +39 -0
- pyrogram/methods/contacts/add_contact.py +85 -0
- pyrogram/methods/contacts/delete_contacts.py +66 -0
- pyrogram/methods/contacts/get_blocked_message_senders.py +85 -0
- pyrogram/methods/contacts/get_contacts.py +47 -0
- pyrogram/methods/contacts/get_contacts_count.py +41 -0
- pyrogram/methods/contacts/import_contacts.py +58 -0
- pyrogram/methods/contacts/search_contacts.py +59 -0
- pyrogram/methods/contacts/set_contact_note.py +62 -0
- pyrogram/methods/decorators/__init__.py +81 -0
- pyrogram/methods/decorators/on_business_connection.py +63 -0
- pyrogram/methods/decorators/on_business_message.py +63 -0
- pyrogram/methods/decorators/on_callback_query.py +63 -0
- pyrogram/methods/decorators/on_chat_boost.py +64 -0
- pyrogram/methods/decorators/on_chat_join_request.py +62 -0
- pyrogram/methods/decorators/on_chat_member_updated.py +62 -0
- pyrogram/methods/decorators/on_chosen_inline_result.py +63 -0
- pyrogram/methods/decorators/on_connect.py +45 -0
- pyrogram/methods/decorators/on_deleted_business_messages.py +63 -0
- pyrogram/methods/decorators/on_deleted_messages.py +63 -0
- pyrogram/methods/decorators/on_disconnect.py +45 -0
- pyrogram/methods/decorators/on_edited_business_message.py +63 -0
- pyrogram/methods/decorators/on_edited_message.py +63 -0
- pyrogram/methods/decorators/on_error.py +65 -0
- pyrogram/methods/decorators/on_guest_message.py +63 -0
- pyrogram/methods/decorators/on_inline_query.py +63 -0
- pyrogram/methods/decorators/on_managed_bot.py +63 -0
- pyrogram/methods/decorators/on_message.py +63 -0
- pyrogram/methods/decorators/on_message_reaction.py +62 -0
- pyrogram/methods/decorators/on_message_reaction_count.py +62 -0
- pyrogram/methods/decorators/on_poll.py +63 -0
- pyrogram/methods/decorators/on_pre_checkout_query.py +63 -0
- pyrogram/methods/decorators/on_purchased_paid_media.py +62 -0
- pyrogram/methods/decorators/on_raw_update.py +63 -0
- pyrogram/methods/decorators/on_shipping_query.py +64 -0
- pyrogram/methods/decorators/on_start.py +45 -0
- pyrogram/methods/decorators/on_stop.py +45 -0
- pyrogram/methods/decorators/on_story.py +63 -0
- pyrogram/methods/decorators/on_user_status.py +61 -0
- pyrogram/methods/folders/__init__.py +25 -0
- pyrogram/methods/folders/check_chat_folder_invite_link.py +55 -0
- pyrogram/methods/invite_links/__init__.py +58 -0
- pyrogram/methods/invite_links/approve_all_chat_join_requests.py +55 -0
- pyrogram/methods/invite_links/approve_chat_join_request.py +57 -0
- pyrogram/methods/invite_links/create_chat_invite_link.py +87 -0
- pyrogram/methods/invite_links/decline_all_chat_join_requests.py +55 -0
- pyrogram/methods/invite_links/decline_chat_join_request.py +57 -0
- pyrogram/methods/invite_links/delete_chat_admin_invite_links.py +54 -0
- pyrogram/methods/invite_links/delete_chat_invite_link.py +52 -0
- pyrogram/methods/invite_links/edit_chat_invite_link.py +92 -0
- pyrogram/methods/invite_links/export_chat_invite_link.py +66 -0
- pyrogram/methods/invite_links/get_chat_admin_invite_links.py +100 -0
- pyrogram/methods/invite_links/get_chat_admin_invite_links_count.py +62 -0
- pyrogram/methods/invite_links/get_chat_admins_with_invite_links.py +56 -0
- pyrogram/methods/invite_links/get_chat_invite_link.py +54 -0
- pyrogram/methods/invite_links/get_chat_invite_link_joiners.py +87 -0
- pyrogram/methods/invite_links/get_chat_invite_link_joiners_count.py +56 -0
- pyrogram/methods/invite_links/get_chat_join_requests.py +88 -0
- pyrogram/methods/invite_links/revoke_chat_invite_link.py +68 -0
- pyrogram/methods/messages/__init__.py +199 -0
- pyrogram/methods/messages/add_checklist_tasks.py +73 -0
- pyrogram/methods/messages/add_poll_option.py +76 -0
- pyrogram/methods/messages/add_to_gifs.py +60 -0
- pyrogram/methods/messages/approve_suggested_post.py +66 -0
- pyrogram/methods/messages/compose_text_with_ai.py +80 -0
- pyrogram/methods/messages/copy_media_group.py +238 -0
- pyrogram/methods/messages/copy_message.py +168 -0
- pyrogram/methods/messages/decline_suggested_post.py +62 -0
- pyrogram/methods/messages/delete_chat_history.py +101 -0
- pyrogram/methods/messages/delete_direct_messages_chat_topic_history.py +74 -0
- pyrogram/methods/messages/delete_messages.py +110 -0
- pyrogram/methods/messages/delete_poll_option.py +69 -0
- pyrogram/methods/messages/download_media.py +371 -0
- pyrogram/methods/messages/edit_inline_caption.py +65 -0
- pyrogram/methods/messages/edit_inline_media.py +244 -0
- pyrogram/methods/messages/edit_inline_reply_markup.py +68 -0
- pyrogram/methods/messages/edit_inline_text.py +122 -0
- pyrogram/methods/messages/edit_message_caption.py +98 -0
- pyrogram/methods/messages/edit_message_checklist.py +106 -0
- pyrogram/methods/messages/edit_message_media.py +137 -0
- pyrogram/methods/messages/edit_message_reply_markup.py +84 -0
- pyrogram/methods/messages/edit_message_text.py +165 -0
- pyrogram/methods/messages/fix_text_with_ai.py +57 -0
- pyrogram/methods/messages/forward_media_group.py +124 -0
- pyrogram/methods/messages/forward_messages.py +142 -0
- pyrogram/methods/messages/get_available_effects.py +59 -0
- pyrogram/methods/messages/get_chat_history.py +175 -0
- pyrogram/methods/messages/get_chat_history_count.py +83 -0
- pyrogram/methods/messages/get_custom_emoji_stickers.py +54 -0
- pyrogram/methods/messages/get_direct_messages_chat_topic_history.py +151 -0
- pyrogram/methods/messages/get_discussion_message.py +65 -0
- pyrogram/methods/messages/get_discussion_replies.py +86 -0
- pyrogram/methods/messages/get_discussion_replies_count.py +62 -0
- pyrogram/methods/messages/get_main_web_app.py +71 -0
- pyrogram/methods/messages/get_media_group.py +72 -0
- pyrogram/methods/messages/get_messages.py +236 -0
- pyrogram/methods/messages/get_scheduled_messages.py +61 -0
- pyrogram/methods/messages/get_stickers.py +66 -0
- pyrogram/methods/messages/get_user_personal_chat_messages.py +92 -0
- pyrogram/methods/messages/get_web_app_link_url.py +83 -0
- pyrogram/methods/messages/get_web_app_url.py +70 -0
- pyrogram/methods/messages/mark_checklist_tasks_as_done.py +74 -0
- pyrogram/methods/messages/open_web_app.py +92 -0
- pyrogram/methods/messages/read_chat_history.py +73 -0
- pyrogram/methods/messages/read_mentions.py +64 -0
- pyrogram/methods/messages/read_reactions.py +64 -0
- pyrogram/methods/messages/retract_vote.py +64 -0
- pyrogram/methods/messages/search_global.py +132 -0
- pyrogram/methods/messages/search_global_count.py +79 -0
- pyrogram/methods/messages/search_messages.py +190 -0
- pyrogram/methods/messages/search_messages_count.py +98 -0
- pyrogram/methods/messages/search_posts.py +96 -0
- pyrogram/methods/messages/search_posts_count.py +54 -0
- pyrogram/methods/messages/send_animation.py +379 -0
- pyrogram/methods/messages/send_audio.py +347 -0
- pyrogram/methods/messages/send_cached_media.py +226 -0
- pyrogram/methods/messages/send_chat_action.py +85 -0
- pyrogram/methods/messages/send_checklist.py +153 -0
- pyrogram/methods/messages/send_contact.py +216 -0
- pyrogram/methods/messages/send_dice.py +217 -0
- pyrogram/methods/messages/send_document.py +319 -0
- pyrogram/methods/messages/send_live_photo.py +244 -0
- pyrogram/methods/messages/send_location.py +242 -0
- pyrogram/methods/messages/send_media_group.py +525 -0
- pyrogram/methods/messages/send_message.py +352 -0
- pyrogram/methods/messages/send_message_draft.py +105 -0
- pyrogram/methods/messages/send_paid_media.py +385 -0
- pyrogram/methods/messages/send_paid_reaction.py +79 -0
- pyrogram/methods/messages/send_photo.py +317 -0
- pyrogram/methods/messages/send_poll.py +316 -0
- pyrogram/methods/messages/send_reaction.py +111 -0
- pyrogram/methods/messages/send_rich_message.py +156 -0
- pyrogram/methods/messages/send_rich_message_draft.py +93 -0
- pyrogram/methods/messages/send_screenshot_notification.py +57 -0
- pyrogram/methods/messages/send_sticker.py +303 -0
- pyrogram/methods/messages/send_venue.py +231 -0
- pyrogram/methods/messages/send_video.py +448 -0
- pyrogram/methods/messages/send_video_note.py +336 -0
- pyrogram/methods/messages/send_voice.py +325 -0
- pyrogram/methods/messages/send_web_page.py +195 -0
- pyrogram/methods/messages/set_direct_messages_chat_topic_is_marked_as_unread.py +66 -0
- pyrogram/methods/messages/start_bot.py +77 -0
- pyrogram/methods/messages/stop_poll.py +81 -0
- pyrogram/methods/messages/stream_media.py +106 -0
- pyrogram/methods/messages/summarize_message.py +81 -0
- pyrogram/methods/messages/translate_message_text.py +77 -0
- pyrogram/methods/messages/translate_text.py +73 -0
- pyrogram/methods/messages/view_messages.py +61 -0
- pyrogram/methods/messages/vote_poll.py +71 -0
- pyrogram/methods/password/__init__.py +29 -0
- pyrogram/methods/password/change_cloud_password.py +82 -0
- pyrogram/methods/password/enable_cloud_password.py +88 -0
- pyrogram/methods/password/remove_cloud_password.py +64 -0
- pyrogram/methods/payments/__init__.py +111 -0
- pyrogram/methods/payments/add_collection_gifts.py +71 -0
- pyrogram/methods/payments/apply_gift_code.py +64 -0
- pyrogram/methods/payments/buy_gift_upgrade.py +76 -0
- pyrogram/methods/payments/check_gift_code.py +67 -0
- pyrogram/methods/payments/convert_gift_to_stars.py +61 -0
- pyrogram/methods/payments/craft_gift.py +67 -0
- pyrogram/methods/payments/create_gift_collection.py +63 -0
- pyrogram/methods/payments/delete_gift_collection.py +58 -0
- pyrogram/methods/payments/drop_gift_original_details.py +74 -0
- pyrogram/methods/payments/edit_star_subscription.py +47 -0
- pyrogram/methods/payments/get_available_gifts.py +47 -0
- pyrogram/methods/payments/get_chat_gifts.py +150 -0
- pyrogram/methods/payments/get_chat_gifts_count.py +63 -0
- pyrogram/methods/payments/get_gift_auction_state.py +64 -0
- pyrogram/methods/payments/get_gift_collections.py +53 -0
- pyrogram/methods/payments/get_gift_upgrade_preview.py +50 -0
- pyrogram/methods/payments/get_gift_upgrade_variants.py +45 -0
- pyrogram/methods/payments/get_gifts_for_crafting.py +86 -0
- pyrogram/methods/payments/get_payment_form.py +66 -0
- pyrogram/methods/payments/get_stars_balance.py +64 -0
- pyrogram/methods/payments/get_ton_balance.py +54 -0
- pyrogram/methods/payments/get_upgraded_gift.py +66 -0
- pyrogram/methods/payments/get_upgraded_gift_value_info.py +63 -0
- pyrogram/methods/payments/gift_premium_with_stars.py +97 -0
- pyrogram/methods/payments/hide_gift.py +62 -0
- pyrogram/methods/payments/increase_gift_auction_bid.py +68 -0
- pyrogram/methods/payments/place_gift_auction_bid.py +111 -0
- pyrogram/methods/payments/process_gift_purchase_offer.py +51 -0
- pyrogram/methods/payments/remove_collection_gifts.py +68 -0
- pyrogram/methods/payments/reorder_collection_gifts.py +69 -0
- pyrogram/methods/payments/reorder_gift_collections.py +57 -0
- pyrogram/methods/payments/reuse_star_subscription.py +41 -0
- pyrogram/methods/payments/search_gifts_for_resale.py +119 -0
- pyrogram/methods/payments/send_gift.py +99 -0
- pyrogram/methods/payments/send_gift_purchase_offer.py +76 -0
- pyrogram/methods/payments/send_payment_form.py +96 -0
- pyrogram/methods/payments/send_resold_gift.py +123 -0
- pyrogram/methods/payments/set_gift_collection_name.py +62 -0
- pyrogram/methods/payments/set_gift_resale_price.py +72 -0
- pyrogram/methods/payments/set_pinned_gifts.py +67 -0
- pyrogram/methods/payments/show_gift.py +62 -0
- pyrogram/methods/payments/suggest_birthday.py +59 -0
- pyrogram/methods/payments/transfer_gift.py +103 -0
- pyrogram/methods/payments/upgrade_gift.py +114 -0
- pyrogram/methods/phone/__init__.py +25 -0
- pyrogram/methods/phone/get_call_members.py +103 -0
- pyrogram/methods/premium/__init__.py +28 -0
- pyrogram/methods/premium/apply_boost.py +59 -0
- pyrogram/methods/premium/get_boosts.py +57 -0
- pyrogram/methods/premium/get_boosts_status.py +45 -0
- pyrogram/methods/stories/__init__.py +64 -0
- pyrogram/methods/stories/can_post_stories.py +53 -0
- pyrogram/methods/stories/copy_story.py +116 -0
- pyrogram/methods/stories/delete_stories.py +66 -0
- pyrogram/methods/stories/edit_story_caption.py +83 -0
- pyrogram/methods/stories/edit_story_media.py +174 -0
- pyrogram/methods/stories/edit_story_privacy.py +130 -0
- pyrogram/methods/stories/enable_stealth_mode.py +67 -0
- pyrogram/methods/stories/forward_story.py +135 -0
- pyrogram/methods/stories/get_all_stories.py +81 -0
- pyrogram/methods/stories/get_archived_stories.py +95 -0
- pyrogram/methods/stories/get_chat_stories.py +72 -0
- pyrogram/methods/stories/get_pinned_stories.py +102 -0
- pyrogram/methods/stories/get_stories.py +104 -0
- pyrogram/methods/stories/get_story_views.py +120 -0
- pyrogram/methods/stories/hide_chat_stories.py +56 -0
- pyrogram/methods/stories/pin_chat_stories.py +65 -0
- pyrogram/methods/stories/read_chat_stories.py +64 -0
- pyrogram/methods/stories/send_story.py +274 -0
- pyrogram/methods/stories/show_chat_stories.py +56 -0
- pyrogram/methods/stories/unpin_chat_stories.py +65 -0
- pyrogram/methods/stories/view_stories.py +61 -0
- pyrogram/methods/users/__init__.py +61 -0
- pyrogram/methods/users/block_user.py +54 -0
- pyrogram/methods/users/check_username.py +66 -0
- pyrogram/methods/users/delete_profile_photos.py +63 -0
- pyrogram/methods/users/get_chat_audios.py +103 -0
- pyrogram/methods/users/get_chat_audios_count.py +61 -0
- pyrogram/methods/users/get_chat_photos.py +159 -0
- pyrogram/methods/users/get_chat_photos_count.py +74 -0
- pyrogram/methods/users/get_common_chats.py +67 -0
- pyrogram/methods/users/get_default_emoji_statuses.py +47 -0
- pyrogram/methods/users/get_me.py +50 -0
- pyrogram/methods/users/get_users.py +71 -0
- pyrogram/methods/users/set_emoji_status.py +92 -0
- pyrogram/methods/users/set_personal_channel.py +67 -0
- pyrogram/methods/users/set_profile_photo.py +153 -0
- pyrogram/methods/users/set_username.py +57 -0
- pyrogram/methods/users/unblock_user.py +54 -0
- pyrogram/methods/users/update_birthday.py +67 -0
- pyrogram/methods/users/update_profile.py +72 -0
- pyrogram/methods/users/update_status.py +54 -0
- pyrogram/methods/utilities/__init__.py +39 -0
- pyrogram/methods/utilities/add_handler.py +73 -0
- pyrogram/methods/utilities/compose.py +78 -0
- pyrogram/methods/utilities/export_session_string.py +40 -0
- pyrogram/methods/utilities/idle.py +88 -0
- pyrogram/methods/utilities/remove_handler.py +69 -0
- pyrogram/methods/utilities/restart.py +78 -0
- pyrogram/methods/utilities/run.py +70 -0
- pyrogram/methods/utilities/start.py +103 -0
- pyrogram/methods/utilities/stop.py +76 -0
- pyrogram/methods/utilities/stop_transmission.py +43 -0
- pyrogram/mime_types.py +1881 -0
- pyrogram/parser/__init__.py +19 -0
- pyrogram/parser/html.py +293 -0
- pyrogram/parser/markdown.py +325 -0
- pyrogram/parser/parser.py +61 -0
- pyrogram/parser/utils.py +41 -0
- pyrogram/py.typed +0 -0
- pyrogram/qrlogin.py +111 -0
- pyrogram/raw/__init__.py +26 -0
- pyrogram/raw/all.py +2491 -0
- pyrogram/raw/base/__init__.py +430 -0
- pyrogram/raw/base/access_point_rule.py +56 -0
- pyrogram/raw/base/account/__init__.py +53 -0
- pyrogram/raw/base/account/authorization_form.py +66 -0
- pyrogram/raw/base/account/authorizations.py +66 -0
- pyrogram/raw/base/account/auto_download_settings.py +66 -0
- pyrogram/raw/base/account/auto_save_settings.py +66 -0
- pyrogram/raw/base/account/business_chat_links.py +66 -0
- pyrogram/raw/base/account/chat_themes.py +67 -0
- pyrogram/raw/base/account/connected_bots.py +66 -0
- pyrogram/raw/base/account/content_settings.py +66 -0
- pyrogram/raw/base/account/email_verified.py +67 -0
- pyrogram/raw/base/account/emoji_statuses.py +70 -0
- pyrogram/raw/base/account/paid_messages_revenue.py +66 -0
- pyrogram/raw/base/account/passkey_registration_options.py +66 -0
- pyrogram/raw/base/account/passkeys.py +66 -0
- pyrogram/raw/base/account/password.py +66 -0
- pyrogram/raw/base/account/password_input_settings.py +56 -0
- pyrogram/raw/base/account/password_settings.py +66 -0
- pyrogram/raw/base/account/privacy_rules.py +67 -0
- pyrogram/raw/base/account/reset_password_result.py +68 -0
- pyrogram/raw/base/account/resolved_business_chat_links.py +66 -0
- pyrogram/raw/base/account/saved_music_ids.py +67 -0
- pyrogram/raw/base/account/saved_ringtone.py +67 -0
- pyrogram/raw/base/account/saved_ringtones.py +67 -0
- pyrogram/raw/base/account/sent_email_code.py +66 -0
- pyrogram/raw/base/account/takeout.py +66 -0
- pyrogram/raw/base/account/themes.py +68 -0
- pyrogram/raw/base/account/tmp_password.py +66 -0
- pyrogram/raw/base/account/wall_papers.py +67 -0
- pyrogram/raw/base/account/web_authorizations.py +66 -0
- pyrogram/raw/base/account/web_browser_settings.py +69 -0
- pyrogram/raw/base/account_days_ttl.py +66 -0
- pyrogram/raw/base/ai_compose_tone.py +68 -0
- pyrogram/raw/base/ai_compose_tone_example.py +66 -0
- pyrogram/raw/base/aicompose/__init__.py +25 -0
- pyrogram/raw/base/aicompose/tones.py +68 -0
- pyrogram/raw/base/attach_menu_bot.py +56 -0
- pyrogram/raw/base/attach_menu_bot_icon.py +56 -0
- pyrogram/raw/base/attach_menu_bot_icon_color.py +56 -0
- pyrogram/raw/base/attach_menu_bots.py +67 -0
- pyrogram/raw/base/attach_menu_bots_bot.py +66 -0
- pyrogram/raw/base/attach_menu_peer_type.py +60 -0
- pyrogram/raw/base/auction_bid_level.py +56 -0
- pyrogram/raw/base/auth/__init__.py +33 -0
- pyrogram/raw/base/auth/authorization.py +74 -0
- pyrogram/raw/base/auth/code_type.py +60 -0
- pyrogram/raw/base/auth/exported_authorization.py +66 -0
- pyrogram/raw/base/auth/logged_out.py +66 -0
- pyrogram/raw/base/auth/login_token.py +69 -0
- pyrogram/raw/base/auth/passkey_login_options.py +66 -0
- pyrogram/raw/base/auth/password_recovery.py +66 -0
- pyrogram/raw/base/auth/sent_code.py +74 -0
- pyrogram/raw/base/auth/sent_code_type.py +66 -0
- pyrogram/raw/base/authorization.py +66 -0
- pyrogram/raw/base/auto_download_settings.py +56 -0
- pyrogram/raw/base/auto_save_exception.py +56 -0
- pyrogram/raw/base/auto_save_settings.py +56 -0
- pyrogram/raw/base/available_effect.py +56 -0
- pyrogram/raw/base/available_reaction.py +56 -0
- pyrogram/raw/base/bad_msg_notification.py +57 -0
- pyrogram/raw/base/bank_card_open_url.py +56 -0
- pyrogram/raw/base/base_theme.py +60 -0
- pyrogram/raw/base/bind_auth_key_inner.py +56 -0
- pyrogram/raw/base/birthday.py +56 -0
- pyrogram/raw/base/boost.py +56 -0
- pyrogram/raw/base/bot_app.py +57 -0
- pyrogram/raw/base/bot_app_settings.py +56 -0
- pyrogram/raw/base/bot_business_connection.py +56 -0
- pyrogram/raw/base/bot_command.py +66 -0
- pyrogram/raw/base/bot_command_scope.py +62 -0
- pyrogram/raw/base/bot_info.py +56 -0
- pyrogram/raw/base/bot_inline_message.py +63 -0
- pyrogram/raw/base/bot_inline_result.py +57 -0
- pyrogram/raw/base/bot_menu_button.py +68 -0
- pyrogram/raw/base/bot_preview_media.py +68 -0
- pyrogram/raw/base/bot_verification.py +56 -0
- pyrogram/raw/base/bot_verifier_settings.py +56 -0
- pyrogram/raw/base/bots/__init__.py +30 -0
- pyrogram/raw/base/bots/access_settings.py +66 -0
- pyrogram/raw/base/bots/bot_info.py +66 -0
- pyrogram/raw/base/bots/exported_bot_token.py +66 -0
- pyrogram/raw/base/bots/popular_app_bots.py +66 -0
- pyrogram/raw/base/bots/preview_info.py +66 -0
- pyrogram/raw/base/bots/requested_button.py +66 -0
- pyrogram/raw/base/business_away_message.py +56 -0
- pyrogram/raw/base/business_away_message_schedule.py +58 -0
- pyrogram/raw/base/business_bot_recipients.py +56 -0
- pyrogram/raw/base/business_bot_rights.py +56 -0
- pyrogram/raw/base/business_chat_link.py +67 -0
- pyrogram/raw/base/business_greeting_message.py +56 -0
- pyrogram/raw/base/business_intro.py +56 -0
- pyrogram/raw/base/business_location.py +56 -0
- pyrogram/raw/base/business_recipients.py +56 -0
- pyrogram/raw/base/business_weekly_open.py +56 -0
- pyrogram/raw/base/business_work_hours.py +56 -0
- pyrogram/raw/base/cdn_config.py +66 -0
- pyrogram/raw/base/cdn_public_key.py +56 -0
- pyrogram/raw/base/channel_admin_log_event.py +56 -0
- pyrogram/raw/base/channel_admin_log_event_action.py +107 -0
- pyrogram/raw/base/channel_admin_log_events_filter.py +56 -0
- pyrogram/raw/base/channel_location.py +57 -0
- pyrogram/raw/base/channel_messages_filter.py +57 -0
- pyrogram/raw/base/channel_participant.py +61 -0
- pyrogram/raw/base/channel_participants_filter.py +63 -0
- pyrogram/raw/base/channels/__init__.py +29 -0
- pyrogram/raw/base/channels/admin_log_results.py +66 -0
- pyrogram/raw/base/channels/channel_participant.py +66 -0
- pyrogram/raw/base/channels/channel_participants.py +67 -0
- pyrogram/raw/base/channels/send_as_peers.py +66 -0
- pyrogram/raw/base/channels/sponsored_message_report_result.py +68 -0
- pyrogram/raw/base/chat.py +60 -0
- pyrogram/raw/base/chat_admin_rights.py +56 -0
- pyrogram/raw/base/chat_admin_with_invites.py +56 -0
- pyrogram/raw/base/chat_banned_rights.py +56 -0
- pyrogram/raw/base/chat_full.py +57 -0
- pyrogram/raw/base/chat_invite.py +68 -0
- pyrogram/raw/base/chat_invite_importer.py +56 -0
- pyrogram/raw/base/chat_onlines.py +66 -0
- pyrogram/raw/base/chat_participant.py +58 -0
- pyrogram/raw/base/chat_participants.py +57 -0
- pyrogram/raw/base/chat_photo.py +57 -0
- pyrogram/raw/base/chat_reactions.py +58 -0
- pyrogram/raw/base/chat_theme.py +57 -0
- pyrogram/raw/base/chatlists/__init__.py +28 -0
- pyrogram/raw/base/chatlists/chatlist_invite.py +67 -0
- pyrogram/raw/base/chatlists/chatlist_updates.py +66 -0
- pyrogram/raw/base/chatlists/exported_chatlist_invite.py +66 -0
- pyrogram/raw/base/chatlists/exported_invites.py +66 -0
- pyrogram/raw/base/client_dh_inner_data.py +56 -0
- pyrogram/raw/base/code_settings.py +56 -0
- pyrogram/raw/base/config.py +66 -0
- pyrogram/raw/base/connected_bot.py +56 -0
- pyrogram/raw/base/connected_bot_star_ref.py +56 -0
- pyrogram/raw/base/contact.py +56 -0
- pyrogram/raw/base/contact_birthday.py +56 -0
- pyrogram/raw/base/contact_status.py +66 -0
- pyrogram/raw/base/contacts/__init__.py +32 -0
- pyrogram/raw/base/contacts/blocked.py +67 -0
- pyrogram/raw/base/contacts/contact_birthdays.py +66 -0
- pyrogram/raw/base/contacts/contacts.py +67 -0
- pyrogram/raw/base/contacts/found.py +66 -0
- pyrogram/raw/base/contacts/imported_contacts.py +66 -0
- pyrogram/raw/base/contacts/resolved_peer.py +67 -0
- pyrogram/raw/base/contacts/sponsored_peers.py +67 -0
- pyrogram/raw/base/contacts/top_peers.py +68 -0
- pyrogram/raw/base/data_json.py +68 -0
- pyrogram/raw/base/dc_option.py +56 -0
- pyrogram/raw/base/default_history_ttl.py +66 -0
- pyrogram/raw/base/destroy_auth_key_res.py +68 -0
- pyrogram/raw/base/destroy_session_res.py +67 -0
- pyrogram/raw/base/dialog.py +57 -0
- pyrogram/raw/base/dialog_filter.py +58 -0
- pyrogram/raw/base/dialog_filter_suggested.py +66 -0
- pyrogram/raw/base/dialog_peer.py +67 -0
- pyrogram/raw/base/disallowed_gifts_settings.py +56 -0
- pyrogram/raw/base/document.py +70 -0
- pyrogram/raw/base/document_attribute.py +63 -0
- pyrogram/raw/base/draft_message.py +57 -0
- pyrogram/raw/base/email_verification.py +58 -0
- pyrogram/raw/base/email_verify_purpose.py +58 -0
- pyrogram/raw/base/emoji_group.py +58 -0
- pyrogram/raw/base/emoji_keyword.py +57 -0
- pyrogram/raw/base/emoji_keywords_difference.py +67 -0
- pyrogram/raw/base/emoji_language.py +66 -0
- pyrogram/raw/base/emoji_list.py +71 -0
- pyrogram/raw/base/emoji_status.py +59 -0
- pyrogram/raw/base/emoji_url.py +66 -0
- pyrogram/raw/base/encrypted_chat.py +71 -0
- pyrogram/raw/base/encrypted_file.py +67 -0
- pyrogram/raw/base/encrypted_message.py +57 -0
- pyrogram/raw/base/exported_chat_invite.py +67 -0
- pyrogram/raw/base/exported_chatlist_invite.py +66 -0
- pyrogram/raw/base/exported_contact_token.py +66 -0
- pyrogram/raw/base/exported_message_link.py +66 -0
- pyrogram/raw/base/exported_story_link.py +66 -0
- pyrogram/raw/base/fact_check.py +66 -0
- pyrogram/raw/base/file_hash.py +68 -0
- pyrogram/raw/base/folder.py +56 -0
- pyrogram/raw/base/folder_peer.py +56 -0
- pyrogram/raw/base/forum_topic.py +57 -0
- pyrogram/raw/base/found_story.py +56 -0
- pyrogram/raw/base/fragment/__init__.py +25 -0
- pyrogram/raw/base/fragment/collectible_info.py +66 -0
- pyrogram/raw/base/game.py +56 -0
- pyrogram/raw/base/geo_point.py +57 -0
- pyrogram/raw/base/geo_point_address.py +56 -0
- pyrogram/raw/base/global_privacy_settings.py +67 -0
- pyrogram/raw/base/group_call.py +57 -0
- pyrogram/raw/base/group_call_donor.py +56 -0
- pyrogram/raw/base/group_call_message.py +56 -0
- pyrogram/raw/base/group_call_participant.py +56 -0
- pyrogram/raw/base/group_call_participant_video.py +56 -0
- pyrogram/raw/base/group_call_participant_video_source_group.py +56 -0
- pyrogram/raw/base/group_call_stream_channel.py +56 -0
- pyrogram/raw/base/help/__init__.py +45 -0
- pyrogram/raw/base/help/app_config.py +67 -0
- pyrogram/raw/base/help/app_update.py +67 -0
- pyrogram/raw/base/help/config_simple.py +56 -0
- pyrogram/raw/base/help/countries_list.py +67 -0
- pyrogram/raw/base/help/country.py +56 -0
- pyrogram/raw/base/help/country_code.py +56 -0
- pyrogram/raw/base/help/deep_link_info.py +67 -0
- pyrogram/raw/base/help/invite_text.py +66 -0
- pyrogram/raw/base/help/passport_config.py +67 -0
- pyrogram/raw/base/help/peer_color_option.py +56 -0
- pyrogram/raw/base/help/peer_color_set.py +57 -0
- pyrogram/raw/base/help/peer_colors.py +68 -0
- pyrogram/raw/base/help/premium_promo.py +66 -0
- pyrogram/raw/base/help/promo_data.py +67 -0
- pyrogram/raw/base/help/recent_me_urls.py +66 -0
- pyrogram/raw/base/help/support.py +66 -0
- pyrogram/raw/base/help/support_name.py +66 -0
- pyrogram/raw/base/help/terms_of_service.py +56 -0
- pyrogram/raw/base/help/terms_of_service_update.py +67 -0
- pyrogram/raw/base/help/timezones_list.py +67 -0
- pyrogram/raw/base/help/user_info.py +68 -0
- pyrogram/raw/base/high_score.py +56 -0
- pyrogram/raw/base/http_wait.py +56 -0
- pyrogram/raw/base/imported_contact.py +56 -0
- pyrogram/raw/base/inline_bot_switch_pm.py +56 -0
- pyrogram/raw/base/inline_bot_web_view.py +56 -0
- pyrogram/raw/base/inline_query_peer_type.py +61 -0
- pyrogram/raw/base/input_ai_compose_tone.py +58 -0
- pyrogram/raw/base/input_app_event.py +56 -0
- pyrogram/raw/base/input_bot_app.py +57 -0
- pyrogram/raw/base/input_bot_inline_message.py +64 -0
- pyrogram/raw/base/input_bot_inline_message_id.py +67 -0
- pyrogram/raw/base/input_bot_inline_result.py +59 -0
- pyrogram/raw/base/input_business_away_message.py +56 -0
- pyrogram/raw/base/input_business_bot_recipients.py +56 -0
- pyrogram/raw/base/input_business_chat_link.py +56 -0
- pyrogram/raw/base/input_business_greeting_message.py +56 -0
- pyrogram/raw/base/input_business_intro.py +56 -0
- pyrogram/raw/base/input_business_recipients.py +56 -0
- pyrogram/raw/base/input_channel.py +58 -0
- pyrogram/raw/base/input_chat_photo.py +58 -0
- pyrogram/raw/base/input_chat_theme.py +58 -0
- pyrogram/raw/base/input_chatlist.py +56 -0
- pyrogram/raw/base/input_check_password_srp.py +57 -0
- pyrogram/raw/base/input_client_proxy.py +56 -0
- pyrogram/raw/base/input_collectible.py +57 -0
- pyrogram/raw/base/input_contact.py +56 -0
- pyrogram/raw/base/input_dialog_peer.py +57 -0
- pyrogram/raw/base/input_document.py +57 -0
- pyrogram/raw/base/input_encrypted_chat.py +56 -0
- pyrogram/raw/base/input_encrypted_file.py +59 -0
- pyrogram/raw/base/input_file.py +58 -0
- pyrogram/raw/base/input_file_location.py +65 -0
- pyrogram/raw/base/input_folder_peer.py +56 -0
- pyrogram/raw/base/input_game.py +57 -0
- pyrogram/raw/base/input_geo_point.py +57 -0
- pyrogram/raw/base/input_group_call.py +58 -0
- pyrogram/raw/base/input_invoice.py +70 -0
- pyrogram/raw/base/input_media.py +75 -0
- pyrogram/raw/base/input_message.py +59 -0
- pyrogram/raw/base/input_message_read_metric.py +56 -0
- pyrogram/raw/base/input_notify_peer.py +60 -0
- pyrogram/raw/base/input_passkey_credential.py +57 -0
- pyrogram/raw/base/input_passkey_response.py +57 -0
- pyrogram/raw/base/input_payment_credentials.py +59 -0
- pyrogram/raw/base/input_peer.py +62 -0
- pyrogram/raw/base/input_peer_notify_settings.py +56 -0
- pyrogram/raw/base/input_phone_call.py +56 -0
- pyrogram/raw/base/input_photo.py +57 -0
- pyrogram/raw/base/input_privacy_key.py +69 -0
- pyrogram/raw/base/input_privacy_rule.py +67 -0
- pyrogram/raw/base/input_quick_reply_shortcut.py +57 -0
- pyrogram/raw/base/input_reply_to.py +58 -0
- pyrogram/raw/base/input_rich_file.py +57 -0
- pyrogram/raw/base/input_rich_message.py +58 -0
- pyrogram/raw/base/input_saved_star_gift.py +58 -0
- pyrogram/raw/base/input_secure_file.py +57 -0
- pyrogram/raw/base/input_secure_value.py +56 -0
- pyrogram/raw/base/input_single_media.py +56 -0
- pyrogram/raw/base/input_star_gift_auction.py +57 -0
- pyrogram/raw/base/input_stars_transaction.py +56 -0
- pyrogram/raw/base/input_sticker_set.py +67 -0
- pyrogram/raw/base/input_sticker_set_item.py +56 -0
- pyrogram/raw/base/input_stickered_media.py +57 -0
- pyrogram/raw/base/input_store_payment_purpose.py +63 -0
- pyrogram/raw/base/input_theme.py +57 -0
- pyrogram/raw/base/input_theme_settings.py +56 -0
- pyrogram/raw/base/input_user.py +59 -0
- pyrogram/raw/base/input_wall_paper.py +58 -0
- pyrogram/raw/base/input_web_document.py +56 -0
- pyrogram/raw/base/input_web_file_location.py +58 -0
- pyrogram/raw/base/invoice.py +56 -0
- pyrogram/raw/base/ip_port.py +57 -0
- pyrogram/raw/base/join_chat_bot_result.py +59 -0
- pyrogram/raw/base/json_object_value.py +56 -0
- pyrogram/raw/base/json_value.py +61 -0
- pyrogram/raw/base/keyboard_button.py +83 -0
- pyrogram/raw/base/keyboard_button_row.py +56 -0
- pyrogram/raw/base/keyboard_button_style.py +56 -0
- pyrogram/raw/base/labeled_price.py +56 -0
- pyrogram/raw/base/lang_pack_difference.py +67 -0
- pyrogram/raw/base/lang_pack_language.py +67 -0
- pyrogram/raw/base/lang_pack_string.py +68 -0
- pyrogram/raw/base/mask_coords.py +56 -0
- pyrogram/raw/base/media_area.py +64 -0
- pyrogram/raw/base/media_area_coordinates.py +56 -0
- pyrogram/raw/base/message.py +58 -0
- pyrogram/raw/base/message_action.py +122 -0
- pyrogram/raw/base/message_entity.py +80 -0
- pyrogram/raw/base/message_extended_media.py +57 -0
- pyrogram/raw/base/message_fwd_header.py +56 -0
- pyrogram/raw/base/message_media.py +85 -0
- pyrogram/raw/base/message_peer_reaction.py +56 -0
- pyrogram/raw/base/message_peer_vote.py +58 -0
- pyrogram/raw/base/message_range.py +66 -0
- pyrogram/raw/base/message_reactions.py +56 -0
- pyrogram/raw/base/message_reactor.py +56 -0
- pyrogram/raw/base/message_replies.py +56 -0
- pyrogram/raw/base/message_reply_header.py +57 -0
- pyrogram/raw/base/message_report_option.py +56 -0
- pyrogram/raw/base/message_views.py +56 -0
- pyrogram/raw/base/messages/__init__.py +88 -0
- pyrogram/raw/base/messages/affected_found_messages.py +66 -0
- pyrogram/raw/base/messages/affected_history.py +73 -0
- pyrogram/raw/base/messages/affected_messages.py +69 -0
- pyrogram/raw/base/messages/all_stickers.py +69 -0
- pyrogram/raw/base/messages/archived_stickers.py +66 -0
- pyrogram/raw/base/messages/available_effects.py +67 -0
- pyrogram/raw/base/messages/available_reactions.py +67 -0
- pyrogram/raw/base/messages/bot_app.py +66 -0
- pyrogram/raw/base/messages/bot_callback_answer.py +66 -0
- pyrogram/raw/base/messages/bot_prepared_inline_message.py +66 -0
- pyrogram/raw/base/messages/bot_results.py +66 -0
- pyrogram/raw/base/messages/chat_admins_with_invites.py +66 -0
- pyrogram/raw/base/messages/chat_full.py +67 -0
- pyrogram/raw/base/messages/chat_invite_importers.py +66 -0
- pyrogram/raw/base/messages/chat_invite_join_result.py +68 -0
- pyrogram/raw/base/messages/chats.py +74 -0
- pyrogram/raw/base/messages/checked_history_import_peer.py +66 -0
- pyrogram/raw/base/messages/composed_message_with_ai.py +66 -0
- pyrogram/raw/base/messages/dh_config.py +67 -0
- pyrogram/raw/base/messages/dialog_filters.py +66 -0
- pyrogram/raw/base/messages/dialogs.py +68 -0
- pyrogram/raw/base/messages/discussion_message.py +66 -0
- pyrogram/raw/base/messages/emoji_game_info.py +67 -0
- pyrogram/raw/base/messages/emoji_game_outcome.py +56 -0
- pyrogram/raw/base/messages/emoji_groups.py +70 -0
- pyrogram/raw/base/messages/exported_chat_invite.py +68 -0
- pyrogram/raw/base/messages/exported_chat_invites.py +66 -0
- pyrogram/raw/base/messages/faved_stickers.py +67 -0
- pyrogram/raw/base/messages/featured_stickers.py +69 -0
- pyrogram/raw/base/messages/forum_topics.py +67 -0
- pyrogram/raw/base/messages/found_sticker_sets.py +68 -0
- pyrogram/raw/base/messages/found_stickers.py +67 -0
- pyrogram/raw/base/messages/high_scores.py +67 -0
- pyrogram/raw/base/messages/history_import.py +66 -0
- pyrogram/raw/base/messages/history_import_parsed.py +66 -0
- pyrogram/raw/base/messages/inactive_chats.py +66 -0
- pyrogram/raw/base/messages/invited_users.py +68 -0
- pyrogram/raw/base/messages/message_edit_data.py +66 -0
- pyrogram/raw/base/messages/message_reactions_list.py +66 -0
- pyrogram/raw/base/messages/message_views.py +66 -0
- pyrogram/raw/base/messages/messages.py +86 -0
- pyrogram/raw/base/messages/my_stickers.py +66 -0
- pyrogram/raw/base/messages/peer_dialogs.py +67 -0
- pyrogram/raw/base/messages/peer_settings.py +66 -0
- pyrogram/raw/base/messages/prepared_inline_message.py +66 -0
- pyrogram/raw/base/messages/quick_replies.py +67 -0
- pyrogram/raw/base/messages/reactions.py +69 -0
- pyrogram/raw/base/messages/recent_stickers.py +67 -0
- pyrogram/raw/base/messages/saved_dialogs.py +70 -0
- pyrogram/raw/base/messages/saved_gifs.py +67 -0
- pyrogram/raw/base/messages/saved_reaction_tags.py +67 -0
- pyrogram/raw/base/messages/search_counter.py +66 -0
- pyrogram/raw/base/messages/search_results_calendar.py +66 -0
- pyrogram/raw/base/messages/search_results_positions.py +66 -0
- pyrogram/raw/base/messages/sent_encrypted_message.py +69 -0
- pyrogram/raw/base/messages/sponsored_messages.py +67 -0
- pyrogram/raw/base/messages/sticker_set.py +75 -0
- pyrogram/raw/base/messages/sticker_set_install_result.py +67 -0
- pyrogram/raw/base/messages/stickers.py +67 -0
- pyrogram/raw/base/messages/transcribed_audio.py +66 -0
- pyrogram/raw/base/messages/translated_text.py +66 -0
- pyrogram/raw/base/messages/votes_list.py +66 -0
- pyrogram/raw/base/messages/web_page.py +66 -0
- pyrogram/raw/base/messages/web_page_preview.py +66 -0
- pyrogram/raw/base/messages_filter.py +73 -0
- pyrogram/raw/base/missing_invitee.py +56 -0
- pyrogram/raw/base/msg_detailed_info.py +57 -0
- pyrogram/raw/base/msg_resend_req.py +57 -0
- pyrogram/raw/base/msgs_ack.py +56 -0
- pyrogram/raw/base/msgs_all_info.py +56 -0
- pyrogram/raw/base/msgs_state_info.py +56 -0
- pyrogram/raw/base/msgs_state_req.py +56 -0
- pyrogram/raw/base/my_boost.py +56 -0
- pyrogram/raw/base/nearest_dc.py +66 -0
- pyrogram/raw/base/new_session.py +56 -0
- pyrogram/raw/base/notification_sound.py +59 -0
- pyrogram/raw/base/notify_peer.py +60 -0
- pyrogram/raw/base/outbox_read_date.py +66 -0
- pyrogram/raw/base/page.py +56 -0
- pyrogram/raw/base/page_block.py +94 -0
- pyrogram/raw/base/page_caption.py +56 -0
- pyrogram/raw/base/page_list_item.py +57 -0
- pyrogram/raw/base/page_list_ordered_item.py +57 -0
- pyrogram/raw/base/page_related_article.py +56 -0
- pyrogram/raw/base/page_table_cell.py +56 -0
- pyrogram/raw/base/page_table_row.py +56 -0
- pyrogram/raw/base/paid_reaction_privacy.py +58 -0
- pyrogram/raw/base/passkey.py +66 -0
- pyrogram/raw/base/password_kdf_algo.py +57 -0
- pyrogram/raw/base/payment_charge.py +56 -0
- pyrogram/raw/base/payment_form_method.py +56 -0
- pyrogram/raw/base/payment_requested_info.py +56 -0
- pyrogram/raw/base/payment_saved_credentials.py +56 -0
- pyrogram/raw/base/payments/__init__.py +52 -0
- pyrogram/raw/base/payments/bank_card_data.py +66 -0
- pyrogram/raw/base/payments/check_can_send_gift_result.py +67 -0
- pyrogram/raw/base/payments/checked_gift_code.py +66 -0
- pyrogram/raw/base/payments/connected_star_ref_bots.py +69 -0
- pyrogram/raw/base/payments/exported_invoice.py +66 -0
- pyrogram/raw/base/payments/giveaway_info.py +67 -0
- pyrogram/raw/base/payments/payment_form.py +68 -0
- pyrogram/raw/base/payments/payment_receipt.py +67 -0
- pyrogram/raw/base/payments/payment_result.py +68 -0
- pyrogram/raw/base/payments/resale_star_gifts.py +66 -0
- pyrogram/raw/base/payments/saved_info.py +66 -0
- pyrogram/raw/base/payments/saved_star_gifts.py +68 -0
- pyrogram/raw/base/payments/star_gift_active_auctions.py +67 -0
- pyrogram/raw/base/payments/star_gift_auction_acquired_gifts.py +66 -0
- pyrogram/raw/base/payments/star_gift_auction_state.py +66 -0
- pyrogram/raw/base/payments/star_gift_collections.py +67 -0
- pyrogram/raw/base/payments/star_gift_upgrade_attributes.py +66 -0
- pyrogram/raw/base/payments/star_gift_upgrade_preview.py +66 -0
- pyrogram/raw/base/payments/star_gift_withdrawal_url.py +66 -0
- pyrogram/raw/base/payments/star_gifts.py +67 -0
- pyrogram/raw/base/payments/stars_revenue_ads_account_url.py +66 -0
- pyrogram/raw/base/payments/stars_revenue_stats.py +66 -0
- pyrogram/raw/base/payments/stars_revenue_withdrawal_url.py +66 -0
- pyrogram/raw/base/payments/stars_status.py +69 -0
- pyrogram/raw/base/payments/suggested_star_ref_bots.py +66 -0
- pyrogram/raw/base/payments/unique_star_gift.py +66 -0
- pyrogram/raw/base/payments/unique_star_gift_value_info.py +66 -0
- pyrogram/raw/base/payments/validated_requested_info.py +66 -0
- pyrogram/raw/base/peer.py +68 -0
- pyrogram/raw/base/peer_blocked.py +56 -0
- pyrogram/raw/base/peer_color.py +58 -0
- pyrogram/raw/base/peer_located.py +57 -0
- pyrogram/raw/base/peer_notify_settings.py +66 -0
- pyrogram/raw/base/peer_settings.py +56 -0
- pyrogram/raw/base/peer_stories.py +56 -0
- pyrogram/raw/base/pending_suggestion.py +56 -0
- pyrogram/raw/base/phone/__init__.py +32 -0
- pyrogram/raw/base/phone/exported_group_call_invite.py +66 -0
- pyrogram/raw/base/phone/group_call.py +66 -0
- pyrogram/raw/base/phone/group_call_stars.py +66 -0
- pyrogram/raw/base/phone/group_call_stream_channels.py +66 -0
- pyrogram/raw/base/phone/group_call_stream_rtmp_url.py +66 -0
- pyrogram/raw/base/phone/group_participants.py +66 -0
- pyrogram/raw/base/phone/join_as_peers.py +66 -0
- pyrogram/raw/base/phone/phone_call.py +68 -0
- pyrogram/raw/base/phone_call.py +61 -0
- pyrogram/raw/base/phone_call_discard_reason.py +60 -0
- pyrogram/raw/base/phone_call_protocol.py +56 -0
- pyrogram/raw/base/phone_connection.py +57 -0
- pyrogram/raw/base/photo.py +57 -0
- pyrogram/raw/base/photo_size.py +61 -0
- pyrogram/raw/base/photos/__init__.py +26 -0
- pyrogram/raw/base/photos/photo.py +68 -0
- pyrogram/raw/base/photos/photos.py +67 -0
- pyrogram/raw/base/poll.py +56 -0
- pyrogram/raw/base/poll_answer.py +57 -0
- pyrogram/raw/base/poll_answer_voters.py +56 -0
- pyrogram/raw/base/poll_results.py +56 -0
- pyrogram/raw/base/pong.py +67 -0
- pyrogram/raw/base/popular_contact.py +56 -0
- pyrogram/raw/base/post_address.py +56 -0
- pyrogram/raw/base/post_interaction_counters.py +57 -0
- pyrogram/raw/base/pq_inner_data.py +59 -0
- pyrogram/raw/base/premium/__init__.py +27 -0
- pyrogram/raw/base/premium/boosts_list.py +67 -0
- pyrogram/raw/base/premium/boosts_status.py +66 -0
- pyrogram/raw/base/premium/my_boosts.py +67 -0
- pyrogram/raw/base/premium_gift_code_option.py +66 -0
- pyrogram/raw/base/premium_subscription_option.py +56 -0
- pyrogram/raw/base/prepaid_giveaway.py +57 -0
- pyrogram/raw/base/privacy_key.py +69 -0
- pyrogram/raw/base/privacy_rule.py +67 -0
- pyrogram/raw/base/profile_tab.py +63 -0
- pyrogram/raw/base/public_forward.py +57 -0
- pyrogram/raw/base/quick_reply.py +56 -0
- pyrogram/raw/base/reaction.py +59 -0
- pyrogram/raw/base/reaction_count.py +56 -0
- pyrogram/raw/base/reaction_notifications_from.py +57 -0
- pyrogram/raw/base/reactions_notify_settings.py +67 -0
- pyrogram/raw/base/read_participant_date.py +66 -0
- pyrogram/raw/base/received_notify_message.py +66 -0
- pyrogram/raw/base/recent_me_url.py +60 -0
- pyrogram/raw/base/recent_story.py +66 -0
- pyrogram/raw/base/reply_markup.py +59 -0
- pyrogram/raw/base/report_reason.py +65 -0
- pyrogram/raw/base/report_result.py +69 -0
- pyrogram/raw/base/request_peer_type.py +59 -0
- pyrogram/raw/base/requested_peer.py +58 -0
- pyrogram/raw/base/requirement_to_contact.py +68 -0
- pyrogram/raw/base/res_pq.py +67 -0
- pyrogram/raw/base/restriction_reason.py +56 -0
- pyrogram/raw/base/rich_message.py +56 -0
- pyrogram/raw/base/rich_text.py +84 -0
- pyrogram/raw/base/rpc_drop_answer.py +68 -0
- pyrogram/raw/base/rpc_error.py +56 -0
- pyrogram/raw/base/rpc_result.py +56 -0
- pyrogram/raw/base/saved_contact.py +66 -0
- pyrogram/raw/base/saved_dialog.py +57 -0
- pyrogram/raw/base/saved_reaction_tag.py +56 -0
- pyrogram/raw/base/saved_star_gift.py +56 -0
- pyrogram/raw/base/search_posts_flood.py +66 -0
- pyrogram/raw/base/search_results_calendar_period.py +56 -0
- pyrogram/raw/base/search_results_position.py +56 -0
- pyrogram/raw/base/secure_credentials_encrypted.py +56 -0
- pyrogram/raw/base/secure_data.py +56 -0
- pyrogram/raw/base/secure_file.py +57 -0
- pyrogram/raw/base/secure_password_kdf_algo.py +58 -0
- pyrogram/raw/base/secure_plain_data.py +57 -0
- pyrogram/raw/base/secure_required_type.py +57 -0
- pyrogram/raw/base/secure_secret_settings.py +56 -0
- pyrogram/raw/base/secure_value.py +68 -0
- pyrogram/raw/base/secure_value_error.py +64 -0
- pyrogram/raw/base/secure_value_hash.py +56 -0
- pyrogram/raw/base/secure_value_type.py +68 -0
- pyrogram/raw/base/send_as_peer.py +56 -0
- pyrogram/raw/base/send_message_action.py +76 -0
- pyrogram/raw/base/server_dh_inner_data.py +56 -0
- pyrogram/raw/base/server_dh_params.py +67 -0
- pyrogram/raw/base/set_client_dh_params_answer.py +68 -0
- pyrogram/raw/base/shipping_option.py +56 -0
- pyrogram/raw/base/sms_job.py +66 -0
- pyrogram/raw/base/smsjobs/__init__.py +26 -0
- pyrogram/raw/base/smsjobs/eligibility_to_join.py +66 -0
- pyrogram/raw/base/smsjobs/status.py +66 -0
- pyrogram/raw/base/sponsored_message.py +56 -0
- pyrogram/raw/base/sponsored_message_report_option.py +56 -0
- pyrogram/raw/base/sponsored_peer.py +56 -0
- pyrogram/raw/base/star_gift.py +57 -0
- pyrogram/raw/base/star_gift_active_auction_state.py +56 -0
- pyrogram/raw/base/star_gift_attribute.py +59 -0
- pyrogram/raw/base/star_gift_attribute_counter.py +56 -0
- pyrogram/raw/base/star_gift_attribute_id.py +58 -0
- pyrogram/raw/base/star_gift_attribute_rarity.py +60 -0
- pyrogram/raw/base/star_gift_auction_acquired_gift.py +56 -0
- pyrogram/raw/base/star_gift_auction_round.py +57 -0
- pyrogram/raw/base/star_gift_auction_state.py +58 -0
- pyrogram/raw/base/star_gift_auction_user_state.py +56 -0
- pyrogram/raw/base/star_gift_background.py +56 -0
- pyrogram/raw/base/star_gift_collection.py +67 -0
- pyrogram/raw/base/star_gift_upgrade_price.py +56 -0
- pyrogram/raw/base/star_ref_program.py +66 -0
- pyrogram/raw/base/stars_amount.py +57 -0
- pyrogram/raw/base/stars_gift_option.py +66 -0
- pyrogram/raw/base/stars_giveaway_option.py +66 -0
- pyrogram/raw/base/stars_giveaway_winners_option.py +56 -0
- pyrogram/raw/base/stars_rating.py +56 -0
- pyrogram/raw/base/stars_revenue_status.py +56 -0
- pyrogram/raw/base/stars_subscription.py +56 -0
- pyrogram/raw/base/stars_subscription_pricing.py +56 -0
- pyrogram/raw/base/stars_topup_option.py +66 -0
- pyrogram/raw/base/stars_transaction.py +56 -0
- pyrogram/raw/base/stars_transaction_peer.py +63 -0
- pyrogram/raw/base/stats/__init__.py +30 -0
- pyrogram/raw/base/stats/broadcast_stats.py +66 -0
- pyrogram/raw/base/stats/megagroup_stats.py +66 -0
- pyrogram/raw/base/stats/message_stats.py +66 -0
- pyrogram/raw/base/stats/poll_stats.py +66 -0
- pyrogram/raw/base/stats/public_forwards.py +67 -0
- pyrogram/raw/base/stats/story_stats.py +66 -0
- pyrogram/raw/base/stats_abs_value_and_prev.py +56 -0
- pyrogram/raw/base/stats_date_range_days.py +56 -0
- pyrogram/raw/base/stats_graph.py +68 -0
- pyrogram/raw/base/stats_group_top_admin.py +56 -0
- pyrogram/raw/base/stats_group_top_inviter.py +56 -0
- pyrogram/raw/base/stats_group_top_poster.py +56 -0
- pyrogram/raw/base/stats_percent_value.py +56 -0
- pyrogram/raw/base/stats_url.py +56 -0
- pyrogram/raw/base/sticker_keyword.py +56 -0
- pyrogram/raw/base/sticker_pack.py +56 -0
- pyrogram/raw/base/sticker_set.py +56 -0
- pyrogram/raw/base/sticker_set_covered.py +69 -0
- pyrogram/raw/base/stickers/__init__.py +25 -0
- pyrogram/raw/base/stickers/suggested_short_name.py +66 -0
- pyrogram/raw/base/storage/__init__.py +25 -0
- pyrogram/raw/base/storage/file_type.py +65 -0
- pyrogram/raw/base/stories/__init__.py +33 -0
- pyrogram/raw/base/stories/albums.py +67 -0
- pyrogram/raw/base/stories/all_stories.py +67 -0
- pyrogram/raw/base/stories/can_send_story_count.py +66 -0
- pyrogram/raw/base/stories/found_stories.py +66 -0
- pyrogram/raw/base/stories/peer_stories.py +66 -0
- pyrogram/raw/base/stories/stories.py +69 -0
- pyrogram/raw/base/stories/story_reactions_list.py +66 -0
- pyrogram/raw/base/stories/story_views.py +66 -0
- pyrogram/raw/base/stories/story_views_list.py +66 -0
- pyrogram/raw/base/stories_stealth_mode.py +56 -0
- pyrogram/raw/base/story_album.py +67 -0
- pyrogram/raw/base/story_fwd_header.py +56 -0
- pyrogram/raw/base/story_item.py +58 -0
- pyrogram/raw/base/story_reaction.py +58 -0
- pyrogram/raw/base/story_view.py +58 -0
- pyrogram/raw/base/story_views.py +56 -0
- pyrogram/raw/base/suggested_post.py +56 -0
- pyrogram/raw/base/text_with_entities.py +66 -0
- pyrogram/raw/base/theme.py +68 -0
- pyrogram/raw/base/theme_settings.py +56 -0
- pyrogram/raw/base/timezone.py +56 -0
- pyrogram/raw/base/todo_completion.py +56 -0
- pyrogram/raw/base/todo_item.py +56 -0
- pyrogram/raw/base/todo_list.py +56 -0
- pyrogram/raw/base/top_peer.py +56 -0
- pyrogram/raw/base/top_peer_category.py +65 -0
- pyrogram/raw/base/top_peer_category_peers.py +56 -0
- pyrogram/raw/base/update.py +215 -0
- pyrogram/raw/base/updates/__init__.py +27 -0
- pyrogram/raw/base/updates/channel_difference.py +68 -0
- pyrogram/raw/base/updates/difference.py +69 -0
- pyrogram/raw/base/updates/state.py +66 -0
- pyrogram/raw/base/updates_t.py +201 -0
- pyrogram/raw/base/upload/__init__.py +27 -0
- pyrogram/raw/base/upload/cdn_file.py +67 -0
- pyrogram/raw/base/upload/file.py +67 -0
- pyrogram/raw/base/upload/web_file.py +66 -0
- pyrogram/raw/base/url_auth_result.py +69 -0
- pyrogram/raw/base/user.py +75 -0
- pyrogram/raw/base/user_full.py +56 -0
- pyrogram/raw/base/user_profile_photo.py +57 -0
- pyrogram/raw/base/user_status.py +61 -0
- pyrogram/raw/base/username.py +56 -0
- pyrogram/raw/base/users/__init__.py +27 -0
- pyrogram/raw/base/users/saved_music.py +68 -0
- pyrogram/raw/base/users/user_full.py +66 -0
- pyrogram/raw/base/users/users.py +67 -0
- pyrogram/raw/base/video_size.py +58 -0
- pyrogram/raw/base/wall_paper.py +69 -0
- pyrogram/raw/base/wall_paper_settings.py +56 -0
- pyrogram/raw/base/web_authorization.py +56 -0
- pyrogram/raw/base/web_document.py +57 -0
- pyrogram/raw/base/web_domain_exception.py +56 -0
- pyrogram/raw/base/web_page.py +59 -0
- pyrogram/raw/base/web_page_attribute.py +62 -0
- pyrogram/raw/base/web_view_message_sent.py +66 -0
- pyrogram/raw/base/web_view_result.py +69 -0
- pyrogram/raw/core/__init__.py +32 -0
- pyrogram/raw/core/base_type_meta.py +26 -0
- pyrogram/raw/core/future_salt.py +53 -0
- pyrogram/raw/core/future_salts.py +63 -0
- pyrogram/raw/core/gzip_packed.py +62 -0
- pyrogram/raw/core/list.py +26 -0
- pyrogram/raw/core/message.py +56 -0
- pyrogram/raw/core/msg_container.py +53 -0
- pyrogram/raw/core/primitives/__init__.py +24 -0
- pyrogram/raw/core/primitives/bool.py +48 -0
- pyrogram/raw/core/primitives/bytes.py +55 -0
- pyrogram/raw/core/primitives/double.py +32 -0
- pyrogram/raw/core/primitives/int.py +45 -0
- pyrogram/raw/core/primitives/string.py +31 -0
- pyrogram/raw/core/primitives/vector.py +66 -0
- pyrogram/raw/core/tl_object.py +84 -0
- pyrogram/raw/functions/__init__.py +46 -0
- pyrogram/raw/functions/account/__init__.py +152 -0
- pyrogram/raw/functions/account/accept_authorization.py +106 -0
- pyrogram/raw/functions/account/cancel_password_email.py +69 -0
- pyrogram/raw/functions/account/change_authorization_settings.py +100 -0
- pyrogram/raw/functions/account/change_phone.py +90 -0
- pyrogram/raw/functions/account/check_username.py +74 -0
- pyrogram/raw/functions/account/clear_recent_emoji_statuses.py +69 -0
- pyrogram/raw/functions/account/confirm_bot_connection.py +74 -0
- pyrogram/raw/functions/account/confirm_password_email.py +74 -0
- pyrogram/raw/functions/account/confirm_phone.py +82 -0
- pyrogram/raw/functions/account/create_business_chat_link.py +74 -0
- pyrogram/raw/functions/account/create_theme.py +104 -0
- pyrogram/raw/functions/account/decline_password_reset.py +69 -0
- pyrogram/raw/functions/account/delete_account.py +86 -0
- pyrogram/raw/functions/account/delete_auto_save_exceptions.py +69 -0
- pyrogram/raw/functions/account/delete_business_chat_link.py +74 -0
- pyrogram/raw/functions/account/delete_passkey.py +74 -0
- pyrogram/raw/functions/account/delete_secure_value.py +74 -0
- pyrogram/raw/functions/account/delete_web_browser_settings_exceptions.py +69 -0
- pyrogram/raw/functions/account/disable_peer_connected_bot.py +74 -0
- pyrogram/raw/functions/account/edit_business_chat_link.py +82 -0
- pyrogram/raw/functions/account/finish_takeout_session.py +74 -0
- pyrogram/raw/functions/account/get_account_ttl.py +69 -0
- pyrogram/raw/functions/account/get_all_secure_values.py +69 -0
- pyrogram/raw/functions/account/get_authorization_form.py +90 -0
- pyrogram/raw/functions/account/get_authorizations.py +69 -0
- pyrogram/raw/functions/account/get_auto_download_settings.py +69 -0
- pyrogram/raw/functions/account/get_auto_save_settings.py +69 -0
- pyrogram/raw/functions/account/get_bot_business_connection.py +74 -0
- pyrogram/raw/functions/account/get_business_chat_links.py +69 -0
- pyrogram/raw/functions/account/get_channel_default_emoji_statuses.py +74 -0
- pyrogram/raw/functions/account/get_channel_restricted_status_emojis.py +74 -0
- pyrogram/raw/functions/account/get_chat_themes.py +74 -0
- pyrogram/raw/functions/account/get_collectible_emoji_statuses.py +74 -0
- pyrogram/raw/functions/account/get_connected_bots.py +69 -0
- pyrogram/raw/functions/account/get_contact_sign_up_notification.py +69 -0
- pyrogram/raw/functions/account/get_content_settings.py +69 -0
- pyrogram/raw/functions/account/get_default_background_emojis.py +74 -0
- pyrogram/raw/functions/account/get_default_emoji_statuses.py +74 -0
- pyrogram/raw/functions/account/get_default_group_photo_emojis.py +74 -0
- pyrogram/raw/functions/account/get_default_profile_photo_emojis.py +74 -0
- pyrogram/raw/functions/account/get_global_privacy_settings.py +69 -0
- pyrogram/raw/functions/account/get_multi_wall_papers.py +74 -0
- pyrogram/raw/functions/account/get_notify_exceptions.py +90 -0
- pyrogram/raw/functions/account/get_notify_settings.py +74 -0
- pyrogram/raw/functions/account/get_paid_messages_revenue.py +86 -0
- pyrogram/raw/functions/account/get_passkeys.py +69 -0
- pyrogram/raw/functions/account/get_password.py +69 -0
- pyrogram/raw/functions/account/get_password_settings.py +74 -0
- pyrogram/raw/functions/account/get_privacy.py +74 -0
- pyrogram/raw/functions/account/get_reactions_notify_settings.py +69 -0
- pyrogram/raw/functions/account/get_recent_emoji_statuses.py +74 -0
- pyrogram/raw/functions/account/get_saved_music_ids.py +74 -0
- pyrogram/raw/functions/account/get_saved_ringtones.py +74 -0
- pyrogram/raw/functions/account/get_secure_value.py +74 -0
- pyrogram/raw/functions/account/get_theme.py +82 -0
- pyrogram/raw/functions/account/get_themes.py +82 -0
- pyrogram/raw/functions/account/get_tmp_password.py +82 -0
- pyrogram/raw/functions/account/get_unique_gift_chat_themes.py +90 -0
- pyrogram/raw/functions/account/get_wall_paper.py +74 -0
- pyrogram/raw/functions/account/get_wall_papers.py +74 -0
- pyrogram/raw/functions/account/get_web_authorizations.py +69 -0
- pyrogram/raw/functions/account/get_web_browser_settings.py +74 -0
- pyrogram/raw/functions/account/init_passkey_registration.py +69 -0
- pyrogram/raw/functions/account/init_takeout_session.py +113 -0
- pyrogram/raw/functions/account/install_theme.py +103 -0
- pyrogram/raw/functions/account/install_wall_paper.py +82 -0
- pyrogram/raw/functions/account/invalidate_sign_in_codes.py +74 -0
- pyrogram/raw/functions/account/register_device.py +114 -0
- pyrogram/raw/functions/account/register_passkey.py +74 -0
- pyrogram/raw/functions/account/reorder_usernames.py +74 -0
- pyrogram/raw/functions/account/report_peer.py +90 -0
- pyrogram/raw/functions/account/report_profile_photo.py +98 -0
- pyrogram/raw/functions/account/resend_password_email.py +69 -0
- pyrogram/raw/functions/account/reset_authorization.py +74 -0
- pyrogram/raw/functions/account/reset_notify_settings.py +69 -0
- pyrogram/raw/functions/account/reset_password.py +69 -0
- pyrogram/raw/functions/account/reset_wall_papers.py +69 -0
- pyrogram/raw/functions/account/reset_web_authorization.py +74 -0
- pyrogram/raw/functions/account/reset_web_authorizations.py +69 -0
- pyrogram/raw/functions/account/resolve_business_chat_link.py +74 -0
- pyrogram/raw/functions/account/save_auto_download_settings.py +88 -0
- pyrogram/raw/functions/account/save_auto_save_settings.py +104 -0
- pyrogram/raw/functions/account/save_music.py +92 -0
- pyrogram/raw/functions/account/save_ringtone.py +82 -0
- pyrogram/raw/functions/account/save_secure_value.py +82 -0
- pyrogram/raw/functions/account/save_theme.py +82 -0
- pyrogram/raw/functions/account/save_wall_paper.py +90 -0
- pyrogram/raw/functions/account/send_change_phone_code.py +82 -0
- pyrogram/raw/functions/account/send_confirm_phone_code.py +82 -0
- pyrogram/raw/functions/account/send_verify_email_code.py +82 -0
- pyrogram/raw/functions/account/send_verify_phone_code.py +82 -0
- pyrogram/raw/functions/account/set_account_ttl.py +74 -0
- pyrogram/raw/functions/account/set_authorization_ttl.py +74 -0
- pyrogram/raw/functions/account/set_contact_sign_up_notification.py +74 -0
- pyrogram/raw/functions/account/set_content_settings.py +74 -0
- pyrogram/raw/functions/account/set_global_privacy_settings.py +74 -0
- pyrogram/raw/functions/account/set_main_profile_tab.py +74 -0
- pyrogram/raw/functions/account/set_privacy.py +82 -0
- pyrogram/raw/functions/account/set_reactions_notify_settings.py +74 -0
- pyrogram/raw/functions/account/toggle_connected_bot_paused.py +82 -0
- pyrogram/raw/functions/account/toggle_no_paid_messages_exception.py +98 -0
- pyrogram/raw/functions/account/toggle_sponsored_messages.py +74 -0
- pyrogram/raw/functions/account/toggle_username.py +82 -0
- pyrogram/raw/functions/account/toggle_web_browser_settings_exception.py +91 -0
- pyrogram/raw/functions/account/unregister_device.py +90 -0
- pyrogram/raw/functions/account/update_birthday.py +78 -0
- pyrogram/raw/functions/account/update_business_away_message.py +78 -0
- pyrogram/raw/functions/account/update_business_greeting_message.py +78 -0
- pyrogram/raw/functions/account/update_business_intro.py +78 -0
- pyrogram/raw/functions/account/update_business_location.py +87 -0
- pyrogram/raw/functions/account/update_business_work_hours.py +78 -0
- pyrogram/raw/functions/account/update_color.py +84 -0
- pyrogram/raw/functions/account/update_connected_bot.py +100 -0
- pyrogram/raw/functions/account/update_device_locked.py +74 -0
- pyrogram/raw/functions/account/update_emoji_status.py +74 -0
- pyrogram/raw/functions/account/update_notify_settings.py +82 -0
- pyrogram/raw/functions/account/update_password_settings.py +82 -0
- pyrogram/raw/functions/account/update_personal_channel.py +74 -0
- pyrogram/raw/functions/account/update_profile.py +95 -0
- pyrogram/raw/functions/account/update_status.py +74 -0
- pyrogram/raw/functions/account/update_theme.py +122 -0
- pyrogram/raw/functions/account/update_username.py +74 -0
- pyrogram/raw/functions/account/update_web_browser_settings.py +80 -0
- pyrogram/raw/functions/account/upload_ringtone.py +90 -0
- pyrogram/raw/functions/account/upload_theme.py +102 -0
- pyrogram/raw/functions/account/upload_wall_paper.py +98 -0
- pyrogram/raw/functions/account/verify_email.py +82 -0
- pyrogram/raw/functions/account/verify_phone.py +90 -0
- pyrogram/raw/functions/aicompose/__init__.py +31 -0
- pyrogram/raw/functions/aicompose/create_tone.py +98 -0
- pyrogram/raw/functions/aicompose/delete_tone.py +74 -0
- pyrogram/raw/functions/aicompose/get_tone.py +74 -0
- pyrogram/raw/functions/aicompose/get_tone_example.py +82 -0
- pyrogram/raw/functions/aicompose/get_tones.py +74 -0
- pyrogram/raw/functions/aicompose/save_tone.py +82 -0
- pyrogram/raw/functions/aicompose/update_tone.py +112 -0
- pyrogram/raw/functions/auth/__init__.py +50 -0
- pyrogram/raw/functions/auth/accept_login_token.py +74 -0
- pyrogram/raw/functions/auth/bind_temp_auth_key.py +98 -0
- pyrogram/raw/functions/auth/cancel_code.py +82 -0
- pyrogram/raw/functions/auth/check_paid_auth.py +90 -0
- pyrogram/raw/functions/auth/check_password.py +74 -0
- pyrogram/raw/functions/auth/check_recovery_password.py +74 -0
- pyrogram/raw/functions/auth/drop_temp_auth_keys.py +74 -0
- pyrogram/raw/functions/auth/export_authorization.py +74 -0
- pyrogram/raw/functions/auth/export_login_token.py +90 -0
- pyrogram/raw/functions/auth/finish_passkey_login.py +94 -0
- pyrogram/raw/functions/auth/import_authorization.py +82 -0
- pyrogram/raw/functions/auth/import_bot_authorization.py +98 -0
- pyrogram/raw/functions/auth/import_login_token.py +74 -0
- pyrogram/raw/functions/auth/import_web_token_authorization.py +90 -0
- pyrogram/raw/functions/auth/init_passkey_login.py +82 -0
- pyrogram/raw/functions/auth/log_out.py +69 -0
- pyrogram/raw/functions/auth/recover_password.py +86 -0
- pyrogram/raw/functions/auth/report_missing_code.py +90 -0
- pyrogram/raw/functions/auth/request_firebase_sms.py +111 -0
- pyrogram/raw/functions/auth/request_password_recovery.py +69 -0
- pyrogram/raw/functions/auth/resend_code.py +93 -0
- pyrogram/raw/functions/auth/reset_authorizations.py +69 -0
- pyrogram/raw/functions/auth/reset_login_email.py +82 -0
- pyrogram/raw/functions/auth/send_code.py +98 -0
- pyrogram/raw/functions/auth/sign_in.py +103 -0
- pyrogram/raw/functions/auth/sign_up.py +106 -0
- pyrogram/raw/functions/bots/__init__.py +62 -0
- pyrogram/raw/functions/bots/add_preview_media.py +90 -0
- pyrogram/raw/functions/bots/allow_send_message.py +74 -0
- pyrogram/raw/functions/bots/answer_webhook_json_query.py +82 -0
- pyrogram/raw/functions/bots/can_send_message.py +74 -0
- pyrogram/raw/functions/bots/check_download_file_params.py +90 -0
- pyrogram/raw/functions/bots/check_username.py +74 -0
- pyrogram/raw/functions/bots/create_bot.py +98 -0
- pyrogram/raw/functions/bots/delete_preview_media.py +90 -0
- pyrogram/raw/functions/bots/edit_access_settings.py +92 -0
- pyrogram/raw/functions/bots/edit_preview_media.py +98 -0
- pyrogram/raw/functions/bots/export_bot_token.py +82 -0
- pyrogram/raw/functions/bots/get_access_settings.py +74 -0
- pyrogram/raw/functions/bots/get_admined_bots.py +69 -0
- pyrogram/raw/functions/bots/get_bot_commands.py +82 -0
- pyrogram/raw/functions/bots/get_bot_info.py +86 -0
- pyrogram/raw/functions/bots/get_bot_menu_button.py +74 -0
- pyrogram/raw/functions/bots/get_bot_recommendations.py +74 -0
- pyrogram/raw/functions/bots/get_popular_app_bots.py +82 -0
- pyrogram/raw/functions/bots/get_preview_info.py +82 -0
- pyrogram/raw/functions/bots/get_preview_medias.py +74 -0
- pyrogram/raw/functions/bots/get_requested_web_view_button.py +82 -0
- pyrogram/raw/functions/bots/invoke_web_view_custom_method.py +90 -0
- pyrogram/raw/functions/bots/reorder_preview_medias.py +90 -0
- pyrogram/raw/functions/bots/reorder_usernames.py +82 -0
- pyrogram/raw/functions/bots/request_web_view_button.py +82 -0
- pyrogram/raw/functions/bots/reset_bot_commands.py +82 -0
- pyrogram/raw/functions/bots/send_custom_request.py +82 -0
- pyrogram/raw/functions/bots/set_bot_broadcast_default_admin_rights.py +74 -0
- pyrogram/raw/functions/bots/set_bot_commands.py +90 -0
- pyrogram/raw/functions/bots/set_bot_group_default_admin_rights.py +74 -0
- pyrogram/raw/functions/bots/set_bot_info.py +113 -0
- pyrogram/raw/functions/bots/set_bot_menu_button.py +82 -0
- pyrogram/raw/functions/bots/set_custom_verification.py +101 -0
- pyrogram/raw/functions/bots/set_join_chat_results.py +82 -0
- pyrogram/raw/functions/bots/toggle_user_emoji_status_permission.py +82 -0
- pyrogram/raw/functions/bots/toggle_username.py +90 -0
- pyrogram/raw/functions/bots/update_star_ref_program.py +93 -0
- pyrogram/raw/functions/bots/update_user_emoji_status.py +82 -0
- pyrogram/raw/functions/channels/__init__.py +82 -0
- pyrogram/raw/functions/channels/check_search_posts_flood.py +77 -0
- pyrogram/raw/functions/channels/check_username.py +82 -0
- pyrogram/raw/functions/channels/convert_to_gigagroup.py +74 -0
- pyrogram/raw/functions/channels/create_channel.py +136 -0
- pyrogram/raw/functions/channels/deactivate_all_usernames.py +74 -0
- pyrogram/raw/functions/channels/delete_channel.py +74 -0
- pyrogram/raw/functions/channels/delete_history.py +90 -0
- pyrogram/raw/functions/channels/delete_messages.py +82 -0
- pyrogram/raw/functions/channels/delete_participant_history.py +82 -0
- pyrogram/raw/functions/channels/edit_admin.py +101 -0
- pyrogram/raw/functions/channels/edit_banned.py +90 -0
- pyrogram/raw/functions/channels/edit_location.py +90 -0
- pyrogram/raw/functions/channels/edit_photo.py +82 -0
- pyrogram/raw/functions/channels/edit_title.py +82 -0
- pyrogram/raw/functions/channels/export_message_link.py +96 -0
- pyrogram/raw/functions/channels/get_admin_log.py +128 -0
- pyrogram/raw/functions/channels/get_admined_public_channels.py +86 -0
- pyrogram/raw/functions/channels/get_channel_recommendations.py +78 -0
- pyrogram/raw/functions/channels/get_channels.py +74 -0
- pyrogram/raw/functions/channels/get_full_channel.py +74 -0
- pyrogram/raw/functions/channels/get_groups_for_discussion.py +69 -0
- pyrogram/raw/functions/channels/get_inactive_channels.py +69 -0
- pyrogram/raw/functions/channels/get_left_channels.py +74 -0
- pyrogram/raw/functions/channels/get_message_author.py +82 -0
- pyrogram/raw/functions/channels/get_messages.py +82 -0
- pyrogram/raw/functions/channels/get_participant.py +82 -0
- pyrogram/raw/functions/channels/get_participants.py +106 -0
- pyrogram/raw/functions/channels/get_send_as.py +88 -0
- pyrogram/raw/functions/channels/invite_to_channel.py +82 -0
- pyrogram/raw/functions/channels/join_channel.py +74 -0
- pyrogram/raw/functions/channels/leave_channel.py +74 -0
- pyrogram/raw/functions/channels/read_history.py +82 -0
- pyrogram/raw/functions/channels/read_message_contents.py +82 -0
- pyrogram/raw/functions/channels/reorder_usernames.py +82 -0
- pyrogram/raw/functions/channels/report_anti_spam_false_positive.py +82 -0
- pyrogram/raw/functions/channels/report_spam.py +90 -0
- pyrogram/raw/functions/channels/restrict_sponsored_messages.py +82 -0
- pyrogram/raw/functions/channels/search_posts.py +127 -0
- pyrogram/raw/functions/channels/set_boosts_to_unblock_restrictions.py +82 -0
- pyrogram/raw/functions/channels/set_discussion_group.py +82 -0
- pyrogram/raw/functions/channels/set_emoji_stickers.py +82 -0
- pyrogram/raw/functions/channels/set_main_profile_tab.py +82 -0
- pyrogram/raw/functions/channels/set_stickers.py +82 -0
- pyrogram/raw/functions/channels/toggle_anti_spam.py +82 -0
- pyrogram/raw/functions/channels/toggle_autotranslation.py +82 -0
- pyrogram/raw/functions/channels/toggle_forum.py +90 -0
- pyrogram/raw/functions/channels/toggle_join_request.py +100 -0
- pyrogram/raw/functions/channels/toggle_join_to_send.py +82 -0
- pyrogram/raw/functions/channels/toggle_participants_hidden.py +82 -0
- pyrogram/raw/functions/channels/toggle_pre_history_hidden.py +82 -0
- pyrogram/raw/functions/channels/toggle_signatures.py +88 -0
- pyrogram/raw/functions/channels/toggle_slow_mode.py +82 -0
- pyrogram/raw/functions/channels/toggle_username.py +90 -0
- pyrogram/raw/functions/channels/toggle_view_forum_as_messages.py +82 -0
- pyrogram/raw/functions/channels/update_color.py +100 -0
- pyrogram/raw/functions/channels/update_emoji_status.py +82 -0
- pyrogram/raw/functions/channels/update_paid_messages_price.py +90 -0
- pyrogram/raw/functions/channels/update_username.py +82 -0
- pyrogram/raw/functions/chatlists/__init__.py +35 -0
- pyrogram/raw/functions/chatlists/check_chatlist_invite.py +74 -0
- pyrogram/raw/functions/chatlists/delete_exported_invite.py +82 -0
- pyrogram/raw/functions/chatlists/edit_exported_invite.py +103 -0
- pyrogram/raw/functions/chatlists/export_chatlist_invite.py +90 -0
- pyrogram/raw/functions/chatlists/get_chatlist_updates.py +74 -0
- pyrogram/raw/functions/chatlists/get_exported_invites.py +74 -0
- pyrogram/raw/functions/chatlists/get_leave_chatlist_suggestions.py +74 -0
- pyrogram/raw/functions/chatlists/hide_chatlist_updates.py +74 -0
- pyrogram/raw/functions/chatlists/join_chatlist_invite.py +82 -0
- pyrogram/raw/functions/chatlists/join_chatlist_updates.py +82 -0
- pyrogram/raw/functions/chatlists/leave_chatlist.py +82 -0
- pyrogram/raw/functions/contacts/__init__.py +52 -0
- pyrogram/raw/functions/contacts/accept_contact.py +74 -0
- pyrogram/raw/functions/contacts/add_contact.py +116 -0
- pyrogram/raw/functions/contacts/block.py +82 -0
- pyrogram/raw/functions/contacts/block_from_replies.py +94 -0
- pyrogram/raw/functions/contacts/delete_by_phones.py +74 -0
- pyrogram/raw/functions/contacts/delete_contacts.py +74 -0
- pyrogram/raw/functions/contacts/edit_close_friends.py +74 -0
- pyrogram/raw/functions/contacts/export_contact_token.py +69 -0
- pyrogram/raw/functions/contacts/get_birthdays.py +69 -0
- pyrogram/raw/functions/contacts/get_blocked.py +90 -0
- pyrogram/raw/functions/contacts/get_contact_i_ds.py +74 -0
- pyrogram/raw/functions/contacts/get_contacts.py +74 -0
- pyrogram/raw/functions/contacts/get_located.py +91 -0
- pyrogram/raw/functions/contacts/get_saved.py +69 -0
- pyrogram/raw/functions/contacts/get_sponsored_peers.py +74 -0
- pyrogram/raw/functions/contacts/get_statuses.py +69 -0
- pyrogram/raw/functions/contacts/get_top_peers.py +152 -0
- pyrogram/raw/functions/contacts/import_contact_token.py +74 -0
- pyrogram/raw/functions/contacts/import_contacts.py +74 -0
- pyrogram/raw/functions/contacts/reset_saved.py +69 -0
- pyrogram/raw/functions/contacts/reset_top_peer_rating.py +82 -0
- pyrogram/raw/functions/contacts/resolve_phone.py +74 -0
- pyrogram/raw/functions/contacts/resolve_username.py +85 -0
- pyrogram/raw/functions/contacts/search.py +96 -0
- pyrogram/raw/functions/contacts/set_blocked.py +90 -0
- pyrogram/raw/functions/contacts/toggle_top_peers.py +74 -0
- pyrogram/raw/functions/contacts/unblock.py +82 -0
- pyrogram/raw/functions/contacts/update_contact_note.py +82 -0
- pyrogram/raw/functions/contest/__init__.py +25 -0
- pyrogram/raw/functions/contest/save_developer_info.py +106 -0
- pyrogram/raw/functions/destroy_auth_key.py +69 -0
- pyrogram/raw/functions/destroy_session.py +74 -0
- pyrogram/raw/functions/folders/__init__.py +25 -0
- pyrogram/raw/functions/folders/edit_peer_folders.py +74 -0
- pyrogram/raw/functions/fragment/__init__.py +25 -0
- pyrogram/raw/functions/fragment/get_collectible_info.py +74 -0
- pyrogram/raw/functions/get_future_salts.py +74 -0
- pyrogram/raw/functions/help/__init__.py +49 -0
- pyrogram/raw/functions/help/accept_terms_of_service.py +74 -0
- pyrogram/raw/functions/help/dismiss_suggestion.py +82 -0
- pyrogram/raw/functions/help/edit_user_info.py +90 -0
- pyrogram/raw/functions/help/get_app_config.py +74 -0
- pyrogram/raw/functions/help/get_app_update.py +74 -0
- pyrogram/raw/functions/help/get_cdn_config.py +69 -0
- pyrogram/raw/functions/help/get_config.py +69 -0
- pyrogram/raw/functions/help/get_countries_list.py +82 -0
- pyrogram/raw/functions/help/get_deep_link_info.py +74 -0
- pyrogram/raw/functions/help/get_invite_text.py +69 -0
- pyrogram/raw/functions/help/get_nearest_dc.py +69 -0
- pyrogram/raw/functions/help/get_passport_config.py +74 -0
- pyrogram/raw/functions/help/get_peer_colors.py +74 -0
- pyrogram/raw/functions/help/get_peer_profile_colors.py +74 -0
- pyrogram/raw/functions/help/get_premium_promo.py +69 -0
- pyrogram/raw/functions/help/get_promo_data.py +69 -0
- pyrogram/raw/functions/help/get_recent_me_urls.py +74 -0
- pyrogram/raw/functions/help/get_support.py +69 -0
- pyrogram/raw/functions/help/get_support_name.py +69 -0
- pyrogram/raw/functions/help/get_terms_of_service_update.py +69 -0
- pyrogram/raw/functions/help/get_timezones_list.py +74 -0
- pyrogram/raw/functions/help/get_user_info.py +74 -0
- pyrogram/raw/functions/help/hide_promo_data.py +74 -0
- pyrogram/raw/functions/help/save_app_log.py +74 -0
- pyrogram/raw/functions/help/set_bot_updates_status.py +82 -0
- pyrogram/raw/functions/init_connection.py +152 -0
- pyrogram/raw/functions/invoke_after_msg.py +82 -0
- pyrogram/raw/functions/invoke_after_msgs.py +82 -0
- pyrogram/raw/functions/invoke_with_apns_secret.py +90 -0
- pyrogram/raw/functions/invoke_with_business_connection.py +82 -0
- pyrogram/raw/functions/invoke_with_google_play_integrity.py +90 -0
- pyrogram/raw/functions/invoke_with_layer.py +82 -0
- pyrogram/raw/functions/invoke_with_messages_range.py +82 -0
- pyrogram/raw/functions/invoke_with_re_captcha.py +82 -0
- pyrogram/raw/functions/invoke_with_takeout.py +82 -0
- pyrogram/raw/functions/invoke_without_updates.py +74 -0
- pyrogram/raw/functions/langpack/__init__.py +29 -0
- pyrogram/raw/functions/langpack/get_difference.py +90 -0
- pyrogram/raw/functions/langpack/get_lang_pack.py +82 -0
- pyrogram/raw/functions/langpack/get_language.py +82 -0
- pyrogram/raw/functions/langpack/get_languages.py +74 -0
- pyrogram/raw/functions/langpack/get_strings.py +90 -0
- pyrogram/raw/functions/messages/__init__.py +280 -0
- pyrogram/raw/functions/messages/accept_encryption.py +90 -0
- pyrogram/raw/functions/messages/accept_url_auth.py +126 -0
- pyrogram/raw/functions/messages/add_chat_user.py +90 -0
- pyrogram/raw/functions/messages/add_poll_answer.py +90 -0
- pyrogram/raw/functions/messages/append_todo_list.py +90 -0
- pyrogram/raw/functions/messages/check_chat_invite.py +74 -0
- pyrogram/raw/functions/messages/check_history_import.py +74 -0
- pyrogram/raw/functions/messages/check_history_import_peer.py +74 -0
- pyrogram/raw/functions/messages/check_quick_reply_shortcut.py +74 -0
- pyrogram/raw/functions/messages/check_url_auth_match_code.py +82 -0
- pyrogram/raw/functions/messages/clear_all_drafts.py +69 -0
- pyrogram/raw/functions/messages/clear_recent_reactions.py +69 -0
- pyrogram/raw/functions/messages/clear_recent_stickers.py +74 -0
- pyrogram/raw/functions/messages/click_sponsored_message.py +88 -0
- pyrogram/raw/functions/messages/compose_message_with_ai.py +107 -0
- pyrogram/raw/functions/messages/create_chat.py +93 -0
- pyrogram/raw/functions/messages/create_forum_topic.py +126 -0
- pyrogram/raw/functions/messages/decline_url_auth.py +74 -0
- pyrogram/raw/functions/messages/delete_chat.py +74 -0
- pyrogram/raw/functions/messages/delete_chat_user.py +90 -0
- pyrogram/raw/functions/messages/delete_exported_chat_invite.py +82 -0
- pyrogram/raw/functions/messages/delete_fact_check.py +82 -0
- pyrogram/raw/functions/messages/delete_history.py +114 -0
- pyrogram/raw/functions/messages/delete_messages.py +82 -0
- pyrogram/raw/functions/messages/delete_participant_reaction.py +90 -0
- pyrogram/raw/functions/messages/delete_participant_reactions.py +82 -0
- pyrogram/raw/functions/messages/delete_phone_call_history.py +74 -0
- pyrogram/raw/functions/messages/delete_poll_answer.py +90 -0
- pyrogram/raw/functions/messages/delete_quick_reply_messages.py +82 -0
- pyrogram/raw/functions/messages/delete_quick_reply_shortcut.py +74 -0
- pyrogram/raw/functions/messages/delete_revoked_exported_chat_invites.py +82 -0
- pyrogram/raw/functions/messages/delete_saved_history.py +112 -0
- pyrogram/raw/functions/messages/delete_scheduled_messages.py +82 -0
- pyrogram/raw/functions/messages/delete_topic_history.py +82 -0
- pyrogram/raw/functions/messages/discard_encryption.py +82 -0
- pyrogram/raw/functions/messages/edit_chat_about.py +82 -0
- pyrogram/raw/functions/messages/edit_chat_admin.py +90 -0
- pyrogram/raw/functions/messages/edit_chat_creator.py +90 -0
- pyrogram/raw/functions/messages/edit_chat_default_banned_rights.py +82 -0
- pyrogram/raw/functions/messages/edit_chat_participant_rank.py +90 -0
- pyrogram/raw/functions/messages/edit_chat_photo.py +82 -0
- pyrogram/raw/functions/messages/edit_chat_title.py +82 -0
- pyrogram/raw/functions/messages/edit_exported_chat_invite.py +126 -0
- pyrogram/raw/functions/messages/edit_fact_check.py +90 -0
- pyrogram/raw/functions/messages/edit_forum_topic.py +120 -0
- pyrogram/raw/functions/messages/edit_inline_bot_message.py +137 -0
- pyrogram/raw/functions/messages/edit_message.py +172 -0
- pyrogram/raw/functions/messages/edit_quick_reply_shortcut.py +82 -0
- pyrogram/raw/functions/messages/export_chat_invite.py +125 -0
- pyrogram/raw/functions/messages/fave_sticker.py +82 -0
- pyrogram/raw/functions/messages/forward_messages.py +236 -0
- pyrogram/raw/functions/messages/get_admins_with_invites.py +74 -0
- pyrogram/raw/functions/messages/get_all_drafts.py +69 -0
- pyrogram/raw/functions/messages/get_all_stickers.py +74 -0
- pyrogram/raw/functions/messages/get_archived_stickers.py +96 -0
- pyrogram/raw/functions/messages/get_attach_menu_bot.py +74 -0
- pyrogram/raw/functions/messages/get_attach_menu_bots.py +74 -0
- pyrogram/raw/functions/messages/get_attached_stickers.py +74 -0
- pyrogram/raw/functions/messages/get_available_effects.py +74 -0
- pyrogram/raw/functions/messages/get_available_reactions.py +74 -0
- pyrogram/raw/functions/messages/get_bot_app.py +82 -0
- pyrogram/raw/functions/messages/get_bot_callback_answer.py +109 -0
- pyrogram/raw/functions/messages/get_chat_invite_importers.py +130 -0
- pyrogram/raw/functions/messages/get_chats.py +74 -0
- pyrogram/raw/functions/messages/get_common_chats.py +90 -0
- pyrogram/raw/functions/messages/get_custom_emoji_documents.py +74 -0
- pyrogram/raw/functions/messages/get_default_history_ttl.py +69 -0
- pyrogram/raw/functions/messages/get_default_tag_reactions.py +74 -0
- pyrogram/raw/functions/messages/get_dh_config.py +82 -0
- pyrogram/raw/functions/messages/get_dialog_filters.py +69 -0
- pyrogram/raw/functions/messages/get_dialog_unread_marks.py +78 -0
- pyrogram/raw/functions/messages/get_dialogs.py +123 -0
- pyrogram/raw/functions/messages/get_discussion_message.py +82 -0
- pyrogram/raw/functions/messages/get_document_by_hash.py +90 -0
- pyrogram/raw/functions/messages/get_emoji_game_info.py +69 -0
- pyrogram/raw/functions/messages/get_emoji_groups.py +74 -0
- pyrogram/raw/functions/messages/get_emoji_keywords.py +74 -0
- pyrogram/raw/functions/messages/get_emoji_keywords_difference.py +82 -0
- pyrogram/raw/functions/messages/get_emoji_keywords_languages.py +74 -0
- pyrogram/raw/functions/messages/get_emoji_profile_photo_groups.py +74 -0
- pyrogram/raw/functions/messages/get_emoji_status_groups.py +74 -0
- pyrogram/raw/functions/messages/get_emoji_sticker_groups.py +74 -0
- pyrogram/raw/functions/messages/get_emoji_stickers.py +74 -0
- pyrogram/raw/functions/messages/get_emoji_url.py +74 -0
- pyrogram/raw/functions/messages/get_exported_chat_invite.py +82 -0
- pyrogram/raw/functions/messages/get_exported_chat_invites.py +116 -0
- pyrogram/raw/functions/messages/get_extended_media.py +82 -0
- pyrogram/raw/functions/messages/get_fact_check.py +82 -0
- pyrogram/raw/functions/messages/get_faved_stickers.py +74 -0
- pyrogram/raw/functions/messages/get_featured_emoji_stickers.py +74 -0
- pyrogram/raw/functions/messages/get_featured_stickers.py +74 -0
- pyrogram/raw/functions/messages/get_forum_topics.py +117 -0
- pyrogram/raw/functions/messages/get_forum_topics_by_id.py +82 -0
- pyrogram/raw/functions/messages/get_full_chat.py +74 -0
- pyrogram/raw/functions/messages/get_future_chat_creator_after_leave.py +74 -0
- pyrogram/raw/functions/messages/get_game_high_scores.py +90 -0
- pyrogram/raw/functions/messages/get_history.py +130 -0
- pyrogram/raw/functions/messages/get_inline_bot_results.py +110 -0
- pyrogram/raw/functions/messages/get_inline_game_high_scores.py +82 -0
- pyrogram/raw/functions/messages/get_mask_stickers.py +74 -0
- pyrogram/raw/functions/messages/get_message_edit_data.py +82 -0
- pyrogram/raw/functions/messages/get_message_reactions_list.py +111 -0
- pyrogram/raw/functions/messages/get_message_read_participants.py +82 -0
- pyrogram/raw/functions/messages/get_messages.py +74 -0
- pyrogram/raw/functions/messages/get_messages_reactions.py +82 -0
- pyrogram/raw/functions/messages/get_messages_views.py +90 -0
- pyrogram/raw/functions/messages/get_my_stickers.py +82 -0
- pyrogram/raw/functions/messages/get_old_featured_stickers.py +90 -0
- pyrogram/raw/functions/messages/get_onlines.py +74 -0
- pyrogram/raw/functions/messages/get_outbox_read_date.py +82 -0
- pyrogram/raw/functions/messages/get_paid_reaction_privacy.py +69 -0
- pyrogram/raw/functions/messages/get_peer_dialogs.py +74 -0
- pyrogram/raw/functions/messages/get_peer_settings.py +74 -0
- pyrogram/raw/functions/messages/get_personal_channel_history.py +106 -0
- pyrogram/raw/functions/messages/get_pinned_dialogs.py +74 -0
- pyrogram/raw/functions/messages/get_pinned_saved_dialogs.py +69 -0
- pyrogram/raw/functions/messages/get_poll_results.py +90 -0
- pyrogram/raw/functions/messages/get_poll_votes.py +110 -0
- pyrogram/raw/functions/messages/get_prepared_inline_message.py +82 -0
- pyrogram/raw/functions/messages/get_quick_replies.py +74 -0
- pyrogram/raw/functions/messages/get_quick_reply_messages.py +94 -0
- pyrogram/raw/functions/messages/get_recent_locations.py +90 -0
- pyrogram/raw/functions/messages/get_recent_reactions.py +82 -0
- pyrogram/raw/functions/messages/get_recent_stickers.py +82 -0
- pyrogram/raw/functions/messages/get_replies.py +138 -0
- pyrogram/raw/functions/messages/get_rich_message.py +82 -0
- pyrogram/raw/functions/messages/get_saved_dialogs.py +124 -0
- pyrogram/raw/functions/messages/get_saved_dialogs_by_id.py +86 -0
- pyrogram/raw/functions/messages/get_saved_gifs.py +74 -0
- pyrogram/raw/functions/messages/get_saved_history.py +142 -0
- pyrogram/raw/functions/messages/get_saved_reaction_tags.py +86 -0
- pyrogram/raw/functions/messages/get_scheduled_history.py +82 -0
- pyrogram/raw/functions/messages/get_scheduled_messages.py +82 -0
- pyrogram/raw/functions/messages/get_search_counters.py +103 -0
- pyrogram/raw/functions/messages/get_search_results_calendar.py +110 -0
- pyrogram/raw/functions/messages/get_search_results_positions.py +110 -0
- pyrogram/raw/functions/messages/get_split_ranges.py +69 -0
- pyrogram/raw/functions/messages/get_sponsored_messages.py +85 -0
- pyrogram/raw/functions/messages/get_sticker_set.py +82 -0
- pyrogram/raw/functions/messages/get_stickers.py +82 -0
- pyrogram/raw/functions/messages/get_suggested_dialog_filters.py +69 -0
- pyrogram/raw/functions/messages/get_top_reactions.py +82 -0
- pyrogram/raw/functions/messages/get_unread_mentions.py +125 -0
- pyrogram/raw/functions/messages/get_unread_poll_votes.py +125 -0
- pyrogram/raw/functions/messages/get_unread_reactions.py +135 -0
- pyrogram/raw/functions/messages/get_web_page.py +82 -0
- pyrogram/raw/functions/messages/get_web_page_preview.py +86 -0
- pyrogram/raw/functions/messages/hide_all_chat_join_requests.py +91 -0
- pyrogram/raw/functions/messages/hide_chat_join_request.py +90 -0
- pyrogram/raw/functions/messages/hide_peer_settings_bar.py +74 -0
- pyrogram/raw/functions/messages/import_chat_invite.py +74 -0
- pyrogram/raw/functions/messages/init_history_import.py +90 -0
- pyrogram/raw/functions/messages/install_sticker_set.py +82 -0
- pyrogram/raw/functions/messages/mark_dialog_unread.py +92 -0
- pyrogram/raw/functions/messages/migrate_chat.py +74 -0
- pyrogram/raw/functions/messages/prolong_web_view.py +118 -0
- pyrogram/raw/functions/messages/rate_transcribed_audio.py +98 -0
- pyrogram/raw/functions/messages/read_discussion.py +90 -0
- pyrogram/raw/functions/messages/read_encrypted_history.py +82 -0
- pyrogram/raw/functions/messages/read_featured_stickers.py +74 -0
- pyrogram/raw/functions/messages/read_history.py +82 -0
- pyrogram/raw/functions/messages/read_mentions.py +85 -0
- pyrogram/raw/functions/messages/read_message_contents.py +74 -0
- pyrogram/raw/functions/messages/read_poll_votes.py +85 -0
- pyrogram/raw/functions/messages/read_reactions.py +95 -0
- pyrogram/raw/functions/messages/read_saved_history.py +90 -0
- pyrogram/raw/functions/messages/received_messages.py +74 -0
- pyrogram/raw/functions/messages/received_queue.py +74 -0
- pyrogram/raw/functions/messages/reorder_pinned_dialogs.py +90 -0
- pyrogram/raw/functions/messages/reorder_pinned_forum_topics.py +90 -0
- pyrogram/raw/functions/messages/reorder_pinned_saved_dialogs.py +82 -0
- pyrogram/raw/functions/messages/reorder_quick_replies.py +74 -0
- pyrogram/raw/functions/messages/reorder_sticker_sets.py +88 -0
- pyrogram/raw/functions/messages/report.py +98 -0
- pyrogram/raw/functions/messages/report_encrypted_spam.py +74 -0
- pyrogram/raw/functions/messages/report_messages_delivery.py +90 -0
- pyrogram/raw/functions/messages/report_music_listen.py +82 -0
- pyrogram/raw/functions/messages/report_reaction.py +90 -0
- pyrogram/raw/functions/messages/report_read_metrics.py +82 -0
- pyrogram/raw/functions/messages/report_spam.py +74 -0
- pyrogram/raw/functions/messages/report_sponsored_message.py +82 -0
- pyrogram/raw/functions/messages/request_app_web_view.py +129 -0
- pyrogram/raw/functions/messages/request_encryption.py +90 -0
- pyrogram/raw/functions/messages/request_main_web_view.py +123 -0
- pyrogram/raw/functions/messages/request_simple_web_view.py +136 -0
- pyrogram/raw/functions/messages/request_url_auth.py +114 -0
- pyrogram/raw/functions/messages/request_web_view.py +164 -0
- pyrogram/raw/functions/messages/save_default_send_as.py +82 -0
- pyrogram/raw/functions/messages/save_draft.py +155 -0
- pyrogram/raw/functions/messages/save_gif.py +82 -0
- pyrogram/raw/functions/messages/save_prepared_inline_message.py +94 -0
- pyrogram/raw/functions/messages/save_recent_sticker.py +90 -0
- pyrogram/raw/functions/messages/search.py +195 -0
- pyrogram/raw/functions/messages/search_custom_emoji.py +82 -0
- pyrogram/raw/functions/messages/search_emoji_sticker_sets.py +90 -0
- pyrogram/raw/functions/messages/search_global.py +159 -0
- pyrogram/raw/functions/messages/search_sent_media.py +90 -0
- pyrogram/raw/functions/messages/search_sticker_sets.py +90 -0
- pyrogram/raw/functions/messages/search_stickers.py +122 -0
- pyrogram/raw/functions/messages/send_bot_requested_peer.py +110 -0
- pyrogram/raw/functions/messages/send_encrypted.py +98 -0
- pyrogram/raw/functions/messages/send_encrypted_file.py +106 -0
- pyrogram/raw/functions/messages/send_encrypted_service.py +90 -0
- pyrogram/raw/functions/messages/send_inline_bot_result.py +172 -0
- pyrogram/raw/functions/messages/send_media.py +238 -0
- pyrogram/raw/functions/messages/send_message.py +246 -0
- pyrogram/raw/functions/messages/send_multi_media.py +183 -0
- pyrogram/raw/functions/messages/send_paid_reaction.py +110 -0
- pyrogram/raw/functions/messages/send_quick_reply_messages.py +98 -0
- pyrogram/raw/functions/messages/send_reaction.py +106 -0
- pyrogram/raw/functions/messages/send_scheduled_messages.py +82 -0
- pyrogram/raw/functions/messages/send_screenshot_notification.py +90 -0
- pyrogram/raw/functions/messages/send_vote.py +90 -0
- pyrogram/raw/functions/messages/send_web_view_data.py +98 -0
- pyrogram/raw/functions/messages/send_web_view_result_message.py +82 -0
- pyrogram/raw/functions/messages/set_bot_callback_answer.py +108 -0
- pyrogram/raw/functions/messages/set_bot_guest_chat_result.py +82 -0
- pyrogram/raw/functions/messages/set_bot_precheckout_results.py +91 -0
- pyrogram/raw/functions/messages/set_bot_shipping_results.py +95 -0
- pyrogram/raw/functions/messages/set_chat_available_reactions.py +102 -0
- pyrogram/raw/functions/messages/set_chat_theme.py +82 -0
- pyrogram/raw/functions/messages/set_chat_wall_paper.py +117 -0
- pyrogram/raw/functions/messages/set_default_history_ttl.py +74 -0
- pyrogram/raw/functions/messages/set_default_reaction.py +74 -0
- pyrogram/raw/functions/messages/set_encrypted_typing.py +82 -0
- pyrogram/raw/functions/messages/set_game_score.py +112 -0
- pyrogram/raw/functions/messages/set_history_ttl.py +82 -0
- pyrogram/raw/functions/messages/set_inline_bot_results.py +133 -0
- pyrogram/raw/functions/messages/set_inline_game_score.py +104 -0
- pyrogram/raw/functions/messages/set_typing.py +93 -0
- pyrogram/raw/functions/messages/start_bot.py +98 -0
- pyrogram/raw/functions/messages/start_history_import.py +82 -0
- pyrogram/raw/functions/messages/summarize_text.py +102 -0
- pyrogram/raw/functions/messages/toggle_bot_in_attach_menu.py +90 -0
- pyrogram/raw/functions/messages/toggle_dialog_filter_tags.py +74 -0
- pyrogram/raw/functions/messages/toggle_dialog_pin.py +82 -0
- pyrogram/raw/functions/messages/toggle_no_forwards.py +93 -0
- pyrogram/raw/functions/messages/toggle_paid_reaction_privacy.py +90 -0
- pyrogram/raw/functions/messages/toggle_peer_translations.py +82 -0
- pyrogram/raw/functions/messages/toggle_saved_dialog_pin.py +82 -0
- pyrogram/raw/functions/messages/toggle_sticker_sets.py +94 -0
- pyrogram/raw/functions/messages/toggle_suggested_post_approval.py +108 -0
- pyrogram/raw/functions/messages/toggle_todo_completed.py +98 -0
- pyrogram/raw/functions/messages/transcribe_audio.py +82 -0
- pyrogram/raw/functions/messages/translate_text.py +115 -0
- pyrogram/raw/functions/messages/uninstall_sticker_set.py +74 -0
- pyrogram/raw/functions/messages/unpin_all_messages.py +95 -0
- pyrogram/raw/functions/messages/update_dialog_filter.py +86 -0
- pyrogram/raw/functions/messages/update_dialog_filters_order.py +74 -0
- pyrogram/raw/functions/messages/update_pinned_forum_topic.py +90 -0
- pyrogram/raw/functions/messages/update_pinned_message.py +102 -0
- pyrogram/raw/functions/messages/update_saved_reaction_tag.py +85 -0
- pyrogram/raw/functions/messages/upload_encrypted_file.py +82 -0
- pyrogram/raw/functions/messages/upload_imported_media.py +98 -0
- pyrogram/raw/functions/messages/upload_media.py +93 -0
- pyrogram/raw/functions/messages/view_sponsored_message.py +74 -0
- pyrogram/raw/functions/payments/__init__.py +89 -0
- pyrogram/raw/functions/payments/apply_gift_code.py +74 -0
- pyrogram/raw/functions/payments/assign_app_store_transaction.py +82 -0
- pyrogram/raw/functions/payments/assign_play_market_transaction.py +82 -0
- pyrogram/raw/functions/payments/bot_cancel_stars_subscription.py +90 -0
- pyrogram/raw/functions/payments/can_purchase_store.py +74 -0
- pyrogram/raw/functions/payments/change_stars_subscription.py +93 -0
- pyrogram/raw/functions/payments/check_can_send_gift.py +74 -0
- pyrogram/raw/functions/payments/check_gift_code.py +74 -0
- pyrogram/raw/functions/payments/clear_saved_info.py +80 -0
- pyrogram/raw/functions/payments/connect_star_ref_bot.py +82 -0
- pyrogram/raw/functions/payments/convert_star_gift.py +74 -0
- pyrogram/raw/functions/payments/craft_star_gift.py +74 -0
- pyrogram/raw/functions/payments/create_star_gift_collection.py +90 -0
- pyrogram/raw/functions/payments/delete_star_gift_collection.py +82 -0
- pyrogram/raw/functions/payments/edit_connected_star_ref_bot.py +90 -0
- pyrogram/raw/functions/payments/export_invoice.py +74 -0
- pyrogram/raw/functions/payments/fulfill_stars_subscription.py +82 -0
- pyrogram/raw/functions/payments/get_bank_card_data.py +74 -0
- pyrogram/raw/functions/payments/get_connected_star_ref_bot.py +82 -0
- pyrogram/raw/functions/payments/get_connected_star_ref_bots.py +102 -0
- pyrogram/raw/functions/payments/get_craft_star_gifts.py +90 -0
- pyrogram/raw/functions/payments/get_giveaway_info.py +82 -0
- pyrogram/raw/functions/payments/get_payment_form.py +86 -0
- pyrogram/raw/functions/payments/get_payment_receipt.py +82 -0
- pyrogram/raw/functions/payments/get_premium_gift_code_options.py +78 -0
- pyrogram/raw/functions/payments/get_resale_star_gifts.py +135 -0
- pyrogram/raw/functions/payments/get_saved_info.py +69 -0
- pyrogram/raw/functions/payments/get_saved_star_gift.py +74 -0
- pyrogram/raw/functions/payments/get_saved_star_gifts.py +155 -0
- pyrogram/raw/functions/payments/get_star_gift_active_auctions.py +74 -0
- pyrogram/raw/functions/payments/get_star_gift_auction_acquired_gifts.py +74 -0
- pyrogram/raw/functions/payments/get_star_gift_auction_state.py +82 -0
- pyrogram/raw/functions/payments/get_star_gift_collections.py +82 -0
- pyrogram/raw/functions/payments/get_star_gift_upgrade_attributes.py +74 -0
- pyrogram/raw/functions/payments/get_star_gift_upgrade_preview.py +74 -0
- pyrogram/raw/functions/payments/get_star_gift_withdrawal_url.py +82 -0
- pyrogram/raw/functions/payments/get_star_gifts.py +74 -0
- pyrogram/raw/functions/payments/get_stars_gift_options.py +78 -0
- pyrogram/raw/functions/payments/get_stars_giveaway_options.py +69 -0
- pyrogram/raw/functions/payments/get_stars_revenue_ads_account_url.py +74 -0
- pyrogram/raw/functions/payments/get_stars_revenue_stats.py +88 -0
- pyrogram/raw/functions/payments/get_stars_revenue_withdrawal_url.py +99 -0
- pyrogram/raw/functions/payments/get_stars_status.py +82 -0
- pyrogram/raw/functions/payments/get_stars_subscriptions.py +90 -0
- pyrogram/raw/functions/payments/get_stars_topup_options.py +69 -0
- pyrogram/raw/functions/payments/get_stars_transactions.py +125 -0
- pyrogram/raw/functions/payments/get_stars_transactions_by_id.py +90 -0
- pyrogram/raw/functions/payments/get_suggested_star_ref_bots.py +104 -0
- pyrogram/raw/functions/payments/get_unique_star_gift.py +74 -0
- pyrogram/raw/functions/payments/get_unique_star_gift_value_info.py +74 -0
- pyrogram/raw/functions/payments/launch_prepaid_giveaway.py +90 -0
- pyrogram/raw/functions/payments/refund_stars_charge.py +82 -0
- pyrogram/raw/functions/payments/reorder_star_gift_collections.py +82 -0
- pyrogram/raw/functions/payments/resolve_star_gift_offer.py +82 -0
- pyrogram/raw/functions/payments/save_star_gift.py +82 -0
- pyrogram/raw/functions/payments/send_payment_form.py +119 -0
- pyrogram/raw/functions/payments/send_star_gift_offer.py +117 -0
- pyrogram/raw/functions/payments/send_stars_form.py +82 -0
- pyrogram/raw/functions/payments/toggle_chat_star_gift_notifications.py +82 -0
- pyrogram/raw/functions/payments/toggle_star_gifts_pinned_to_top.py +82 -0
- pyrogram/raw/functions/payments/transfer_star_gift.py +82 -0
- pyrogram/raw/functions/payments/update_star_gift_collection.py +123 -0
- pyrogram/raw/functions/payments/update_star_gift_price.py +82 -0
- pyrogram/raw/functions/payments/upgrade_star_gift.py +82 -0
- pyrogram/raw/functions/payments/validate_requested_info.py +90 -0
- pyrogram/raw/functions/phone/__init__.py +67 -0
- pyrogram/raw/functions/phone/accept_call.py +90 -0
- pyrogram/raw/functions/phone/check_group_call.py +82 -0
- pyrogram/raw/functions/phone/confirm_call.py +98 -0
- pyrogram/raw/functions/phone/create_conference_call.py +122 -0
- pyrogram/raw/functions/phone/create_group_call.py +108 -0
- pyrogram/raw/functions/phone/decline_conference_call_invite.py +74 -0
- pyrogram/raw/functions/phone/delete_conference_call_participants.py +104 -0
- pyrogram/raw/functions/phone/delete_group_call_messages.py +90 -0
- pyrogram/raw/functions/phone/delete_group_call_participant_messages.py +90 -0
- pyrogram/raw/functions/phone/discard_call.py +106 -0
- pyrogram/raw/functions/phone/discard_group_call.py +74 -0
- pyrogram/raw/functions/phone/edit_group_call_participant.py +138 -0
- pyrogram/raw/functions/phone/edit_group_call_title.py +82 -0
- pyrogram/raw/functions/phone/export_group_call_invite.py +82 -0
- pyrogram/raw/functions/phone/get_call_config.py +69 -0
- pyrogram/raw/functions/phone/get_group_call.py +82 -0
- pyrogram/raw/functions/phone/get_group_call_chain_blocks.py +98 -0
- pyrogram/raw/functions/phone/get_group_call_join_as.py +74 -0
- pyrogram/raw/functions/phone/get_group_call_stars.py +74 -0
- pyrogram/raw/functions/phone/get_group_call_stream_channels.py +74 -0
- pyrogram/raw/functions/phone/get_group_call_stream_rtmp_url.py +90 -0
- pyrogram/raw/functions/phone/get_group_participants.py +106 -0
- pyrogram/raw/functions/phone/invite_conference_call_participant.py +90 -0
- pyrogram/raw/functions/phone/invite_to_group_call.py +82 -0
- pyrogram/raw/functions/phone/join_group_call.py +131 -0
- pyrogram/raw/functions/phone/join_group_call_presentation.py +82 -0
- pyrogram/raw/functions/phone/leave_group_call.py +82 -0
- pyrogram/raw/functions/phone/leave_group_call_presentation.py +74 -0
- pyrogram/raw/functions/phone/received_call.py +74 -0
- pyrogram/raw/functions/phone/request_call.py +106 -0
- pyrogram/raw/functions/phone/save_call_debug.py +82 -0
- pyrogram/raw/functions/phone/save_call_log.py +82 -0
- pyrogram/raw/functions/phone/save_default_group_call_join_as.py +82 -0
- pyrogram/raw/functions/phone/save_default_send_as.py +82 -0
- pyrogram/raw/functions/phone/send_conference_call_broadcast.py +82 -0
- pyrogram/raw/functions/phone/send_group_call_encrypted_message.py +82 -0
- pyrogram/raw/functions/phone/send_group_call_message.py +111 -0
- pyrogram/raw/functions/phone/send_signaling_data.py +82 -0
- pyrogram/raw/functions/phone/set_call_rating.py +98 -0
- pyrogram/raw/functions/phone/start_scheduled_group_call.py +74 -0
- pyrogram/raw/functions/phone/toggle_group_call_record.py +106 -0
- pyrogram/raw/functions/phone/toggle_group_call_settings.py +109 -0
- pyrogram/raw/functions/phone/toggle_group_call_start_subscription.py +82 -0
- pyrogram/raw/functions/photos/__init__.py +29 -0
- pyrogram/raw/functions/photos/delete_photos.py +74 -0
- pyrogram/raw/functions/photos/get_user_photos.py +98 -0
- pyrogram/raw/functions/photos/update_profile_photo.py +92 -0
- pyrogram/raw/functions/photos/upload_contact_profile_photo.py +127 -0
- pyrogram/raw/functions/photos/upload_profile_photo.py +123 -0
- pyrogram/raw/functions/ping.py +74 -0
- pyrogram/raw/functions/ping_delay_disconnect.py +82 -0
- pyrogram/raw/functions/premium/__init__.py +29 -0
- pyrogram/raw/functions/premium/apply_boost.py +86 -0
- pyrogram/raw/functions/premium/get_boosts_list.py +98 -0
- pyrogram/raw/functions/premium/get_boosts_status.py +74 -0
- pyrogram/raw/functions/premium/get_my_boosts.py +69 -0
- pyrogram/raw/functions/premium/get_user_boosts.py +82 -0
- pyrogram/raw/functions/req_dh_params.py +114 -0
- pyrogram/raw/functions/req_pq.py +74 -0
- pyrogram/raw/functions/req_pq_multi.py +74 -0
- pyrogram/raw/functions/rpc_drop_answer.py +74 -0
- pyrogram/raw/functions/set_client_dh_params.py +90 -0
- pyrogram/raw/functions/smsjobs/__init__.py +31 -0
- pyrogram/raw/functions/smsjobs/finish_job.py +85 -0
- pyrogram/raw/functions/smsjobs/get_sms_job.py +74 -0
- pyrogram/raw/functions/smsjobs/get_status.py +69 -0
- pyrogram/raw/functions/smsjobs/is_eligible_to_join.py +69 -0
- pyrogram/raw/functions/smsjobs/join.py +69 -0
- pyrogram/raw/functions/smsjobs/leave.py +69 -0
- pyrogram/raw/functions/smsjobs/update_settings.py +74 -0
- pyrogram/raw/functions/stats/__init__.py +32 -0
- pyrogram/raw/functions/stats/get_broadcast_stats.py +82 -0
- pyrogram/raw/functions/stats/get_megagroup_stats.py +82 -0
- pyrogram/raw/functions/stats/get_message_public_forwards.py +98 -0
- pyrogram/raw/functions/stats/get_message_stats.py +90 -0
- pyrogram/raw/functions/stats/get_poll_stats.py +90 -0
- pyrogram/raw/functions/stats/get_story_public_forwards.py +98 -0
- pyrogram/raw/functions/stats/get_story_stats.py +90 -0
- pyrogram/raw/functions/stats/load_async_graph.py +85 -0
- pyrogram/raw/functions/stickers/__init__.py +35 -0
- pyrogram/raw/functions/stickers/add_sticker_to_set.py +82 -0
- pyrogram/raw/functions/stickers/change_sticker.py +104 -0
- pyrogram/raw/functions/stickers/change_sticker_position.py +82 -0
- pyrogram/raw/functions/stickers/check_short_name.py +74 -0
- pyrogram/raw/functions/stickers/create_sticker_set.py +137 -0
- pyrogram/raw/functions/stickers/delete_sticker_set.py +74 -0
- pyrogram/raw/functions/stickers/remove_sticker_from_set.py +74 -0
- pyrogram/raw/functions/stickers/rename_sticker_set.py +82 -0
- pyrogram/raw/functions/stickers/replace_sticker.py +82 -0
- pyrogram/raw/functions/stickers/set_sticker_set_thumb.py +95 -0
- pyrogram/raw/functions/stickers/suggest_short_name.py +74 -0
- pyrogram/raw/functions/stories/__init__.py +57 -0
- pyrogram/raw/functions/stories/activate_stealth_mode.py +80 -0
- pyrogram/raw/functions/stories/can_send_story.py +74 -0
- pyrogram/raw/functions/stories/create_album.py +90 -0
- pyrogram/raw/functions/stories/delete_album.py +82 -0
- pyrogram/raw/functions/stories/delete_stories.py +82 -0
- pyrogram/raw/functions/stories/edit_story.py +143 -0
- pyrogram/raw/functions/stories/export_story_link.py +82 -0
- pyrogram/raw/functions/stories/get_album_stories.py +98 -0
- pyrogram/raw/functions/stories/get_albums.py +82 -0
- pyrogram/raw/functions/stories/get_all_read_peer_stories.py +69 -0
- pyrogram/raw/functions/stories/get_all_stories.py +89 -0
- pyrogram/raw/functions/stories/get_chats_to_send.py +69 -0
- pyrogram/raw/functions/stories/get_peer_max_i_ds.py +74 -0
- pyrogram/raw/functions/stories/get_peer_stories.py +74 -0
- pyrogram/raw/functions/stories/get_pinned_stories.py +90 -0
- pyrogram/raw/functions/stories/get_stories_archive.py +90 -0
- pyrogram/raw/functions/stories/get_stories_by_id.py +82 -0
- pyrogram/raw/functions/stories/get_stories_views.py +82 -0
- pyrogram/raw/functions/stories/get_story_reactions_list.py +117 -0
- pyrogram/raw/functions/stories/get_story_views_list.py +127 -0
- pyrogram/raw/functions/stories/increment_story_views.py +82 -0
- pyrogram/raw/functions/stories/read_stories.py +82 -0
- pyrogram/raw/functions/stories/reorder_albums.py +82 -0
- pyrogram/raw/functions/stories/report.py +98 -0
- pyrogram/raw/functions/stories/search_posts.py +113 -0
- pyrogram/raw/functions/stories/send_reaction.py +98 -0
- pyrogram/raw/functions/stories/send_story.py +195 -0
- pyrogram/raw/functions/stories/start_live.py +147 -0
- pyrogram/raw/functions/stories/toggle_all_stories_hidden.py +74 -0
- pyrogram/raw/functions/stories/toggle_peer_stories_hidden.py +82 -0
- pyrogram/raw/functions/stories/toggle_pinned.py +90 -0
- pyrogram/raw/functions/stories/toggle_pinned_to_top.py +82 -0
- pyrogram/raw/functions/stories/update_album.py +123 -0
- pyrogram/raw/functions/updates/__init__.py +27 -0
- pyrogram/raw/functions/updates/get_channel_difference.py +106 -0
- pyrogram/raw/functions/updates/get_difference.py +119 -0
- pyrogram/raw/functions/updates/get_state.py +69 -0
- pyrogram/raw/functions/upload/__init__.py +32 -0
- pyrogram/raw/functions/upload/get_cdn_file.py +90 -0
- pyrogram/raw/functions/upload/get_cdn_file_hashes.py +82 -0
- pyrogram/raw/functions/upload/get_file.py +104 -0
- pyrogram/raw/functions/upload/get_file_hashes.py +82 -0
- pyrogram/raw/functions/upload/get_web_file.py +90 -0
- pyrogram/raw/functions/upload/reupload_cdn_file.py +82 -0
- pyrogram/raw/functions/upload/save_big_file_part.py +98 -0
- pyrogram/raw/functions/upload/save_file_part.py +90 -0
- pyrogram/raw/functions/users/__init__.py +31 -0
- pyrogram/raw/functions/users/get_full_user.py +74 -0
- pyrogram/raw/functions/users/get_requirements_to_contact.py +74 -0
- pyrogram/raw/functions/users/get_saved_music.py +98 -0
- pyrogram/raw/functions/users/get_saved_music_by_id.py +82 -0
- pyrogram/raw/functions/users/get_users.py +74 -0
- pyrogram/raw/functions/users/set_secure_value_errors.py +82 -0
- pyrogram/raw/functions/users/suggest_birthday.py +82 -0
- pyrogram/raw/types/__init__.py +1351 -0
- pyrogram/raw/types/access_point_rule.py +90 -0
- pyrogram/raw/types/account/__init__.py +64 -0
- pyrogram/raw/types/account/authorization_form.py +118 -0
- pyrogram/raw/types/account/authorizations.py +91 -0
- pyrogram/raw/types/account/auto_download_settings.py +99 -0
- pyrogram/raw/types/account/auto_save_settings.py +123 -0
- pyrogram/raw/types/account/business_chat_links.py +99 -0
- pyrogram/raw/types/account/chat_themes.py +118 -0
- pyrogram/raw/types/account/chat_themes_not_modified.py +78 -0
- pyrogram/raw/types/account/connected_bots.py +91 -0
- pyrogram/raw/types/account/content_settings.py +89 -0
- pyrogram/raw/types/account/email_verified.py +83 -0
- pyrogram/raw/types/account/email_verified_login.py +91 -0
- pyrogram/raw/types/account/emoji_statuses.py +94 -0
- pyrogram/raw/types/account/emoji_statuses_not_modified.py +81 -0
- pyrogram/raw/types/account/paid_messages_revenue.py +83 -0
- pyrogram/raw/types/account/passkey_registration_options.py +83 -0
- pyrogram/raw/types/account/passkeys.py +83 -0
- pyrogram/raw/types/account/password.py +183 -0
- pyrogram/raw/types/account/password_input_settings.py +115 -0
- pyrogram/raw/types/account/password_settings.py +96 -0
- pyrogram/raw/types/account/privacy_rules.py +100 -0
- pyrogram/raw/types/account/reset_password_failed_wait.py +83 -0
- pyrogram/raw/types/account/reset_password_ok.py +78 -0
- pyrogram/raw/types/account/reset_password_requested_wait.py +83 -0
- pyrogram/raw/types/account/resolved_business_chat_links.py +119 -0
- pyrogram/raw/types/account/saved_music_ids.py +83 -0
- pyrogram/raw/types/account/saved_music_ids_not_modified.py +78 -0
- pyrogram/raw/types/account/saved_ringtone.py +78 -0
- pyrogram/raw/types/account/saved_ringtone_converted.py +83 -0
- pyrogram/raw/types/account/saved_ringtones.py +91 -0
- pyrogram/raw/types/account/saved_ringtones_not_modified.py +78 -0
- pyrogram/raw/types/account/sent_email_code.py +91 -0
- pyrogram/raw/types/account/takeout.py +83 -0
- pyrogram/raw/types/account/themes.py +92 -0
- pyrogram/raw/types/account/themes_not_modified.py +79 -0
- pyrogram/raw/types/account/tmp_password.py +91 -0
- pyrogram/raw/types/account/wall_papers.py +91 -0
- pyrogram/raw/types/account/wall_papers_not_modified.py +78 -0
- pyrogram/raw/types/account/web_authorizations.py +91 -0
- pyrogram/raw/types/account/web_browser_settings.py +115 -0
- pyrogram/raw/types/account/web_browser_settings_not_modified.py +80 -0
- pyrogram/raw/types/account_days_ttl.py +83 -0
- pyrogram/raw/types/ai_compose_tone.py +162 -0
- pyrogram/raw/types/ai_compose_tone_default.py +100 -0
- pyrogram/raw/types/ai_compose_tone_example.py +91 -0
- pyrogram/raw/types/aicompose/__init__.py +26 -0
- pyrogram/raw/types/aicompose/tones.py +100 -0
- pyrogram/raw/types/aicompose/tones_not_modified.py +79 -0
- pyrogram/raw/types/attach_menu_bot.py +138 -0
- pyrogram/raw/types/attach_menu_bot_icon.py +94 -0
- pyrogram/raw/types/attach_menu_bot_icon_color.py +82 -0
- pyrogram/raw/types/attach_menu_bots.py +99 -0
- pyrogram/raw/types/attach_menu_bots_bot.py +91 -0
- pyrogram/raw/types/attach_menu_bots_not_modified.py +78 -0
- pyrogram/raw/types/attach_menu_peer_type_bot_pm.py +69 -0
- pyrogram/raw/types/attach_menu_peer_type_broadcast.py +69 -0
- pyrogram/raw/types/attach_menu_peer_type_chat.py +69 -0
- pyrogram/raw/types/attach_menu_peer_type_pm.py +69 -0
- pyrogram/raw/types/attach_menu_peer_type_same_bot_pm.py +69 -0
- pyrogram/raw/types/auction_bid_level.py +90 -0
- pyrogram/raw/types/auth/__init__.py +52 -0
- pyrogram/raw/types/auth/authorization.py +125 -0
- pyrogram/raw/types/auth/authorization_sign_up_required.py +94 -0
- pyrogram/raw/types/auth/code_type_call.py +69 -0
- pyrogram/raw/types/auth/code_type_flash_call.py +69 -0
- pyrogram/raw/types/auth/code_type_fragment_sms.py +69 -0
- pyrogram/raw/types/auth/code_type_missed_call.py +69 -0
- pyrogram/raw/types/auth/code_type_sms.py +69 -0
- pyrogram/raw/types/auth/exported_authorization.py +91 -0
- pyrogram/raw/types/auth/logged_out.py +86 -0
- pyrogram/raw/types/auth/login_token.py +92 -0
- pyrogram/raw/types/auth/login_token_migrate_to.py +92 -0
- pyrogram/raw/types/auth/login_token_success.py +84 -0
- pyrogram/raw/types/auth/passkey_login_options.py +83 -0
- pyrogram/raw/types/auth/password_recovery.py +83 -0
- pyrogram/raw/types/auth/sent_code.py +118 -0
- pyrogram/raw/types/auth/sent_code_payment_required.py +137 -0
- pyrogram/raw/types/auth/sent_code_success.py +89 -0
- pyrogram/raw/types/auth/sent_code_type_app.py +74 -0
- pyrogram/raw/types/auth/sent_code_type_call.py +74 -0
- pyrogram/raw/types/auth/sent_code_type_email_code.py +114 -0
- pyrogram/raw/types/auth/sent_code_type_firebase_sms.py +121 -0
- pyrogram/raw/types/auth/sent_code_type_flash_call.py +74 -0
- pyrogram/raw/types/auth/sent_code_type_fragment_sms.py +82 -0
- pyrogram/raw/types/auth/sent_code_type_missed_call.py +82 -0
- pyrogram/raw/types/auth/sent_code_type_set_up_email_required.py +80 -0
- pyrogram/raw/types/auth/sent_code_type_sms.py +74 -0
- pyrogram/raw/types/auth/sent_code_type_sms_phrase.py +77 -0
- pyrogram/raw/types/auth/sent_code_type_sms_word.py +77 -0
- pyrogram/raw/types/authorization.py +209 -0
- pyrogram/raw/types/auto_download_settings.py +146 -0
- pyrogram/raw/types/auto_save_exception.py +82 -0
- pyrogram/raw/types/auto_save_settings.py +89 -0
- pyrogram/raw/types/available_effect.py +116 -0
- pyrogram/raw/types/available_reaction.py +156 -0
- pyrogram/raw/types/bad_msg_notification.py +90 -0
- pyrogram/raw/types/bad_server_salt.py +98 -0
- pyrogram/raw/types/bank_card_open_url.py +82 -0
- pyrogram/raw/types/base_theme_arctic.py +69 -0
- pyrogram/raw/types/base_theme_classic.py +69 -0
- pyrogram/raw/types/base_theme_day.py +69 -0
- pyrogram/raw/types/base_theme_night.py +69 -0
- pyrogram/raw/types/base_theme_tinted.py +69 -0
- pyrogram/raw/types/bind_auth_key_inner.py +106 -0
- pyrogram/raw/types/birthday.py +93 -0
- pyrogram/raw/types/boost.py +155 -0
- pyrogram/raw/types/bot_app.py +134 -0
- pyrogram/raw/types/bot_app_not_modified.py +69 -0
- pyrogram/raw/types/bot_app_settings.py +113 -0
- pyrogram/raw/types/bot_business_connection.py +116 -0
- pyrogram/raw/types/bot_command.py +91 -0
- pyrogram/raw/types/bot_command_scope_chat_admins.py +69 -0
- pyrogram/raw/types/bot_command_scope_chats.py +69 -0
- pyrogram/raw/types/bot_command_scope_default.py +69 -0
- pyrogram/raw/types/bot_command_scope_peer.py +74 -0
- pyrogram/raw/types/bot_command_scope_peer_admins.py +74 -0
- pyrogram/raw/types/bot_command_scope_peer_user.py +82 -0
- pyrogram/raw/types/bot_command_scope_users.py +69 -0
- pyrogram/raw/types/bot_info.py +161 -0
- pyrogram/raw/types/bot_inline_media_result.py +130 -0
- pyrogram/raw/types/bot_inline_message_media_auto.py +102 -0
- pyrogram/raw/types/bot_inline_message_media_contact.py +110 -0
- pyrogram/raw/types/bot_inline_message_media_geo.py +113 -0
- pyrogram/raw/types/bot_inline_message_media_invoice.py +132 -0
- pyrogram/raw/types/bot_inline_message_media_venue.py +126 -0
- pyrogram/raw/types/bot_inline_message_media_web_page.py +134 -0
- pyrogram/raw/types/bot_inline_message_rich_message.py +86 -0
- pyrogram/raw/types/bot_inline_message_text.py +108 -0
- pyrogram/raw/types/bot_inline_result.py +139 -0
- pyrogram/raw/types/bot_menu_button.py +91 -0
- pyrogram/raw/types/bot_menu_button_commands.py +78 -0
- pyrogram/raw/types/bot_menu_button_default.py +78 -0
- pyrogram/raw/types/bot_preview_media.py +93 -0
- pyrogram/raw/types/bot_verification.py +90 -0
- pyrogram/raw/types/bot_verifier_settings.py +99 -0
- pyrogram/raw/types/bots/__init__.py +30 -0
- pyrogram/raw/types/bots/access_settings.py +93 -0
- pyrogram/raw/types/bots/bot_info.py +99 -0
- pyrogram/raw/types/bots/exported_bot_token.py +83 -0
- pyrogram/raw/types/bots/popular_app_bots.py +94 -0
- pyrogram/raw/types/bots/preview_info.py +91 -0
- pyrogram/raw/types/bots/requested_button.py +83 -0
- pyrogram/raw/types/business_away_message.py +98 -0
- pyrogram/raw/types/business_away_message_schedule_always.py +69 -0
- pyrogram/raw/types/business_away_message_schedule_custom.py +82 -0
- pyrogram/raw/types/business_away_message_schedule_outside_work_hours.py +69 -0
- pyrogram/raw/types/business_bot_recipients.py +118 -0
- pyrogram/raw/types/business_bot_rights.py +152 -0
- pyrogram/raw/types/business_chat_link.py +121 -0
- pyrogram/raw/types/business_greeting_message.py +90 -0
- pyrogram/raw/types/business_intro.py +94 -0
- pyrogram/raw/types/business_location.py +86 -0
- pyrogram/raw/types/business_recipients.py +108 -0
- pyrogram/raw/types/business_weekly_open.py +82 -0
- pyrogram/raw/types/business_work_hours.py +90 -0
- pyrogram/raw/types/cdn_config.py +83 -0
- pyrogram/raw/types/cdn_public_key.py +82 -0
- pyrogram/raw/types/channel.py +434 -0
- pyrogram/raw/types/channel_admin_log_event.py +98 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_about.py +82 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_available_reactions.py +82 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_emoji_status.py +82 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_emoji_sticker_set.py +82 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_history_ttl.py +82 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_linked_chat.py +82 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_location.py +82 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_peer_color.py +82 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_photo.py +82 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_profile_peer_color.py +82 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_sticker_set.py +82 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_title.py +82 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_username.py +82 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_usernames.py +82 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_wallpaper.py +82 -0
- pyrogram/raw/types/channel_admin_log_event_action_create_topic.py +74 -0
- pyrogram/raw/types/channel_admin_log_event_action_default_banned_rights.py +82 -0
- pyrogram/raw/types/channel_admin_log_event_action_delete_message.py +74 -0
- pyrogram/raw/types/channel_admin_log_event_action_delete_topic.py +74 -0
- pyrogram/raw/types/channel_admin_log_event_action_discard_group_call.py +74 -0
- pyrogram/raw/types/channel_admin_log_event_action_edit_message.py +82 -0
- pyrogram/raw/types/channel_admin_log_event_action_edit_topic.py +82 -0
- pyrogram/raw/types/channel_admin_log_event_action_exported_invite_delete.py +74 -0
- pyrogram/raw/types/channel_admin_log_event_action_exported_invite_edit.py +82 -0
- pyrogram/raw/types/channel_admin_log_event_action_exported_invite_revoke.py +74 -0
- pyrogram/raw/types/channel_admin_log_event_action_participant_edit_rank.py +90 -0
- pyrogram/raw/types/channel_admin_log_event_action_participant_invite.py +74 -0
- pyrogram/raw/types/channel_admin_log_event_action_participant_join.py +69 -0
- pyrogram/raw/types/channel_admin_log_event_action_participant_join_by_invite.py +82 -0
- pyrogram/raw/types/channel_admin_log_event_action_participant_join_by_request.py +82 -0
- pyrogram/raw/types/channel_admin_log_event_action_participant_leave.py +69 -0
- pyrogram/raw/types/channel_admin_log_event_action_participant_mute.py +74 -0
- pyrogram/raw/types/channel_admin_log_event_action_participant_sub_extend.py +82 -0
- pyrogram/raw/types/channel_admin_log_event_action_participant_toggle_admin.py +82 -0
- pyrogram/raw/types/channel_admin_log_event_action_participant_toggle_ban.py +82 -0
- pyrogram/raw/types/channel_admin_log_event_action_participant_unmute.py +74 -0
- pyrogram/raw/types/channel_admin_log_event_action_participant_volume.py +74 -0
- pyrogram/raw/types/channel_admin_log_event_action_pin_topic.py +88 -0
- pyrogram/raw/types/channel_admin_log_event_action_send_message.py +74 -0
- pyrogram/raw/types/channel_admin_log_event_action_start_group_call.py +74 -0
- pyrogram/raw/types/channel_admin_log_event_action_stop_poll.py +74 -0
- pyrogram/raw/types/channel_admin_log_event_action_toggle_anti_spam.py +74 -0
- pyrogram/raw/types/channel_admin_log_event_action_toggle_autotranslation.py +74 -0
- pyrogram/raw/types/channel_admin_log_event_action_toggle_forum.py +74 -0
- pyrogram/raw/types/channel_admin_log_event_action_toggle_group_call_setting.py +74 -0
- pyrogram/raw/types/channel_admin_log_event_action_toggle_invites.py +74 -0
- pyrogram/raw/types/channel_admin_log_event_action_toggle_no_forwards.py +74 -0
- pyrogram/raw/types/channel_admin_log_event_action_toggle_pre_history_hidden.py +74 -0
- pyrogram/raw/types/channel_admin_log_event_action_toggle_signature_profiles.py +74 -0
- pyrogram/raw/types/channel_admin_log_event_action_toggle_signatures.py +74 -0
- pyrogram/raw/types/channel_admin_log_event_action_toggle_slow_mode.py +82 -0
- pyrogram/raw/types/channel_admin_log_event_action_update_pinned.py +74 -0
- pyrogram/raw/types/channel_admin_log_events_filter.py +188 -0
- pyrogram/raw/types/channel_forbidden.py +119 -0
- pyrogram/raw/types/channel_full.py +617 -0
- pyrogram/raw/types/channel_location.py +82 -0
- pyrogram/raw/types/channel_location_empty.py +69 -0
- pyrogram/raw/types/channel_messages_filter.py +82 -0
- pyrogram/raw/types/channel_messages_filter_empty.py +69 -0
- pyrogram/raw/types/channel_participant.py +102 -0
- pyrogram/raw/types/channel_participant_admin.py +130 -0
- pyrogram/raw/types/channel_participant_banned.py +115 -0
- pyrogram/raw/types/channel_participant_creator.py +93 -0
- pyrogram/raw/types/channel_participant_left.py +74 -0
- pyrogram/raw/types/channel_participant_self.py +116 -0
- pyrogram/raw/types/channel_participants_admins.py +69 -0
- pyrogram/raw/types/channel_participants_banned.py +74 -0
- pyrogram/raw/types/channel_participants_bots.py +69 -0
- pyrogram/raw/types/channel_participants_contacts.py +74 -0
- pyrogram/raw/types/channel_participants_kicked.py +74 -0
- pyrogram/raw/types/channel_participants_mentions.py +86 -0
- pyrogram/raw/types/channel_participants_recent.py +69 -0
- pyrogram/raw/types/channel_participants_search.py +74 -0
- pyrogram/raw/types/channels/__init__.py +32 -0
- pyrogram/raw/types/channels/admin_log_results.py +99 -0
- pyrogram/raw/types/channels/channel_participant.py +99 -0
- pyrogram/raw/types/channels/channel_participants.py +107 -0
- pyrogram/raw/types/channels/channel_participants_not_modified.py +78 -0
- pyrogram/raw/types/channels/send_as_peers.py +99 -0
- pyrogram/raw/types/channels/sponsored_message_report_result_ads_hidden.py +78 -0
- pyrogram/raw/types/channels/sponsored_message_report_result_choose_option.py +91 -0
- pyrogram/raw/types/channels/sponsored_message_report_result_reported.py +78 -0
- pyrogram/raw/types/chat.py +182 -0
- pyrogram/raw/types/chat_admin_rights.py +170 -0
- pyrogram/raw/types/chat_admin_with_invites.py +90 -0
- pyrogram/raw/types/chat_banned_rights.py +208 -0
- pyrogram/raw/types/chat_empty.py +74 -0
- pyrogram/raw/types/chat_forbidden.py +82 -0
- pyrogram/raw/types/chat_full.py +242 -0
- pyrogram/raw/types/chat_invite.py +211 -0
- pyrogram/raw/types/chat_invite_already.py +83 -0
- pyrogram/raw/types/chat_invite_exported.py +192 -0
- pyrogram/raw/types/chat_invite_importer.py +114 -0
- pyrogram/raw/types/chat_invite_peek.py +91 -0
- pyrogram/raw/types/chat_invite_public_join_requests.py +78 -0
- pyrogram/raw/types/chat_onlines.py +83 -0
- pyrogram/raw/types/chat_participant.py +101 -0
- pyrogram/raw/types/chat_participant_admin.py +101 -0
- pyrogram/raw/types/chat_participant_creator.py +85 -0
- pyrogram/raw/types/chat_participants.py +90 -0
- pyrogram/raw/types/chat_participants_forbidden.py +86 -0
- pyrogram/raw/types/chat_photo.py +99 -0
- pyrogram/raw/types/chat_photo_empty.py +69 -0
- pyrogram/raw/types/chat_reactions_all.py +74 -0
- pyrogram/raw/types/chat_reactions_none.py +69 -0
- pyrogram/raw/types/chat_reactions_some.py +74 -0
- pyrogram/raw/types/chat_theme.py +74 -0
- pyrogram/raw/types/chat_theme_unique_gift.py +82 -0
- pyrogram/raw/types/chatlists/__init__.py +29 -0
- pyrogram/raw/types/chatlists/chatlist_invite.py +124 -0
- pyrogram/raw/types/chatlists/chatlist_invite_already.py +115 -0
- pyrogram/raw/types/chatlists/chatlist_updates.py +99 -0
- pyrogram/raw/types/chatlists/exported_chatlist_invite.py +91 -0
- pyrogram/raw/types/chatlists/exported_invites.py +99 -0
- pyrogram/raw/types/client_dh_inner_data.py +98 -0
- pyrogram/raw/types/code_settings.py +132 -0
- pyrogram/raw/types/config.py +455 -0
- pyrogram/raw/types/connected_bot.py +119 -0
- pyrogram/raw/types/connected_bot_star_ref.py +131 -0
- pyrogram/raw/types/contact.py +82 -0
- pyrogram/raw/types/contact_birthday.py +82 -0
- pyrogram/raw/types/contact_status.py +91 -0
- pyrogram/raw/types/contacts/__init__.py +37 -0
- pyrogram/raw/types/contacts/blocked.py +99 -0
- pyrogram/raw/types/contacts/blocked_slice.py +107 -0
- pyrogram/raw/types/contacts/contact_birthdays.py +91 -0
- pyrogram/raw/types/contacts/contacts.py +99 -0
- pyrogram/raw/types/contacts/contacts_not_modified.py +78 -0
- pyrogram/raw/types/contacts/found.py +107 -0
- pyrogram/raw/types/contacts/imported_contacts.py +107 -0
- pyrogram/raw/types/contacts/resolved_peer.py +100 -0
- pyrogram/raw/types/contacts/sponsored_peers.py +99 -0
- pyrogram/raw/types/contacts/sponsored_peers_empty.py +78 -0
- pyrogram/raw/types/contacts/top_peers.py +99 -0
- pyrogram/raw/types/contacts/top_peers_disabled.py +78 -0
- pyrogram/raw/types/contacts/top_peers_not_modified.py +78 -0
- pyrogram/raw/types/data_json.py +85 -0
- pyrogram/raw/types/dc_option.py +137 -0
- pyrogram/raw/types/default_history_ttl.py +83 -0
- pyrogram/raw/types/destroy_auth_key_fail.py +78 -0
- pyrogram/raw/types/destroy_auth_key_none.py +78 -0
- pyrogram/raw/types/destroy_auth_key_ok.py +78 -0
- pyrogram/raw/types/destroy_session_none.py +83 -0
- pyrogram/raw/types/destroy_session_ok.py +83 -0
- pyrogram/raw/types/dh_gen_fail.py +99 -0
- pyrogram/raw/types/dh_gen_ok.py +99 -0
- pyrogram/raw/types/dh_gen_retry.py +99 -0
- pyrogram/raw/types/dialog.py +195 -0
- pyrogram/raw/types/dialog_filter.py +180 -0
- pyrogram/raw/types/dialog_filter_chatlist.py +130 -0
- pyrogram/raw/types/dialog_filter_default.py +69 -0
- pyrogram/raw/types/dialog_filter_suggested.py +91 -0
- pyrogram/raw/types/dialog_folder.py +130 -0
- pyrogram/raw/types/dialog_peer.py +83 -0
- pyrogram/raw/types/dialog_peer_folder.py +83 -0
- pyrogram/raw/types/disallowed_gifts_settings.py +98 -0
- pyrogram/raw/types/document.py +164 -0
- pyrogram/raw/types/document_attribute_animated.py +69 -0
- pyrogram/raw/types/document_attribute_audio.py +109 -0
- pyrogram/raw/types/document_attribute_custom_emoji.py +96 -0
- pyrogram/raw/types/document_attribute_filename.py +74 -0
- pyrogram/raw/types/document_attribute_has_stickers.py +69 -0
- pyrogram/raw/types/document_attribute_image_size.py +82 -0
- pyrogram/raw/types/document_attribute_sticker.py +100 -0
- pyrogram/raw/types/document_attribute_video.py +137 -0
- pyrogram/raw/types/document_empty.py +86 -0
- pyrogram/raw/types/draft_message.py +155 -0
- pyrogram/raw/types/draft_message_empty.py +77 -0
- pyrogram/raw/types/email_verification_apple.py +74 -0
- pyrogram/raw/types/email_verification_code.py +74 -0
- pyrogram/raw/types/email_verification_google.py +74 -0
- pyrogram/raw/types/email_verify_purpose_login_change.py +69 -0
- pyrogram/raw/types/email_verify_purpose_login_setup.py +82 -0
- pyrogram/raw/types/email_verify_purpose_passport.py +69 -0
- pyrogram/raw/types/emoji_group.py +90 -0
- pyrogram/raw/types/emoji_group_greeting.py +90 -0
- pyrogram/raw/types/emoji_group_premium.py +82 -0
- pyrogram/raw/types/emoji_keyword.py +82 -0
- pyrogram/raw/types/emoji_keyword_deleted.py +82 -0
- pyrogram/raw/types/emoji_keywords_difference.py +108 -0
- pyrogram/raw/types/emoji_language.py +83 -0
- pyrogram/raw/types/emoji_list.py +95 -0
- pyrogram/raw/types/emoji_list_not_modified.py +82 -0
- pyrogram/raw/types/emoji_status.py +85 -0
- pyrogram/raw/types/emoji_status_collectible.py +149 -0
- pyrogram/raw/types/emoji_status_empty.py +69 -0
- pyrogram/raw/types/emoji_url.py +83 -0
- pyrogram/raw/types/encrypted_chat.py +132 -0
- pyrogram/raw/types/encrypted_chat_discarded.py +92 -0
- pyrogram/raw/types/encrypted_chat_empty.py +84 -0
- pyrogram/raw/types/encrypted_chat_requested.py +135 -0
- pyrogram/raw/types/encrypted_chat_waiting.py +116 -0
- pyrogram/raw/types/encrypted_file.py +115 -0
- pyrogram/raw/types/encrypted_file_empty.py +78 -0
- pyrogram/raw/types/encrypted_message.py +106 -0
- pyrogram/raw/types/encrypted_message_service.py +98 -0
- pyrogram/raw/types/exported_chatlist_invite.py +102 -0
- pyrogram/raw/types/exported_contact_token.py +91 -0
- pyrogram/raw/types/exported_message_link.py +91 -0
- pyrogram/raw/types/exported_story_link.py +83 -0
- pyrogram/raw/types/fact_check.py +110 -0
- pyrogram/raw/types/file_hash.py +101 -0
- pyrogram/raw/types/folder.py +112 -0
- pyrogram/raw/types/folder_peer.py +82 -0
- pyrogram/raw/types/forum_topic.py +235 -0
- pyrogram/raw/types/forum_topic_deleted.py +74 -0
- pyrogram/raw/types/found_story.py +82 -0
- pyrogram/raw/types/fragment/__init__.py +25 -0
- pyrogram/raw/types/fragment/collectible_info.py +123 -0
- pyrogram/raw/types/game.py +126 -0
- pyrogram/raw/types/geo_point.py +101 -0
- pyrogram/raw/types/geo_point_address.py +103 -0
- pyrogram/raw/types/geo_point_empty.py +69 -0
- pyrogram/raw/types/global_privacy_settings.py +133 -0
- pyrogram/raw/types/group_call.py +259 -0
- pyrogram/raw/types/group_call_discarded.py +90 -0
- pyrogram/raw/types/group_call_donor.py +98 -0
- pyrogram/raw/types/group_call_message.py +115 -0
- pyrogram/raw/types/group_call_participant.py +217 -0
- pyrogram/raw/types/group_call_participant_video.py +99 -0
- pyrogram/raw/types/group_call_participant_video_source_group.py +82 -0
- pyrogram/raw/types/group_call_stream_channel.py +90 -0
- pyrogram/raw/types/help/__init__.py +56 -0
- pyrogram/raw/types/help/app_config.py +91 -0
- pyrogram/raw/types/help/app_config_not_modified.py +78 -0
- pyrogram/raw/types/help/app_update.py +144 -0
- pyrogram/raw/types/help/config_simple.py +90 -0
- pyrogram/raw/types/help/countries_list.py +91 -0
- pyrogram/raw/types/help/countries_list_not_modified.py +78 -0
- pyrogram/raw/types/help/country.py +107 -0
- pyrogram/raw/types/help/country_code.py +96 -0
- pyrogram/raw/types/help/deep_link_info.py +101 -0
- pyrogram/raw/types/help/deep_link_info_empty.py +78 -0
- pyrogram/raw/types/help/invite_text.py +83 -0
- pyrogram/raw/types/help/no_app_update.py +78 -0
- pyrogram/raw/types/help/passport_config.py +91 -0
- pyrogram/raw/types/help/passport_config_not_modified.py +78 -0
- pyrogram/raw/types/help/peer_color_option.py +120 -0
- pyrogram/raw/types/help/peer_color_profile_set.py +90 -0
- pyrogram/raw/types/help/peer_color_set.py +74 -0
- pyrogram/raw/types/help/peer_colors.py +92 -0
- pyrogram/raw/types/help/peer_colors_not_modified.py +79 -0
- pyrogram/raw/types/help/premium_promo.py +123 -0
- pyrogram/raw/types/help/promo_data.py +161 -0
- pyrogram/raw/types/help/promo_data_empty.py +83 -0
- pyrogram/raw/types/help/recent_me_urls.py +99 -0
- pyrogram/raw/types/help/support.py +91 -0
- pyrogram/raw/types/help/support_name.py +83 -0
- pyrogram/raw/types/help/terms_of_service.py +107 -0
- pyrogram/raw/types/help/terms_of_service_update.py +91 -0
- pyrogram/raw/types/help/terms_of_service_update_empty.py +83 -0
- pyrogram/raw/types/help/timezones_list.py +91 -0
- pyrogram/raw/types/help/timezones_list_not_modified.py +78 -0
- pyrogram/raw/types/help/user_info.py +108 -0
- pyrogram/raw/types/help/user_info_empty.py +79 -0
- pyrogram/raw/types/high_score.py +90 -0
- pyrogram/raw/types/http_wait.py +90 -0
- pyrogram/raw/types/imported_contact.py +82 -0
- pyrogram/raw/types/inline_bot_switch_pm.py +82 -0
- pyrogram/raw/types/inline_bot_web_view.py +82 -0
- pyrogram/raw/types/inline_query_peer_type_bot_pm.py +69 -0
- pyrogram/raw/types/inline_query_peer_type_broadcast.py +69 -0
- pyrogram/raw/types/inline_query_peer_type_chat.py +69 -0
- pyrogram/raw/types/inline_query_peer_type_megagroup.py +69 -0
- pyrogram/raw/types/inline_query_peer_type_pm.py +69 -0
- pyrogram/raw/types/inline_query_peer_type_same_bot_pm.py +69 -0
- pyrogram/raw/types/input_ai_compose_tone_default.py +74 -0
- pyrogram/raw/types/input_ai_compose_tone_id.py +82 -0
- pyrogram/raw/types/input_ai_compose_tone_slug.py +74 -0
- pyrogram/raw/types/input_app_event.py +98 -0
- pyrogram/raw/types/input_bot_app_id.py +82 -0
- pyrogram/raw/types/input_bot_app_short_name.py +82 -0
- pyrogram/raw/types/input_bot_inline_message_game.py +78 -0
- pyrogram/raw/types/input_bot_inline_message_id.py +99 -0
- pyrogram/raw/types/input_bot_inline_message_id64.py +107 -0
- pyrogram/raw/types/input_bot_inline_message_media_auto.py +102 -0
- pyrogram/raw/types/input_bot_inline_message_media_contact.py +110 -0
- pyrogram/raw/types/input_bot_inline_message_media_geo.py +113 -0
- pyrogram/raw/types/input_bot_inline_message_media_invoice.py +136 -0
- pyrogram/raw/types/input_bot_inline_message_media_venue.py +126 -0
- pyrogram/raw/types/input_bot_inline_message_media_web_page.py +128 -0
- pyrogram/raw/types/input_bot_inline_message_rich_message.py +86 -0
- pyrogram/raw/types/input_bot_inline_message_text.py +108 -0
- pyrogram/raw/types/input_bot_inline_result.py +139 -0
- pyrogram/raw/types/input_bot_inline_result_document.py +118 -0
- pyrogram/raw/types/input_bot_inline_result_game.py +90 -0
- pyrogram/raw/types/input_bot_inline_result_photo.py +98 -0
- pyrogram/raw/types/input_business_away_message.py +98 -0
- pyrogram/raw/types/input_business_bot_recipients.py +118 -0
- pyrogram/raw/types/input_business_chat_link.py +95 -0
- pyrogram/raw/types/input_business_greeting_message.py +90 -0
- pyrogram/raw/types/input_business_intro.py +94 -0
- pyrogram/raw/types/input_business_recipients.py +108 -0
- pyrogram/raw/types/input_channel.py +82 -0
- pyrogram/raw/types/input_channel_empty.py +69 -0
- pyrogram/raw/types/input_channel_from_message.py +90 -0
- pyrogram/raw/types/input_chat_photo.py +74 -0
- pyrogram/raw/types/input_chat_photo_empty.py +69 -0
- pyrogram/raw/types/input_chat_theme.py +74 -0
- pyrogram/raw/types/input_chat_theme_empty.py +69 -0
- pyrogram/raw/types/input_chat_theme_unique_gift.py +74 -0
- pyrogram/raw/types/input_chat_uploaded_photo.py +107 -0
- pyrogram/raw/types/input_chatlist_dialog_filter.py +74 -0
- pyrogram/raw/types/input_check_password_empty.py +69 -0
- pyrogram/raw/types/input_check_password_srp.py +90 -0
- pyrogram/raw/types/input_client_proxy.py +82 -0
- pyrogram/raw/types/input_collectible_phone.py +74 -0
- pyrogram/raw/types/input_collectible_username.py +74 -0
- pyrogram/raw/types/input_dialog_peer.py +74 -0
- pyrogram/raw/types/input_dialog_peer_folder.py +74 -0
- pyrogram/raw/types/input_document.py +90 -0
- pyrogram/raw/types/input_document_empty.py +69 -0
- pyrogram/raw/types/input_document_file_location.py +98 -0
- pyrogram/raw/types/input_emoji_status_collectible.py +85 -0
- pyrogram/raw/types/input_encrypted_chat.py +82 -0
- pyrogram/raw/types/input_encrypted_file.py +82 -0
- pyrogram/raw/types/input_encrypted_file_big_uploaded.py +90 -0
- pyrogram/raw/types/input_encrypted_file_empty.py +69 -0
- pyrogram/raw/types/input_encrypted_file_location.py +82 -0
- pyrogram/raw/types/input_encrypted_file_uploaded.py +98 -0
- pyrogram/raw/types/input_file.py +98 -0
- pyrogram/raw/types/input_file_big.py +90 -0
- pyrogram/raw/types/input_file_location.py +98 -0
- pyrogram/raw/types/input_file_story_document.py +74 -0
- pyrogram/raw/types/input_folder_peer.py +82 -0
- pyrogram/raw/types/input_game_id.py +82 -0
- pyrogram/raw/types/input_game_short_name.py +82 -0
- pyrogram/raw/types/input_geo_point.py +93 -0
- pyrogram/raw/types/input_geo_point_empty.py +69 -0
- pyrogram/raw/types/input_group_call.py +82 -0
- pyrogram/raw/types/input_group_call_invite_message.py +74 -0
- pyrogram/raw/types/input_group_call_slug.py +74 -0
- pyrogram/raw/types/input_group_call_stream.py +110 -0
- pyrogram/raw/types/input_invoice_business_bot_transfer_stars.py +82 -0
- pyrogram/raw/types/input_invoice_chat_invite_subscription.py +74 -0
- pyrogram/raw/types/input_invoice_message.py +82 -0
- pyrogram/raw/types/input_invoice_premium_auth_code.py +74 -0
- pyrogram/raw/types/input_invoice_premium_gift_code.py +82 -0
- pyrogram/raw/types/input_invoice_premium_gift_stars.py +94 -0
- pyrogram/raw/types/input_invoice_slug.py +74 -0
- pyrogram/raw/types/input_invoice_star_gift.py +106 -0
- pyrogram/raw/types/input_invoice_star_gift_auction_bid.py +116 -0
- pyrogram/raw/types/input_invoice_star_gift_drop_original_details.py +74 -0
- pyrogram/raw/types/input_invoice_star_gift_prepaid_upgrade.py +82 -0
- pyrogram/raw/types/input_invoice_star_gift_resale.py +90 -0
- pyrogram/raw/types/input_invoice_star_gift_transfer.py +82 -0
- pyrogram/raw/types/input_invoice_star_gift_upgrade.py +82 -0
- pyrogram/raw/types/input_invoice_stars.py +74 -0
- pyrogram/raw/types/input_keyboard_button_request_peer.py +137 -0
- pyrogram/raw/types/input_keyboard_button_url_auth.py +126 -0
- pyrogram/raw/types/input_keyboard_button_user_profile.py +103 -0
- pyrogram/raw/types/input_media_area_channel_post.py +90 -0
- pyrogram/raw/types/input_media_area_venue.py +90 -0
- pyrogram/raw/types/input_media_contact.py +98 -0
- pyrogram/raw/types/input_media_dice.py +74 -0
- pyrogram/raw/types/input_media_document.py +119 -0
- pyrogram/raw/types/input_media_document_external.py +110 -0
- pyrogram/raw/types/input_media_empty.py +69 -0
- pyrogram/raw/types/input_media_game.py +74 -0
- pyrogram/raw/types/input_media_geo_live.py +109 -0
- pyrogram/raw/types/input_media_geo_point.py +74 -0
- pyrogram/raw/types/input_media_invoice.py +146 -0
- pyrogram/raw/types/input_media_paid_media.py +93 -0
- pyrogram/raw/types/input_media_photo.py +107 -0
- pyrogram/raw/types/input_media_photo_external.py +91 -0
- pyrogram/raw/types/input_media_poll.py +125 -0
- pyrogram/raw/types/input_media_stake_dice.py +90 -0
- pyrogram/raw/types/input_media_story.py +82 -0
- pyrogram/raw/types/input_media_todo.py +74 -0
- pyrogram/raw/types/input_media_uploaded_document.py +158 -0
- pyrogram/raw/types/input_media_uploaded_photo.py +117 -0
- pyrogram/raw/types/input_media_venue.py +114 -0
- pyrogram/raw/types/input_media_web_page.py +94 -0
- pyrogram/raw/types/input_message_callback_query.py +82 -0
- pyrogram/raw/types/input_message_entity_mention_name.py +90 -0
- pyrogram/raw/types/input_message_id.py +74 -0
- pyrogram/raw/types/input_message_pinned.py +69 -0
- pyrogram/raw/types/input_message_read_metric.py +114 -0
- pyrogram/raw/types/input_message_reply_to.py +74 -0
- pyrogram/raw/types/input_messages_filter_chat_photos.py +69 -0
- pyrogram/raw/types/input_messages_filter_contacts.py +69 -0
- pyrogram/raw/types/input_messages_filter_document.py +69 -0
- pyrogram/raw/types/input_messages_filter_empty.py +69 -0
- pyrogram/raw/types/input_messages_filter_geo.py +69 -0
- pyrogram/raw/types/input_messages_filter_gif.py +69 -0
- pyrogram/raw/types/input_messages_filter_music.py +69 -0
- pyrogram/raw/types/input_messages_filter_my_mentions.py +69 -0
- pyrogram/raw/types/input_messages_filter_phone_calls.py +74 -0
- pyrogram/raw/types/input_messages_filter_photo_video.py +69 -0
- pyrogram/raw/types/input_messages_filter_photos.py +69 -0
- pyrogram/raw/types/input_messages_filter_pinned.py +69 -0
- pyrogram/raw/types/input_messages_filter_poll.py +69 -0
- pyrogram/raw/types/input_messages_filter_round_video.py +69 -0
- pyrogram/raw/types/input_messages_filter_round_voice.py +69 -0
- pyrogram/raw/types/input_messages_filter_url.py +69 -0
- pyrogram/raw/types/input_messages_filter_video.py +69 -0
- pyrogram/raw/types/input_messages_filter_voice.py +69 -0
- pyrogram/raw/types/input_notify_broadcasts.py +69 -0
- pyrogram/raw/types/input_notify_chats.py +69 -0
- pyrogram/raw/types/input_notify_forum_topic.py +82 -0
- pyrogram/raw/types/input_notify_peer.py +74 -0
- pyrogram/raw/types/input_notify_users.py +69 -0
- pyrogram/raw/types/input_page_block_map.py +106 -0
- pyrogram/raw/types/input_passkey_credential_firebase_pnv.py +74 -0
- pyrogram/raw/types/input_passkey_credential_public_key.py +90 -0
- pyrogram/raw/types/input_passkey_response_login.py +98 -0
- pyrogram/raw/types/input_passkey_response_register.py +82 -0
- pyrogram/raw/types/input_payment_credentials.py +82 -0
- pyrogram/raw/types/input_payment_credentials_apple_pay.py +74 -0
- pyrogram/raw/types/input_payment_credentials_google_pay.py +74 -0
- pyrogram/raw/types/input_payment_credentials_saved.py +82 -0
- pyrogram/raw/types/input_peer_channel.py +82 -0
- pyrogram/raw/types/input_peer_channel_from_message.py +90 -0
- pyrogram/raw/types/input_peer_chat.py +74 -0
- pyrogram/raw/types/input_peer_color_collectible.py +74 -0
- pyrogram/raw/types/input_peer_empty.py +69 -0
- pyrogram/raw/types/input_peer_notify_settings.py +133 -0
- pyrogram/raw/types/input_peer_photo_file_location.py +90 -0
- pyrogram/raw/types/input_peer_self.py +69 -0
- pyrogram/raw/types/input_peer_user.py +82 -0
- pyrogram/raw/types/input_peer_user_from_message.py +90 -0
- pyrogram/raw/types/input_phone_call.py +82 -0
- pyrogram/raw/types/input_phone_contact.py +110 -0
- pyrogram/raw/types/input_photo.py +90 -0
- pyrogram/raw/types/input_photo_empty.py +69 -0
- pyrogram/raw/types/input_photo_file_location.py +98 -0
- pyrogram/raw/types/input_photo_legacy_file_location.py +114 -0
- pyrogram/raw/types/input_poll_answer.py +86 -0
- pyrogram/raw/types/input_privacy_key_about.py +69 -0
- pyrogram/raw/types/input_privacy_key_added_by_phone.py +69 -0
- pyrogram/raw/types/input_privacy_key_birthday.py +69 -0
- pyrogram/raw/types/input_privacy_key_chat_invite.py +69 -0
- pyrogram/raw/types/input_privacy_key_forwards.py +69 -0
- pyrogram/raw/types/input_privacy_key_no_paid_messages.py +69 -0
- pyrogram/raw/types/input_privacy_key_phone_call.py +69 -0
- pyrogram/raw/types/input_privacy_key_phone_number.py +69 -0
- pyrogram/raw/types/input_privacy_key_phone_p2_p.py +69 -0
- pyrogram/raw/types/input_privacy_key_profile_photo.py +69 -0
- pyrogram/raw/types/input_privacy_key_saved_music.py +69 -0
- pyrogram/raw/types/input_privacy_key_star_gifts_auto_save.py +69 -0
- pyrogram/raw/types/input_privacy_key_status_timestamp.py +69 -0
- pyrogram/raw/types/input_privacy_key_voice_messages.py +69 -0
- pyrogram/raw/types/input_privacy_value_allow_all.py +69 -0
- pyrogram/raw/types/input_privacy_value_allow_bots.py +69 -0
- pyrogram/raw/types/input_privacy_value_allow_chat_participants.py +74 -0
- pyrogram/raw/types/input_privacy_value_allow_close_friends.py +69 -0
- pyrogram/raw/types/input_privacy_value_allow_contacts.py +69 -0
- pyrogram/raw/types/input_privacy_value_allow_premium.py +69 -0
- pyrogram/raw/types/input_privacy_value_allow_users.py +74 -0
- pyrogram/raw/types/input_privacy_value_disallow_all.py +69 -0
- pyrogram/raw/types/input_privacy_value_disallow_bots.py +69 -0
- pyrogram/raw/types/input_privacy_value_disallow_chat_participants.py +74 -0
- pyrogram/raw/types/input_privacy_value_disallow_contacts.py +69 -0
- pyrogram/raw/types/input_privacy_value_disallow_users.py +74 -0
- pyrogram/raw/types/input_quick_reply_shortcut.py +74 -0
- pyrogram/raw/types/input_quick_reply_shortcut_id.py +74 -0
- pyrogram/raw/types/input_reply_to_message.py +151 -0
- pyrogram/raw/types/input_reply_to_mono_forum.py +74 -0
- pyrogram/raw/types/input_reply_to_story.py +82 -0
- pyrogram/raw/types/input_report_reason_child_abuse.py +69 -0
- pyrogram/raw/types/input_report_reason_copyright.py +69 -0
- pyrogram/raw/types/input_report_reason_fake.py +69 -0
- pyrogram/raw/types/input_report_reason_geo_irrelevant.py +69 -0
- pyrogram/raw/types/input_report_reason_illegal_drugs.py +69 -0
- pyrogram/raw/types/input_report_reason_other.py +69 -0
- pyrogram/raw/types/input_report_reason_personal_details.py +69 -0
- pyrogram/raw/types/input_report_reason_pornography.py +69 -0
- pyrogram/raw/types/input_report_reason_spam.py +69 -0
- pyrogram/raw/types/input_report_reason_violence.py +69 -0
- pyrogram/raw/types/input_rich_file_document.py +82 -0
- pyrogram/raw/types/input_rich_file_photo.py +82 -0
- pyrogram/raw/types/input_rich_message.py +118 -0
- pyrogram/raw/types/input_rich_message_html.py +98 -0
- pyrogram/raw/types/input_rich_message_markdown.py +98 -0
- pyrogram/raw/types/input_saved_star_gift_chat.py +82 -0
- pyrogram/raw/types/input_saved_star_gift_slug.py +74 -0
- pyrogram/raw/types/input_saved_star_gift_user.py +74 -0
- pyrogram/raw/types/input_secure_file.py +82 -0
- pyrogram/raw/types/input_secure_file_location.py +82 -0
- pyrogram/raw/types/input_secure_file_uploaded.py +106 -0
- pyrogram/raw/types/input_secure_value.py +146 -0
- pyrogram/raw/types/input_send_message_rich_message_draft_action.py +82 -0
- pyrogram/raw/types/input_single_media.py +102 -0
- pyrogram/raw/types/input_star_gift_auction.py +74 -0
- pyrogram/raw/types/input_star_gift_auction_slug.py +74 -0
- pyrogram/raw/types/input_stars_transaction.py +82 -0
- pyrogram/raw/types/input_sticker_set_animated_emoji.py +69 -0
- pyrogram/raw/types/input_sticker_set_animated_emoji_animations.py +69 -0
- pyrogram/raw/types/input_sticker_set_dice.py +74 -0
- pyrogram/raw/types/input_sticker_set_emoji_channel_default_statuses.py +69 -0
- pyrogram/raw/types/input_sticker_set_emoji_default_statuses.py +69 -0
- pyrogram/raw/types/input_sticker_set_emoji_default_topic_icons.py +69 -0
- pyrogram/raw/types/input_sticker_set_emoji_generic_animations.py +69 -0
- pyrogram/raw/types/input_sticker_set_empty.py +69 -0
- pyrogram/raw/types/input_sticker_set_id.py +82 -0
- pyrogram/raw/types/input_sticker_set_item.py +103 -0
- pyrogram/raw/types/input_sticker_set_premium_gifts.py +69 -0
- pyrogram/raw/types/input_sticker_set_short_name.py +74 -0
- pyrogram/raw/types/input_sticker_set_thumb.py +82 -0
- pyrogram/raw/types/input_sticker_set_ton_gifts.py +69 -0
- pyrogram/raw/types/input_stickered_media_document.py +74 -0
- pyrogram/raw/types/input_stickered_media_photo.py +74 -0
- pyrogram/raw/types/input_store_payment_auth_code.py +114 -0
- pyrogram/raw/types/input_store_payment_gift_premium.py +90 -0
- pyrogram/raw/types/input_store_payment_premium_gift_code.py +112 -0
- pyrogram/raw/types/input_store_payment_premium_giveaway.py +149 -0
- pyrogram/raw/types/input_store_payment_premium_subscription.py +80 -0
- pyrogram/raw/types/input_store_payment_stars_gift.py +98 -0
- pyrogram/raw/types/input_store_payment_stars_giveaway.py +165 -0
- pyrogram/raw/types/input_store_payment_stars_topup.py +102 -0
- pyrogram/raw/types/input_takeout_file_location.py +69 -0
- pyrogram/raw/types/input_theme.py +82 -0
- pyrogram/raw/types/input_theme_settings.py +129 -0
- pyrogram/raw/types/input_theme_slug.py +74 -0
- pyrogram/raw/types/input_user.py +82 -0
- pyrogram/raw/types/input_user_empty.py +69 -0
- pyrogram/raw/types/input_user_from_message.py +90 -0
- pyrogram/raw/types/input_user_self.py +69 -0
- pyrogram/raw/types/input_wall_paper.py +82 -0
- pyrogram/raw/types/input_wall_paper_no_file.py +74 -0
- pyrogram/raw/types/input_wall_paper_slug.py +74 -0
- pyrogram/raw/types/input_web_document.py +98 -0
- pyrogram/raw/types/input_web_file_audio_album_thumb_location.py +102 -0
- pyrogram/raw/types/input_web_file_geo_point_location.py +114 -0
- pyrogram/raw/types/input_web_file_location.py +82 -0
- pyrogram/raw/types/invoice.py +175 -0
- pyrogram/raw/types/ip_port.py +82 -0
- pyrogram/raw/types/ip_port_secret.py +90 -0
- pyrogram/raw/types/join_chat_bot_result_approved.py +69 -0
- pyrogram/raw/types/join_chat_bot_result_declined.py +69 -0
- pyrogram/raw/types/join_chat_bot_result_queued.py +69 -0
- pyrogram/raw/types/join_chat_bot_result_web_view.py +74 -0
- pyrogram/raw/types/json_array.py +74 -0
- pyrogram/raw/types/json_bool.py +74 -0
- pyrogram/raw/types/json_null.py +69 -0
- pyrogram/raw/types/json_number.py +74 -0
- pyrogram/raw/types/json_object.py +74 -0
- pyrogram/raw/types/json_object_value.py +82 -0
- pyrogram/raw/types/json_string.py +74 -0
- pyrogram/raw/types/keyboard_button.py +95 -0
- pyrogram/raw/types/keyboard_button_buy.py +95 -0
- pyrogram/raw/types/keyboard_button_callback.py +109 -0
- pyrogram/raw/types/keyboard_button_copy.py +103 -0
- pyrogram/raw/types/keyboard_button_game.py +95 -0
- pyrogram/raw/types/keyboard_button_request_geo_location.py +95 -0
- pyrogram/raw/types/keyboard_button_request_peer.py +119 -0
- pyrogram/raw/types/keyboard_button_request_phone.py +95 -0
- pyrogram/raw/types/keyboard_button_request_poll.py +104 -0
- pyrogram/raw/types/keyboard_button_row.py +74 -0
- pyrogram/raw/types/keyboard_button_simple_web_view.py +103 -0
- pyrogram/raw/types/keyboard_button_style.py +95 -0
- pyrogram/raw/types/keyboard_button_switch_inline.py +119 -0
- pyrogram/raw/types/keyboard_button_url.py +103 -0
- pyrogram/raw/types/keyboard_button_url_auth.py +120 -0
- pyrogram/raw/types/keyboard_button_user_profile.py +103 -0
- pyrogram/raw/types/keyboard_button_web_view.py +103 -0
- pyrogram/raw/types/labeled_price.py +82 -0
- pyrogram/raw/types/lang_pack_difference.py +108 -0
- pyrogram/raw/types/lang_pack_language.py +161 -0
- pyrogram/raw/types/lang_pack_string.py +91 -0
- pyrogram/raw/types/lang_pack_string_deleted.py +83 -0
- pyrogram/raw/types/lang_pack_string_pluralized.py +138 -0
- pyrogram/raw/types/mask_coords.py +98 -0
- pyrogram/raw/types/media_area_channel_post.py +90 -0
- pyrogram/raw/types/media_area_coordinates.py +117 -0
- pyrogram/raw/types/media_area_geo_point.py +94 -0
- pyrogram/raw/types/media_area_star_gift.py +82 -0
- pyrogram/raw/types/media_area_suggested_reaction.py +96 -0
- pyrogram/raw/types/media_area_url.py +82 -0
- pyrogram/raw/types/media_area_venue.py +122 -0
- pyrogram/raw/types/media_area_weather.py +98 -0
- pyrogram/raw/types/message.py +478 -0
- pyrogram/raw/types/message_action_boost_apply.py +74 -0
- pyrogram/raw/types/message_action_bot_allowed.py +99 -0
- pyrogram/raw/types/message_action_change_creator.py +74 -0
- pyrogram/raw/types/message_action_channel_create.py +74 -0
- pyrogram/raw/types/message_action_channel_migrate_from.py +82 -0
- pyrogram/raw/types/message_action_chat_add_user.py +74 -0
- pyrogram/raw/types/message_action_chat_create.py +82 -0
- pyrogram/raw/types/message_action_chat_delete_photo.py +69 -0
- pyrogram/raw/types/message_action_chat_delete_user.py +74 -0
- pyrogram/raw/types/message_action_chat_edit_photo.py +74 -0
- pyrogram/raw/types/message_action_chat_edit_title.py +74 -0
- pyrogram/raw/types/message_action_chat_joined_by_link.py +74 -0
- pyrogram/raw/types/message_action_chat_joined_by_request.py +69 -0
- pyrogram/raw/types/message_action_chat_migrate_to.py +74 -0
- pyrogram/raw/types/message_action_conference_call.py +113 -0
- pyrogram/raw/types/message_action_contact_sign_up.py +69 -0
- pyrogram/raw/types/message_action_custom_action.py +74 -0
- pyrogram/raw/types/message_action_empty.py +69 -0
- pyrogram/raw/types/message_action_game_score.py +82 -0
- pyrogram/raw/types/message_action_geo_proximity_reached.py +90 -0
- pyrogram/raw/types/message_action_gift_code.py +152 -0
- pyrogram/raw/types/message_action_gift_premium.py +120 -0
- pyrogram/raw/types/message_action_gift_stars.py +119 -0
- pyrogram/raw/types/message_action_gift_ton.py +109 -0
- pyrogram/raw/types/message_action_giveaway_launch.py +77 -0
- pyrogram/raw/types/message_action_giveaway_results.py +90 -0
- pyrogram/raw/types/message_action_group_call.py +85 -0
- pyrogram/raw/types/message_action_group_call_scheduled.py +82 -0
- pyrogram/raw/types/message_action_history_clear.py +69 -0
- pyrogram/raw/types/message_action_invite_to_group_call.py +82 -0
- pyrogram/raw/types/message_action_managed_bot_created.py +74 -0
- pyrogram/raw/types/message_action_new_creator_pending.py +74 -0
- pyrogram/raw/types/message_action_no_forwards_request.py +90 -0
- pyrogram/raw/types/message_action_no_forwards_toggle.py +82 -0
- pyrogram/raw/types/message_action_paid_messages_price.py +82 -0
- pyrogram/raw/types/message_action_paid_messages_refunded.py +82 -0
- pyrogram/raw/types/message_action_payment_refunded.py +109 -0
- pyrogram/raw/types/message_action_payment_sent.py +114 -0
- pyrogram/raw/types/message_action_payment_sent_me.py +140 -0
- pyrogram/raw/types/message_action_phone_call.py +101 -0
- pyrogram/raw/types/message_action_pin_message.py +69 -0
- pyrogram/raw/types/message_action_poll_append_answer.py +74 -0
- pyrogram/raw/types/message_action_poll_delete_answer.py +74 -0
- pyrogram/raw/types/message_action_prize_stars.py +106 -0
- pyrogram/raw/types/message_action_requested_peer.py +82 -0
- pyrogram/raw/types/message_action_requested_peer_sent_me.py +82 -0
- pyrogram/raw/types/message_action_screenshot_taken.py +69 -0
- pyrogram/raw/types/message_action_secure_values_sent.py +74 -0
- pyrogram/raw/types/message_action_secure_values_sent_me.py +82 -0
- pyrogram/raw/types/message_action_set_chat_theme.py +74 -0
- pyrogram/raw/types/message_action_set_chat_wall_paper.py +88 -0
- pyrogram/raw/types/message_action_set_messages_ttl.py +85 -0
- pyrogram/raw/types/message_action_star_gift.py +233 -0
- pyrogram/raw/types/message_action_star_gift_purchase_offer.py +104 -0
- pyrogram/raw/types/message_action_star_gift_purchase_offer_declined.py +90 -0
- pyrogram/raw/types/message_action_star_gift_unique.py +217 -0
- pyrogram/raw/types/message_action_suggest_birthday.py +74 -0
- pyrogram/raw/types/message_action_suggest_profile_photo.py +74 -0
- pyrogram/raw/types/message_action_suggested_post_approval.py +108 -0
- pyrogram/raw/types/message_action_suggested_post_refund.py +74 -0
- pyrogram/raw/types/message_action_suggested_post_success.py +74 -0
- pyrogram/raw/types/message_action_todo_append_tasks.py +74 -0
- pyrogram/raw/types/message_action_todo_completions.py +82 -0
- pyrogram/raw/types/message_action_topic_create.py +99 -0
- pyrogram/raw/types/message_action_topic_edit.py +104 -0
- pyrogram/raw/types/message_action_web_view_data_sent.py +74 -0
- pyrogram/raw/types/message_action_web_view_data_sent_me.py +82 -0
- pyrogram/raw/types/message_empty.py +86 -0
- pyrogram/raw/types/message_entity_bank_card.py +82 -0
- pyrogram/raw/types/message_entity_blockquote.py +90 -0
- pyrogram/raw/types/message_entity_bold.py +82 -0
- pyrogram/raw/types/message_entity_bot_command.py +82 -0
- pyrogram/raw/types/message_entity_cashtag.py +82 -0
- pyrogram/raw/types/message_entity_code.py +82 -0
- pyrogram/raw/types/message_entity_custom_emoji.py +90 -0
- pyrogram/raw/types/message_entity_diff_delete.py +82 -0
- pyrogram/raw/types/message_entity_diff_insert.py +82 -0
- pyrogram/raw/types/message_entity_diff_replace.py +90 -0
- pyrogram/raw/types/message_entity_email.py +82 -0
- pyrogram/raw/types/message_entity_formatted_date.py +128 -0
- pyrogram/raw/types/message_entity_hashtag.py +82 -0
- pyrogram/raw/types/message_entity_italic.py +82 -0
- pyrogram/raw/types/message_entity_mention.py +82 -0
- pyrogram/raw/types/message_entity_mention_name.py +90 -0
- pyrogram/raw/types/message_entity_phone.py +82 -0
- pyrogram/raw/types/message_entity_pre.py +90 -0
- pyrogram/raw/types/message_entity_spoiler.py +82 -0
- pyrogram/raw/types/message_entity_strike.py +82 -0
- pyrogram/raw/types/message_entity_text_url.py +90 -0
- pyrogram/raw/types/message_entity_underline.py +82 -0
- pyrogram/raw/types/message_entity_unknown.py +82 -0
- pyrogram/raw/types/message_entity_url.py +82 -0
- pyrogram/raw/types/message_extended_media.py +74 -0
- pyrogram/raw/types/message_extended_media_preview.py +105 -0
- pyrogram/raw/types/message_fwd_header.py +181 -0
- pyrogram/raw/types/message_media_contact.py +116 -0
- pyrogram/raw/types/message_media_dice.py +104 -0
- pyrogram/raw/types/message_media_document.py +156 -0
- pyrogram/raw/types/message_media_empty.py +79 -0
- pyrogram/raw/types/message_media_game.py +84 -0
- pyrogram/raw/types/message_media_geo.py +84 -0
- pyrogram/raw/types/message_media_geo_live.py +112 -0
- pyrogram/raw/types/message_media_giveaway.py +151 -0
- pyrogram/raw/types/message_media_giveaway_results.py +174 -0
- pyrogram/raw/types/message_media_invoice.py +159 -0
- pyrogram/raw/types/message_media_paid_media.py +92 -0
- pyrogram/raw/types/message_media_photo.py +119 -0
- pyrogram/raw/types/message_media_poll.py +104 -0
- pyrogram/raw/types/message_media_story.py +110 -0
- pyrogram/raw/types/message_media_to_do.py +96 -0
- pyrogram/raw/types/message_media_unsupported.py +79 -0
- pyrogram/raw/types/message_media_venue.py +124 -0
- pyrogram/raw/types/message_media_video_stream.py +92 -0
- pyrogram/raw/types/message_media_web_page.py +110 -0
- pyrogram/raw/types/message_peer_reaction.py +110 -0
- pyrogram/raw/types/message_peer_vote.py +90 -0
- pyrogram/raw/types/message_peer_vote_input_option.py +82 -0
- pyrogram/raw/types/message_peer_vote_multiple.py +90 -0
- pyrogram/raw/types/message_range.py +91 -0
- pyrogram/raw/types/message_reactions.py +114 -0
- pyrogram/raw/types/message_reactor.py +104 -0
- pyrogram/raw/types/message_replies.py +127 -0
- pyrogram/raw/types/message_reply_header.py +186 -0
- pyrogram/raw/types/message_reply_story_header.py +82 -0
- pyrogram/raw/types/message_report_option.py +82 -0
- pyrogram/raw/types/message_service.py +191 -0
- pyrogram/raw/types/message_views.py +96 -0
- pyrogram/raw/types/messages/__init__.py +118 -0
- pyrogram/raw/types/messages/affected_found_messages.py +107 -0
- pyrogram/raw/types/messages/affected_history.py +106 -0
- pyrogram/raw/types/messages/affected_messages.py +94 -0
- pyrogram/raw/types/messages/all_stickers.py +93 -0
- pyrogram/raw/types/messages/all_stickers_not_modified.py +80 -0
- pyrogram/raw/types/messages/archived_stickers.py +91 -0
- pyrogram/raw/types/messages/available_effects.py +99 -0
- pyrogram/raw/types/messages/available_effects_not_modified.py +78 -0
- pyrogram/raw/types/messages/available_reactions.py +91 -0
- pyrogram/raw/types/messages/available_reactions_not_modified.py +78 -0
- pyrogram/raw/types/messages/bot_app.py +103 -0
- pyrogram/raw/types/messages/bot_callback_answer.py +121 -0
- pyrogram/raw/types/messages/bot_prepared_inline_message.py +91 -0
- pyrogram/raw/types/messages/bot_results.py +144 -0
- pyrogram/raw/types/messages/channel_messages.py +157 -0
- pyrogram/raw/types/messages/chat_admins_with_invites.py +91 -0
- pyrogram/raw/types/messages/chat_full.py +100 -0
- pyrogram/raw/types/messages/chat_invite_importers.py +99 -0
- pyrogram/raw/types/messages/chat_invite_join_result_ok.py +84 -0
- pyrogram/raw/types/messages/chat_invite_join_result_web_view.py +100 -0
- pyrogram/raw/types/messages/chats.py +90 -0
- pyrogram/raw/types/messages/chats_slice.py +98 -0
- pyrogram/raw/types/messages/checked_history_import_peer.py +83 -0
- pyrogram/raw/types/messages/composed_message_with_ai.py +95 -0
- pyrogram/raw/types/messages/dh_config.py +107 -0
- pyrogram/raw/types/messages/dh_config_not_modified.py +83 -0
- pyrogram/raw/types/messages/dialog_filters.py +91 -0
- pyrogram/raw/types/messages/dialogs.py +107 -0
- pyrogram/raw/types/messages/dialogs_not_modified.py +83 -0
- pyrogram/raw/types/messages/dialogs_slice.py +115 -0
- pyrogram/raw/types/messages/discussion_message.py +136 -0
- pyrogram/raw/types/messages/emoji_game_dice_info.py +118 -0
- pyrogram/raw/types/messages/emoji_game_outcome.py +90 -0
- pyrogram/raw/types/messages/emoji_game_unavailable.py +78 -0
- pyrogram/raw/types/messages/emoji_groups.py +94 -0
- pyrogram/raw/types/messages/emoji_groups_not_modified.py +81 -0
- pyrogram/raw/types/messages/exported_chat_invite.py +92 -0
- pyrogram/raw/types/messages/exported_chat_invite_replaced.py +100 -0
- pyrogram/raw/types/messages/exported_chat_invites.py +99 -0
- pyrogram/raw/types/messages/faved_stickers.py +99 -0
- pyrogram/raw/types/messages/faved_stickers_not_modified.py +78 -0
- pyrogram/raw/types/messages/featured_stickers.py +117 -0
- pyrogram/raw/types/messages/featured_stickers_not_modified.py +85 -0
- pyrogram/raw/types/messages/forum_topics.py +132 -0
- pyrogram/raw/types/messages/found_sticker_sets.py +92 -0
- pyrogram/raw/types/messages/found_sticker_sets_not_modified.py +79 -0
- pyrogram/raw/types/messages/found_stickers.py +102 -0
- pyrogram/raw/types/messages/found_stickers_not_modified.py +86 -0
- pyrogram/raw/types/messages/high_scores.py +92 -0
- pyrogram/raw/types/messages/history_import.py +83 -0
- pyrogram/raw/types/messages/history_import_parsed.py +98 -0
- pyrogram/raw/types/messages/inactive_chats.py +99 -0
- pyrogram/raw/types/messages/invited_users.py +93 -0
- pyrogram/raw/types/messages/message_edit_data.py +83 -0
- pyrogram/raw/types/messages/message_reactions_list.py +118 -0
- pyrogram/raw/types/messages/message_views.py +99 -0
- pyrogram/raw/types/messages/messages.py +124 -0
- pyrogram/raw/types/messages/messages_not_modified.py +100 -0
- pyrogram/raw/types/messages/messages_slice.py +168 -0
- pyrogram/raw/types/messages/my_stickers.py +91 -0
- pyrogram/raw/types/messages/peer_dialogs.py +116 -0
- pyrogram/raw/types/messages/peer_settings.py +99 -0
- pyrogram/raw/types/messages/prepared_inline_message.py +115 -0
- pyrogram/raw/types/messages/quick_replies.py +107 -0
- pyrogram/raw/types/messages/quick_replies_not_modified.py +78 -0
- pyrogram/raw/types/messages/reactions.py +93 -0
- pyrogram/raw/types/messages/reactions_not_modified.py +80 -0
- pyrogram/raw/types/messages/recent_stickers.py +107 -0
- pyrogram/raw/types/messages/recent_stickers_not_modified.py +78 -0
- pyrogram/raw/types/messages/saved_dialogs.py +109 -0
- pyrogram/raw/types/messages/saved_dialogs_not_modified.py +85 -0
- pyrogram/raw/types/messages/saved_dialogs_slice.py +117 -0
- pyrogram/raw/types/messages/saved_gifs.py +91 -0
- pyrogram/raw/types/messages/saved_gifs_not_modified.py +78 -0
- pyrogram/raw/types/messages/saved_reaction_tags.py +91 -0
- pyrogram/raw/types/messages/saved_reaction_tags_not_modified.py +78 -0
- pyrogram/raw/types/messages/search_counter.py +99 -0
- pyrogram/raw/types/messages/search_results_calendar.py +148 -0
- pyrogram/raw/types/messages/search_results_positions.py +91 -0
- pyrogram/raw/types/messages/sent_encrypted_file.py +93 -0
- pyrogram/raw/types/messages/sent_encrypted_message.py +85 -0
- pyrogram/raw/types/messages/sponsored_messages.py +128 -0
- pyrogram/raw/types/messages/sponsored_messages_empty.py +78 -0
- pyrogram/raw/types/messages/sticker_set.py +115 -0
- pyrogram/raw/types/messages/sticker_set_install_result_archive.py +83 -0
- pyrogram/raw/types/messages/sticker_set_install_result_success.py +78 -0
- pyrogram/raw/types/messages/sticker_set_not_modified.py +86 -0
- pyrogram/raw/types/messages/stickers.py +91 -0
- pyrogram/raw/types/messages/stickers_not_modified.py +78 -0
- pyrogram/raw/types/messages/transcribed_audio.py +117 -0
- pyrogram/raw/types/messages/translate_result.py +83 -0
- pyrogram/raw/types/messages/votes_list.py +118 -0
- pyrogram/raw/types/messages/web_page.py +99 -0
- pyrogram/raw/types/messages/web_page_preview.py +99 -0
- pyrogram/raw/types/missing_invitee.py +88 -0
- pyrogram/raw/types/mono_forum_dialog.py +138 -0
- pyrogram/raw/types/msg_detailed_info.py +98 -0
- pyrogram/raw/types/msg_new_detailed_info.py +90 -0
- pyrogram/raw/types/msg_resend_ans_req.py +74 -0
- pyrogram/raw/types/msg_resend_req.py +74 -0
- pyrogram/raw/types/msgs_ack.py +74 -0
- pyrogram/raw/types/msgs_all_info.py +82 -0
- pyrogram/raw/types/msgs_state_info.py +82 -0
- pyrogram/raw/types/msgs_state_req.py +74 -0
- pyrogram/raw/types/my_boost.py +111 -0
- pyrogram/raw/types/nearest_dc.py +99 -0
- pyrogram/raw/types/new_session_created.py +90 -0
- pyrogram/raw/types/notification_sound_default.py +69 -0
- pyrogram/raw/types/notification_sound_local.py +82 -0
- pyrogram/raw/types/notification_sound_none.py +69 -0
- pyrogram/raw/types/notification_sound_ringtone.py +74 -0
- pyrogram/raw/types/notify_broadcasts.py +69 -0
- pyrogram/raw/types/notify_chats.py +69 -0
- pyrogram/raw/types/notify_forum_topic.py +82 -0
- pyrogram/raw/types/notify_peer.py +74 -0
- pyrogram/raw/types/notify_users.py +69 -0
- pyrogram/raw/types/outbox_read_date.py +83 -0
- pyrogram/raw/types/page.py +127 -0
- pyrogram/raw/types/page_block_anchor.py +74 -0
- pyrogram/raw/types/page_block_audio.py +82 -0
- pyrogram/raw/types/page_block_author_date.py +82 -0
- pyrogram/raw/types/page_block_blockquote.py +82 -0
- pyrogram/raw/types/page_block_blockquote_blocks.py +82 -0
- pyrogram/raw/types/page_block_channel.py +74 -0
- pyrogram/raw/types/page_block_collage.py +82 -0
- pyrogram/raw/types/page_block_cover.py +74 -0
- pyrogram/raw/types/page_block_details.py +90 -0
- pyrogram/raw/types/page_block_divider.py +69 -0
- pyrogram/raw/types/page_block_embed.py +133 -0
- pyrogram/raw/types/page_block_embed_post.py +122 -0
- pyrogram/raw/types/page_block_footer.py +74 -0
- pyrogram/raw/types/page_block_header.py +74 -0
- pyrogram/raw/types/page_block_heading1.py +74 -0
- pyrogram/raw/types/page_block_heading2.py +74 -0
- pyrogram/raw/types/page_block_heading3.py +74 -0
- pyrogram/raw/types/page_block_heading4.py +74 -0
- pyrogram/raw/types/page_block_heading5.py +74 -0
- pyrogram/raw/types/page_block_heading6.py +74 -0
- pyrogram/raw/types/page_block_kicker.py +74 -0
- pyrogram/raw/types/page_block_list.py +74 -0
- pyrogram/raw/types/page_block_map.py +106 -0
- pyrogram/raw/types/page_block_math.py +74 -0
- pyrogram/raw/types/page_block_ordered_list.py +100 -0
- pyrogram/raw/types/page_block_paragraph.py +74 -0
- pyrogram/raw/types/page_block_photo.py +108 -0
- pyrogram/raw/types/page_block_preformatted.py +82 -0
- pyrogram/raw/types/page_block_pullquote.py +82 -0
- pyrogram/raw/types/page_block_related_articles.py +82 -0
- pyrogram/raw/types/page_block_slideshow.py +82 -0
- pyrogram/raw/types/page_block_subheader.py +74 -0
- pyrogram/raw/types/page_block_subtitle.py +74 -0
- pyrogram/raw/types/page_block_table.py +96 -0
- pyrogram/raw/types/page_block_thinking.py +74 -0
- pyrogram/raw/types/page_block_title.py +74 -0
- pyrogram/raw/types/page_block_unsupported.py +69 -0
- pyrogram/raw/types/page_block_video.py +102 -0
- pyrogram/raw/types/page_caption.py +82 -0
- pyrogram/raw/types/page_list_item_blocks.py +88 -0
- pyrogram/raw/types/page_list_item_text.py +88 -0
- pyrogram/raw/types/page_list_ordered_item_blocks.py +115 -0
- pyrogram/raw/types/page_list_ordered_item_text.py +115 -0
- pyrogram/raw/types/page_related_article.py +129 -0
- pyrogram/raw/types/page_table_cell.py +126 -0
- pyrogram/raw/types/page_table_row.py +74 -0
- pyrogram/raw/types/paid_reaction_privacy_anonymous.py +69 -0
- pyrogram/raw/types/paid_reaction_privacy_default.py +69 -0
- pyrogram/raw/types/paid_reaction_privacy_peer.py +74 -0
- pyrogram/raw/types/passkey.py +119 -0
- pyrogram/raw/types/password_kdf_algo_sha256_sha256_pbkdf2_hmacsha512iter100000_sha256_mod_pow.py +98 -0
- pyrogram/raw/types/password_kdf_algo_unknown.py +69 -0
- pyrogram/raw/types/payment_charge.py +82 -0
- pyrogram/raw/types/payment_form_method.py +82 -0
- pyrogram/raw/types/payment_requested_info.py +105 -0
- pyrogram/raw/types/payment_saved_credentials_card.py +82 -0
- pyrogram/raw/types/payments/__init__.py +61 -0
- pyrogram/raw/types/payments/bank_card_data.py +91 -0
- pyrogram/raw/types/payments/check_can_send_gift_result_fail.py +83 -0
- pyrogram/raw/types/payments/check_can_send_gift_result_ok.py +78 -0
- pyrogram/raw/types/payments/checked_gift_code.py +152 -0
- pyrogram/raw/types/payments/connected_star_ref_bots.py +102 -0
- pyrogram/raw/types/payments/exported_invoice.py +83 -0
- pyrogram/raw/types/payments/giveaway_info.py +124 -0
- pyrogram/raw/types/payments/giveaway_info_results.py +140 -0
- pyrogram/raw/types/payments/payment_form.py +212 -0
- pyrogram/raw/types/payments/payment_form_star_gift.py +91 -0
- pyrogram/raw/types/payments/payment_form_stars.py +135 -0
- pyrogram/raw/types/payments/payment_receipt.py +196 -0
- pyrogram/raw/types/payments/payment_receipt_stars.py +159 -0
- pyrogram/raw/types/payments/payment_result.py +84 -0
- pyrogram/raw/types/payments/payment_verification_needed.py +84 -0
- pyrogram/raw/types/payments/resale_star_gifts.py +147 -0
- pyrogram/raw/types/payments/saved_info.py +93 -0
- pyrogram/raw/types/payments/saved_star_gifts.py +129 -0
- pyrogram/raw/types/payments/star_gift_active_auctions.py +99 -0
- pyrogram/raw/types/payments/star_gift_active_auctions_not_modified.py +78 -0
- pyrogram/raw/types/payments/star_gift_auction_acquired_gifts.py +99 -0
- pyrogram/raw/types/payments/star_gift_auction_state.py +123 -0
- pyrogram/raw/types/payments/star_gift_collections.py +83 -0
- pyrogram/raw/types/payments/star_gift_collections_not_modified.py +78 -0
- pyrogram/raw/types/payments/star_gift_upgrade_attributes.py +83 -0
- pyrogram/raw/types/payments/star_gift_upgrade_preview.py +99 -0
- pyrogram/raw/types/payments/star_gift_withdrawal_url.py +83 -0
- pyrogram/raw/types/payments/star_gifts.py +107 -0
- pyrogram/raw/types/payments/star_gifts_not_modified.py +78 -0
- pyrogram/raw/types/payments/stars_revenue_ads_account_url.py +83 -0
- pyrogram/raw/types/payments/stars_revenue_stats.py +111 -0
- pyrogram/raw/types/payments/stars_revenue_withdrawal_url.py +83 -0
- pyrogram/raw/types/payments/stars_status.py +151 -0
- pyrogram/raw/types/payments/suggested_star_ref_bots.py +110 -0
- pyrogram/raw/types/payments/unique_star_gift.py +99 -0
- pyrogram/raw/types/payments/unique_star_gift_value_info.py +192 -0
- pyrogram/raw/types/payments/validated_requested_info.py +96 -0
- pyrogram/raw/types/peer_blocked.py +82 -0
- pyrogram/raw/types/peer_channel.py +83 -0
- pyrogram/raw/types/peer_chat.py +83 -0
- pyrogram/raw/types/peer_color.py +86 -0
- pyrogram/raw/types/peer_color_collectible.py +127 -0
- pyrogram/raw/types/peer_located.py +90 -0
- pyrogram/raw/types/peer_notify_settings.py +182 -0
- pyrogram/raw/types/peer_self_located.py +74 -0
- pyrogram/raw/types/peer_settings.py +224 -0
- pyrogram/raw/types/peer_stories.py +93 -0
- pyrogram/raw/types/peer_user.py +83 -0
- pyrogram/raw/types/pending_suggestion.py +98 -0
- pyrogram/raw/types/phone/__init__.py +32 -0
- pyrogram/raw/types/phone/exported_group_call_invite.py +83 -0
- pyrogram/raw/types/phone/group_call.py +115 -0
- pyrogram/raw/types/phone/group_call_stars.py +107 -0
- pyrogram/raw/types/phone/group_call_stream_channels.py +83 -0
- pyrogram/raw/types/phone/group_call_stream_rtmp_url.py +91 -0
- pyrogram/raw/types/phone/group_participants.py +123 -0
- pyrogram/raw/types/phone/join_as_peers.py +99 -0
- pyrogram/raw/types/phone/phone_call.py +93 -0
- pyrogram/raw/types/phone_call.py +176 -0
- pyrogram/raw/types/phone_call_accepted.py +130 -0
- pyrogram/raw/types/phone_call_discard_reason_busy.py +69 -0
- pyrogram/raw/types/phone_call_discard_reason_disconnect.py +69 -0
- pyrogram/raw/types/phone_call_discard_reason_hangup.py +69 -0
- pyrogram/raw/types/phone_call_discard_reason_migrate_conference_call.py +74 -0
- pyrogram/raw/types/phone_call_discard_reason_missed.py +69 -0
- pyrogram/raw/types/phone_call_discarded.py +113 -0
- pyrogram/raw/types/phone_call_empty.py +74 -0
- pyrogram/raw/types/phone_call_protocol.py +104 -0
- pyrogram/raw/types/phone_call_requested.py +130 -0
- pyrogram/raw/types/phone_call_waiting.py +131 -0
- pyrogram/raw/types/phone_connection.py +114 -0
- pyrogram/raw/types/phone_connection_webrtc.py +128 -0
- pyrogram/raw/types/photo.py +132 -0
- pyrogram/raw/types/photo_cached_size.py +98 -0
- pyrogram/raw/types/photo_empty.py +74 -0
- pyrogram/raw/types/photo_path_size.py +82 -0
- pyrogram/raw/types/photo_size.py +98 -0
- pyrogram/raw/types/photo_size_empty.py +74 -0
- pyrogram/raw/types/photo_size_progressive.py +98 -0
- pyrogram/raw/types/photo_stripped_size.py +82 -0
- pyrogram/raw/types/photos/__init__.py +27 -0
- pyrogram/raw/types/photos/photo.py +93 -0
- pyrogram/raw/types/photos/photos.py +91 -0
- pyrogram/raw/types/photos/photos_slice.py +99 -0
- pyrogram/raw/types/poll.py +188 -0
- pyrogram/raw/types/poll_answer.py +113 -0
- pyrogram/raw/types/poll_answer_voters.py +107 -0
- pyrogram/raw/types/poll_results.py +144 -0
- pyrogram/raw/types/pong.py +92 -0
- pyrogram/raw/types/popular_contact.py +82 -0
- pyrogram/raw/types/post_address.py +114 -0
- pyrogram/raw/types/post_interaction_counters_message.py +98 -0
- pyrogram/raw/types/post_interaction_counters_story.py +98 -0
- pyrogram/raw/types/pq_inner_data.py +114 -0
- pyrogram/raw/types/pq_inner_data_dc.py +122 -0
- pyrogram/raw/types/pq_inner_data_temp.py +122 -0
- pyrogram/raw/types/pq_inner_data_temp_dc.py +130 -0
- pyrogram/raw/types/premium/__init__.py +27 -0
- pyrogram/raw/types/premium/boosts_list.py +111 -0
- pyrogram/raw/types/premium/boosts_status.py +163 -0
- pyrogram/raw/types/premium/my_boosts.py +100 -0
- pyrogram/raw/types/premium_gift_code_option.py +127 -0
- pyrogram/raw/types/premium_subscription_option.py +130 -0
- pyrogram/raw/types/prepaid_giveaway.py +98 -0
- pyrogram/raw/types/prepaid_stars_giveaway.py +106 -0
- pyrogram/raw/types/privacy_key_about.py +69 -0
- pyrogram/raw/types/privacy_key_added_by_phone.py +69 -0
- pyrogram/raw/types/privacy_key_birthday.py +69 -0
- pyrogram/raw/types/privacy_key_chat_invite.py +69 -0
- pyrogram/raw/types/privacy_key_forwards.py +69 -0
- pyrogram/raw/types/privacy_key_no_paid_messages.py +69 -0
- pyrogram/raw/types/privacy_key_phone_call.py +69 -0
- pyrogram/raw/types/privacy_key_phone_number.py +69 -0
- pyrogram/raw/types/privacy_key_phone_p2_p.py +69 -0
- pyrogram/raw/types/privacy_key_profile_photo.py +69 -0
- pyrogram/raw/types/privacy_key_saved_music.py +69 -0
- pyrogram/raw/types/privacy_key_star_gifts_auto_save.py +69 -0
- pyrogram/raw/types/privacy_key_status_timestamp.py +69 -0
- pyrogram/raw/types/privacy_key_voice_messages.py +69 -0
- pyrogram/raw/types/privacy_value_allow_all.py +69 -0
- pyrogram/raw/types/privacy_value_allow_bots.py +69 -0
- pyrogram/raw/types/privacy_value_allow_chat_participants.py +74 -0
- pyrogram/raw/types/privacy_value_allow_close_friends.py +69 -0
- pyrogram/raw/types/privacy_value_allow_contacts.py +69 -0
- pyrogram/raw/types/privacy_value_allow_premium.py +69 -0
- pyrogram/raw/types/privacy_value_allow_users.py +74 -0
- pyrogram/raw/types/privacy_value_disallow_all.py +69 -0
- pyrogram/raw/types/privacy_value_disallow_bots.py +69 -0
- pyrogram/raw/types/privacy_value_disallow_chat_participants.py +74 -0
- pyrogram/raw/types/privacy_value_disallow_contacts.py +69 -0
- pyrogram/raw/types/privacy_value_disallow_users.py +74 -0
- pyrogram/raw/types/profile_tab_files.py +69 -0
- pyrogram/raw/types/profile_tab_gifs.py +69 -0
- pyrogram/raw/types/profile_tab_gifts.py +69 -0
- pyrogram/raw/types/profile_tab_links.py +69 -0
- pyrogram/raw/types/profile_tab_media.py +69 -0
- pyrogram/raw/types/profile_tab_music.py +69 -0
- pyrogram/raw/types/profile_tab_posts.py +69 -0
- pyrogram/raw/types/profile_tab_voice.py +69 -0
- pyrogram/raw/types/public_forward_message.py +74 -0
- pyrogram/raw/types/public_forward_story.py +82 -0
- pyrogram/raw/types/quick_reply.py +98 -0
- pyrogram/raw/types/reaction_count.py +93 -0
- pyrogram/raw/types/reaction_custom_emoji.py +74 -0
- pyrogram/raw/types/reaction_emoji.py +74 -0
- pyrogram/raw/types/reaction_empty.py +69 -0
- pyrogram/raw/types/reaction_notifications_from_all.py +69 -0
- pyrogram/raw/types/reaction_notifications_from_contacts.py +69 -0
- pyrogram/raw/types/reaction_paid.py +69 -0
- pyrogram/raw/types/reactions_notify_settings.py +124 -0
- pyrogram/raw/types/read_participant_date.py +91 -0
- pyrogram/raw/types/received_notify_message.py +91 -0
- pyrogram/raw/types/recent_me_url_chat.py +82 -0
- pyrogram/raw/types/recent_me_url_chat_invite.py +82 -0
- pyrogram/raw/types/recent_me_url_sticker_set.py +82 -0
- pyrogram/raw/types/recent_me_url_unknown.py +74 -0
- pyrogram/raw/types/recent_me_url_user.py +82 -0
- pyrogram/raw/types/recent_story.py +92 -0
- pyrogram/raw/types/reply_inline_markup.py +74 -0
- pyrogram/raw/types/reply_keyboard_force_reply.py +89 -0
- pyrogram/raw/types/reply_keyboard_hide.py +74 -0
- pyrogram/raw/types/reply_keyboard_markup.py +109 -0
- pyrogram/raw/types/report_result_add_comment.py +92 -0
- pyrogram/raw/types/report_result_choose_option.py +92 -0
- pyrogram/raw/types/report_result_reported.py +79 -0
- pyrogram/raw/types/request_peer_type_broadcast.py +103 -0
- pyrogram/raw/types/request_peer_type_chat.py +118 -0
- pyrogram/raw/types/request_peer_type_create_bot.py +92 -0
- pyrogram/raw/types/request_peer_type_user.py +86 -0
- pyrogram/raw/types/requested_peer_channel.py +104 -0
- pyrogram/raw/types/requested_peer_chat.py +95 -0
- pyrogram/raw/types/requested_peer_user.py +113 -0
- pyrogram/raw/types/requirement_to_contact_empty.py +78 -0
- pyrogram/raw/types/requirement_to_contact_paid_messages.py +83 -0
- pyrogram/raw/types/requirement_to_contact_premium.py +78 -0
- pyrogram/raw/types/res_pq.py +108 -0
- pyrogram/raw/types/restriction_reason.py +90 -0
- pyrogram/raw/types/rich_message.py +104 -0
- pyrogram/raw/types/rpc_answer_dropped.py +99 -0
- pyrogram/raw/types/rpc_answer_dropped_running.py +78 -0
- pyrogram/raw/types/rpc_answer_unknown.py +78 -0
- pyrogram/raw/types/rpc_error.py +82 -0
- pyrogram/raw/types/rpc_result.py +82 -0
- pyrogram/raw/types/saved_dialog.py +90 -0
- pyrogram/raw/types/saved_phone_contact.py +107 -0
- pyrogram/raw/types/saved_reaction_tag.py +93 -0
- pyrogram/raw/types/saved_star_gift.py +258 -0
- pyrogram/raw/types/search_posts_flood.py +116 -0
- pyrogram/raw/types/search_result_position.py +90 -0
- pyrogram/raw/types/search_results_calendar_period.py +98 -0
- pyrogram/raw/types/secure_credentials_encrypted.py +90 -0
- pyrogram/raw/types/secure_data.py +90 -0
- pyrogram/raw/types/secure_file.py +122 -0
- pyrogram/raw/types/secure_file_empty.py +69 -0
- pyrogram/raw/types/secure_password_kdf_algo_pbkdf2_hmacsha512iter100000.py +74 -0
- pyrogram/raw/types/secure_password_kdf_algo_sha512.py +74 -0
- pyrogram/raw/types/secure_password_kdf_algo_unknown.py +69 -0
- pyrogram/raw/types/secure_plain_email.py +74 -0
- pyrogram/raw/types/secure_plain_phone.py +74 -0
- pyrogram/raw/types/secure_required_type.py +94 -0
- pyrogram/raw/types/secure_required_type_one_of.py +74 -0
- pyrogram/raw/types/secure_secret_settings.py +90 -0
- pyrogram/raw/types/secure_value.py +165 -0
- pyrogram/raw/types/secure_value_error.py +90 -0
- pyrogram/raw/types/secure_value_error_data.py +98 -0
- pyrogram/raw/types/secure_value_error_file.py +90 -0
- pyrogram/raw/types/secure_value_error_files.py +90 -0
- pyrogram/raw/types/secure_value_error_front_side.py +90 -0
- pyrogram/raw/types/secure_value_error_reverse_side.py +90 -0
- pyrogram/raw/types/secure_value_error_selfie.py +90 -0
- pyrogram/raw/types/secure_value_error_translation_file.py +90 -0
- pyrogram/raw/types/secure_value_error_translation_files.py +90 -0
- pyrogram/raw/types/secure_value_hash.py +82 -0
- pyrogram/raw/types/secure_value_type_address.py +69 -0
- pyrogram/raw/types/secure_value_type_bank_statement.py +69 -0
- pyrogram/raw/types/secure_value_type_driver_license.py +69 -0
- pyrogram/raw/types/secure_value_type_email.py +69 -0
- pyrogram/raw/types/secure_value_type_identity_card.py +69 -0
- pyrogram/raw/types/secure_value_type_internal_passport.py +69 -0
- pyrogram/raw/types/secure_value_type_passport.py +69 -0
- pyrogram/raw/types/secure_value_type_passport_registration.py +69 -0
- pyrogram/raw/types/secure_value_type_personal_details.py +69 -0
- pyrogram/raw/types/secure_value_type_phone.py +69 -0
- pyrogram/raw/types/secure_value_type_rental_agreement.py +69 -0
- pyrogram/raw/types/secure_value_type_temporary_registration.py +69 -0
- pyrogram/raw/types/secure_value_type_utility_bill.py +69 -0
- pyrogram/raw/types/send_as_peer.py +82 -0
- pyrogram/raw/types/send_message_cancel_action.py +69 -0
- pyrogram/raw/types/send_message_choose_contact_action.py +69 -0
- pyrogram/raw/types/send_message_choose_sticker_action.py +69 -0
- pyrogram/raw/types/send_message_emoji_interaction.py +90 -0
- pyrogram/raw/types/send_message_emoji_interaction_seen.py +74 -0
- pyrogram/raw/types/send_message_game_play_action.py +69 -0
- pyrogram/raw/types/send_message_geo_location_action.py +69 -0
- pyrogram/raw/types/send_message_history_import_action.py +74 -0
- pyrogram/raw/types/send_message_record_audio_action.py +69 -0
- pyrogram/raw/types/send_message_record_round_action.py +69 -0
- pyrogram/raw/types/send_message_record_video_action.py +69 -0
- pyrogram/raw/types/send_message_rich_message_draft_action.py +82 -0
- pyrogram/raw/types/send_message_text_draft_action.py +82 -0
- pyrogram/raw/types/send_message_typing_action.py +69 -0
- pyrogram/raw/types/send_message_upload_audio_action.py +74 -0
- pyrogram/raw/types/send_message_upload_document_action.py +74 -0
- pyrogram/raw/types/send_message_upload_photo_action.py +74 -0
- pyrogram/raw/types/send_message_upload_round_action.py +74 -0
- pyrogram/raw/types/send_message_upload_video_action.py +74 -0
- pyrogram/raw/types/server_dh_inner_data.py +114 -0
- pyrogram/raw/types/server_dh_params_fail.py +99 -0
- pyrogram/raw/types/server_dh_params_ok.py +99 -0
- pyrogram/raw/types/shipping_option.py +90 -0
- pyrogram/raw/types/sms_job.py +99 -0
- pyrogram/raw/types/smsjobs/__init__.py +26 -0
- pyrogram/raw/types/smsjobs/eligible_to_join.py +91 -0
- pyrogram/raw/types/smsjobs/status.py +140 -0
- pyrogram/raw/types/speaking_in_group_call_action.py +69 -0
- pyrogram/raw/types/sponsored_message.py +196 -0
- pyrogram/raw/types/sponsored_message_report_option.py +82 -0
- pyrogram/raw/types/sponsored_peer.py +102 -0
- pyrogram/raw/types/star_gift.py +297 -0
- pyrogram/raw/types/star_gift_active_auction_state.py +90 -0
- pyrogram/raw/types/star_gift_attribute_backdrop.py +122 -0
- pyrogram/raw/types/star_gift_attribute_counter.py +82 -0
- pyrogram/raw/types/star_gift_attribute_id_backdrop.py +74 -0
- pyrogram/raw/types/star_gift_attribute_id_model.py +74 -0
- pyrogram/raw/types/star_gift_attribute_id_pattern.py +74 -0
- pyrogram/raw/types/star_gift_attribute_model.py +98 -0
- pyrogram/raw/types/star_gift_attribute_original_details.py +104 -0
- pyrogram/raw/types/star_gift_attribute_pattern.py +90 -0
- pyrogram/raw/types/star_gift_attribute_rarity.py +74 -0
- pyrogram/raw/types/star_gift_attribute_rarity_epic.py +69 -0
- pyrogram/raw/types/star_gift_attribute_rarity_legendary.py +69 -0
- pyrogram/raw/types/star_gift_attribute_rarity_rare.py +69 -0
- pyrogram/raw/types/star_gift_attribute_rarity_uncommon.py +69 -0
- pyrogram/raw/types/star_gift_auction_acquired_gift.py +133 -0
- pyrogram/raw/types/star_gift_auction_round.py +82 -0
- pyrogram/raw/types/star_gift_auction_round_extendable.py +98 -0
- pyrogram/raw/types/star_gift_auction_state.py +162 -0
- pyrogram/raw/types/star_gift_auction_state_finished.py +119 -0
- pyrogram/raw/types/star_gift_auction_state_not_modified.py +69 -0
- pyrogram/raw/types/star_gift_auction_user_state.py +119 -0
- pyrogram/raw/types/star_gift_background.py +90 -0
- pyrogram/raw/types/star_gift_collection.py +120 -0
- pyrogram/raw/types/star_gift_unique.py +294 -0
- pyrogram/raw/types/star_gift_upgrade_price.py +82 -0
- pyrogram/raw/types/star_ref_program.py +121 -0
- pyrogram/raw/types/stars_amount.py +82 -0
- pyrogram/raw/types/stars_gift_option.py +116 -0
- pyrogram/raw/types/stars_giveaway_option.py +138 -0
- pyrogram/raw/types/stars_giveaway_winners_option.py +90 -0
- pyrogram/raw/types/stars_rating.py +101 -0
- pyrogram/raw/types/stars_revenue_status.py +107 -0
- pyrogram/raw/types/stars_subscription.py +161 -0
- pyrogram/raw/types/stars_subscription_pricing.py +82 -0
- pyrogram/raw/types/stars_ton_amount.py +74 -0
- pyrogram/raw/types/stars_topup_option.py +116 -0
- pyrogram/raw/types/stars_transaction.py +360 -0
- pyrogram/raw/types/stars_transaction_peer.py +74 -0
- pyrogram/raw/types/stars_transaction_peer_ads.py +69 -0
- pyrogram/raw/types/stars_transaction_peer_api.py +69 -0
- pyrogram/raw/types/stars_transaction_peer_app_store.py +69 -0
- pyrogram/raw/types/stars_transaction_peer_fragment.py +69 -0
- pyrogram/raw/types/stars_transaction_peer_play_market.py +69 -0
- pyrogram/raw/types/stars_transaction_peer_premium_bot.py +69 -0
- pyrogram/raw/types/stars_transaction_peer_unsupported.py +69 -0
- pyrogram/raw/types/stats/__init__.py +30 -0
- pyrogram/raw/types/stats/broadcast_stats.py +251 -0
- pyrogram/raw/types/stats/megagroup_stats.py +211 -0
- pyrogram/raw/types/stats/message_stats.py +91 -0
- pyrogram/raw/types/stats/poll_stats.py +83 -0
- pyrogram/raw/types/stats/public_forwards.py +119 -0
- pyrogram/raw/types/stats/story_stats.py +91 -0
- pyrogram/raw/types/stats_abs_value_and_prev.py +82 -0
- pyrogram/raw/types/stats_date_range_days.py +82 -0
- pyrogram/raw/types/stats_graph.py +94 -0
- pyrogram/raw/types/stats_graph_async.py +83 -0
- pyrogram/raw/types/stats_graph_error.py +83 -0
- pyrogram/raw/types/stats_group_top_admin.py +98 -0
- pyrogram/raw/types/stats_group_top_inviter.py +82 -0
- pyrogram/raw/types/stats_group_top_poster.py +90 -0
- pyrogram/raw/types/stats_percent_value.py +82 -0
- pyrogram/raw/types/stats_url.py +74 -0
- pyrogram/raw/types/sticker_keyword.py +82 -0
- pyrogram/raw/types/sticker_pack.py +82 -0
- pyrogram/raw/types/sticker_set.py +204 -0
- pyrogram/raw/types/sticker_set_covered.py +91 -0
- pyrogram/raw/types/sticker_set_full_covered.py +107 -0
- pyrogram/raw/types/sticker_set_multi_covered.py +91 -0
- pyrogram/raw/types/sticker_set_no_covered.py +83 -0
- pyrogram/raw/types/stickers/__init__.py +25 -0
- pyrogram/raw/types/stickers/suggested_short_name.py +83 -0
- pyrogram/raw/types/storage/__init__.py +34 -0
- pyrogram/raw/types/storage/file_gif.py +69 -0
- pyrogram/raw/types/storage/file_jpeg.py +69 -0
- pyrogram/raw/types/storage/file_mov.py +69 -0
- pyrogram/raw/types/storage/file_mp3.py +69 -0
- pyrogram/raw/types/storage/file_mp4.py +69 -0
- pyrogram/raw/types/storage/file_partial.py +69 -0
- pyrogram/raw/types/storage/file_pdf.py +69 -0
- pyrogram/raw/types/storage/file_png.py +69 -0
- pyrogram/raw/types/storage/file_unknown.py +69 -0
- pyrogram/raw/types/storage/file_webp.py +69 -0
- pyrogram/raw/types/stories/__init__.py +35 -0
- pyrogram/raw/types/stories/albums.py +91 -0
- pyrogram/raw/types/stories/albums_not_modified.py +78 -0
- pyrogram/raw/types/stories/all_stories.py +131 -0
- pyrogram/raw/types/stories/all_stories_not_modified.py +94 -0
- pyrogram/raw/types/stories/can_send_story_count.py +83 -0
- pyrogram/raw/types/stories/found_stories.py +118 -0
- pyrogram/raw/types/stories/peer_stories.py +99 -0
- pyrogram/raw/types/stories/stories.py +122 -0
- pyrogram/raw/types/stories/story_reactions_list.py +118 -0
- pyrogram/raw/types/stories/story_views.py +91 -0
- pyrogram/raw/types/stories/story_views_list.py +142 -0
- pyrogram/raw/types/stories_stealth_mode.py +86 -0
- pyrogram/raw/types/story_album.py +114 -0
- pyrogram/raw/types/story_fwd_header.py +102 -0
- pyrogram/raw/types/story_item.py +253 -0
- pyrogram/raw/types/story_item_deleted.py +74 -0
- pyrogram/raw/types/story_item_skipped.py +104 -0
- pyrogram/raw/types/story_reaction.py +90 -0
- pyrogram/raw/types/story_reaction_public_forward.py +74 -0
- pyrogram/raw/types/story_reaction_public_repost.py +82 -0
- pyrogram/raw/types/story_view.py +106 -0
- pyrogram/raw/types/story_view_public_forward.py +88 -0
- pyrogram/raw/types/story_view_public_repost.py +96 -0
- pyrogram/raw/types/story_views.py +120 -0
- pyrogram/raw/types/suggested_post.py +99 -0
- pyrogram/raw/types/text_anchor.py +82 -0
- pyrogram/raw/types/text_auto_email.py +74 -0
- pyrogram/raw/types/text_auto_phone.py +74 -0
- pyrogram/raw/types/text_auto_url.py +74 -0
- pyrogram/raw/types/text_bank_card.py +74 -0
- pyrogram/raw/types/text_bold.py +74 -0
- pyrogram/raw/types/text_bot_command.py +74 -0
- pyrogram/raw/types/text_cashtag.py +74 -0
- pyrogram/raw/types/text_concat.py +74 -0
- pyrogram/raw/types/text_custom_emoji.py +82 -0
- pyrogram/raw/types/text_date.py +120 -0
- pyrogram/raw/types/text_email.py +82 -0
- pyrogram/raw/types/text_empty.py +69 -0
- pyrogram/raw/types/text_fixed.py +74 -0
- pyrogram/raw/types/text_hashtag.py +74 -0
- pyrogram/raw/types/text_image.py +90 -0
- pyrogram/raw/types/text_italic.py +74 -0
- pyrogram/raw/types/text_marked.py +74 -0
- pyrogram/raw/types/text_math.py +74 -0
- pyrogram/raw/types/text_mention.py +74 -0
- pyrogram/raw/types/text_mention_name.py +82 -0
- pyrogram/raw/types/text_phone.py +82 -0
- pyrogram/raw/types/text_plain.py +74 -0
- pyrogram/raw/types/text_spoiler.py +74 -0
- pyrogram/raw/types/text_strike.py +74 -0
- pyrogram/raw/types/text_subscript.py +74 -0
- pyrogram/raw/types/text_superscript.py +74 -0
- pyrogram/raw/types/text_underline.py +74 -0
- pyrogram/raw/types/text_url.py +90 -0
- pyrogram/raw/types/text_with_entities.py +91 -0
- pyrogram/raw/types/theme.py +167 -0
- pyrogram/raw/types/theme_settings.py +119 -0
- pyrogram/raw/types/timezone.py +90 -0
- pyrogram/raw/types/todo_completion.py +90 -0
- pyrogram/raw/types/todo_item.py +82 -0
- pyrogram/raw/types/todo_list.py +96 -0
- pyrogram/raw/types/top_peer.py +82 -0
- pyrogram/raw/types/top_peer_category_bots_app.py +69 -0
- pyrogram/raw/types/top_peer_category_bots_guest_chat.py +69 -0
- pyrogram/raw/types/top_peer_category_bots_inline.py +69 -0
- pyrogram/raw/types/top_peer_category_bots_pm.py +69 -0
- pyrogram/raw/types/top_peer_category_channels.py +69 -0
- pyrogram/raw/types/top_peer_category_correspondents.py +69 -0
- pyrogram/raw/types/top_peer_category_forward_chats.py +69 -0
- pyrogram/raw/types/top_peer_category_forward_users.py +69 -0
- pyrogram/raw/types/top_peer_category_groups.py +69 -0
- pyrogram/raw/types/top_peer_category_peers.py +90 -0
- pyrogram/raw/types/top_peer_category_phone_calls.py +69 -0
- pyrogram/raw/types/update_ai_compose_tones.py +69 -0
- pyrogram/raw/types/update_attach_menu_bots.py +69 -0
- pyrogram/raw/types/update_auto_save_settings.py +69 -0
- pyrogram/raw/types/update_bot_business_connect.py +82 -0
- pyrogram/raw/types/update_bot_callback_query.py +126 -0
- pyrogram/raw/types/update_bot_chat_boost.py +90 -0
- pyrogram/raw/types/update_bot_chat_invite_requester.py +125 -0
- pyrogram/raw/types/update_bot_commands.py +90 -0
- pyrogram/raw/types/update_bot_delete_business_message.py +98 -0
- pyrogram/raw/types/update_bot_edit_business_message.py +102 -0
- pyrogram/raw/types/update_bot_guest_chat_query.py +102 -0
- pyrogram/raw/types/update_bot_inline_query.py +120 -0
- pyrogram/raw/types/update_bot_inline_send.py +112 -0
- pyrogram/raw/types/update_bot_menu_button.py +82 -0
- pyrogram/raw/types/update_bot_message_reaction.py +122 -0
- pyrogram/raw/types/update_bot_message_reactions.py +106 -0
- pyrogram/raw/types/update_bot_new_business_message.py +102 -0
- pyrogram/raw/types/update_bot_precheckout_query.py +127 -0
- pyrogram/raw/types/update_bot_purchased_paid_media.py +90 -0
- pyrogram/raw/types/update_bot_shipping_query.py +98 -0
- pyrogram/raw/types/update_bot_stopped.py +98 -0
- pyrogram/raw/types/update_bot_webhook_json.py +74 -0
- pyrogram/raw/types/update_bot_webhook_json_query.py +90 -0
- pyrogram/raw/types/update_business_bot_callback_query.py +127 -0
- pyrogram/raw/types/update_channel.py +74 -0
- pyrogram/raw/types/update_channel_available_messages.py +82 -0
- pyrogram/raw/types/update_channel_message_forwards.py +90 -0
- pyrogram/raw/types/update_channel_message_views.py +90 -0
- pyrogram/raw/types/update_channel_participant.py +144 -0
- pyrogram/raw/types/update_channel_read_messages_contents.py +103 -0
- pyrogram/raw/types/update_channel_too_long.py +85 -0
- pyrogram/raw/types/update_channel_user_typing.py +101 -0
- pyrogram/raw/types/update_channel_view_forum_as_messages.py +82 -0
- pyrogram/raw/types/update_channel_web_page.py +98 -0
- pyrogram/raw/types/update_chat.py +74 -0
- pyrogram/raw/types/update_chat_default_banned_rights.py +90 -0
- pyrogram/raw/types/update_chat_participant.py +138 -0
- pyrogram/raw/types/update_chat_participant_add.py +106 -0
- pyrogram/raw/types/update_chat_participant_admin.py +98 -0
- pyrogram/raw/types/update_chat_participant_delete.py +90 -0
- pyrogram/raw/types/update_chat_participant_rank.py +98 -0
- pyrogram/raw/types/update_chat_participants.py +74 -0
- pyrogram/raw/types/update_chat_user_typing.py +90 -0
- pyrogram/raw/types/update_config.py +69 -0
- pyrogram/raw/types/update_contacts_reset.py +69 -0
- pyrogram/raw/types/update_dc_options.py +74 -0
- pyrogram/raw/types/update_delete_channel_messages.py +98 -0
- pyrogram/raw/types/update_delete_group_call_messages.py +82 -0
- pyrogram/raw/types/update_delete_messages.py +90 -0
- pyrogram/raw/types/update_delete_quick_reply.py +74 -0
- pyrogram/raw/types/update_delete_quick_reply_messages.py +82 -0
- pyrogram/raw/types/update_delete_scheduled_messages.py +94 -0
- pyrogram/raw/types/update_dialog_filter.py +86 -0
- pyrogram/raw/types/update_dialog_filter_order.py +74 -0
- pyrogram/raw/types/update_dialog_filters.py +69 -0
- pyrogram/raw/types/update_dialog_pinned.py +91 -0
- pyrogram/raw/types/update_dialog_unread_mark.py +92 -0
- pyrogram/raw/types/update_draft_message.py +103 -0
- pyrogram/raw/types/update_edit_channel_message.py +90 -0
- pyrogram/raw/types/update_edit_message.py +90 -0
- pyrogram/raw/types/update_emoji_game_info.py +74 -0
- pyrogram/raw/types/update_encrypted_chat_typing.py +74 -0
- pyrogram/raw/types/update_encrypted_messages_read.py +90 -0
- pyrogram/raw/types/update_encryption.py +82 -0
- pyrogram/raw/types/update_faved_stickers.py +69 -0
- pyrogram/raw/types/update_folder_peers.py +90 -0
- pyrogram/raw/types/update_geo_live_viewed.py +82 -0
- pyrogram/raw/types/update_group_call.py +92 -0
- pyrogram/raw/types/update_group_call_chain_blocks.py +98 -0
- pyrogram/raw/types/update_group_call_connection.py +82 -0
- pyrogram/raw/types/update_group_call_encrypted_message.py +90 -0
- pyrogram/raw/types/update_group_call_message.py +82 -0
- pyrogram/raw/types/update_group_call_participants.py +90 -0
- pyrogram/raw/types/update_inline_bot_callback_query.py +118 -0
- pyrogram/raw/types/update_join_chat_web_view_decision.py +90 -0
- pyrogram/raw/types/update_lang_pack.py +74 -0
- pyrogram/raw/types/update_lang_pack_too_long.py +74 -0
- pyrogram/raw/types/update_login_token.py +69 -0
- pyrogram/raw/types/update_managed_bot.py +90 -0
- pyrogram/raw/types/update_message_extended_media.py +90 -0
- pyrogram/raw/types/update_message_id.py +82 -0
- pyrogram/raw/types/update_message_poll.py +122 -0
- pyrogram/raw/types/update_message_poll_vote.py +106 -0
- pyrogram/raw/types/update_message_reactions.py +111 -0
- pyrogram/raw/types/update_mono_forum_no_paid_exception.py +90 -0
- pyrogram/raw/types/update_move_sticker_set_to_top.py +88 -0
- pyrogram/raw/types/update_new_authorization.py +109 -0
- pyrogram/raw/types/update_new_bot_connection.py +109 -0
- pyrogram/raw/types/update_new_channel_message.py +90 -0
- pyrogram/raw/types/update_new_encrypted_message.py +82 -0
- pyrogram/raw/types/update_new_message.py +90 -0
- pyrogram/raw/types/update_new_quick_reply.py +74 -0
- pyrogram/raw/types/update_new_scheduled_message.py +74 -0
- pyrogram/raw/types/update_new_sticker_set.py +74 -0
- pyrogram/raw/types/update_new_story_reaction.py +90 -0
- pyrogram/raw/types/update_notify_settings.py +82 -0
- pyrogram/raw/types/update_paid_reaction_privacy.py +74 -0
- pyrogram/raw/types/update_peer_blocked.py +88 -0
- pyrogram/raw/types/update_peer_history_ttl.py +85 -0
- pyrogram/raw/types/update_peer_located.py +74 -0
- pyrogram/raw/types/update_peer_settings.py +82 -0
- pyrogram/raw/types/update_peer_wallpaper.py +92 -0
- pyrogram/raw/types/update_pending_join_requests.py +90 -0
- pyrogram/raw/types/update_phone_call.py +74 -0
- pyrogram/raw/types/update_phone_call_signaling_data.py +82 -0
- pyrogram/raw/types/update_pinned_channel_messages.py +106 -0
- pyrogram/raw/types/update_pinned_dialogs.py +87 -0
- pyrogram/raw/types/update_pinned_forum_topic.py +90 -0
- pyrogram/raw/types/update_pinned_forum_topics.py +86 -0
- pyrogram/raw/types/update_pinned_messages.py +106 -0
- pyrogram/raw/types/update_pinned_saved_dialogs.py +78 -0
- pyrogram/raw/types/update_privacy.py +82 -0
- pyrogram/raw/types/update_pts_changed.py +69 -0
- pyrogram/raw/types/update_quick_replies.py +74 -0
- pyrogram/raw/types/update_quick_reply_message.py +74 -0
- pyrogram/raw/types/update_read_channel_discussion_inbox.py +110 -0
- pyrogram/raw/types/update_read_channel_discussion_outbox.py +90 -0
- pyrogram/raw/types/update_read_channel_inbox.py +109 -0
- pyrogram/raw/types/update_read_channel_outbox.py +82 -0
- pyrogram/raw/types/update_read_featured_emoji_stickers.py +69 -0
- pyrogram/raw/types/update_read_featured_stickers.py +69 -0
- pyrogram/raw/types/update_read_history_inbox.py +126 -0
- pyrogram/raw/types/update_read_history_outbox.py +98 -0
- pyrogram/raw/types/update_read_messages_contents.py +101 -0
- pyrogram/raw/types/update_read_mono_forum_inbox.py +90 -0
- pyrogram/raw/types/update_read_mono_forum_outbox.py +90 -0
- pyrogram/raw/types/update_read_stories.py +82 -0
- pyrogram/raw/types/update_recent_emoji_statuses.py +69 -0
- pyrogram/raw/types/update_recent_reactions.py +69 -0
- pyrogram/raw/types/update_recent_stickers.py +69 -0
- pyrogram/raw/types/update_saved_dialog_pinned.py +82 -0
- pyrogram/raw/types/update_saved_gifs.py +69 -0
- pyrogram/raw/types/update_saved_reaction_tags.py +69 -0
- pyrogram/raw/types/update_saved_ringtones.py +69 -0
- pyrogram/raw/types/update_sent_phone_code.py +74 -0
- pyrogram/raw/types/update_sent_story_reaction.py +90 -0
- pyrogram/raw/types/update_service_notification.py +121 -0
- pyrogram/raw/types/update_short.py +220 -0
- pyrogram/raw/types/update_short_chat_message.py +334 -0
- pyrogram/raw/types/update_short_message.py +326 -0
- pyrogram/raw/types/update_short_sent_message.py +273 -0
- pyrogram/raw/types/update_sms_job.py +74 -0
- pyrogram/raw/types/update_star_gift_auction_state.py +82 -0
- pyrogram/raw/types/update_star_gift_auction_user_state.py +82 -0
- pyrogram/raw/types/update_star_gift_craft_fail.py +69 -0
- pyrogram/raw/types/update_stars_balance.py +74 -0
- pyrogram/raw/types/update_stars_revenue_status.py +82 -0
- pyrogram/raw/types/update_sticker_sets.py +80 -0
- pyrogram/raw/types/update_sticker_sets_order.py +88 -0
- pyrogram/raw/types/update_stories_stealth_mode.py +74 -0
- pyrogram/raw/types/update_story.py +82 -0
- pyrogram/raw/types/update_story_id.py +82 -0
- pyrogram/raw/types/update_theme.py +74 -0
- pyrogram/raw/types/update_transcribed_audio.py +106 -0
- pyrogram/raw/types/update_user.py +74 -0
- pyrogram/raw/types/update_user_emoji_status.py +82 -0
- pyrogram/raw/types/update_user_name.py +98 -0
- pyrogram/raw/types/update_user_phone.py +82 -0
- pyrogram/raw/types/update_user_status.py +82 -0
- pyrogram/raw/types/update_user_typing.py +93 -0
- pyrogram/raw/types/update_web_browser_exception.py +91 -0
- pyrogram/raw/types/update_web_browser_settings.py +80 -0
- pyrogram/raw/types/update_web_page.py +90 -0
- pyrogram/raw/types/update_web_view_result_sent.py +74 -0
- pyrogram/raw/types/updates/__init__.py +32 -0
- pyrogram/raw/types/updates/channel_difference.py +132 -0
- pyrogram/raw/types/updates/channel_difference_empty.py +100 -0
- pyrogram/raw/types/updates/channel_difference_too_long.py +124 -0
- pyrogram/raw/types/updates/difference.py +123 -0
- pyrogram/raw/types/updates/difference_empty.py +91 -0
- pyrogram/raw/types/updates/difference_slice.py +123 -0
- pyrogram/raw/types/updates/difference_too_long.py +83 -0
- pyrogram/raw/types/updates/state.py +115 -0
- pyrogram/raw/types/updates_combined.py +252 -0
- pyrogram/raw/types/updates_t.py +244 -0
- pyrogram/raw/types/updates_too_long.py +207 -0
- pyrogram/raw/types/upload/__init__.py +29 -0
- pyrogram/raw/types/upload/cdn_file.py +83 -0
- pyrogram/raw/types/upload/cdn_file_reupload_needed.py +83 -0
- pyrogram/raw/types/upload/file.py +99 -0
- pyrogram/raw/types/upload/file_cdn_redirect.py +115 -0
- pyrogram/raw/types/upload/web_file.py +115 -0
- pyrogram/raw/types/url_auth_result_accepted.py +87 -0
- pyrogram/raw/types/url_auth_result_default.py +79 -0
- pyrogram/raw/types/url_auth_result_request.py +182 -0
- pyrogram/raw/types/user.py +456 -0
- pyrogram/raw/types/user_empty.py +91 -0
- pyrogram/raw/types/user_full.py +553 -0
- pyrogram/raw/types/user_profile_photo.py +105 -0
- pyrogram/raw/types/user_profile_photo_empty.py +69 -0
- pyrogram/raw/types/user_status_empty.py +69 -0
- pyrogram/raw/types/user_status_last_month.py +74 -0
- pyrogram/raw/types/user_status_last_week.py +74 -0
- pyrogram/raw/types/user_status_offline.py +74 -0
- pyrogram/raw/types/user_status_online.py +74 -0
- pyrogram/raw/types/user_status_recently.py +74 -0
- pyrogram/raw/types/username.py +88 -0
- pyrogram/raw/types/users/__init__.py +29 -0
- pyrogram/raw/types/users/saved_music.py +92 -0
- pyrogram/raw/types/users/saved_music_not_modified.py +84 -0
- pyrogram/raw/types/users/user_full.py +99 -0
- pyrogram/raw/types/users/users.py +83 -0
- pyrogram/raw/types/users/users_slice.py +91 -0
- pyrogram/raw/types/video_size.py +109 -0
- pyrogram/raw/types/video_size_emoji_markup.py +82 -0
- pyrogram/raw/types/video_size_sticker_markup.py +90 -0
- pyrogram/raw/types/wall_paper.py +145 -0
- pyrogram/raw/types/wall_paper_no_file.py +109 -0
- pyrogram/raw/types/wall_paper_settings.py +143 -0
- pyrogram/raw/types/web_authorization.py +138 -0
- pyrogram/raw/types/web_document.py +106 -0
- pyrogram/raw/types/web_document_no_proxy.py +98 -0
- pyrogram/raw/types/web_domain_exception.py +101 -0
- pyrogram/raw/types/web_page.py +242 -0
- pyrogram/raw/types/web_page_attribute_ai_compose_tone.py +74 -0
- pyrogram/raw/types/web_page_attribute_star_gift_auction.py +82 -0
- pyrogram/raw/types/web_page_attribute_star_gift_collection.py +74 -0
- pyrogram/raw/types/web_page_attribute_sticker_set.py +88 -0
- pyrogram/raw/types/web_page_attribute_story.py +94 -0
- pyrogram/raw/types/web_page_attribute_theme.py +88 -0
- pyrogram/raw/types/web_page_attribute_unique_star_gift.py +74 -0
- pyrogram/raw/types/web_page_empty.py +85 -0
- pyrogram/raw/types/web_page_not_modified.py +77 -0
- pyrogram/raw/types/web_page_pending.py +93 -0
- pyrogram/raw/types/web_view_message_sent.py +87 -0
- pyrogram/raw/types/web_view_result_url.py +115 -0
- pyrogram/session/__init__.py +20 -0
- pyrogram/session/auth.py +306 -0
- pyrogram/session/internals/__init__.py +20 -0
- pyrogram/session/internals/msg_factory.py +65 -0
- pyrogram/session/internals/msg_id.py +37 -0
- pyrogram/session/session.py +576 -0
- pyrogram/storage/__init__.py +20 -0
- pyrogram/storage/sqlite_storage.py +432 -0
- pyrogram/storage/storage.py +248 -0
- pyrogram/sync.py +109 -0
- pyrogram/types/__init__.py +27 -0
- pyrogram/types/authorization/__init__.py +39 -0
- pyrogram/types/authorization/active_session.py +179 -0
- pyrogram/types/authorization/active_sessions.py +56 -0
- pyrogram/types/authorization/firebase_authentication_settings.py +57 -0
- pyrogram/types/authorization/phone_number_authentication_settings.py +89 -0
- pyrogram/types/authorization/sent_code.py +62 -0
- pyrogram/types/authorization/terms_of_service.py +56 -0
- pyrogram/types/bots_and_keyboards/__init__.py +109 -0
- pyrogram/types/bots_and_keyboards/bot_access_settings.py +54 -0
- pyrogram/types/bots_and_keyboards/bot_command.py +53 -0
- pyrogram/types/bots_and_keyboards/bot_command_scope.py +73 -0
- pyrogram/types/bots_and_keyboards/bot_command_scope_all_chat_administrators.py +32 -0
- pyrogram/types/bots_and_keyboards/bot_command_scope_all_group_chats.py +32 -0
- pyrogram/types/bots_and_keyboards/bot_command_scope_all_private_chats.py +32 -0
- pyrogram/types/bots_and_keyboards/bot_command_scope_chat.py +43 -0
- pyrogram/types/bots_and_keyboards/bot_command_scope_chat_administrators.py +43 -0
- pyrogram/types/bots_and_keyboards/bot_command_scope_chat_member.py +48 -0
- pyrogram/types/bots_and_keyboards/bot_command_scope_default.py +33 -0
- pyrogram/types/bots_and_keyboards/callback_game.py +29 -0
- pyrogram/types/bots_and_keyboards/callback_query.py +350 -0
- pyrogram/types/bots_and_keyboards/chat_boost_updated.py +62 -0
- pyrogram/types/bots_and_keyboards/chat_shared.py +97 -0
- pyrogram/types/bots_and_keyboards/force_reply.py +66 -0
- pyrogram/types/bots_and_keyboards/game_high_score.py +70 -0
- pyrogram/types/bots_and_keyboards/inline_keyboard_button.py +321 -0
- pyrogram/types/bots_and_keyboards/inline_keyboard_markup.py +76 -0
- pyrogram/types/bots_and_keyboards/keyboard_button.py +328 -0
- pyrogram/types/bots_and_keyboards/keyboard_button_poll_type.py +36 -0
- pyrogram/types/bots_and_keyboards/keyboard_button_request_chat.py +97 -0
- pyrogram/types/bots_and_keyboards/keyboard_button_request_managed_bot.py +46 -0
- pyrogram/types/bots_and_keyboards/keyboard_button_request_users.py +73 -0
- pyrogram/types/bots_and_keyboards/labeled_price.py +58 -0
- pyrogram/types/bots_and_keyboards/login_url.py +91 -0
- pyrogram/types/bots_and_keyboards/managed_bot_updated.py +62 -0
- pyrogram/types/bots_and_keyboards/menu_button.py +44 -0
- pyrogram/types/bots_and_keyboards/menu_button_commands.py +32 -0
- pyrogram/types/bots_and_keyboards/menu_button_default.py +32 -0
- pyrogram/types/bots_and_keyboards/menu_button_web_app.py +51 -0
- pyrogram/types/bots_and_keyboards/message_reaction_count_updated.py +89 -0
- pyrogram/types/bots_and_keyboards/message_reaction_updated.py +125 -0
- pyrogram/types/bots_and_keyboards/order_info.py +57 -0
- pyrogram/types/bots_and_keyboards/pre_checkout_query.py +137 -0
- pyrogram/types/bots_and_keyboards/purchased_paid_media.py +50 -0
- pyrogram/types/bots_and_keyboards/reply_keyboard_markup.py +112 -0
- pyrogram/types/bots_and_keyboards/reply_keyboard_remove.py +58 -0
- pyrogram/types/bots_and_keyboards/sent_guest_message.py +45 -0
- pyrogram/types/bots_and_keyboards/sent_web_app_message.py +42 -0
- pyrogram/types/bots_and_keyboards/shipping_address.py +82 -0
- pyrogram/types/bots_and_keyboards/shipping_option.py +73 -0
- pyrogram/types/bots_and_keyboards/shipping_query.py +121 -0
- pyrogram/types/bots_and_keyboards/users_shared.py +83 -0
- pyrogram/types/bots_and_keyboards/web_app_info.py +37 -0
- pyrogram/types/inline_mode/__init__.py +47 -0
- pyrogram/types/inline_mode/chosen_inline_result.py +94 -0
- pyrogram/types/inline_mode/inline_query.py +181 -0
- pyrogram/types/inline_mode/inline_query_result.py +63 -0
- pyrogram/types/inline_mode/inline_query_result_animation.py +156 -0
- pyrogram/types/inline_mode/inline_query_result_article.py +99 -0
- pyrogram/types/inline_mode/inline_query_result_audio.py +120 -0
- pyrogram/types/inline_mode/inline_query_result_cached_animation.py +108 -0
- pyrogram/types/inline_mode/inline_query_result_cached_audio.py +101 -0
- pyrogram/types/inline_mode/inline_query_result_cached_document.py +113 -0
- pyrogram/types/inline_mode/inline_query_result_cached_photo.py +111 -0
- pyrogram/types/inline_mode/inline_query_result_cached_sticker.py +78 -0
- pyrogram/types/inline_mode/inline_query_result_cached_video.py +114 -0
- pyrogram/types/inline_mode/inline_query_result_cached_voice.py +108 -0
- pyrogram/types/inline_mode/inline_query_result_contact.py +114 -0
- pyrogram/types/inline_mode/inline_query_result_document.py +145 -0
- pyrogram/types/inline_mode/inline_query_result_location.py +122 -0
- pyrogram/types/inline_mode/inline_query_result_photo.py +147 -0
- pyrogram/types/inline_mode/inline_query_result_venue.py +131 -0
- pyrogram/types/inline_mode/inline_query_result_video.py +151 -0
- pyrogram/types/inline_mode/inline_query_result_voice.py +114 -0
- pyrogram/types/input_content/__init__.py +121 -0
- pyrogram/types/input_content/input_chat_photo.py +113 -0
- pyrogram/types/input_content/input_checklist.py +65 -0
- pyrogram/types/input_content/input_contact_message_content.py +68 -0
- pyrogram/types/input_content/input_credentials.py +38 -0
- pyrogram/types/input_content/input_credentials_apple_pay.py +43 -0
- pyrogram/types/input_content/input_credentials_google_pay.py +43 -0
- pyrogram/types/input_content/input_credentials_new.py +50 -0
- pyrogram/types/input_content/input_credentials_saved.py +59 -0
- pyrogram/types/input_content/input_invoice.py +36 -0
- pyrogram/types/input_content/input_invoice_message.py +51 -0
- pyrogram/types/input_content/input_invoice_message_content.py +176 -0
- pyrogram/types/input_content/input_invoice_name.py +52 -0
- pyrogram/types/input_content/input_location_message_content.py +85 -0
- pyrogram/types/input_content/input_media.py +56 -0
- pyrogram/types/input_content/input_media_animation.py +160 -0
- pyrogram/types/input_content/input_media_audio.py +157 -0
- pyrogram/types/input_content/input_media_document.py +127 -0
- pyrogram/types/input_content/input_media_link.py +52 -0
- pyrogram/types/input_content/input_media_live_photo.py +162 -0
- pyrogram/types/input_content/input_media_location.py +93 -0
- pyrogram/types/input_content/input_media_photo.py +123 -0
- pyrogram/types/input_content/input_media_sticker.py +104 -0
- pyrogram/types/input_content/input_media_venue.py +114 -0
- pyrogram/types/input_content/input_media_video.py +238 -0
- pyrogram/types/input_content/input_message_content.py +41 -0
- pyrogram/types/input_content/input_phone_contact.py +51 -0
- pyrogram/types/input_content/input_poll_media.py +58 -0
- pyrogram/types/input_content/input_poll_option.py +57 -0
- pyrogram/types/input_content/input_poll_option_media.py +57 -0
- pyrogram/types/input_content/input_privacy_rule.py +44 -0
- pyrogram/types/input_content/input_privacy_rule_allow_all.py +33 -0
- pyrogram/types/input_content/input_privacy_rule_allow_bots.py +33 -0
- pyrogram/types/input_content/input_privacy_rule_allow_chats.py +49 -0
- pyrogram/types/input_content/input_privacy_rule_allow_close_friends.py +33 -0
- pyrogram/types/input_content/input_privacy_rule_allow_contacts.py +33 -0
- pyrogram/types/input_content/input_privacy_rule_allow_premium.py +33 -0
- pyrogram/types/input_content/input_privacy_rule_allow_users.py +47 -0
- pyrogram/types/input_content/input_privacy_rule_disallow_all.py +33 -0
- pyrogram/types/input_content/input_privacy_rule_disallow_bots.py +33 -0
- pyrogram/types/input_content/input_privacy_rule_disallow_chats.py +49 -0
- pyrogram/types/input_content/input_privacy_rule_disallow_contacts.py +33 -0
- pyrogram/types/input_content/input_privacy_rule_disallow_users.py +47 -0
- pyrogram/types/input_content/input_rich_message.py +76 -0
- pyrogram/types/input_content/input_rich_message_content.py +50 -0
- pyrogram/types/input_content/input_text_message_content.py +97 -0
- pyrogram/types/input_content/input_venue_message_content.py +88 -0
- pyrogram/types/list.py +30 -0
- pyrogram/types/messages_and_media/__init__.py +411 -0
- pyrogram/types/messages_and_media/animation.py +191 -0
- pyrogram/types/messages_and_media/auction_bid.py +53 -0
- pyrogram/types/messages_and_media/auction_round.py +70 -0
- pyrogram/types/messages_and_media/auction_state.py +172 -0
- pyrogram/types/messages_and_media/audio.py +121 -0
- pyrogram/types/messages_and_media/available_effect.py +88 -0
- pyrogram/types/messages_and_media/boosts_status.py +89 -0
- pyrogram/types/messages_and_media/business_message.py +106 -0
- pyrogram/types/messages_and_media/chat_background.py +167 -0
- pyrogram/types/messages_and_media/chat_boost.py +108 -0
- pyrogram/types/messages_and_media/chat_has_protected_content_disable_requested.py +45 -0
- pyrogram/types/messages_and_media/chat_has_protected_content_toggled.py +64 -0
- pyrogram/types/messages_and_media/chat_owner_changed.py +49 -0
- pyrogram/types/messages_and_media/chat_owner_left.py +49 -0
- pyrogram/types/messages_and_media/chat_theme.py +51 -0
- pyrogram/types/messages_and_media/checked_gift_code.py +98 -0
- pyrogram/types/messages_and_media/checklist.py +111 -0
- pyrogram/types/messages_and_media/checklist_task.py +88 -0
- pyrogram/types/messages_and_media/checklist_tasks_added.py +63 -0
- pyrogram/types/messages_and_media/checklist_tasks_done.py +63 -0
- pyrogram/types/messages_and_media/contact.py +71 -0
- pyrogram/types/messages_and_media/contact_registered.py +29 -0
- pyrogram/types/messages_and_media/craft_gift_result.py +58 -0
- pyrogram/types/messages_and_media/dice.py +47 -0
- pyrogram/types/messages_and_media/direct_message_price_changed.py +56 -0
- pyrogram/types/messages_and_media/direct_messages_topic.py +105 -0
- pyrogram/types/messages_and_media/document.py +98 -0
- pyrogram/types/messages_and_media/external_reply_info.py +334 -0
- pyrogram/types/messages_and_media/fact_check.py +72 -0
- pyrogram/types/messages_and_media/formatted_text.py +80 -0
- pyrogram/types/messages_and_media/forum_topic.py +161 -0
- pyrogram/types/messages_and_media/forum_topic_closed.py +29 -0
- pyrogram/types/messages_and_media/forum_topic_created.py +64 -0
- pyrogram/types/messages_and_media/forum_topic_edited.py +70 -0
- pyrogram/types/messages_and_media/forum_topic_reopened.py +29 -0
- pyrogram/types/messages_and_media/game.py +98 -0
- pyrogram/types/messages_and_media/general_forum_topic_hidden.py +29 -0
- pyrogram/types/messages_and_media/general_forum_topic_unhidden.py +29 -0
- pyrogram/types/messages_and_media/gift.py +1044 -0
- pyrogram/types/messages_and_media/gift_attribute.py +175 -0
- pyrogram/types/messages_and_media/gift_auction.py +55 -0
- pyrogram/types/messages_and_media/gift_auction_state.py +69 -0
- pyrogram/types/messages_and_media/gift_collection.py +73 -0
- pyrogram/types/messages_and_media/gift_purchase_limit.py +52 -0
- pyrogram/types/messages_and_media/gift_resale_parameters.py +69 -0
- pyrogram/types/messages_and_media/gift_resale_price.py +83 -0
- pyrogram/types/messages_and_media/gift_upgrade_preview.py +84 -0
- pyrogram/types/messages_and_media/gift_upgrade_price.py +53 -0
- pyrogram/types/messages_and_media/gift_upgrade_variants.py +72 -0
- pyrogram/types/messages_and_media/gifted_premium.py +135 -0
- pyrogram/types/messages_and_media/gifted_stars.py +120 -0
- pyrogram/types/messages_and_media/gifted_ton.py +96 -0
- pyrogram/types/messages_and_media/giveaway.py +106 -0
- pyrogram/types/messages_and_media/giveaway_completed.py +95 -0
- pyrogram/types/messages_and_media/giveaway_created.py +57 -0
- pyrogram/types/messages_and_media/giveaway_prize_stars.py +119 -0
- pyrogram/types/messages_and_media/giveaway_winners.py +150 -0
- pyrogram/types/messages_and_media/input_checklist_task.py +72 -0
- pyrogram/types/messages_and_media/invoice.py +162 -0
- pyrogram/types/messages_and_media/link_preview_options.py +87 -0
- pyrogram/types/messages_and_media/live_photo.py +102 -0
- pyrogram/types/messages_and_media/location.py +131 -0
- pyrogram/types/messages_and_media/managed_bot_created.py +56 -0
- pyrogram/types/messages_and_media/mask_position.py +70 -0
- pyrogram/types/messages_and_media/media_area.py +287 -0
- pyrogram/types/messages_and_media/message.py +9572 -0
- pyrogram/types/messages_and_media/message_content.py +306 -0
- pyrogram/types/messages_and_media/message_entity.py +205 -0
- pyrogram/types/messages_and_media/message_origin.py +94 -0
- pyrogram/types/messages_and_media/message_origin_channel.py +61 -0
- pyrogram/types/messages_and_media/message_origin_chat.py +56 -0
- pyrogram/types/messages_and_media/message_origin_hidden_user.py +51 -0
- pyrogram/types/messages_and_media/message_origin_import.py +50 -0
- pyrogram/types/messages_and_media/message_origin_user.py +51 -0
- pyrogram/types/messages_and_media/message_reactions.py +90 -0
- pyrogram/types/messages_and_media/my_boost.py +79 -0
- pyrogram/types/messages_and_media/paid_media_info.py +93 -0
- pyrogram/types/messages_and_media/paid_media_preview.py +55 -0
- pyrogram/types/messages_and_media/paid_messages_price_changed.py +48 -0
- pyrogram/types/messages_and_media/paid_messages_refunded.py +54 -0
- pyrogram/types/messages_and_media/paid_reactor.py +86 -0
- pyrogram/types/messages_and_media/payment_form.py +169 -0
- pyrogram/types/messages_and_media/payment_option.py +50 -0
- pyrogram/types/messages_and_media/payment_result.py +66 -0
- pyrogram/types/messages_and_media/photo.py +130 -0
- pyrogram/types/messages_and_media/poll.py +372 -0
- pyrogram/types/messages_and_media/poll_option.py +91 -0
- pyrogram/types/messages_and_media/poll_option_added.py +69 -0
- pyrogram/types/messages_and_media/poll_option_deleted.py +69 -0
- pyrogram/types/messages_and_media/premium_gift_code.py +141 -0
- pyrogram/types/messages_and_media/proximity_alert_triggered.py +65 -0
- pyrogram/types/messages_and_media/reaction.py +97 -0
- pyrogram/types/messages_and_media/refunded_payment.py +81 -0
- pyrogram/types/messages_and_media/reply_parameters.py +88 -0
- pyrogram/types/messages_and_media/restriction_reason.py +62 -0
- pyrogram/types/messages_and_media/rich_block.py +999 -0
- pyrogram/types/messages_and_media/rich_message.py +71 -0
- pyrogram/types/messages_and_media/rich_text.py +692 -0
- pyrogram/types/messages_and_media/saved_credentials.py +50 -0
- pyrogram/types/messages_and_media/screenshot_taken.py +29 -0
- pyrogram/types/messages_and_media/star_amount.py +54 -0
- pyrogram/types/messages_and_media/sticker.py +287 -0
- pyrogram/types/messages_and_media/story.py +2183 -0
- pyrogram/types/messages_and_media/story_view.py +75 -0
- pyrogram/types/messages_and_media/stripped_thumbnail.py +47 -0
- pyrogram/types/messages_and_media/successful_payment.py +141 -0
- pyrogram/types/messages_and_media/suggested_post_approval_failed.py +88 -0
- pyrogram/types/messages_and_media/suggested_post_approved.py +93 -0
- pyrogram/types/messages_and_media/suggested_post_declined.py +86 -0
- pyrogram/types/messages_and_media/suggested_post_info.py +73 -0
- pyrogram/types/messages_and_media/suggested_post_paid.py +101 -0
- pyrogram/types/messages_and_media/suggested_post_parameters.py +53 -0
- pyrogram/types/messages_and_media/suggested_post_price.py +106 -0
- pyrogram/types/messages_and_media/suggested_post_refunded.py +92 -0
- pyrogram/types/messages_and_media/text_quote.py +83 -0
- pyrogram/types/messages_and_media/thumbnail.py +111 -0
- pyrogram/types/messages_and_media/upgraded_gift_attribute_id.py +58 -0
- pyrogram/types/messages_and_media/upgraded_gift_attribute_id_backdrop.py +41 -0
- pyrogram/types/messages_and_media/upgraded_gift_attribute_id_model.py +41 -0
- pyrogram/types/messages_and_media/upgraded_gift_attribute_id_symbol.py +41 -0
- pyrogram/types/messages_and_media/upgraded_gift_attribute_rarity.py +131 -0
- pyrogram/types/messages_and_media/upgraded_gift_original_details.py +74 -0
- pyrogram/types/messages_and_media/upgraded_gift_purchase_offer.py +138 -0
- pyrogram/types/messages_and_media/upgraded_gift_value_info.py +124 -0
- pyrogram/types/messages_and_media/venue.py +76 -0
- pyrogram/types/messages_and_media/video.py +174 -0
- pyrogram/types/messages_and_media/video_note.py +115 -0
- pyrogram/types/messages_and_media/voice.py +102 -0
- pyrogram/types/messages_and_media/web_app_data.py +53 -0
- pyrogram/types/messages_and_media/web_page.py +262 -0
- pyrogram/types/messages_and_media/write_access_allowed.py +57 -0
- pyrogram/types/object.py +127 -0
- pyrogram/types/update.py +27 -0
- pyrogram/types/user_and_chats/__init__.py +124 -0
- pyrogram/types/user_and_chats/accepted_gift_types.py +85 -0
- pyrogram/types/user_and_chats/birthday.py +69 -0
- pyrogram/types/user_and_chats/bot_verification.py +63 -0
- pyrogram/types/user_and_chats/business_bot_rights.py +125 -0
- pyrogram/types/user_and_chats/business_connection.py +85 -0
- pyrogram/types/user_and_chats/business_intro.py +74 -0
- pyrogram/types/user_and_chats/business_recipients.py +78 -0
- pyrogram/types/user_and_chats/business_weekly_open.py +49 -0
- pyrogram/types/user_and_chats/business_working_hours.py +62 -0
- pyrogram/types/user_and_chats/chat.py +1972 -0
- pyrogram/types/user_and_chats/chat_admin_with_invite_links.py +63 -0
- pyrogram/types/user_and_chats/chat_administrator_rights.py +160 -0
- pyrogram/types/user_and_chats/chat_color.py +64 -0
- pyrogram/types/user_and_chats/chat_event.py +536 -0
- pyrogram/types/user_and_chats/chat_event_filter.py +175 -0
- pyrogram/types/user_and_chats/chat_folder_invite_link_info.py +96 -0
- pyrogram/types/user_and_chats/chat_invite_link.py +130 -0
- pyrogram/types/user_and_chats/chat_join_request.py +146 -0
- pyrogram/types/user_and_chats/chat_join_result.py +117 -0
- pyrogram/types/user_and_chats/chat_joiner.py +82 -0
- pyrogram/types/user_and_chats/chat_member.py +247 -0
- pyrogram/types/user_and_chats/chat_member_updated.py +112 -0
- pyrogram/types/user_and_chats/chat_permissions.py +213 -0
- pyrogram/types/user_and_chats/chat_photo.py +125 -0
- pyrogram/types/user_and_chats/chat_reactions.py +69 -0
- pyrogram/types/user_and_chats/chat_settings.py +174 -0
- pyrogram/types/user_and_chats/dialog.py +121 -0
- pyrogram/types/user_and_chats/emoji_status.py +127 -0
- pyrogram/types/user_and_chats/failed_to_add_member.py +55 -0
- pyrogram/types/user_and_chats/folder.py +507 -0
- pyrogram/types/user_and_chats/folder_invite_link.py +57 -0
- pyrogram/types/user_and_chats/found_contacts.py +74 -0
- pyrogram/types/user_and_chats/global_privacy_settings.py +115 -0
- pyrogram/types/user_and_chats/group_call_member.py +149 -0
- pyrogram/types/user_and_chats/history_cleared.py +29 -0
- pyrogram/types/user_and_chats/invite_link_importer.py +61 -0
- pyrogram/types/user_and_chats/phone_call_ended.py +63 -0
- pyrogram/types/user_and_chats/phone_call_started.py +49 -0
- pyrogram/types/user_and_chats/privacy_rule.py +58 -0
- pyrogram/types/user_and_chats/restriction.py +50 -0
- pyrogram/types/user_and_chats/stories_stealth_mode.py +47 -0
- pyrogram/types/user_and_chats/user.py +960 -0
- pyrogram/types/user_and_chats/user_rating.py +72 -0
- pyrogram/types/user_and_chats/username.py +50 -0
- pyrogram/types/user_and_chats/verification_status.py +75 -0
- pyrogram/types/user_and_chats/video_chat_ended.py +41 -0
- pyrogram/types/user_and_chats/video_chat_members_invited.py +50 -0
- pyrogram/types/user_and_chats/video_chat_scheduled.py +43 -0
- pyrogram/types/user_and_chats/video_chat_started.py +29 -0
- pyrogram/utils.py +783 -0
- xn_pyrogram-2.2.23.dist-info/METADATA +159 -0
- xn_pyrogram-2.2.23.dist-info/RECORD +4024 -0
- xn_pyrogram-2.2.23.dist-info/WHEEL +4 -0
- xn_pyrogram-2.2.23.dist-info/licenses/COPYING +674 -0
- xn_pyrogram-2.2.23.dist-info/licenses/COPYING.lesser +165 -0
|
@@ -0,0 +1,1972 @@
|
|
|
1
|
+
# Pyrogram - Telegram MTProto API Client Library for Python
|
|
2
|
+
# Copyright (C) 2017-present Dan <https://github.com/delivrance>
|
|
3
|
+
#
|
|
4
|
+
# This file is part of Pyrogram.
|
|
5
|
+
#
|
|
6
|
+
# Pyrogram is free software: you can redistribute it and/or modify
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
|
+
# (at your option) any later version.
|
|
10
|
+
#
|
|
11
|
+
# Pyrogram is distributed in the hope that it will be useful,
|
|
12
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
+
# GNU Lesser General Public License for more details.
|
|
15
|
+
#
|
|
16
|
+
# You should have received a copy of the GNU Lesser General Public License
|
|
17
|
+
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
|
18
|
+
|
|
19
|
+
import logging
|
|
20
|
+
from datetime import datetime
|
|
21
|
+
from typing import AsyncGenerator, BinaryIO, Dict, List, Optional, Union
|
|
22
|
+
|
|
23
|
+
import pyrogram
|
|
24
|
+
from pyrogram import enums, raw, types, utils
|
|
25
|
+
|
|
26
|
+
from ..object import Object
|
|
27
|
+
|
|
28
|
+
log = logging.getLogger(__name__)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class Chat(Object):
|
|
32
|
+
"""A chat.
|
|
33
|
+
|
|
34
|
+
Parameters:
|
|
35
|
+
id (``int``, *optional*):
|
|
36
|
+
Unique identifier for this chat.
|
|
37
|
+
|
|
38
|
+
type (:obj:`~pyrogram.enums.ChatType`, *optional*):
|
|
39
|
+
Type of chat.
|
|
40
|
+
|
|
41
|
+
is_forum (``bool``, *optional*):
|
|
42
|
+
True, if the supergroup chat is a forum.
|
|
43
|
+
|
|
44
|
+
is_direct_messages (``bool``, *optional*):
|
|
45
|
+
True, if the chat is the direct messages chat of a channel.
|
|
46
|
+
|
|
47
|
+
is_min (``bool``, *optional*):
|
|
48
|
+
True, if this chat have reduced set of fields.
|
|
49
|
+
|
|
50
|
+
is_members_hidden (``bool``, *optional*):
|
|
51
|
+
True, if the chat members are hidden.
|
|
52
|
+
|
|
53
|
+
is_restricted (``bool``, *optional*):
|
|
54
|
+
True, if this chat has been restricted. Supergroups, channels and bots only.
|
|
55
|
+
See *restriction_reason* for details.
|
|
56
|
+
|
|
57
|
+
is_creator (``bool``, *optional*):
|
|
58
|
+
True, if this chat owner is the current user. Supergroups, channels and groups only.
|
|
59
|
+
|
|
60
|
+
is_admin (``bool``, *optional*):
|
|
61
|
+
True, if the current user is admin. Supergroups, channels and groups only.
|
|
62
|
+
|
|
63
|
+
is_deactivated (``bool``, *optional*):
|
|
64
|
+
True, if this chat has been flagged for deactivated.
|
|
65
|
+
|
|
66
|
+
is_support (``bool``, *optional*):
|
|
67
|
+
True, if this chat is part of the Telegram support team. Users and bots only.
|
|
68
|
+
|
|
69
|
+
is_stories_hidden (``bool``, *optional*):
|
|
70
|
+
True, if this chat has hidden stories.
|
|
71
|
+
|
|
72
|
+
is_stories_unavailable (``bool``, *optional*):
|
|
73
|
+
True, if this chat stories is unavailable.
|
|
74
|
+
|
|
75
|
+
is_business_bot (``bool``, *optional*):
|
|
76
|
+
True, if this bot can connect to business account.
|
|
77
|
+
|
|
78
|
+
is_preview (``bool``, *optional*):
|
|
79
|
+
True, if this chat is a preview.
|
|
80
|
+
|
|
81
|
+
is_banned (``bool``, *optional*):
|
|
82
|
+
True, if you are banned in this chat.
|
|
83
|
+
|
|
84
|
+
is_call_active (``bool``, *optional*):
|
|
85
|
+
True, if a group call is currently active.
|
|
86
|
+
|
|
87
|
+
is_call_not_empty (``bool``, *optional*):
|
|
88
|
+
True, if there's anyone in the group call.
|
|
89
|
+
|
|
90
|
+
is_public (``bool``, *optional*):
|
|
91
|
+
True, if this chat is public.
|
|
92
|
+
|
|
93
|
+
is_paid_reactions_available (``bool``, *optional*):
|
|
94
|
+
True, if paid reactions enabled in this chat.
|
|
95
|
+
|
|
96
|
+
verification_status (:obj:`~pyrogram.types.VerificationStatus`, *optional*):
|
|
97
|
+
Contains information about verification status of a chat.
|
|
98
|
+
|
|
99
|
+
can_send_gift (``bool``, *optional*):
|
|
100
|
+
True, if the user can send a gift to the supergroup or channel using :meth:`~pyrogram.Client.send_gift` or :meth:`~pyrogram.Client.transfer_gift`.
|
|
101
|
+
|
|
102
|
+
title (``str``, *optional*):
|
|
103
|
+
Title, for supergroups, channels and basic group chats.
|
|
104
|
+
|
|
105
|
+
username (``str``, *optional*):
|
|
106
|
+
Username, for private chats, bots, supergroups and channels if available.
|
|
107
|
+
|
|
108
|
+
usernames (List of :obj:`~pyrogram.types.Username`, *optional*):
|
|
109
|
+
The list of chat's collectible (and basic) usernames if available.
|
|
110
|
+
|
|
111
|
+
first_name (``str``, *optional*):
|
|
112
|
+
First name of the other party in a private chat, for private chats and bots.
|
|
113
|
+
|
|
114
|
+
last_name (``str``, *optional*):
|
|
115
|
+
Last name of the other party in a private chat, for private chats.
|
|
116
|
+
|
|
117
|
+
personal_photo (:obj:`~pyrogram.types.ChatPhoto`, *optional*):
|
|
118
|
+
Chat profile photo set by the current user for the contact.
|
|
119
|
+
This photo isn't returned in the list of chat photos.
|
|
120
|
+
Suitable for downloads only.
|
|
121
|
+
|
|
122
|
+
photo (:obj:`~pyrogram.types.ChatPhoto`, *optional*):
|
|
123
|
+
Chat photo.
|
|
124
|
+
Suitable for downloads only.
|
|
125
|
+
|
|
126
|
+
public_photo (:obj:`~pyrogram.types.ChatPhoto`, *optional*):
|
|
127
|
+
Chat profile photo visible if the main photo is hidden by privacy settings.
|
|
128
|
+
This photo isn't returned in the list of chat photos.
|
|
129
|
+
Suitable for downloads only.
|
|
130
|
+
|
|
131
|
+
stories (List of :obj:`~pyrogram.types.Story`, *optional*):
|
|
132
|
+
The list of chat's stories if available.
|
|
133
|
+
|
|
134
|
+
chat_background (:obj:`~pyrogram.types.ChatBackground`, *optional*):
|
|
135
|
+
Chat wallpaper.
|
|
136
|
+
|
|
137
|
+
bio (``str``, *optional*):
|
|
138
|
+
Bio of the other party in a private chat.
|
|
139
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
140
|
+
|
|
141
|
+
description (``str``, *optional*):
|
|
142
|
+
Description, for groups, supergroups and channel chats.
|
|
143
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
144
|
+
|
|
145
|
+
show_message_sender_name (``bool``, *optional*):
|
|
146
|
+
True, if the chat has a username.
|
|
147
|
+
|
|
148
|
+
sign_messages (``bool``, *optional*):
|
|
149
|
+
True, if messages sent to the channel contains name of the sender. This field is only applicable to channels.
|
|
150
|
+
|
|
151
|
+
dc_id (``int``, *optional*):
|
|
152
|
+
The chat assigned DC (data center). Available only in case the chat has a photo.
|
|
153
|
+
Note that this information is approximate; it is based on where Telegram stores the current chat photo.
|
|
154
|
+
It is accurate only in case the owner has set the chat photo, otherwise the dc_id will be the one assigned
|
|
155
|
+
to the administrator who set the current chat photo.
|
|
156
|
+
|
|
157
|
+
folder_id (``int``, *optional*):
|
|
158
|
+
The folder identifier where the chat is located.
|
|
159
|
+
|
|
160
|
+
has_protected_content (``bool``, *optional*):
|
|
161
|
+
True, if messages from the chat can't be forwarded to other chats.
|
|
162
|
+
|
|
163
|
+
has_visible_history (``bool``, *optional*):
|
|
164
|
+
True, if new chat members will have access to old messages; available only to chat administrators.
|
|
165
|
+
|
|
166
|
+
has_aggressive_anti_spam_enabled (``bool``, *optional*):
|
|
167
|
+
True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators.
|
|
168
|
+
|
|
169
|
+
has_automatic_translation (``bool``, *optional*):
|
|
170
|
+
True, if automatic translation of messages is enabled in the channel.
|
|
171
|
+
|
|
172
|
+
has_forum_tabs (``bool``, *optional*):
|
|
173
|
+
True, if the supergroup is a forum, which topics are shown in the same way as in channel direct messages groups.
|
|
174
|
+
|
|
175
|
+
has_direct_messages_group (``bool``, *optional*):
|
|
176
|
+
True, if the channel has direct messages group.
|
|
177
|
+
|
|
178
|
+
invite_link (``str``, *optional*):
|
|
179
|
+
Chat invite link, for groups, supergroups and channels.
|
|
180
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
181
|
+
|
|
182
|
+
pinned_message (:obj:`~pyrogram.types.Message`, *optional*):
|
|
183
|
+
Pinned message, for groups, supergroups channels and own chat.
|
|
184
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
185
|
+
|
|
186
|
+
sticker_set_name (``str``, *optional*):
|
|
187
|
+
For supergroups, name of group sticker set.
|
|
188
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
189
|
+
|
|
190
|
+
custom_emoji_sticker_set_name (``str``, *optional*):
|
|
191
|
+
For supergroups, the name of the group's custom emoji sticker set. Custom emoji from this set can be used by all users and bots in the group.
|
|
192
|
+
|
|
193
|
+
can_set_sticker_set (``bool``, *optional*):
|
|
194
|
+
True, if the group sticker set can be changed by you.
|
|
195
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
196
|
+
|
|
197
|
+
can_send_paid_media (``bool``, *optional*):
|
|
198
|
+
True, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats.
|
|
199
|
+
|
|
200
|
+
members (List of :obj:`~pyrogram.types.User`, *optional*):
|
|
201
|
+
A few of the participants that are in the group.
|
|
202
|
+
|
|
203
|
+
members_count (``int``, *optional*):
|
|
204
|
+
Chat members count, for groups, supergroups and channels only.
|
|
205
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
206
|
+
|
|
207
|
+
restrictions (List of :obj:`~pyrogram.types.Restriction`, *optional*):
|
|
208
|
+
The list of reasons why this chat might be unavailable to some users.
|
|
209
|
+
This field is available only in case *is_restricted* is True.
|
|
210
|
+
|
|
211
|
+
permissions (:obj:`~pyrogram.types.ChatPermissions` *optional*):
|
|
212
|
+
Default chat member permissions, for groups and supergroups.
|
|
213
|
+
|
|
214
|
+
personal_channel (:obj:`~pyrogram.types.Chat`, *optional*):
|
|
215
|
+
The personal channel linked to this chat.
|
|
216
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
217
|
+
|
|
218
|
+
personal_channel_message (:obj:`~pyrogram.types.Message`, *optional*):
|
|
219
|
+
The last message in the personal channel of this chat.
|
|
220
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
221
|
+
|
|
222
|
+
linked_chat_id (``int``, *optional*):
|
|
223
|
+
Chat identifier of a discussion group for the channel,
|
|
224
|
+
or a channel, for which the supergroup is the designated discussion group.
|
|
225
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
226
|
+
|
|
227
|
+
direct_messages_chat_id (``int``, *optional*):
|
|
228
|
+
Chat identifier of a direct messages group for the channel,
|
|
229
|
+
or a channel, for which the supergroup is the designated direct messages group.
|
|
230
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
231
|
+
|
|
232
|
+
parent_chat (:obj:`~pyrogram.types.Chat`, *optional*):
|
|
233
|
+
Information about the corresponding channel chat.
|
|
234
|
+
For direct messages chats only.
|
|
235
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
236
|
+
|
|
237
|
+
linked_chat (:obj:`~pyrogram.types.Chat`, *optional*):
|
|
238
|
+
The linked discussion group (in case of channels) or the linked channel (in case of supergroups).
|
|
239
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
240
|
+
|
|
241
|
+
send_as_chat (:obj:`~pyrogram.types.Chat`, *optional*):
|
|
242
|
+
The default "send_as" chat.
|
|
243
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
244
|
+
|
|
245
|
+
available_reactions (:obj:`~pyrogram.types.ChatReactions`, *optional*):
|
|
246
|
+
Available reactions in the chat.
|
|
247
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
248
|
+
|
|
249
|
+
level (``int``, *optional*):
|
|
250
|
+
Channel boosts level.
|
|
251
|
+
|
|
252
|
+
reply_color (:obj:`~pyrogram.types.ChatColor`, *optional*):
|
|
253
|
+
Chat reply color.
|
|
254
|
+
|
|
255
|
+
profile_color (:obj:`~pyrogram.types.ChatColor`, *optional*):
|
|
256
|
+
Chat profile color.
|
|
257
|
+
|
|
258
|
+
business_away_message (:obj:`~pyrogram.types.BusinessMessage`, *optional*):
|
|
259
|
+
For private chats with business accounts, the away message of the business.
|
|
260
|
+
|
|
261
|
+
business_greeting_message (:obj:`~pyrogram.types.BusinessMessage`, *optional*):
|
|
262
|
+
For private chats with business accounts, the greeting message of the business.
|
|
263
|
+
|
|
264
|
+
business_work_hours (:obj:`~pyrogram.types.BusinessWorkingHours`, *optional*):
|
|
265
|
+
For private chats with business accounts, the working hours of the business.
|
|
266
|
+
|
|
267
|
+
business_location (:obj:`~pyrogram.types.Location`, *optional*):
|
|
268
|
+
For private chats with business accounts, the location of the business.
|
|
269
|
+
|
|
270
|
+
business_intro (:obj:`~pyrogram.types.BusinessIntro`, *optional*):
|
|
271
|
+
For private chats with business accounts, the intro of the business.
|
|
272
|
+
|
|
273
|
+
birthday (:obj:`~pyrogram.types.Birthday`, *optional*):
|
|
274
|
+
Information about user birthday.
|
|
275
|
+
|
|
276
|
+
message_auto_delete_time (``int``, *optional*):
|
|
277
|
+
The time after which all messages sent to the chat will be automatically deleted; in seconds.
|
|
278
|
+
|
|
279
|
+
unrestrict_boost_count (``int``, *optional*):
|
|
280
|
+
For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to ignore slow mode and chat permissions.
|
|
281
|
+
|
|
282
|
+
slow_mode_delay (``int``, *optional*):
|
|
283
|
+
For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged user; in seconds.
|
|
284
|
+
|
|
285
|
+
slowmode_next_send_date (:py:obj:`~datetime.datetime`, *optional*):
|
|
286
|
+
Indicates when the user will be allowed to send another message in the chat. For supergroups only.
|
|
287
|
+
|
|
288
|
+
join_by_request (``bool``, *optional*):
|
|
289
|
+
True, if all users directly joining the supergroup need to be approved by supergroup administrators.
|
|
290
|
+
|
|
291
|
+
join_requests_count (``int``, *optional*):
|
|
292
|
+
Number of users who requested to join the chat.
|
|
293
|
+
|
|
294
|
+
banned_until_date (:py:obj:`~datetime.datetime`, *optional*):
|
|
295
|
+
Date when the user will be unbanned.
|
|
296
|
+
|
|
297
|
+
subscription_until_date (:py:obj:`~datetime.datetime`, *optional*):
|
|
298
|
+
Date when the the subscription will end.
|
|
299
|
+
|
|
300
|
+
reactions_limit (``int``, *optional*):
|
|
301
|
+
This flag may be used to impose a custom limit of unique reactions (i.e. a customizable version of appConfig.reactions_uniq_max).
|
|
302
|
+
|
|
303
|
+
gift_count (``int``, *optional*):
|
|
304
|
+
Number of saved to profile gifts for channels without `can_post_messages` administrator right, otherwise, the total number of received gifts.
|
|
305
|
+
|
|
306
|
+
bot_verification (:obj:`~pyrogram.types.BotVerification`, *optional*):
|
|
307
|
+
Information about bot verification.
|
|
308
|
+
|
|
309
|
+
main_profile_tab (:obj:`~pyrogram.enums.ProfileTab`, *optional*):
|
|
310
|
+
The main tab chosen by the administrators of the channel.
|
|
311
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
312
|
+
|
|
313
|
+
first_profile_audio (:obj:`~pyrogram.types.Audio`, *optional*):
|
|
314
|
+
The first audio file added to the user's profile.
|
|
315
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
316
|
+
|
|
317
|
+
rating (:obj:`~pyrogram.types.UserRating`, *optional*):
|
|
318
|
+
Description of the current rating of the user.
|
|
319
|
+
|
|
320
|
+
pending_rating (:obj:`~pyrogram.types.UserRating`, *optional*):
|
|
321
|
+
Description of the rating of the user after the next change.
|
|
322
|
+
|
|
323
|
+
pending_rating_date (:py:obj:`~datetime.datetime`, *optional*):
|
|
324
|
+
Date when rating of the user will change to pending_rating.
|
|
325
|
+
|
|
326
|
+
settings (:obj:`~pyrogram.types.ChatSettings`, *optional*):
|
|
327
|
+
Chat settings.
|
|
328
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
329
|
+
|
|
330
|
+
admins_count (``int``, *optional*):
|
|
331
|
+
Number of admins in channel.
|
|
332
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
333
|
+
|
|
334
|
+
kicked_count (``int``, *optional*):
|
|
335
|
+
Number of kicked from the channel.
|
|
336
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
337
|
+
|
|
338
|
+
banned_count (``int``, *optional*):
|
|
339
|
+
Number of banned from the channel.
|
|
340
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
341
|
+
|
|
342
|
+
available_min_id (``int``, *optional*):
|
|
343
|
+
Identifier of a maximum unavailable message due to hidden history.
|
|
344
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
345
|
+
|
|
346
|
+
boosts_applied (``int``, *optional*):
|
|
347
|
+
The number of boosts the current user has applied to the current supergroup.
|
|
348
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
349
|
+
|
|
350
|
+
channel_admin_rights (:obj:`~pyrogram.types.ChatAdministratorRights`, *optional*):
|
|
351
|
+
A suggested set of administrator rights for the bot, to be shown when adding the bot as admin to a channel.
|
|
352
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
353
|
+
|
|
354
|
+
chat_admin_rights (:obj:`~pyrogram.types.ChatAdministratorRights`, *optional*):
|
|
355
|
+
A suggested set of administrator rights for the bot, to be shown when adding the bot as admin to a group.
|
|
356
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
357
|
+
|
|
358
|
+
bot_can_manage_emoji_status (``bool``, *optional*):
|
|
359
|
+
True, if the bot can change your emoji status.
|
|
360
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
361
|
+
|
|
362
|
+
can_delete_channel (``bool``, *optional*):
|
|
363
|
+
True, if the current user can delete this channel.
|
|
364
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
365
|
+
|
|
366
|
+
can_pin_message (``bool``, *optional*):
|
|
367
|
+
True, if the current user can pin messages in this chat.
|
|
368
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
369
|
+
|
|
370
|
+
can_schedule_messages (``bool``, *optional*):
|
|
371
|
+
True, if the current user can schedule messages in this chat.
|
|
372
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
373
|
+
|
|
374
|
+
can_set_location (``bool``, *optional*):
|
|
375
|
+
True, if the current user can set location in this chat.
|
|
376
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
377
|
+
|
|
378
|
+
can_set_username (``bool``, *optional*):
|
|
379
|
+
True, if the current user can set username in this chat.
|
|
380
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
381
|
+
|
|
382
|
+
can_view_participants (``bool``, *optional*):
|
|
383
|
+
True, if the current user can view participants in this chat.
|
|
384
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
385
|
+
|
|
386
|
+
can_view_revenue (``bool``, *optional*):
|
|
387
|
+
True, if the current user can view revenue in this chat.
|
|
388
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
389
|
+
|
|
390
|
+
can_view_stars_revenue (``bool``, *optional*):
|
|
391
|
+
True, if the current user can view stars revenue in this chat.
|
|
392
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
393
|
+
|
|
394
|
+
can_view_stats (``bool``, *optional*):
|
|
395
|
+
True, if the current user can view stats in this chat.
|
|
396
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
397
|
+
|
|
398
|
+
can_send_voice_messages (``bool``, *optional*):
|
|
399
|
+
True, if the current user can send voice messages in this chat.
|
|
400
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
401
|
+
|
|
402
|
+
can_manage_bots (``bool``, *optional*):
|
|
403
|
+
True, if other bots can be created to be controlled by the bot.
|
|
404
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
405
|
+
|
|
406
|
+
common_chats (``int``, *optional*):
|
|
407
|
+
Number of common chats with this user.
|
|
408
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
409
|
+
|
|
410
|
+
is_ads_enabled (``bool``, *optional*):
|
|
411
|
+
True, if ads were re-enabled for the current account (only accessible to the currently logged-in user).
|
|
412
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
413
|
+
|
|
414
|
+
is_blocked (``bool``, *optional*):
|
|
415
|
+
True, if you have blocked this user.
|
|
416
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
417
|
+
|
|
418
|
+
is_blocked_my_stories_from (``bool``, *optional*):
|
|
419
|
+
True, if we've blocked this user, preventing them from seeing our stories.
|
|
420
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
421
|
+
|
|
422
|
+
is_contact_require_premium (``bool``, *optional*):
|
|
423
|
+
True, if we cannot write to this user:
|
|
424
|
+
subscribe to Telegram Premium to get permission to write to this user.
|
|
425
|
+
To set this flag for ourselves invoke account.setGlobalPrivacySettings,
|
|
426
|
+
setting the settings.new_noncontact_peers_require_premium flag.
|
|
427
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
428
|
+
|
|
429
|
+
is_phone_calls_available (``bool``, *optional*):
|
|
430
|
+
True, if this user can make VoIP calls.
|
|
431
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
432
|
+
|
|
433
|
+
is_phone_calls_private (``bool``, *optional*):
|
|
434
|
+
True, if this user's privacy settings allow you to call them.
|
|
435
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
436
|
+
|
|
437
|
+
is_pinned_stories_available (``bool``, *optional*):
|
|
438
|
+
True, if this user has some pinned stories.
|
|
439
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
440
|
+
|
|
441
|
+
is_read_dates_available (``bool``, *optional*):
|
|
442
|
+
True, if we cannot fetch the exact read date of messages we send to this user.
|
|
443
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
444
|
+
|
|
445
|
+
is_translations_disabled (``bool``, *optional*):
|
|
446
|
+
True, if the real-time chat translation popup should be hidden.
|
|
447
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
448
|
+
|
|
449
|
+
is_video_calls_available (``bool``, *optional*):
|
|
450
|
+
True, if this user can receive video calls.
|
|
451
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
452
|
+
|
|
453
|
+
is_wallpaper_overridden (``bool``, *optional*):
|
|
454
|
+
True, if this user has a custom wallpaper.
|
|
455
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
456
|
+
|
|
457
|
+
migrated_from_chat_id (``int``, *optional*):
|
|
458
|
+
The unique chat identifier from which this group was migrated.
|
|
459
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
460
|
+
|
|
461
|
+
migrated_from_max_message_id (``int``, *optional*):
|
|
462
|
+
The message identifier in the original chat at which this group was migrated.
|
|
463
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
464
|
+
|
|
465
|
+
online_count (``int``, *optional*):
|
|
466
|
+
Number of online members in the chat.
|
|
467
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
468
|
+
|
|
469
|
+
private_forward_name (``str``, *optional*):
|
|
470
|
+
Anonymized text to be shown instead of the user's name on forwarded messages.
|
|
471
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
472
|
+
|
|
473
|
+
read_inbox_max_id (``int``, *optional*):
|
|
474
|
+
Position up to which all incoming messages are read.
|
|
475
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
476
|
+
|
|
477
|
+
read_outbox_max_id (``int``, *optional*):
|
|
478
|
+
Position up to which all outgoing messages are read.
|
|
479
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
480
|
+
|
|
481
|
+
is_ads_restricted (``bool``, *optional*):
|
|
482
|
+
True, if ads on this channel were restricted.
|
|
483
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
484
|
+
|
|
485
|
+
stats_dc_id (``int``, *optional*):
|
|
486
|
+
The DC ID where the stats are stored.
|
|
487
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
488
|
+
|
|
489
|
+
theme (:obj:`~pyrogram.types.ChatTheme`, *optional*):
|
|
490
|
+
Theme set for the chat.
|
|
491
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
492
|
+
|
|
493
|
+
unread_count (``int``, *optional*):
|
|
494
|
+
Number of unread messages in the chat.
|
|
495
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
496
|
+
|
|
497
|
+
view_forum_as_messages (``bool``, *optional*):
|
|
498
|
+
Users may also choose to display messages from all topics of a forum as if they were sent to a normal group,
|
|
499
|
+
using a "View as messages" setting in the local client.
|
|
500
|
+
This setting only affects the current account, and is synced to other logged in sessions using the channels.toggleViewForumAsMessages method.
|
|
501
|
+
Invoking this method will update the value of this flag.
|
|
502
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
503
|
+
|
|
504
|
+
paid_message_star_count (``int``, *optional*):
|
|
505
|
+
Number of Telegram Stars that must be paid by non-administrator users of the supergroup chat for each sent message.
|
|
506
|
+
|
|
507
|
+
is_paid_messages_available (``bool``, *optional*):
|
|
508
|
+
True, if paid messages are available in this chat.
|
|
509
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
510
|
+
|
|
511
|
+
display_gifts_button (``bool``, *optional*):
|
|
512
|
+
True, if the gift button should be shown in the message input field for both participants in all chats.
|
|
513
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
514
|
+
|
|
515
|
+
uses_unofficial_app (``bool``, *optional*):
|
|
516
|
+
True, if the user uses an unofficial application that poses a security risk.
|
|
517
|
+
|
|
518
|
+
accepted_gift_types (:obj:`~pyrogram.types.AcceptedGiftTypes`, *optional*):
|
|
519
|
+
Information about gifts that can be received by the user.
|
|
520
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
521
|
+
|
|
522
|
+
note (:obj:`~pyrogram.types.FormattedText`, *optional*):
|
|
523
|
+
Note added to the user's contact.
|
|
524
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
525
|
+
|
|
526
|
+
guard_bot (:obj:`~pyrogram.types.User`, *optional*):
|
|
527
|
+
The bot that processes join request queries in the chat.
|
|
528
|
+
The field is only available to chat administrators
|
|
529
|
+
Returned only in :meth:`~pyrogram.Client.get_chat`.
|
|
530
|
+
|
|
531
|
+
raw (:obj:`~pyrogram.raw.types.UserFull` | :obj:`~pyrogram.raw.types.ChatFull` | :obj:`~pyrogram.raw.types.ChannelFull`, *optional*):
|
|
532
|
+
The raw chat or user object, as received from the Telegram API.
|
|
533
|
+
|
|
534
|
+
full_name (``str``, *property*):
|
|
535
|
+
Full name of the other party in a private chat, for private chats and bots.
|
|
536
|
+
"""
|
|
537
|
+
def __init__(
|
|
538
|
+
self,
|
|
539
|
+
*,
|
|
540
|
+
client: "pyrogram.Client" = None,
|
|
541
|
+
id: Optional[int] = None,
|
|
542
|
+
type: Optional["enums.ChatType"] = None,
|
|
543
|
+
is_forum: Optional[bool] = None,
|
|
544
|
+
is_direct_messages: Optional[bool] = None,
|
|
545
|
+
is_min: Optional[bool] = None,
|
|
546
|
+
is_members_hidden: Optional[bool] = None,
|
|
547
|
+
is_restricted: Optional[bool] = None,
|
|
548
|
+
is_creator: Optional[bool] = None,
|
|
549
|
+
is_admin: Optional[bool] = None,
|
|
550
|
+
is_deactivated: Optional[bool] = None,
|
|
551
|
+
is_support: Optional[bool] = None,
|
|
552
|
+
is_stories_hidden: Optional[bool] = None,
|
|
553
|
+
is_stories_unavailable: Optional[bool] = None,
|
|
554
|
+
is_business_bot: Optional[bool] = None,
|
|
555
|
+
is_preview: Optional[bool] = None,
|
|
556
|
+
is_banned: Optional[bool] = None,
|
|
557
|
+
is_call_active: Optional[bool] = None,
|
|
558
|
+
is_call_not_empty: Optional[bool] = None,
|
|
559
|
+
is_public: Optional[bool] = None,
|
|
560
|
+
is_paid_reactions_available: Optional[bool] = None,
|
|
561
|
+
verification_status: Optional["types.VerificationStatus"] = None,
|
|
562
|
+
can_send_gift: Optional[bool] = None,
|
|
563
|
+
title: Optional[str] = None,
|
|
564
|
+
username: Optional[str] = None,
|
|
565
|
+
usernames: Optional[List["types.Username"]] = None,
|
|
566
|
+
first_name: Optional[str] = None,
|
|
567
|
+
last_name: Optional[str] = None,
|
|
568
|
+
personal_photo: Optional["types.ChatPhoto"] = None,
|
|
569
|
+
photo: Optional["types.ChatPhoto"] = None,
|
|
570
|
+
public_photo: Optional["types.ChatPhoto"] = None,
|
|
571
|
+
stories: Optional[List["types.Story"]] = None,
|
|
572
|
+
chat_background: Optional["types.ChatBackground"] = None,
|
|
573
|
+
bio: Optional[str] = None,
|
|
574
|
+
description: Optional[str] = None,
|
|
575
|
+
show_message_sender_name: Optional[bool] = None,
|
|
576
|
+
sign_messages: Optional[bool] = None,
|
|
577
|
+
dc_id: Optional[int] = None,
|
|
578
|
+
folder_id: Optional[int] = None,
|
|
579
|
+
has_protected_content: Optional[bool] = None,
|
|
580
|
+
has_visible_history: Optional[bool] = None,
|
|
581
|
+
has_aggressive_anti_spam_enabled: Optional[bool] = None,
|
|
582
|
+
has_automatic_translation: Optional[bool] = None,
|
|
583
|
+
has_forum_tabs: Optional[bool] = None,
|
|
584
|
+
has_direct_messages_group: Optional[bool] = None,
|
|
585
|
+
invite_link: Optional[str] = None,
|
|
586
|
+
pinned_message: Optional["types.Message"] = None,
|
|
587
|
+
sticker_set_name: Optional[str] = None,
|
|
588
|
+
custom_emoji_sticker_set_name: Optional[str] = None,
|
|
589
|
+
can_set_sticker_set: Optional[bool] = None,
|
|
590
|
+
can_send_paid_media: Optional[bool] = None,
|
|
591
|
+
members: Optional[List["types.User"]] = None,
|
|
592
|
+
members_count: Optional[int] = None,
|
|
593
|
+
restrictions: Optional[List["types.Restriction"]] = None,
|
|
594
|
+
permissions: Optional["types.ChatPermissions"] = None,
|
|
595
|
+
personal_channel: Optional["types.Chat"] = None,
|
|
596
|
+
personal_channel_message: Optional["types.Message"] = None,
|
|
597
|
+
linked_chat_id: Optional[int] = None,
|
|
598
|
+
direct_messages_chat_id: Optional[int] = None,
|
|
599
|
+
parent_chat: Optional["types.Chat"] = None,
|
|
600
|
+
linked_chat: Optional["types.Chat"] = None,
|
|
601
|
+
send_as_chat: Optional["types.Chat"] = None,
|
|
602
|
+
available_reactions: Optional["types.ChatReactions"] = None,
|
|
603
|
+
level: Optional[int] = None,
|
|
604
|
+
reply_color: Optional["types.ChatColor"] = None,
|
|
605
|
+
profile_color: Optional["types.ChatColor"] = None,
|
|
606
|
+
business_away_message: Optional["types.BusinessMessage"] = None,
|
|
607
|
+
business_greeting_message: Optional["types.BusinessMessage"] = None,
|
|
608
|
+
business_work_hours: Optional["types.BusinessMessage"] = None,
|
|
609
|
+
business_location: Optional["types.Location"] = None,
|
|
610
|
+
business_intro: Optional["types.BusinessIntro"] = None,
|
|
611
|
+
birthday: Optional["types.Birthday"] = None,
|
|
612
|
+
message_auto_delete_time: Optional[int] = None,
|
|
613
|
+
unrestrict_boost_count: Optional[int] = None,
|
|
614
|
+
slow_mode_delay: Optional[int] = None,
|
|
615
|
+
slowmode_next_send_date: Optional[datetime] = None,
|
|
616
|
+
join_by_request: Optional[bool] = None,
|
|
617
|
+
join_requests_count: Optional[int] = None,
|
|
618
|
+
banned_until_date: Optional[datetime] = None,
|
|
619
|
+
subscription_until_date: Optional[datetime] = None,
|
|
620
|
+
reactions_limit: Optional[int] = None,
|
|
621
|
+
gift_count: Optional[int] = None,
|
|
622
|
+
bot_verification: Optional["types.BotVerification"] = None,
|
|
623
|
+
main_profile_tab: Optional["enums.ProfileTab"] = None,
|
|
624
|
+
first_profile_audio: Optional["types.Audio"] = None,
|
|
625
|
+
rating: Optional["types.UserRating"] = None,
|
|
626
|
+
pending_rating: Optional["types.UserRating"] = None,
|
|
627
|
+
pending_rating_date: Optional[datetime] = None,
|
|
628
|
+
settings: Optional["types.ChatSettings"] = None,
|
|
629
|
+
admins_count: Optional[int] = None,
|
|
630
|
+
kicked_count: Optional[int] = None,
|
|
631
|
+
banned_count: Optional[int] = None,
|
|
632
|
+
available_min_id: Optional[int] = None,
|
|
633
|
+
boosts_applied: Optional[int] = None,
|
|
634
|
+
channel_admin_rights: Optional["types.ChatAdministratorRights"] = None,
|
|
635
|
+
chat_admin_rights: Optional["types.ChatAdministratorRights"] = None,
|
|
636
|
+
bot_can_manage_emoji_status: Optional[bool] = None,
|
|
637
|
+
can_delete_channel: Optional[bool] = None,
|
|
638
|
+
can_pin_message: Optional[bool] = None,
|
|
639
|
+
can_schedule_messages: Optional[bool] = None,
|
|
640
|
+
can_set_location: Optional[bool] = None,
|
|
641
|
+
can_set_username: Optional[bool] = None,
|
|
642
|
+
can_view_participants: Optional[bool] = None,
|
|
643
|
+
can_view_revenue: Optional[bool] = None,
|
|
644
|
+
can_view_stars_revenue: Optional[bool] = None,
|
|
645
|
+
can_view_stats: Optional[bool] = None,
|
|
646
|
+
can_send_voice_messages: Optional[bool] = None,
|
|
647
|
+
can_manage_bots: Optional[bool] = None,
|
|
648
|
+
common_chats: Optional[int] = None,
|
|
649
|
+
is_ads_enabled: Optional[bool] = None,
|
|
650
|
+
is_blocked: Optional[bool] = None,
|
|
651
|
+
is_blocked_my_stories_from: Optional[bool] = None,
|
|
652
|
+
is_contact_require_premium: Optional[bool] = None,
|
|
653
|
+
is_phone_calls_available: Optional[bool] = None,
|
|
654
|
+
is_phone_calls_private: Optional[bool] = None,
|
|
655
|
+
is_pinned_stories_available: Optional[bool] = None,
|
|
656
|
+
is_read_dates_available: Optional[bool] = None,
|
|
657
|
+
is_translations_disabled: Optional[bool] = None,
|
|
658
|
+
is_video_calls_available: Optional[bool] = None,
|
|
659
|
+
is_wallpaper_overridden: Optional[bool] = None,
|
|
660
|
+
migrated_from_chat_id: Optional[int] = None,
|
|
661
|
+
migrated_from_max_message_id: Optional[int] = None,
|
|
662
|
+
online_count: Optional[int] = None,
|
|
663
|
+
private_forward_name: Optional[str] = None,
|
|
664
|
+
read_inbox_max_id: Optional[int] = None,
|
|
665
|
+
read_outbox_max_id: Optional[int] = None,
|
|
666
|
+
is_ads_restricted: Optional[bool] = None,
|
|
667
|
+
stats_dc_id: Optional[int] = None,
|
|
668
|
+
theme: Optional[str] = None,
|
|
669
|
+
unread_count: Optional[int] = None,
|
|
670
|
+
view_forum_as_messages: Optional[bool] = None,
|
|
671
|
+
paid_message_star_count: Optional[int] = None,
|
|
672
|
+
is_paid_messages_available: Optional[bool] = None,
|
|
673
|
+
display_gifts_button: Optional[bool] = None,
|
|
674
|
+
uses_unofficial_app: Optional[bool] = None,
|
|
675
|
+
accepted_gift_types: Optional["types.AcceptedGiftTypes"] = None,
|
|
676
|
+
note: Optional["types.FormattedText"] = None,
|
|
677
|
+
guard_bot: Optional["types.User"] = None,
|
|
678
|
+
raw: Optional[Union["raw.types.UserFull", "raw.types.ChatFull", "raw.types.ChannelFull"]] = None
|
|
679
|
+
):
|
|
680
|
+
super().__init__(client)
|
|
681
|
+
|
|
682
|
+
self.id = id
|
|
683
|
+
self.type = type
|
|
684
|
+
self.is_forum = is_forum
|
|
685
|
+
self.is_direct_messages = is_direct_messages
|
|
686
|
+
self.is_min = is_min
|
|
687
|
+
self.is_members_hidden = is_members_hidden
|
|
688
|
+
self.is_restricted = is_restricted
|
|
689
|
+
self.is_creator = is_creator
|
|
690
|
+
self.is_admin = is_admin
|
|
691
|
+
self.is_deactivated = is_deactivated
|
|
692
|
+
self.is_support = is_support
|
|
693
|
+
self.is_stories_hidden = is_stories_hidden
|
|
694
|
+
self.is_stories_unavailable = is_stories_unavailable
|
|
695
|
+
self.is_business_bot = is_business_bot
|
|
696
|
+
self.is_preview = is_preview
|
|
697
|
+
self.is_banned = is_banned
|
|
698
|
+
self.is_call_active = is_call_active
|
|
699
|
+
self.is_call_not_empty = is_call_not_empty
|
|
700
|
+
self.is_public = is_public
|
|
701
|
+
self.is_paid_reactions_available = is_paid_reactions_available
|
|
702
|
+
self.verification_status = verification_status
|
|
703
|
+
self.can_send_gift = can_send_gift
|
|
704
|
+
self.title = title
|
|
705
|
+
self.username = username
|
|
706
|
+
self.usernames = usernames
|
|
707
|
+
self.first_name = first_name
|
|
708
|
+
self.last_name = last_name
|
|
709
|
+
self.personal_photo = personal_photo
|
|
710
|
+
self.photo = photo
|
|
711
|
+
self.public_photo = public_photo
|
|
712
|
+
self.stories = stories
|
|
713
|
+
self.chat_background = chat_background
|
|
714
|
+
self.bio = bio
|
|
715
|
+
self.description = description
|
|
716
|
+
self.show_message_sender_name = show_message_sender_name
|
|
717
|
+
self.sign_messages = sign_messages
|
|
718
|
+
self.dc_id = dc_id
|
|
719
|
+
self.folder_id = folder_id
|
|
720
|
+
self.has_protected_content = has_protected_content
|
|
721
|
+
self.has_visible_history = has_visible_history
|
|
722
|
+
self.has_aggressive_anti_spam_enabled = has_aggressive_anti_spam_enabled
|
|
723
|
+
self.has_automatic_translation = has_automatic_translation
|
|
724
|
+
self.has_forum_tabs = has_forum_tabs
|
|
725
|
+
self.has_direct_messages_group = has_direct_messages_group
|
|
726
|
+
self.invite_link = invite_link
|
|
727
|
+
self.pinned_message = pinned_message
|
|
728
|
+
self.sticker_set_name = sticker_set_name
|
|
729
|
+
self.custom_emoji_sticker_set_name = custom_emoji_sticker_set_name
|
|
730
|
+
self.can_set_sticker_set = can_set_sticker_set
|
|
731
|
+
self.can_send_paid_media = can_send_paid_media
|
|
732
|
+
self.members = members
|
|
733
|
+
self.members_count = members_count
|
|
734
|
+
self.restrictions = restrictions
|
|
735
|
+
self.permissions = permissions
|
|
736
|
+
self.personal_channel = personal_channel
|
|
737
|
+
self.personal_channel_message = personal_channel_message
|
|
738
|
+
self.linked_chat_id = linked_chat_id
|
|
739
|
+
self.direct_messages_chat_id = direct_messages_chat_id
|
|
740
|
+
self.parent_chat = parent_chat
|
|
741
|
+
self.linked_chat = linked_chat
|
|
742
|
+
self.send_as_chat = send_as_chat
|
|
743
|
+
self.available_reactions = available_reactions
|
|
744
|
+
self.level = level
|
|
745
|
+
self.reply_color = reply_color
|
|
746
|
+
self.profile_color = profile_color
|
|
747
|
+
self.business_away_message = business_away_message
|
|
748
|
+
self.business_greeting_message = business_greeting_message
|
|
749
|
+
self.business_work_hours = business_work_hours
|
|
750
|
+
self.business_location = business_location
|
|
751
|
+
self.business_intro = business_intro
|
|
752
|
+
self.birthday = birthday
|
|
753
|
+
self.message_auto_delete_time = message_auto_delete_time
|
|
754
|
+
self.unrestrict_boost_count = unrestrict_boost_count
|
|
755
|
+
self.slow_mode_delay = slow_mode_delay
|
|
756
|
+
self.slowmode_next_send_date = slowmode_next_send_date
|
|
757
|
+
self.join_by_request = join_by_request
|
|
758
|
+
self.join_requests_count = join_requests_count
|
|
759
|
+
self.banned_until_date = banned_until_date
|
|
760
|
+
self.subscription_until_date = subscription_until_date
|
|
761
|
+
self.reactions_limit = reactions_limit
|
|
762
|
+
self.gift_count = gift_count
|
|
763
|
+
self.bot_verification = bot_verification
|
|
764
|
+
self.main_profile_tab = main_profile_tab
|
|
765
|
+
self.first_profile_audio = first_profile_audio
|
|
766
|
+
self.rating = rating
|
|
767
|
+
self.pending_rating = pending_rating
|
|
768
|
+
self.pending_rating_date = pending_rating_date
|
|
769
|
+
self.settings = settings
|
|
770
|
+
self.admins_count = admins_count
|
|
771
|
+
self.kicked_count = kicked_count
|
|
772
|
+
self.banned_count = banned_count
|
|
773
|
+
self.available_min_id = available_min_id
|
|
774
|
+
self.boosts_applied = boosts_applied
|
|
775
|
+
self.channel_admin_rights = channel_admin_rights
|
|
776
|
+
self.chat_admin_rights = chat_admin_rights
|
|
777
|
+
self.bot_can_manage_emoji_status = bot_can_manage_emoji_status
|
|
778
|
+
self.can_delete_channel = can_delete_channel
|
|
779
|
+
self.can_pin_message = can_pin_message
|
|
780
|
+
self.can_schedule_messages = can_schedule_messages
|
|
781
|
+
self.can_set_location = can_set_location
|
|
782
|
+
self.can_set_username = can_set_username
|
|
783
|
+
self.can_view_participants = can_view_participants
|
|
784
|
+
self.can_view_revenue = can_view_revenue
|
|
785
|
+
self.can_view_stars_revenue = can_view_stars_revenue
|
|
786
|
+
self.can_view_stats = can_view_stats
|
|
787
|
+
self.can_send_voice_messages = can_send_voice_messages
|
|
788
|
+
self.can_manage_bots = can_manage_bots
|
|
789
|
+
self.common_chats = common_chats
|
|
790
|
+
self.is_ads_enabled = is_ads_enabled
|
|
791
|
+
self.is_blocked = is_blocked
|
|
792
|
+
self.is_blocked_my_stories_from = is_blocked_my_stories_from
|
|
793
|
+
self.is_contact_require_premium = is_contact_require_premium
|
|
794
|
+
self.is_phone_calls_available = is_phone_calls_available
|
|
795
|
+
self.is_phone_calls_private = is_phone_calls_private
|
|
796
|
+
self.is_pinned_stories_available = is_pinned_stories_available
|
|
797
|
+
self.is_read_dates_available = is_read_dates_available
|
|
798
|
+
self.is_translations_disabled = is_translations_disabled
|
|
799
|
+
self.is_video_calls_available = is_video_calls_available
|
|
800
|
+
self.is_wallpaper_overridden = is_wallpaper_overridden
|
|
801
|
+
self.migrated_from_chat_id = migrated_from_chat_id
|
|
802
|
+
self.migrated_from_max_message_id = migrated_from_max_message_id
|
|
803
|
+
self.online_count = online_count
|
|
804
|
+
self.private_forward_name = private_forward_name
|
|
805
|
+
self.read_inbox_max_id = read_inbox_max_id
|
|
806
|
+
self.read_outbox_max_id = read_outbox_max_id
|
|
807
|
+
self.is_ads_restricted = is_ads_restricted
|
|
808
|
+
self.stats_dc_id = stats_dc_id
|
|
809
|
+
self.theme = theme
|
|
810
|
+
self.unread_count = unread_count
|
|
811
|
+
self.view_forum_as_messages = view_forum_as_messages
|
|
812
|
+
self.paid_message_star_count = paid_message_star_count
|
|
813
|
+
self.is_paid_messages_available = is_paid_messages_available
|
|
814
|
+
self.display_gifts_button = display_gifts_button
|
|
815
|
+
self.uses_unofficial_app = uses_unofficial_app
|
|
816
|
+
self.accepted_gift_types = accepted_gift_types
|
|
817
|
+
self.note = note
|
|
818
|
+
self.guard_bot = guard_bot
|
|
819
|
+
self.raw = raw
|
|
820
|
+
|
|
821
|
+
# region Deprecated
|
|
822
|
+
# TODO: Remove later
|
|
823
|
+
|
|
824
|
+
@property
|
|
825
|
+
def is_verified(self) -> Optional[bool]:
|
|
826
|
+
log.warning(
|
|
827
|
+
"`chat.is_verified` is deprecated and will be removed in future updates. Use `chat.verification_status.is_verified` instead."
|
|
828
|
+
)
|
|
829
|
+
return getattr(self.verification_status, "is_verified", None)
|
|
830
|
+
|
|
831
|
+
@property
|
|
832
|
+
def is_scam(self) -> Optional[bool]:
|
|
833
|
+
log.warning(
|
|
834
|
+
"`chat.is_scam` is deprecated and will be removed in future updates. Use `chat.verification_status.is_scam` instead."
|
|
835
|
+
)
|
|
836
|
+
return getattr(self.verification_status, "is_scam", None)
|
|
837
|
+
|
|
838
|
+
@property
|
|
839
|
+
def is_fake(self) -> Optional[bool]:
|
|
840
|
+
log.warning(
|
|
841
|
+
"`chat.is_fake` is deprecated and will be removed in future updates. Use `chat.verification_status.is_fake` instead."
|
|
842
|
+
)
|
|
843
|
+
return getattr(self.verification_status, "is_fake", None)
|
|
844
|
+
|
|
845
|
+
# endregion
|
|
846
|
+
|
|
847
|
+
@staticmethod
|
|
848
|
+
def _parse_user_chat(client, user: "raw.types.User") -> Optional["Chat"]:
|
|
849
|
+
if user is None or isinstance(user, raw.types.UserEmpty):
|
|
850
|
+
return None
|
|
851
|
+
|
|
852
|
+
peer_id = user.id
|
|
853
|
+
|
|
854
|
+
return Chat(
|
|
855
|
+
id=peer_id,
|
|
856
|
+
type=enums.ChatType.BOT if user.bot else enums.ChatType.PRIVATE,
|
|
857
|
+
is_restricted=user.restricted,
|
|
858
|
+
is_support=user.support,
|
|
859
|
+
is_stories_hidden=user.stories_hidden,
|
|
860
|
+
is_stories_unavailable=user.stories_unavailable,
|
|
861
|
+
is_business_bot=user.bot_business,
|
|
862
|
+
verification_status=types.VerificationStatus._parse(user),
|
|
863
|
+
username=user.username or (user.usernames[0].username if user.usernames else None),
|
|
864
|
+
usernames=types.List([types.Username._parse(r) for r in user.usernames]) or None,
|
|
865
|
+
first_name=user.first_name,
|
|
866
|
+
last_name=user.last_name,
|
|
867
|
+
photo=types.ChatPhoto._parse(client, user.photo, peer_id, user.access_hash),
|
|
868
|
+
restrictions=types.List([types.Restriction._parse(r) for r in user.restriction_reason]) or None,
|
|
869
|
+
dc_id=getattr(getattr(user, "photo", None), "dc_id", None),
|
|
870
|
+
reply_color=types.ChatColor._parse(user.color),
|
|
871
|
+
profile_color=types.ChatColor._parse_profile_color(user.profile_color),
|
|
872
|
+
paid_message_star_count=user.send_paid_messages_stars,
|
|
873
|
+
can_manage_bots=user.bot_can_manage_bots,
|
|
874
|
+
raw=user,
|
|
875
|
+
client=client
|
|
876
|
+
)
|
|
877
|
+
|
|
878
|
+
@staticmethod
|
|
879
|
+
def _parse_chat_chat(client, chat: "raw.types.Chat") -> Optional["Chat"]:
|
|
880
|
+
if chat is None or isinstance(chat, raw.types.ChatEmpty):
|
|
881
|
+
return None
|
|
882
|
+
|
|
883
|
+
peer_id = -chat.id
|
|
884
|
+
usernames = getattr(chat, "usernames", [])
|
|
885
|
+
|
|
886
|
+
if isinstance(chat, raw.types.ChatForbidden):
|
|
887
|
+
return Chat(
|
|
888
|
+
id=peer_id,
|
|
889
|
+
type=enums.ChatType.GROUP,
|
|
890
|
+
title=chat.title,
|
|
891
|
+
is_banned=True,
|
|
892
|
+
raw=chat,
|
|
893
|
+
client=client
|
|
894
|
+
)
|
|
895
|
+
|
|
896
|
+
return Chat(
|
|
897
|
+
id=peer_id,
|
|
898
|
+
type=enums.ChatType.GROUP,
|
|
899
|
+
title=chat.title,
|
|
900
|
+
is_creator=chat.creator,
|
|
901
|
+
is_admin=True if chat.admin_rights else None,
|
|
902
|
+
is_deactivated=chat.deactivated,
|
|
903
|
+
is_call_active=chat.call_active,
|
|
904
|
+
is_call_not_empty=chat.call_not_empty,
|
|
905
|
+
usernames=types.List([types.Username._parse(r) for r in usernames]) or None,
|
|
906
|
+
photo=types.ChatPhoto._parse(client, chat.photo, peer_id, 0),
|
|
907
|
+
permissions=types.ChatPermissions._parse(chat.default_banned_rights),
|
|
908
|
+
members_count=chat.participants_count,
|
|
909
|
+
dc_id=getattr(getattr(chat, "photo", None), "dc_id", None),
|
|
910
|
+
has_protected_content=chat.noforwards,
|
|
911
|
+
raw=chat,
|
|
912
|
+
client=client
|
|
913
|
+
)
|
|
914
|
+
|
|
915
|
+
@staticmethod
|
|
916
|
+
def _parse_channel_chat(client, channel: "raw.types.Channel") -> Optional["Chat"]:
|
|
917
|
+
if channel is None:
|
|
918
|
+
return None
|
|
919
|
+
|
|
920
|
+
peer_id = utils.get_channel_id(channel.id)
|
|
921
|
+
restriction_reason = getattr(channel, "restriction_reason", [])
|
|
922
|
+
usernames = getattr(channel, "usernames", [])
|
|
923
|
+
|
|
924
|
+
if isinstance(channel, raw.types.ChannelForbidden):
|
|
925
|
+
return Chat(
|
|
926
|
+
id=peer_id,
|
|
927
|
+
type=enums.ChatType.DIRECT if channel.monoforum else enums.ChatType.SUPERGROUP if channel.megagroup else enums.ChatType.CHANNEL,
|
|
928
|
+
title=channel.title,
|
|
929
|
+
is_banned=True,
|
|
930
|
+
banned_until_date=utils.timestamp_to_datetime(getattr(channel, "until_date", None)),
|
|
931
|
+
raw=channel,
|
|
932
|
+
client=client,
|
|
933
|
+
)
|
|
934
|
+
|
|
935
|
+
chat_type = enums.ChatType.CHANNEL
|
|
936
|
+
|
|
937
|
+
if channel.monoforum:
|
|
938
|
+
chat_type = enums.ChatType.DIRECT
|
|
939
|
+
elif channel.forum:
|
|
940
|
+
chat_type = enums.ChatType.FORUM
|
|
941
|
+
elif channel.megagroup:
|
|
942
|
+
chat_type = enums.ChatType.SUPERGROUP
|
|
943
|
+
|
|
944
|
+
return Chat(
|
|
945
|
+
id=peer_id,
|
|
946
|
+
type=chat_type,
|
|
947
|
+
is_forum=channel.forum,
|
|
948
|
+
is_direct_messages=channel.monoforum,
|
|
949
|
+
is_min=channel.min,
|
|
950
|
+
is_restricted=channel.restricted,
|
|
951
|
+
is_creator=channel.creator,
|
|
952
|
+
is_admin=True if channel.admin_rights else None,
|
|
953
|
+
is_stories_hidden=channel.stories_hidden,
|
|
954
|
+
is_stories_unavailable=channel.stories_unavailable,
|
|
955
|
+
is_call_active=channel.call_active,
|
|
956
|
+
is_call_not_empty=channel.call_not_empty,
|
|
957
|
+
verification_status=types.VerificationStatus._parse(channel),
|
|
958
|
+
title=channel.title,
|
|
959
|
+
username=channel.username or (channel.usernames[0].username if channel.usernames else None),
|
|
960
|
+
usernames=types.List([types.Username._parse(r) for r in usernames]) or None,
|
|
961
|
+
photo=types.ChatPhoto._parse(client, channel.photo, peer_id,
|
|
962
|
+
getattr(channel, "access_hash", 0)),
|
|
963
|
+
show_message_sender_name=channel.signature_profiles,
|
|
964
|
+
sign_messages=channel.signatures,
|
|
965
|
+
restrictions=types.List([types.Restriction._parse(r) for r in restriction_reason]) or None,
|
|
966
|
+
permissions=types.ChatPermissions._parse(channel.default_banned_rights),
|
|
967
|
+
members_count=channel.participants_count,
|
|
968
|
+
dc_id=getattr(getattr(channel, "photo", None), "dc_id", None),
|
|
969
|
+
has_protected_content=channel.noforwards,
|
|
970
|
+
level=channel.level,
|
|
971
|
+
reply_color=types.ChatColor._parse(channel.color),
|
|
972
|
+
profile_color=types.ChatColor._parse(channel.profile_color),
|
|
973
|
+
subscription_until_date=utils.timestamp_to_datetime(channel.subscription_until_date),
|
|
974
|
+
paid_message_star_count=channel.send_paid_messages_stars,
|
|
975
|
+
has_automatic_translation=channel.autotranslation,
|
|
976
|
+
has_forum_tabs=channel.forum_tabs,
|
|
977
|
+
has_direct_messages_group=channel.broadcast_messages_allowed,
|
|
978
|
+
raw=channel,
|
|
979
|
+
client=client
|
|
980
|
+
)
|
|
981
|
+
|
|
982
|
+
@staticmethod
|
|
983
|
+
def _parse(
|
|
984
|
+
client,
|
|
985
|
+
message: Union["raw.types.Message", "raw.types.MessageService"],
|
|
986
|
+
users: Dict[int, "raw.base.User"],
|
|
987
|
+
chats: Dict[int, "raw.base.Chat"],
|
|
988
|
+
is_chat: bool
|
|
989
|
+
) -> Optional["Chat"]:
|
|
990
|
+
from_id = utils.get_raw_peer_id(message.from_id)
|
|
991
|
+
peer_id = utils.get_raw_peer_id(message.peer_id)
|
|
992
|
+
chat_id = (peer_id or from_id) if is_chat else (from_id or peer_id)
|
|
993
|
+
|
|
994
|
+
if isinstance(message.peer_id, raw.types.PeerUser):
|
|
995
|
+
return Chat._parse_user_chat(client, users.get(chat_id))
|
|
996
|
+
elif isinstance(message.peer_id, raw.types.PeerChat):
|
|
997
|
+
return Chat._parse_chat_chat(client, chats.get(chat_id))
|
|
998
|
+
else:
|
|
999
|
+
return Chat._parse_channel_chat(client, chats.get(chat_id))
|
|
1000
|
+
|
|
1001
|
+
@staticmethod
|
|
1002
|
+
def _parse_dialog(client, peer, users: dict, chats: dict):
|
|
1003
|
+
if isinstance(peer, (raw.types.PeerUser, raw.types.InputPeerUser)):
|
|
1004
|
+
return Chat._parse_user_chat(client, users.get(peer.user_id))
|
|
1005
|
+
elif isinstance(peer, (raw.types.PeerChat, raw.types.InputPeerChat)):
|
|
1006
|
+
return Chat._parse_chat_chat(client, chats.get(peer.chat_id))
|
|
1007
|
+
else:
|
|
1008
|
+
return Chat._parse_channel_chat(client, chats.get(peer.channel_id))
|
|
1009
|
+
|
|
1010
|
+
@staticmethod
|
|
1011
|
+
async def _parse_full_user(
|
|
1012
|
+
client: "pyrogram.Client",
|
|
1013
|
+
user: "raw.types.UserFull",
|
|
1014
|
+
users: Dict[int, "raw.base.User"],
|
|
1015
|
+
chats: Dict[int, "raw.base.Chat"]
|
|
1016
|
+
) -> "Chat":
|
|
1017
|
+
parsed_chat = Chat._parse_user_chat(client, users[user.id])
|
|
1018
|
+
parsed_chat.raw = user
|
|
1019
|
+
|
|
1020
|
+
parsed_chat.settings = types.ChatSettings._parse(client, user.settings, users)
|
|
1021
|
+
# parsed_chat.notify_settings
|
|
1022
|
+
parsed_chat.common_chats = user.common_chats_count
|
|
1023
|
+
parsed_chat.is_blocked = user.blocked
|
|
1024
|
+
parsed_chat.is_phone_calls_available = user.phone_calls_available
|
|
1025
|
+
parsed_chat.is_phone_calls_private = user.phone_calls_private
|
|
1026
|
+
parsed_chat.can_pin_message = user.can_pin_message
|
|
1027
|
+
parsed_chat.can_schedule_messages = user.has_scheduled
|
|
1028
|
+
parsed_chat.is_video_calls_available = user.video_calls_available
|
|
1029
|
+
parsed_chat.can_send_voice_messages = not user.voice_messages_forbidden
|
|
1030
|
+
parsed_chat.is_translations_disabled = user.translations_disabled
|
|
1031
|
+
parsed_chat.is_pinned_stories_available = user.stories_pinned_available
|
|
1032
|
+
parsed_chat.is_blocked_my_stories_from = user.blocked_my_stories_from
|
|
1033
|
+
parsed_chat.is_wallpaper_overridden = user.wallpaper_overridden
|
|
1034
|
+
parsed_chat.is_contact_require_premium = user.contact_require_premium
|
|
1035
|
+
parsed_chat.is_read_dates_available = not user.read_dates_private
|
|
1036
|
+
parsed_chat.is_ads_enabled = user.sponsored_enabled
|
|
1037
|
+
parsed_chat.can_view_revenue = user.can_view_revenue
|
|
1038
|
+
parsed_chat.bot_can_manage_emoji_status = user.bot_can_manage_emoji_status
|
|
1039
|
+
parsed_chat.bio = user.about or None
|
|
1040
|
+
parsed_chat.personal_photo = types.ChatPhoto._parse(client, user.personal_photo, users[user.id].id, users[user.id].access_hash)
|
|
1041
|
+
# parsed_chat.photo = types.ChatPhoto._parse(client, user.profile_photo, users[user.id].id, users[user.id].access_hash)
|
|
1042
|
+
parsed_chat.public_photo = types.ChatPhoto._parse(client, user.fallback_photo, users[user.id].id, users[user.id].access_hash)
|
|
1043
|
+
# parsed_chat.bot_info = user.bot_info
|
|
1044
|
+
|
|
1045
|
+
if user.pinned_msg_id:
|
|
1046
|
+
parsed_chat.pinned_message = await client.get_messages(chat_id=parsed_chat.id, pinned=True)
|
|
1047
|
+
|
|
1048
|
+
parsed_chat.folder_id = user.folder_id
|
|
1049
|
+
parsed_chat.message_auto_delete_time = user.ttl_period
|
|
1050
|
+
parsed_chat.theme = await types.ChatTheme._parse(client, user.theme)
|
|
1051
|
+
parsed_chat.private_forward_name = user.private_forward_name
|
|
1052
|
+
parsed_chat.chat_admin_rights = types.ChatAdministratorRights._parse(user.bot_group_admin_rights)
|
|
1053
|
+
parsed_chat.channel_admin_rights = types.ChatAdministratorRights._parse(user.bot_broadcast_admin_rights)
|
|
1054
|
+
parsed_chat.chat_background = types.ChatBackground._parse(client, user.wallpaper)
|
|
1055
|
+
|
|
1056
|
+
if user.stories:
|
|
1057
|
+
parsed_chat.stories = types.List(
|
|
1058
|
+
[
|
|
1059
|
+
await types.Story._parse(
|
|
1060
|
+
client, story, user.stories.peer, users, chats
|
|
1061
|
+
)
|
|
1062
|
+
for story in user.stories.stories
|
|
1063
|
+
]
|
|
1064
|
+
) or None
|
|
1065
|
+
|
|
1066
|
+
parsed_chat.business_work_hours = types.BusinessWorkingHours._parse(user.business_work_hours)
|
|
1067
|
+
parsed_chat.business_location = types.Location._parse_business(user.business_location)
|
|
1068
|
+
parsed_chat.business_greeting_message = types.BusinessMessage._parse(client, user.business_greeting_message, users)
|
|
1069
|
+
parsed_chat.business_away_message = types.BusinessMessage._parse(client, user.business_away_message, users)
|
|
1070
|
+
parsed_chat.business_intro = await types.BusinessIntro._parse(client, user.business_intro)
|
|
1071
|
+
parsed_chat.birthday = types.Birthday._parse(user.birthday)
|
|
1072
|
+
|
|
1073
|
+
if user.personal_channel_id:
|
|
1074
|
+
parsed_chat.personal_channel = Chat._parse_channel_chat(client, chats[user.personal_channel_id])
|
|
1075
|
+
parsed_chat.personal_channel_message = await client.get_messages(
|
|
1076
|
+
chat_id=parsed_chat.personal_channel.id,
|
|
1077
|
+
message_ids=user.personal_channel_message
|
|
1078
|
+
)
|
|
1079
|
+
|
|
1080
|
+
parsed_chat.gift_count = user.stargifts_count
|
|
1081
|
+
# parsed_chat.starref_program
|
|
1082
|
+
parsed_chat.bot_verification = types.BotVerification._parse(
|
|
1083
|
+
client,
|
|
1084
|
+
user.bot_verification,
|
|
1085
|
+
users
|
|
1086
|
+
)
|
|
1087
|
+
parsed_chat.main_profile_tab = enums.ProfileTab(type(user.main_tab)) if user.main_tab else None
|
|
1088
|
+
|
|
1089
|
+
if user.saved_music:
|
|
1090
|
+
attributes = {type(i): i for i in user.saved_music.attributes}
|
|
1091
|
+
|
|
1092
|
+
if raw.types.DocumentAttributeAudio in attributes:
|
|
1093
|
+
parsed_chat.first_profile_audio = types.Audio._parse(
|
|
1094
|
+
client,
|
|
1095
|
+
user.saved_music,
|
|
1096
|
+
attributes[raw.types.DocumentAttributeAudio],
|
|
1097
|
+
getattr(
|
|
1098
|
+
attributes.get(raw.types.DocumentAttributeFilename, None),
|
|
1099
|
+
"file_name",
|
|
1100
|
+
None,
|
|
1101
|
+
),
|
|
1102
|
+
)
|
|
1103
|
+
|
|
1104
|
+
parsed_chat.rating = types.UserRating._parse(user.stars_rating)
|
|
1105
|
+
parsed_chat.pending_rating = types.UserRating._parse(user.stars_my_pending_rating)
|
|
1106
|
+
parsed_chat.pending_rating_date = utils.timestamp_to_datetime(user.stars_my_pending_rating_date)
|
|
1107
|
+
parsed_chat.paid_message_star_count = user.send_paid_messages_stars
|
|
1108
|
+
parsed_chat.display_gifts_button = user.display_gifts_button
|
|
1109
|
+
parsed_chat.uses_unofficial_app = user.unofficial_security_risk
|
|
1110
|
+
parsed_chat.accepted_gift_types = types.AcceptedGiftTypes._parse(user.disallowed_gifts)
|
|
1111
|
+
parsed_chat.note = types.FormattedText._parse(client, user.note)
|
|
1112
|
+
|
|
1113
|
+
return parsed_chat
|
|
1114
|
+
|
|
1115
|
+
@staticmethod
|
|
1116
|
+
async def _parse_full_chat(
|
|
1117
|
+
client: "pyrogram.Client",
|
|
1118
|
+
chat: "raw.types.ChatFull",
|
|
1119
|
+
users: Dict[int, "raw.base.User"],
|
|
1120
|
+
chats: Dict[int, "raw.base.Chat"]
|
|
1121
|
+
) -> "Chat":
|
|
1122
|
+
parsed_chat = Chat._parse_chat_chat(client, chats[chat.id])
|
|
1123
|
+
parsed_chat.raw = chat
|
|
1124
|
+
|
|
1125
|
+
parsed_chat.description = chat.about or None
|
|
1126
|
+
|
|
1127
|
+
if isinstance(chat.participants, raw.types.ChatParticipants):
|
|
1128
|
+
parsed_chat.members_count = len(chat.participants.participants)
|
|
1129
|
+
|
|
1130
|
+
# parsed_chat.notify_settings
|
|
1131
|
+
parsed_chat.can_set_username = chat.can_set_username
|
|
1132
|
+
parsed_chat.can_schedule_messages = chat.has_scheduled
|
|
1133
|
+
parsed_chat.is_translations_disabled = chat.translations_disabled
|
|
1134
|
+
|
|
1135
|
+
if isinstance(chat.exported_invite, raw.types.ChatInviteExported):
|
|
1136
|
+
parsed_chat.invite_link = chat.exported_invite.link
|
|
1137
|
+
|
|
1138
|
+
# parsed_chat.bot_info
|
|
1139
|
+
|
|
1140
|
+
if chat.pinned_msg_id:
|
|
1141
|
+
parsed_chat.pinned_message = await client.get_messages(chat_id=parsed_chat.id, pinned=True)
|
|
1142
|
+
|
|
1143
|
+
parsed_chat.folder_id = chat.folder_id
|
|
1144
|
+
# parsed_chat.call
|
|
1145
|
+
parsed_chat.message_auto_delete_time = chat.ttl_period
|
|
1146
|
+
# parsed_chat.groupcall_default_join_as
|
|
1147
|
+
parsed_chat.theme = chat.theme_emoticon
|
|
1148
|
+
parsed_chat.join_requests_count = chat.requests_pending
|
|
1149
|
+
# parsed_chat.recent_requesters
|
|
1150
|
+
parsed_chat.available_reactions = types.ChatReactions._parse(client, chat.available_reactions)
|
|
1151
|
+
parsed_chat.reactions_limit = chat.reactions_limit
|
|
1152
|
+
|
|
1153
|
+
return parsed_chat
|
|
1154
|
+
|
|
1155
|
+
@staticmethod
|
|
1156
|
+
async def _parse_full_channel(
|
|
1157
|
+
client: "pyrogram.Client",
|
|
1158
|
+
channel: "raw.types.ChannelFull",
|
|
1159
|
+
users: Dict[int, "raw.base.User"],
|
|
1160
|
+
chats: Dict[int, "raw.base.Chat"]
|
|
1161
|
+
) -> "Chat":
|
|
1162
|
+
parsed_chat = Chat._parse_channel_chat(client, chats[channel.id])
|
|
1163
|
+
parsed_chat.raw = channel
|
|
1164
|
+
|
|
1165
|
+
parsed_chat.description = channel.about or None
|
|
1166
|
+
parsed_chat.read_inbox_max_id = channel.read_inbox_max_id
|
|
1167
|
+
parsed_chat.read_outbox_max_id = channel.read_outbox_max_id
|
|
1168
|
+
parsed_chat.unread_count = channel.unread_count
|
|
1169
|
+
# parsed_chat.chat_photo
|
|
1170
|
+
# parsed_chat.notify_settings
|
|
1171
|
+
# parsed_chat.bot_info
|
|
1172
|
+
# parsed_chat.pts
|
|
1173
|
+
parsed_chat.can_view_participants = channel.can_view_participants
|
|
1174
|
+
parsed_chat.can_set_username = channel.can_set_username
|
|
1175
|
+
parsed_chat.can_set_sticker_set = channel.can_set_stickers
|
|
1176
|
+
parsed_chat.has_visible_history = channel.hidden_prehistory
|
|
1177
|
+
parsed_chat.can_set_location = channel.can_set_location
|
|
1178
|
+
parsed_chat.can_schedule_messages = channel.has_scheduled
|
|
1179
|
+
parsed_chat.can_view_stats = channel.can_view_stats
|
|
1180
|
+
parsed_chat.is_blocked = channel.blocked
|
|
1181
|
+
parsed_chat.can_delete_channel = channel.can_delete_channel
|
|
1182
|
+
parsed_chat.has_aggressive_anti_spam_enabled = channel.antispam
|
|
1183
|
+
parsed_chat.is_members_hidden = channel.participants_hidden
|
|
1184
|
+
parsed_chat.is_translations_disabled = channel.translations_disabled
|
|
1185
|
+
parsed_chat.is_pinned_stories_available = channel.stories_pinned_available
|
|
1186
|
+
parsed_chat.view_forum_as_messages = channel.view_forum_as_messages
|
|
1187
|
+
parsed_chat.is_ads_restricted = channel.restricted_sponsored
|
|
1188
|
+
parsed_chat.can_view_revenue = channel.can_view_revenue
|
|
1189
|
+
parsed_chat.can_send_paid_media = channel.paid_media_allowed
|
|
1190
|
+
parsed_chat.can_view_stars_revenue = channel.can_view_stars_revenue
|
|
1191
|
+
parsed_chat.is_paid_reactions_available = channel.paid_messages_available
|
|
1192
|
+
parsed_chat.can_send_gift = channel.stargifts_available
|
|
1193
|
+
parsed_chat.members_count = channel.participants_count
|
|
1194
|
+
parsed_chat.admins_count = channel.admins_count
|
|
1195
|
+
parsed_chat.kicked_count = channel.kicked_count
|
|
1196
|
+
parsed_chat.banned_count = channel.banned_count
|
|
1197
|
+
parsed_chat.online_count = channel.online_count
|
|
1198
|
+
|
|
1199
|
+
if isinstance(channel.exported_invite, raw.types.ChatInviteExported):
|
|
1200
|
+
parsed_chat.invite_link = channel.exported_invite.link
|
|
1201
|
+
|
|
1202
|
+
parsed_chat.migrated_from_chat_id = channel.migrated_from_chat_id
|
|
1203
|
+
parsed_chat.migrated_from_max_id = channel.migrated_from_max_id
|
|
1204
|
+
|
|
1205
|
+
if channel.pinned_msg_id:
|
|
1206
|
+
parsed_chat.pinned_message = await client.get_messages(chat_id=parsed_chat.id, pinned=True)
|
|
1207
|
+
|
|
1208
|
+
# parsed_chat.stickerset
|
|
1209
|
+
parsed_chat.available_min_id = channel.available_min_id
|
|
1210
|
+
parsed_chat.folder_id = channel.folder_id
|
|
1211
|
+
|
|
1212
|
+
if chats.get(channel.linked_chat_id):
|
|
1213
|
+
parsed_chat.linked_chat_id = utils.get_channel_id(channel.linked_chat_id)
|
|
1214
|
+
parsed_chat.linked_chat = Chat._parse_channel_chat(client, chats[channel.linked_chat_id])
|
|
1215
|
+
|
|
1216
|
+
if chats.get(chats[channel.id].linked_monoforum_id):
|
|
1217
|
+
parsed_chat.direct_messages_chat_id = utils.get_channel_id(chats[channel.id].linked_monoforum_id)
|
|
1218
|
+
parsed_chat.parent_chat = Chat._parse_channel_chat(client, chats[chats[channel.id].linked_monoforum_id])
|
|
1219
|
+
|
|
1220
|
+
# parsed_chat.location
|
|
1221
|
+
parsed_chat.slow_mode_delay = channel.slowmode_seconds
|
|
1222
|
+
parsed_chat.slowmode_next_send_date = utils.timestamp_to_datetime(
|
|
1223
|
+
channel.slowmode_next_send_date
|
|
1224
|
+
)
|
|
1225
|
+
parsed_chat.stats_dc_id = channel.stats_dc
|
|
1226
|
+
# parsed_chat.call
|
|
1227
|
+
parsed_chat.message_auto_delete_time = channel.ttl_period
|
|
1228
|
+
# parsed_chat.pending_suggestions
|
|
1229
|
+
# parsed_chat.groupcall_default_join_as
|
|
1230
|
+
parsed_chat.theme = channel.theme_emoticon
|
|
1231
|
+
parsed_chat.join_requests_count = channel.requests_pending
|
|
1232
|
+
# parsed_chat.recent_requesters
|
|
1233
|
+
|
|
1234
|
+
if channel.default_send_as:
|
|
1235
|
+
if isinstance(channel.default_send_as, raw.types.PeerUser):
|
|
1236
|
+
send_as_raw = users[channel.default_send_as.user_id]
|
|
1237
|
+
else:
|
|
1238
|
+
send_as_raw = chats[channel.default_send_as.channel_id]
|
|
1239
|
+
|
|
1240
|
+
parsed_chat.send_as_chat = Chat._parse_chat(client, send_as_raw)
|
|
1241
|
+
|
|
1242
|
+
parsed_chat.available_reactions = types.ChatReactions._parse(client, channel.available_reactions)
|
|
1243
|
+
parsed_chat.reactions_limit = channel.reactions_limit
|
|
1244
|
+
|
|
1245
|
+
if channel.stories:
|
|
1246
|
+
parsed_chat.stories = types.List(
|
|
1247
|
+
[
|
|
1248
|
+
await types.Story._parse(
|
|
1249
|
+
client, story, channel.stories.peer, users, chats
|
|
1250
|
+
)
|
|
1251
|
+
for story in channel.stories.stories
|
|
1252
|
+
]
|
|
1253
|
+
) or None
|
|
1254
|
+
|
|
1255
|
+
parsed_chat.chat_background = types.ChatBackground._parse(client, channel.wallpaper)
|
|
1256
|
+
parsed_chat.boosts_applied = channel.boosts_applied
|
|
1257
|
+
parsed_chat.unrestrict_boost_count = channel.boosts_unrestrict
|
|
1258
|
+
parsed_chat.custom_emoji_sticker_set_name = getattr(channel.emojiset, "short_name", None)
|
|
1259
|
+
parsed_chat.bot_verification = types.BotVerification._parse(
|
|
1260
|
+
client,
|
|
1261
|
+
channel.bot_verification,
|
|
1262
|
+
users
|
|
1263
|
+
)
|
|
1264
|
+
parsed_chat.main_profile_tab = enums.ProfileTab(type(channel.main_tab)) if channel.main_tab else None
|
|
1265
|
+
parsed_chat.gift_count = channel.stargifts_count
|
|
1266
|
+
parsed_chat.sticker_set_name = getattr(channel.stickerset, "short_name", None)
|
|
1267
|
+
parsed_chat.is_paid_messages_available = channel.paid_messages_available
|
|
1268
|
+
parsed_chat.guard_bot = types.User._parse(client, users.get(channel.guard_bot_id))
|
|
1269
|
+
|
|
1270
|
+
return parsed_chat
|
|
1271
|
+
|
|
1272
|
+
@staticmethod
|
|
1273
|
+
async def _parse_full(client: "pyrogram.Client", chat_full: Union["raw.types.UserFull", "raw.types.ChatFull", "raw.types.ChannelFull"]) -> Optional["Chat"]:
|
|
1274
|
+
users = {u.id: u for u in chat_full.users}
|
|
1275
|
+
chats = {c.id: c for c in chat_full.chats}
|
|
1276
|
+
|
|
1277
|
+
if isinstance(chat_full, raw.types.users.UserFull):
|
|
1278
|
+
return await Chat._parse_full_user(client, chat_full.full_user, users, chats)
|
|
1279
|
+
elif isinstance(chat_full, raw.types.messages.ChatFull) and isinstance(chat_full.full_chat, raw.types.ChatFull):
|
|
1280
|
+
return await Chat._parse_full_chat(client, chat_full.full_chat, users, chats)
|
|
1281
|
+
elif isinstance(chat_full, raw.types.messages.ChatFull) and isinstance(chat_full.full_chat, raw.types.ChannelFull):
|
|
1282
|
+
return await Chat._parse_full_channel(client, chat_full.full_chat, users, chats)
|
|
1283
|
+
|
|
1284
|
+
@staticmethod
|
|
1285
|
+
def _parse_chat(client, chat: Union[raw.types.Chat, raw.types.User, raw.types.Channel]) -> Optional["Chat"]:
|
|
1286
|
+
if isinstance(chat, (raw.types.Chat, raw.types.ChatForbidden)):
|
|
1287
|
+
return Chat._parse_chat_chat(client, chat)
|
|
1288
|
+
elif isinstance(chat, raw.types.User):
|
|
1289
|
+
return Chat._parse_user_chat(client, chat)
|
|
1290
|
+
else:
|
|
1291
|
+
return Chat._parse_channel_chat(client, chat)
|
|
1292
|
+
|
|
1293
|
+
@staticmethod
|
|
1294
|
+
def _parse_preview(client, chat_invite: "raw.types.ChatInvite") -> "Chat":
|
|
1295
|
+
return Chat(
|
|
1296
|
+
type=(
|
|
1297
|
+
enums.ChatType.SUPERGROUP if chat_invite.megagroup else
|
|
1298
|
+
enums.ChatType.CHANNEL if chat_invite.broadcast else
|
|
1299
|
+
enums.ChatType.GROUP
|
|
1300
|
+
),
|
|
1301
|
+
is_public=chat_invite.public,
|
|
1302
|
+
is_preview=True,
|
|
1303
|
+
verification_status=types.VerificationStatus._parse(chat_invite),
|
|
1304
|
+
title=chat_invite.title,
|
|
1305
|
+
photo=types.Photo._parse(client, chat_invite.photo),
|
|
1306
|
+
members_count=chat_invite.participants_count,
|
|
1307
|
+
members=[
|
|
1308
|
+
types.User._parse(client, user)
|
|
1309
|
+
for user in getattr(chat_invite, "participants", [])
|
|
1310
|
+
] or None,
|
|
1311
|
+
description=chat_invite.about or None,
|
|
1312
|
+
join_by_request=chat_invite.request_needed,
|
|
1313
|
+
profile_color=types.ChatColor._parse(chat_invite.color),
|
|
1314
|
+
raw=chat_invite,
|
|
1315
|
+
client=client
|
|
1316
|
+
)
|
|
1317
|
+
|
|
1318
|
+
@property
|
|
1319
|
+
def full_name(self) -> str:
|
|
1320
|
+
return " ".join(filter(None, [self.first_name, self.last_name])) or self.title or None
|
|
1321
|
+
|
|
1322
|
+
async def archive(self):
|
|
1323
|
+
"""Bound method *archive* of :obj:`~pyrogram.types.Chat`.
|
|
1324
|
+
|
|
1325
|
+
Use as a shortcut for:
|
|
1326
|
+
|
|
1327
|
+
.. code-block:: python
|
|
1328
|
+
|
|
1329
|
+
await client.archive_chats(-100123456789)
|
|
1330
|
+
|
|
1331
|
+
Example:
|
|
1332
|
+
.. code-block:: python
|
|
1333
|
+
|
|
1334
|
+
await chat.archive()
|
|
1335
|
+
|
|
1336
|
+
Returns:
|
|
1337
|
+
True on success.
|
|
1338
|
+
|
|
1339
|
+
Raises:
|
|
1340
|
+
RPCError: In case of a Telegram RPC error.
|
|
1341
|
+
"""
|
|
1342
|
+
return await self._client.archive_chats(self.id)
|
|
1343
|
+
|
|
1344
|
+
async def unarchive(self):
|
|
1345
|
+
"""Bound method *unarchive* of :obj:`~pyrogram.types.Chat`.
|
|
1346
|
+
|
|
1347
|
+
Use as a shortcut for:
|
|
1348
|
+
|
|
1349
|
+
.. code-block:: python
|
|
1350
|
+
|
|
1351
|
+
await client.unarchive_chats(-100123456789)
|
|
1352
|
+
|
|
1353
|
+
Example:
|
|
1354
|
+
.. code-block:: python
|
|
1355
|
+
|
|
1356
|
+
await chat.unarchive()
|
|
1357
|
+
|
|
1358
|
+
Returns:
|
|
1359
|
+
True on success.
|
|
1360
|
+
|
|
1361
|
+
Raises:
|
|
1362
|
+
RPCError: In case of a Telegram RPC error.
|
|
1363
|
+
"""
|
|
1364
|
+
return await self._client.unarchive_chats(self.id)
|
|
1365
|
+
|
|
1366
|
+
async def set_title(self, title: str) -> "types.Message":
|
|
1367
|
+
"""Bound method *set_title* of :obj:`~pyrogram.types.Chat`.
|
|
1368
|
+
|
|
1369
|
+
Use as a shortcut for:
|
|
1370
|
+
|
|
1371
|
+
.. code-block:: python
|
|
1372
|
+
|
|
1373
|
+
await client.set_chat_title(
|
|
1374
|
+
chat_id=chat_id,
|
|
1375
|
+
title=title
|
|
1376
|
+
)
|
|
1377
|
+
|
|
1378
|
+
Example:
|
|
1379
|
+
.. code-block:: python
|
|
1380
|
+
|
|
1381
|
+
await chat.set_title("Lounge")
|
|
1382
|
+
|
|
1383
|
+
Parameters:
|
|
1384
|
+
title (``str``):
|
|
1385
|
+
New chat title, 1-255 characters.
|
|
1386
|
+
|
|
1387
|
+
Returns:
|
|
1388
|
+
:obj:`~pyrogram.types.Message`: On success, the sent service message is returned.
|
|
1389
|
+
|
|
1390
|
+
Raises:
|
|
1391
|
+
RPCError: In case of Telegram RPC error.
|
|
1392
|
+
ValueError: In case a chat_id belongs to user.
|
|
1393
|
+
"""
|
|
1394
|
+
return await self._client.set_chat_title(
|
|
1395
|
+
chat_id=self.id,
|
|
1396
|
+
title=title
|
|
1397
|
+
)
|
|
1398
|
+
|
|
1399
|
+
async def set_description(self, description: str) -> bool:
|
|
1400
|
+
"""Bound method *set_description* of :obj:`~pyrogram.types.Chat`.
|
|
1401
|
+
|
|
1402
|
+
Use as a shortcut for:
|
|
1403
|
+
|
|
1404
|
+
.. code-block:: python
|
|
1405
|
+
|
|
1406
|
+
await client.set_chat_description(
|
|
1407
|
+
chat_id=chat_id,
|
|
1408
|
+
description=description
|
|
1409
|
+
)
|
|
1410
|
+
|
|
1411
|
+
Example:
|
|
1412
|
+
.. code-block:: python
|
|
1413
|
+
|
|
1414
|
+
await chat.set_chat_description("Don't spam!")
|
|
1415
|
+
|
|
1416
|
+
Parameters:
|
|
1417
|
+
description (``str``):
|
|
1418
|
+
New chat description, 0-255 characters.
|
|
1419
|
+
|
|
1420
|
+
Returns:
|
|
1421
|
+
``bool``: True on success.
|
|
1422
|
+
|
|
1423
|
+
Raises:
|
|
1424
|
+
RPCError: In case of Telegram RPC error.
|
|
1425
|
+
ValueError: If a chat_id doesn't belong to a supergroup or a channel.
|
|
1426
|
+
"""
|
|
1427
|
+
return await self._client.set_chat_description(
|
|
1428
|
+
chat_id=self.id,
|
|
1429
|
+
description=description
|
|
1430
|
+
)
|
|
1431
|
+
|
|
1432
|
+
async def set_photo(
|
|
1433
|
+
self,
|
|
1434
|
+
*,
|
|
1435
|
+
photo: Union[str, BinaryIO] = None,
|
|
1436
|
+
video: Union[str, BinaryIO] = None,
|
|
1437
|
+
video_start_ts: float = None,
|
|
1438
|
+
) -> "types.Message":
|
|
1439
|
+
"""Bound method *set_photo* of :obj:`~pyrogram.types.Chat`.
|
|
1440
|
+
|
|
1441
|
+
Use as a shortcut for:
|
|
1442
|
+
|
|
1443
|
+
.. code-block:: python
|
|
1444
|
+
|
|
1445
|
+
await client.set_chat_photo(
|
|
1446
|
+
chat_id=chat_id,
|
|
1447
|
+
photo=photo
|
|
1448
|
+
)
|
|
1449
|
+
|
|
1450
|
+
Example:
|
|
1451
|
+
.. code-block:: python
|
|
1452
|
+
|
|
1453
|
+
# Set chat photo using a local file
|
|
1454
|
+
await chat.set_photo(photo="photo.jpg")
|
|
1455
|
+
|
|
1456
|
+
# Set chat photo using an existing Photo file_id
|
|
1457
|
+
await chat.set_photo(photo=photo.file_id)
|
|
1458
|
+
|
|
1459
|
+
|
|
1460
|
+
# Set chat video using a local file
|
|
1461
|
+
await chat.set_photo(video="video.mp4")
|
|
1462
|
+
|
|
1463
|
+
# Set chat photo using an existing Video file_id
|
|
1464
|
+
await chat.set_photo(video=video.file_id)
|
|
1465
|
+
|
|
1466
|
+
Parameters:
|
|
1467
|
+
photo (``str`` | ``BinaryIO``, *optional*):
|
|
1468
|
+
New chat photo. You can pass a :obj:`~pyrogram.types.Photo` file_id, a file path to upload a new photo
|
|
1469
|
+
from your local machine or a binary file-like object with its attribute
|
|
1470
|
+
".name" set for in-memory uploads.
|
|
1471
|
+
|
|
1472
|
+
video (``str`` | ``BinaryIO``, *optional*):
|
|
1473
|
+
New chat video. You can pass a :obj:`~pyrogram.types.Video` file_id, a file path to upload a new video
|
|
1474
|
+
from your local machine or a binary file-like object with its attribute
|
|
1475
|
+
".name" set for in-memory uploads.
|
|
1476
|
+
|
|
1477
|
+
video_start_ts (``float``, *optional*):
|
|
1478
|
+
The timestamp in seconds of the video frame to use as photo profile preview.
|
|
1479
|
+
|
|
1480
|
+
Returns:
|
|
1481
|
+
:obj:`~pyrogram.types.Message`: On success, the sent service message is returned.
|
|
1482
|
+
|
|
1483
|
+
Raises:
|
|
1484
|
+
RPCError: In case of a Telegram RPC error.
|
|
1485
|
+
ValueError: if a chat_id belongs to user.
|
|
1486
|
+
"""
|
|
1487
|
+
return await self._client.set_chat_photo(
|
|
1488
|
+
chat_id=self.id,
|
|
1489
|
+
photo=photo,
|
|
1490
|
+
video=video,
|
|
1491
|
+
video_start_ts=video_start_ts
|
|
1492
|
+
)
|
|
1493
|
+
|
|
1494
|
+
async def set_ttl(self, ttl_seconds: int) -> "types.Message":
|
|
1495
|
+
"""Bound method *set_ttl* of :obj:`~pyrogram.types.Chat`.
|
|
1496
|
+
|
|
1497
|
+
Use as a shortcut for:
|
|
1498
|
+
|
|
1499
|
+
.. code-block:: python
|
|
1500
|
+
|
|
1501
|
+
await client.set_chat_ttl(
|
|
1502
|
+
chat_id=chat_id,
|
|
1503
|
+
ttl_seconds=ttl_seconds
|
|
1504
|
+
)
|
|
1505
|
+
|
|
1506
|
+
Example:
|
|
1507
|
+
.. code-block:: python
|
|
1508
|
+
|
|
1509
|
+
await chat.set_ttl(86400)
|
|
1510
|
+
|
|
1511
|
+
Returns:
|
|
1512
|
+
:obj:`~pyrogram.types.Message`: On success, the generated service message is returned.
|
|
1513
|
+
"""
|
|
1514
|
+
return await self._client.set_chat_ttl(
|
|
1515
|
+
chat_id=self.id,
|
|
1516
|
+
ttl_seconds=ttl_seconds
|
|
1517
|
+
)
|
|
1518
|
+
|
|
1519
|
+
async def ban_member(
|
|
1520
|
+
self,
|
|
1521
|
+
user_id: Union[int, str],
|
|
1522
|
+
until_date: datetime = utils.zero_datetime(),
|
|
1523
|
+
revoke_messages: Optional[bool] = None
|
|
1524
|
+
) -> Union["types.Message", bool]:
|
|
1525
|
+
"""Bound method *ban_member* of :obj:`~pyrogram.types.Chat`.
|
|
1526
|
+
|
|
1527
|
+
Use as a shortcut for:
|
|
1528
|
+
|
|
1529
|
+
.. code-block:: python
|
|
1530
|
+
|
|
1531
|
+
await client.ban_chat_member(
|
|
1532
|
+
chat_id=chat_id,
|
|
1533
|
+
user_id=user_id
|
|
1534
|
+
)
|
|
1535
|
+
|
|
1536
|
+
Example:
|
|
1537
|
+
.. code-block:: python
|
|
1538
|
+
|
|
1539
|
+
await chat.ban_member(123456789)
|
|
1540
|
+
|
|
1541
|
+
Parameters:
|
|
1542
|
+
user_id (``int`` | ``str``):
|
|
1543
|
+
Unique identifier (int) or username (str) of the target user.
|
|
1544
|
+
For a contact that exists in your Telegram address book you can use his phone number (str).
|
|
1545
|
+
|
|
1546
|
+
until_date (:py:obj:`~datetime.datetime`, *optional*):
|
|
1547
|
+
Date when the user will be unbanned.
|
|
1548
|
+
If user is banned for more than 366 days or less than 30 seconds from the current time they are
|
|
1549
|
+
considered to be banned forever. Defaults to epoch (ban forever).
|
|
1550
|
+
|
|
1551
|
+
revoke_messages (``bool``, *optional*):
|
|
1552
|
+
Pass True to delete all messages in the chat for the user who is being removed.
|
|
1553
|
+
|
|
1554
|
+
Returns:
|
|
1555
|
+
:obj:`~pyrogram.types.Message` | ``bool``: On success, a service message will be returned (when applicable), otherwise, in
|
|
1556
|
+
case a message object couldn't be returned, True is returned.
|
|
1557
|
+
|
|
1558
|
+
Raises:
|
|
1559
|
+
RPCError: In case of a Telegram RPC error.
|
|
1560
|
+
"""
|
|
1561
|
+
return await self._client.ban_chat_member(
|
|
1562
|
+
chat_id=self.id,
|
|
1563
|
+
user_id=user_id,
|
|
1564
|
+
until_date=until_date,
|
|
1565
|
+
revoke_messages=revoke_messages
|
|
1566
|
+
)
|
|
1567
|
+
|
|
1568
|
+
async def unban_member(
|
|
1569
|
+
self,
|
|
1570
|
+
user_id: Union[int, str]
|
|
1571
|
+
) -> bool:
|
|
1572
|
+
"""Bound method *unban_member* of :obj:`~pyrogram.types.Chat`.
|
|
1573
|
+
|
|
1574
|
+
Use as a shortcut for:
|
|
1575
|
+
|
|
1576
|
+
.. code-block:: python
|
|
1577
|
+
|
|
1578
|
+
await client.unban_chat_member(
|
|
1579
|
+
chat_id=chat_id,
|
|
1580
|
+
user_id=user_id
|
|
1581
|
+
)
|
|
1582
|
+
|
|
1583
|
+
Example:
|
|
1584
|
+
.. code-block:: python
|
|
1585
|
+
|
|
1586
|
+
await chat.unban_member(123456789)
|
|
1587
|
+
|
|
1588
|
+
Parameters:
|
|
1589
|
+
user_id (``int`` | ``str``):
|
|
1590
|
+
Unique identifier (int) or username (str) of the target user.
|
|
1591
|
+
For a contact that exists in your Telegram address book you can use his phone number (str).
|
|
1592
|
+
|
|
1593
|
+
Returns:
|
|
1594
|
+
``bool``: True on success.
|
|
1595
|
+
|
|
1596
|
+
Raises:
|
|
1597
|
+
RPCError: In case of a Telegram RPC error.
|
|
1598
|
+
"""
|
|
1599
|
+
return await self._client.unban_chat_member(
|
|
1600
|
+
chat_id=self.id,
|
|
1601
|
+
user_id=user_id,
|
|
1602
|
+
)
|
|
1603
|
+
|
|
1604
|
+
async def restrict_member(
|
|
1605
|
+
self,
|
|
1606
|
+
user_id: Union[int, str],
|
|
1607
|
+
permissions: "types.ChatPermissions",
|
|
1608
|
+
until_date: datetime = utils.zero_datetime(),
|
|
1609
|
+
) -> "types.Chat":
|
|
1610
|
+
"""Bound method *unban_member* of :obj:`~pyrogram.types.Chat`.
|
|
1611
|
+
|
|
1612
|
+
Use as a shortcut for:
|
|
1613
|
+
|
|
1614
|
+
.. code-block:: python
|
|
1615
|
+
|
|
1616
|
+
await client.restrict_chat_member(
|
|
1617
|
+
chat_id=chat_id,
|
|
1618
|
+
user_id=user_id,
|
|
1619
|
+
permissions=ChatPermissions()
|
|
1620
|
+
)
|
|
1621
|
+
|
|
1622
|
+
Example:
|
|
1623
|
+
.. code-block:: python
|
|
1624
|
+
|
|
1625
|
+
await chat.restrict_member(user_id, ChatPermissions())
|
|
1626
|
+
|
|
1627
|
+
Parameters:
|
|
1628
|
+
user_id (``int`` | ``str``):
|
|
1629
|
+
Unique identifier (int) or username (str) of the target user.
|
|
1630
|
+
For a contact that exists in your Telegram address book you can use his phone number (str).
|
|
1631
|
+
|
|
1632
|
+
permissions (:obj:`~pyrogram.types.ChatPermissions`):
|
|
1633
|
+
New user permissions.
|
|
1634
|
+
|
|
1635
|
+
until_date (:py:obj:`~datetime.datetime`, *optional*):
|
|
1636
|
+
Date when the user will be unbanned.
|
|
1637
|
+
If user is banned for more than 366 days or less than 30 seconds from the current time they are
|
|
1638
|
+
considered to be banned forever. Defaults to epoch (ban forever).
|
|
1639
|
+
|
|
1640
|
+
Returns:
|
|
1641
|
+
:obj:`~pyrogram.types.Chat`: On success, a chat object is returned.
|
|
1642
|
+
|
|
1643
|
+
Raises:
|
|
1644
|
+
RPCError: In case of a Telegram RPC error.
|
|
1645
|
+
"""
|
|
1646
|
+
return await self._client.restrict_chat_member(
|
|
1647
|
+
chat_id=self.id,
|
|
1648
|
+
user_id=user_id,
|
|
1649
|
+
permissions=permissions,
|
|
1650
|
+
until_date=until_date,
|
|
1651
|
+
)
|
|
1652
|
+
|
|
1653
|
+
# Set None as privileges default due to issues with partially initialized module, because at the time Chat
|
|
1654
|
+
# is being initialized, ChatAdministratorRights would be required here, but was not initialized yet.
|
|
1655
|
+
async def promote_member(
|
|
1656
|
+
self,
|
|
1657
|
+
user_id: Union[int, str],
|
|
1658
|
+
privileges: "types.ChatAdministratorRights" = None
|
|
1659
|
+
) -> bool:
|
|
1660
|
+
"""Bound method *promote_member* of :obj:`~pyrogram.types.Chat`.
|
|
1661
|
+
|
|
1662
|
+
Use as a shortcut for:
|
|
1663
|
+
|
|
1664
|
+
.. code-block:: python
|
|
1665
|
+
|
|
1666
|
+
await client.promote_chat_member(
|
|
1667
|
+
chat_id=chat_id,
|
|
1668
|
+
user_id=user_id
|
|
1669
|
+
)
|
|
1670
|
+
|
|
1671
|
+
Example:
|
|
1672
|
+
|
|
1673
|
+
.. code-block:: python
|
|
1674
|
+
|
|
1675
|
+
await chat.promote_member(123456789)
|
|
1676
|
+
|
|
1677
|
+
Parameters:
|
|
1678
|
+
user_id (``int`` | ``str``):
|
|
1679
|
+
Unique identifier (int) or username (str) of the target user.
|
|
1680
|
+
For a contact that exists in your Telegram address book you can use his phone number (str).
|
|
1681
|
+
|
|
1682
|
+
privileges (:obj:`~pyrogram.types.ChatAdministratorRights`, *optional*):
|
|
1683
|
+
New user privileges.
|
|
1684
|
+
|
|
1685
|
+
Returns:
|
|
1686
|
+
``bool``: True on success.
|
|
1687
|
+
|
|
1688
|
+
Raises:
|
|
1689
|
+
RPCError: In case of a Telegram RPC error.
|
|
1690
|
+
"""
|
|
1691
|
+
return await self._client.promote_chat_member(
|
|
1692
|
+
chat_id=self.id,
|
|
1693
|
+
user_id=user_id,
|
|
1694
|
+
privileges=privileges
|
|
1695
|
+
)
|
|
1696
|
+
|
|
1697
|
+
async def join(self):
|
|
1698
|
+
"""Bound method *join* of :obj:`~pyrogram.types.Chat`.
|
|
1699
|
+
|
|
1700
|
+
Use as a shortcut for:
|
|
1701
|
+
|
|
1702
|
+
.. code-block:: python
|
|
1703
|
+
|
|
1704
|
+
await client.join_chat(123456789)
|
|
1705
|
+
|
|
1706
|
+
Example:
|
|
1707
|
+
.. code-block:: python
|
|
1708
|
+
|
|
1709
|
+
await chat.join()
|
|
1710
|
+
|
|
1711
|
+
.. note::
|
|
1712
|
+
|
|
1713
|
+
This only works for public groups, channels that have set a username or linked chats.
|
|
1714
|
+
|
|
1715
|
+
Returns:
|
|
1716
|
+
:obj:`~pyrogram.types.Chat`: On success, a chat object is returned.
|
|
1717
|
+
|
|
1718
|
+
Raises:
|
|
1719
|
+
RPCError: In case of a Telegram RPC error.
|
|
1720
|
+
"""
|
|
1721
|
+
return await self._client.join_chat(self.username or self.id)
|
|
1722
|
+
|
|
1723
|
+
async def leave(self):
|
|
1724
|
+
"""Bound method *leave* of :obj:`~pyrogram.types.Chat`.
|
|
1725
|
+
|
|
1726
|
+
Use as a shortcut for:
|
|
1727
|
+
|
|
1728
|
+
.. code-block:: python
|
|
1729
|
+
|
|
1730
|
+
await client.leave_chat(123456789)
|
|
1731
|
+
|
|
1732
|
+
Example:
|
|
1733
|
+
.. code-block:: python
|
|
1734
|
+
|
|
1735
|
+
await chat.leave()
|
|
1736
|
+
|
|
1737
|
+
Raises:
|
|
1738
|
+
RPCError: In case of a Telegram RPC error.
|
|
1739
|
+
"""
|
|
1740
|
+
return await self._client.leave_chat(self.id)
|
|
1741
|
+
|
|
1742
|
+
async def export_invite_link(self):
|
|
1743
|
+
"""Bound method *export_invite_link* of :obj:`~pyrogram.types.Chat`.
|
|
1744
|
+
|
|
1745
|
+
Use as a shortcut for:
|
|
1746
|
+
|
|
1747
|
+
.. code-block:: python
|
|
1748
|
+
|
|
1749
|
+
client.export_chat_invite_link(123456789)
|
|
1750
|
+
|
|
1751
|
+
Example:
|
|
1752
|
+
.. code-block:: python
|
|
1753
|
+
|
|
1754
|
+
chat.export_invite_link()
|
|
1755
|
+
|
|
1756
|
+
Returns:
|
|
1757
|
+
``str``: On success, the exported invite link is returned.
|
|
1758
|
+
|
|
1759
|
+
Raises:
|
|
1760
|
+
ValueError: In case the chat_id belongs to a user.
|
|
1761
|
+
"""
|
|
1762
|
+
return await self._client.export_chat_invite_link(self.id)
|
|
1763
|
+
|
|
1764
|
+
async def get_member(
|
|
1765
|
+
self,
|
|
1766
|
+
user_id: Union[int, str],
|
|
1767
|
+
) -> "types.ChatMember":
|
|
1768
|
+
"""Bound method *get_member* of :obj:`~pyrogram.types.Chat`.
|
|
1769
|
+
|
|
1770
|
+
Use as a shortcut for:
|
|
1771
|
+
|
|
1772
|
+
.. code-block:: python
|
|
1773
|
+
|
|
1774
|
+
await client.get_chat_member(
|
|
1775
|
+
chat_id=chat_id,
|
|
1776
|
+
user_id=user_id
|
|
1777
|
+
)
|
|
1778
|
+
|
|
1779
|
+
Example:
|
|
1780
|
+
.. code-block:: python
|
|
1781
|
+
|
|
1782
|
+
await chat.get_member(user_id)
|
|
1783
|
+
|
|
1784
|
+
Returns:
|
|
1785
|
+
:obj:`~pyrogram.types.ChatMember`: On success, a chat member is returned.
|
|
1786
|
+
"""
|
|
1787
|
+
return await self._client.get_chat_member(
|
|
1788
|
+
self.id,
|
|
1789
|
+
user_id=user_id
|
|
1790
|
+
)
|
|
1791
|
+
|
|
1792
|
+
def get_members(
|
|
1793
|
+
self,
|
|
1794
|
+
query: str = "",
|
|
1795
|
+
limit: int = 0,
|
|
1796
|
+
filter: "enums.ChatMembersFilter" = enums.ChatMembersFilter.SEARCH
|
|
1797
|
+
) -> AsyncGenerator["types.ChatMember", None]:
|
|
1798
|
+
"""Bound method *get_members* of :obj:`~pyrogram.types.Chat`.
|
|
1799
|
+
|
|
1800
|
+
Use as a shortcut for:
|
|
1801
|
+
|
|
1802
|
+
.. code-block:: python
|
|
1803
|
+
|
|
1804
|
+
async for member in client.get_chat_members(chat_id):
|
|
1805
|
+
print(member)
|
|
1806
|
+
|
|
1807
|
+
Example:
|
|
1808
|
+
.. code-block:: python
|
|
1809
|
+
|
|
1810
|
+
async for member in chat.get_members():
|
|
1811
|
+
print(member)
|
|
1812
|
+
|
|
1813
|
+
Parameters:
|
|
1814
|
+
query (``str``, *optional*):
|
|
1815
|
+
Query string to filter members based on their display names and usernames.
|
|
1816
|
+
Only applicable to supergroups and channels. Defaults to "" (empty string).
|
|
1817
|
+
A query string is applicable only for :obj:`~pyrogram.enums.ChatMembersFilter.SEARCH`,
|
|
1818
|
+
:obj:`~pyrogram.enums.ChatMembersFilter.BANNED` and :obj:`~pyrogram.enums.ChatMembersFilter.RESTRICTED`
|
|
1819
|
+
filters only.
|
|
1820
|
+
|
|
1821
|
+
limit (``int``, *optional*):
|
|
1822
|
+
Limits the number of members to be retrieved.
|
|
1823
|
+
|
|
1824
|
+
filter (:obj:`~pyrogram.enums.ChatMembersFilter`, *optional*):
|
|
1825
|
+
Filter used to select the kind of members you want to retrieve. Only applicable for supergroups
|
|
1826
|
+
and channels.
|
|
1827
|
+
|
|
1828
|
+
Returns:
|
|
1829
|
+
``Generator``: On success, a generator yielding :obj:`~pyrogram.types.ChatMember` objects is returned.
|
|
1830
|
+
"""
|
|
1831
|
+
return self._client.get_chat_members(
|
|
1832
|
+
self.id,
|
|
1833
|
+
query=query,
|
|
1834
|
+
limit=limit,
|
|
1835
|
+
filter=filter
|
|
1836
|
+
)
|
|
1837
|
+
|
|
1838
|
+
async def add_members(
|
|
1839
|
+
self,
|
|
1840
|
+
user_ids: Union[Union[int, str], List[Union[int, str]]],
|
|
1841
|
+
forward_limit: int = 100
|
|
1842
|
+
) -> List["types.FailedToAddMember"]:
|
|
1843
|
+
"""Bound method *add_members* of :obj:`~pyrogram.types.Chat`.
|
|
1844
|
+
|
|
1845
|
+
Use as a shortcut for:
|
|
1846
|
+
|
|
1847
|
+
.. code-block:: python
|
|
1848
|
+
|
|
1849
|
+
await client.add_chat_members(chat_id, user_id)
|
|
1850
|
+
|
|
1851
|
+
Example:
|
|
1852
|
+
.. code-block:: python
|
|
1853
|
+
|
|
1854
|
+
await chat.add_members(user_id)
|
|
1855
|
+
|
|
1856
|
+
Returns:
|
|
1857
|
+
List of :obj:`~pyrogram.types.FailedToAddMember`: On success, an empty list is returned, otherwise a list of :obj:`~pyrogram.types.FailedToAddMember` is returned.
|
|
1858
|
+
"""
|
|
1859
|
+
return await self._client.add_chat_members(
|
|
1860
|
+
self.id,
|
|
1861
|
+
user_ids=user_ids,
|
|
1862
|
+
forward_limit=forward_limit
|
|
1863
|
+
)
|
|
1864
|
+
|
|
1865
|
+
async def mark_unread(self, ) -> bool:
|
|
1866
|
+
"""Bound method *mark_unread* of :obj:`~pyrogram.types.Chat`.
|
|
1867
|
+
|
|
1868
|
+
Use as a shortcut for:
|
|
1869
|
+
|
|
1870
|
+
.. code-block:: python
|
|
1871
|
+
|
|
1872
|
+
await client.mark_unread(chat_id)
|
|
1873
|
+
|
|
1874
|
+
Example:
|
|
1875
|
+
.. code-block:: python
|
|
1876
|
+
|
|
1877
|
+
await chat.mark_unread()
|
|
1878
|
+
|
|
1879
|
+
Returns:
|
|
1880
|
+
``bool``: On success, True is returned.
|
|
1881
|
+
"""
|
|
1882
|
+
return await self._client.mark_chat_unread(self.id)
|
|
1883
|
+
|
|
1884
|
+
async def set_protected_content(self, enabled: bool) -> bool:
|
|
1885
|
+
"""Bound method *set_protected_content* of :obj:`~pyrogram.types.Chat`.
|
|
1886
|
+
|
|
1887
|
+
Use as a shortcut for:
|
|
1888
|
+
|
|
1889
|
+
.. code-block:: python
|
|
1890
|
+
|
|
1891
|
+
await client.set_chat_protected_content(chat_id, enabled)
|
|
1892
|
+
|
|
1893
|
+
Parameters:
|
|
1894
|
+
enabled (``bool``):
|
|
1895
|
+
Pass True to enable the protected content setting, False to disable.
|
|
1896
|
+
|
|
1897
|
+
Example:
|
|
1898
|
+
.. code-block:: python
|
|
1899
|
+
|
|
1900
|
+
await chat.set_protected_content(enabled)
|
|
1901
|
+
|
|
1902
|
+
Returns:
|
|
1903
|
+
``bool``: On success, True is returned.
|
|
1904
|
+
"""
|
|
1905
|
+
return await self._client.set_chat_protected_content(
|
|
1906
|
+
self.id,
|
|
1907
|
+
enabled=enabled
|
|
1908
|
+
)
|
|
1909
|
+
|
|
1910
|
+
async def unpin_all_messages(self) -> bool:
|
|
1911
|
+
"""Bound method *unpin_all_messages* of :obj:`~pyrogram.types.Chat`.
|
|
1912
|
+
|
|
1913
|
+
Use as a shortcut for:
|
|
1914
|
+
|
|
1915
|
+
.. code-block:: python
|
|
1916
|
+
|
|
1917
|
+
client.unpin_all_chat_messages(chat_id)
|
|
1918
|
+
|
|
1919
|
+
Example:
|
|
1920
|
+
.. code-block:: python
|
|
1921
|
+
|
|
1922
|
+
chat.unpin_all_messages()
|
|
1923
|
+
|
|
1924
|
+
Returns:
|
|
1925
|
+
``bool``: On success, True is returned.
|
|
1926
|
+
"""
|
|
1927
|
+
return await self._client.unpin_all_chat_messages(self.id)
|
|
1928
|
+
|
|
1929
|
+
async def mute(self, mute_until: datetime = None) -> bool:
|
|
1930
|
+
"""Bound method *mute* of :obj:`~pyrogram.types.Chat`.
|
|
1931
|
+
|
|
1932
|
+
Use as a shortcut for:
|
|
1933
|
+
|
|
1934
|
+
.. code-block:: python
|
|
1935
|
+
|
|
1936
|
+
client.update_chat_notifications(chat_id, mute=True, mute_until=mute_until)
|
|
1937
|
+
|
|
1938
|
+
Parameters:
|
|
1939
|
+
mute (``bool``, *optional*):
|
|
1940
|
+
Pass True if you want to mute chat.
|
|
1941
|
+
|
|
1942
|
+
until_date (:py:obj:`~datetime.datetime`, *optional*):
|
|
1943
|
+
Date when the user will be unmuted. Defaults to forever.
|
|
1944
|
+
|
|
1945
|
+
Example:
|
|
1946
|
+
.. code-block:: python
|
|
1947
|
+
|
|
1948
|
+
chat.mute()
|
|
1949
|
+
|
|
1950
|
+
Returns:
|
|
1951
|
+
``bool``: On success, True is returned.
|
|
1952
|
+
"""
|
|
1953
|
+
return await self._client.update_chat_notifications(self.id, mute=True, mute_until=mute_until)
|
|
1954
|
+
|
|
1955
|
+
async def unmute(self) -> bool:
|
|
1956
|
+
"""Bound method *unmute* of :obj:`~pyrogram.types.Chat`.
|
|
1957
|
+
|
|
1958
|
+
Use as a shortcut for:
|
|
1959
|
+
|
|
1960
|
+
.. code-block:: python
|
|
1961
|
+
|
|
1962
|
+
client.update_chat_notifications(chat_id, mute=False)
|
|
1963
|
+
|
|
1964
|
+
Example:
|
|
1965
|
+
.. code-block:: python
|
|
1966
|
+
|
|
1967
|
+
chat.unmute()
|
|
1968
|
+
|
|
1969
|
+
Returns:
|
|
1970
|
+
``bool``: On success, True is returned.
|
|
1971
|
+
"""
|
|
1972
|
+
return await self._client.update_chat_notifications(self.id, mute=False)
|