electrogram 1.184.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- electrogram-1.184.0.dist-info/METADATA +27 -0
- electrogram-1.184.0.dist-info/RECORD +3066 -0
- electrogram-1.184.0.dist-info/WHEEL +4 -0
- electrogram-1.184.0.dist-info/licenses/LICENSE +21 -0
- pyrogram/__init__.py +37 -0
- pyrogram/client.py +903 -0
- pyrogram/connection/__init__.py +5 -0
- pyrogram/connection/connection.py +59 -0
- pyrogram/connection/transport/__init__.py +11 -0
- pyrogram/connection/transport/tcp/__init__.py +16 -0
- pyrogram/connection/transport/tcp/tcp.py +149 -0
- pyrogram/connection/transport/tcp/tcp_abridged.py +39 -0
- pyrogram/connection/transport/tcp/tcp_abridged_o.py +68 -0
- pyrogram/connection/transport/tcp/tcp_full.py +46 -0
- pyrogram/connection/transport/tcp/tcp_intermediate.py +27 -0
- pyrogram/connection/transport/tcp/tcp_intermediate_o.py +61 -0
- pyrogram/crypto/__init__.py +0 -0
- pyrogram/crypto/aes.py +20 -0
- pyrogram/crypto/mtproto.py +75 -0
- pyrogram/crypto/prime.py +59 -0
- pyrogram/crypto/rsa.py +147 -0
- pyrogram/dispatcher.py +280 -0
- pyrogram/emoji.py +4001 -0
- pyrogram/enums/__init__.py +39 -0
- pyrogram/enums/auto_name.py +9 -0
- pyrogram/enums/chat_action.py +22 -0
- pyrogram/enums/chat_event_action.py +32 -0
- pyrogram/enums/chat_member_status.py +10 -0
- pyrogram/enums/chat_members_filter.py +10 -0
- pyrogram/enums/chat_type.py +9 -0
- pyrogram/enums/client_platform.py +13 -0
- pyrogram/enums/listerner_types.py +6 -0
- pyrogram/enums/message_entity_type.py +26 -0
- pyrogram/enums/message_media_type.py +22 -0
- pyrogram/enums/message_service_type.py +34 -0
- pyrogram/enums/messages_filter.py +21 -0
- pyrogram/enums/next_code_type.py +9 -0
- pyrogram/enums/parse_mode.py +8 -0
- pyrogram/enums/profile_color.py +19 -0
- pyrogram/enums/reaction_type.py +7 -0
- pyrogram/enums/reply_color.py +25 -0
- pyrogram/enums/sent_code_type.py +11 -0
- pyrogram/enums/user_status.py +10 -0
- pyrogram/errors/__init__.py +40 -0
- pyrogram/errors/exceptions/__init__.py +10 -0
- pyrogram/errors/exceptions/all.py +634 -0
- pyrogram/errors/exceptions/bad_request_400.py +3273 -0
- pyrogram/errors/exceptions/flood_420.py +67 -0
- pyrogram/errors/exceptions/forbidden_403.py +326 -0
- pyrogram/errors/exceptions/internal_server_error_500.py +340 -0
- pyrogram/errors/exceptions/not_acceptable_406.py +158 -0
- pyrogram/errors/exceptions/see_other_303.py +46 -0
- pyrogram/errors/exceptions/service_unavailable_503.py +32 -0
- pyrogram/errors/exceptions/unauthorized_401.py +74 -0
- pyrogram/errors/rpc_error.py +84 -0
- pyrogram/file_id.py +412 -0
- pyrogram/filters.py +674 -0
- pyrogram/handlers/__init__.py +31 -0
- pyrogram/handlers/callback_query_handler.py +6 -0
- pyrogram/handlers/chat_join_request_handler.py +6 -0
- pyrogram/handlers/chat_member_updated_handler.py +6 -0
- pyrogram/handlers/chosen_inline_result_handler.py +6 -0
- pyrogram/handlers/conversation_handler.py +49 -0
- pyrogram/handlers/deleted_messages_handler.py +16 -0
- pyrogram/handlers/disconnect_handler.py +6 -0
- pyrogram/handlers/edited_message_handler.py +6 -0
- pyrogram/handlers/handler.py +23 -0
- pyrogram/handlers/inline_query_handler.py +6 -0
- pyrogram/handlers/message_handler.py +6 -0
- pyrogram/handlers/message_reaction_count_updated_handler.py +7 -0
- pyrogram/handlers/message_reaction_updated_handler.py +7 -0
- pyrogram/handlers/raw_update_handler.py +6 -0
- pyrogram/handlers/user_status_handler.py +6 -0
- pyrogram/methods/__init__.py +29 -0
- pyrogram/methods/advanced/__init__.py +11 -0
- pyrogram/methods/advanced/invoke.py +38 -0
- pyrogram/methods/advanced/resolve_peer.py +86 -0
- pyrogram/methods/advanced/save_file.py +174 -0
- pyrogram/methods/auth/__init__.py +35 -0
- pyrogram/methods/auth/accept_terms_of_service.py +18 -0
- pyrogram/methods/auth/check_password.py +28 -0
- pyrogram/methods/auth/connect.py +23 -0
- pyrogram/methods/auth/disconnect.py +16 -0
- pyrogram/methods/auth/get_password_hint.py +13 -0
- pyrogram/methods/auth/initialize.py +25 -0
- pyrogram/methods/auth/log_out.py +17 -0
- pyrogram/methods/auth/recover_password.py +24 -0
- pyrogram/methods/auth/resend_code.py +25 -0
- pyrogram/methods/auth/send_code.py +46 -0
- pyrogram/methods/auth/send_recovery_code.py +15 -0
- pyrogram/methods/auth/sign_in.py +37 -0
- pyrogram/methods/auth/sign_in_bot.py +47 -0
- pyrogram/methods/auth/sign_up.py +32 -0
- pyrogram/methods/auth/terminate.py +35 -0
- pyrogram/methods/bots/__init__.py +35 -0
- pyrogram/methods/bots/answer_callback_query.py +22 -0
- pyrogram/methods/bots/answer_inline_query.py +33 -0
- pyrogram/methods/bots/answer_web_app_query.py +19 -0
- pyrogram/methods/bots/delete_bot_commands.py +16 -0
- pyrogram/methods/bots/get_bot_commands.py +20 -0
- pyrogram/methods/bots/get_bot_default_privileges.py +23 -0
- pyrogram/methods/bots/get_bot_info.py +17 -0
- pyrogram/methods/bots/get_chat_menu_button.py +38 -0
- pyrogram/methods/bots/get_inline_bot_results.py +34 -0
- pyrogram/methods/bots/request_callback_answer.py +33 -0
- pyrogram/methods/bots/send_inline_bot_result.py +39 -0
- pyrogram/methods/bots/set_bot_commands.py +21 -0
- pyrogram/methods/bots/set_bot_default_privileges.py +32 -0
- pyrogram/methods/bots/set_bot_info.py +20 -0
- pyrogram/methods/bots/set_chat_menu_button.py +24 -0
- pyrogram/methods/chats/__init__.py +109 -0
- pyrogram/methods/chats/add_chat_members.py +39 -0
- pyrogram/methods/chats/archive_chats.py +31 -0
- pyrogram/methods/chats/ban_chat_member.py +56 -0
- pyrogram/methods/chats/close_forum_topic.py +19 -0
- pyrogram/methods/chats/close_general_topic.py +18 -0
- pyrogram/methods/chats/create_channel.py +20 -0
- pyrogram/methods/chats/create_forum_topic.py +25 -0
- pyrogram/methods/chats/create_group.py +24 -0
- pyrogram/methods/chats/create_supergroup.py +20 -0
- pyrogram/methods/chats/delete_channel.py +18 -0
- pyrogram/methods/chats/delete_chat_photo.py +31 -0
- pyrogram/methods/chats/delete_forum_topic.py +22 -0
- pyrogram/methods/chats/delete_supergroup.py +18 -0
- pyrogram/methods/chats/delete_user_history.py +20 -0
- pyrogram/methods/chats/edit_forum_topic.py +22 -0
- pyrogram/methods/chats/edit_general_topic.py +19 -0
- pyrogram/methods/chats/get_chat.py +43 -0
- pyrogram/methods/chats/get_chat_event_log.py +51 -0
- pyrogram/methods/chats/get_chat_member.py +52 -0
- pyrogram/methods/chats/get_chat_members.py +93 -0
- pyrogram/methods/chats/get_chat_members_count.py +31 -0
- pyrogram/methods/chats/get_chat_online_count.py +16 -0
- pyrogram/methods/chats/get_dialogs.py +71 -0
- pyrogram/methods/chats/get_dialogs_count.py +26 -0
- pyrogram/methods/chats/get_forum_topics.py +24 -0
- pyrogram/methods/chats/get_forum_topics_by_id.py +43 -0
- pyrogram/methods/chats/get_nearby_chats.py +39 -0
- pyrogram/methods/chats/get_send_as_chats.py +30 -0
- pyrogram/methods/chats/hide_general_topic.py +18 -0
- pyrogram/methods/chats/join_chat.py +32 -0
- pyrogram/methods/chats/leave_chat.py +37 -0
- pyrogram/methods/chats/mark_chat_unread.py +17 -0
- pyrogram/methods/chats/pin_chat_message.py +30 -0
- pyrogram/methods/chats/promote_chat_member.py +59 -0
- pyrogram/methods/chats/reopen_forum_topic.py +19 -0
- pyrogram/methods/chats/reopen_general_topic.py +18 -0
- pyrogram/methods/chats/restrict_chat_member.py +133 -0
- pyrogram/methods/chats/set_administrator_title.py +40 -0
- pyrogram/methods/chats/set_chat_description.py +25 -0
- pyrogram/methods/chats/set_chat_permissions.py +129 -0
- pyrogram/methods/chats/set_chat_photo.py +55 -0
- pyrogram/methods/chats/set_chat_protected_content.py +20 -0
- pyrogram/methods/chats/set_chat_title.py +32 -0
- pyrogram/methods/chats/set_chat_username.py +25 -0
- pyrogram/methods/chats/set_send_as_chat.py +18 -0
- pyrogram/methods/chats/set_slow_mode.py +20 -0
- pyrogram/methods/chats/unarchive_chats.py +31 -0
- pyrogram/methods/chats/unban_chat_member.py +23 -0
- pyrogram/methods/chats/unhide_general_topic.py +18 -0
- pyrogram/methods/chats/unpin_all_chat_messages.py +18 -0
- pyrogram/methods/chats/unpin_chat_message.py +21 -0
- pyrogram/methods/chats/update_color.py +33 -0
- pyrogram/methods/contacts/__init__.py +15 -0
- pyrogram/methods/contacts/add_contact.py +27 -0
- pyrogram/methods/contacts/delete_contacts.py +28 -0
- pyrogram/methods/contacts/get_contacts.py +16 -0
- pyrogram/methods/contacts/get_contacts_count.py +9 -0
- pyrogram/methods/contacts/import_contacts.py +19 -0
- pyrogram/methods/decorators/__init__.py +30 -0
- pyrogram/methods/decorators/on_callback_query.py +29 -0
- pyrogram/methods/decorators/on_chat_join_request.py +29 -0
- pyrogram/methods/decorators/on_chat_member_updated.py +29 -0
- pyrogram/methods/decorators/on_chosen_inline_result.py +29 -0
- pyrogram/methods/decorators/on_deleted_messages.py +29 -0
- pyrogram/methods/decorators/on_disconnect.py +19 -0
- pyrogram/methods/decorators/on_edited_message.py +29 -0
- pyrogram/methods/decorators/on_inline_query.py +29 -0
- pyrogram/methods/decorators/on_message.py +29 -0
- pyrogram/methods/decorators/on_message_reaction_count_updated.py +29 -0
- pyrogram/methods/decorators/on_message_reaction_updated.py +30 -0
- pyrogram/methods/decorators/on_raw_update.py +27 -0
- pyrogram/methods/decorators/on_user_status.py +29 -0
- pyrogram/methods/invite_links/__init__.py +39 -0
- pyrogram/methods/invite_links/approve_all_chat_join_requests.py +21 -0
- pyrogram/methods/invite_links/approve_chat_join_request.py +21 -0
- pyrogram/methods/invite_links/create_chat_invite_link.py +28 -0
- pyrogram/methods/invite_links/decline_all_chat_join_requests.py +21 -0
- pyrogram/methods/invite_links/decline_chat_join_request.py +21 -0
- pyrogram/methods/invite_links/delete_chat_admin_invite_links.py +18 -0
- pyrogram/methods/invite_links/delete_chat_invite_link.py +18 -0
- pyrogram/methods/invite_links/edit_chat_invite_link.py +32 -0
- pyrogram/methods/invite_links/export_chat_invite_link.py +20 -0
- pyrogram/methods/invite_links/get_chat_admin_invite_links.py +49 -0
- pyrogram/methods/invite_links/get_chat_admin_invite_links_count.py +23 -0
- pyrogram/methods/invite_links/get_chat_admins_with_invite_links.py +23 -0
- pyrogram/methods/invite_links/get_chat_invite_link.py +23 -0
- pyrogram/methods/invite_links/get_chat_invite_link_joiners.py +47 -0
- pyrogram/methods/invite_links/get_chat_invite_link_joiners_count.py +23 -0
- pyrogram/methods/invite_links/get_chat_join_requests.py +48 -0
- pyrogram/methods/invite_links/revoke_chat_invite_link.py +30 -0
- pyrogram/methods/messages/__init__.py +91 -0
- pyrogram/methods/messages/copy_media_group.py +81 -0
- pyrogram/methods/messages/copy_message.py +49 -0
- pyrogram/methods/messages/delete_messages.py +32 -0
- pyrogram/methods/messages/download_media.py +88 -0
- pyrogram/methods/messages/edit_inline_caption.py +20 -0
- pyrogram/methods/messages/edit_inline_media.py +188 -0
- pyrogram/methods/messages/edit_inline_reply_markup.py +25 -0
- pyrogram/methods/messages/edit_inline_text.py +32 -0
- pyrogram/methods/messages/edit_message_caption.py +26 -0
- pyrogram/methods/messages/edit_message_media.py +226 -0
- pyrogram/methods/messages/edit_message_reply_markup.py +29 -0
- pyrogram/methods/messages/edit_message_text.py +38 -0
- pyrogram/methods/messages/forward_messages.py +54 -0
- pyrogram/methods/messages/get_available_effects.py +28 -0
- pyrogram/methods/messages/get_chat_history.py +74 -0
- pyrogram/methods/messages/get_chat_history_count.py +31 -0
- pyrogram/methods/messages/get_custom_emoji_stickers.py +28 -0
- pyrogram/methods/messages/get_discussion_message.py +24 -0
- pyrogram/methods/messages/get_discussion_replies.py +46 -0
- pyrogram/methods/messages/get_discussion_replies_count.py +27 -0
- pyrogram/methods/messages/get_media_group.py +30 -0
- pyrogram/methods/messages/get_messages.py +48 -0
- pyrogram/methods/messages/inline_session.py +46 -0
- pyrogram/methods/messages/read_chat_history.py +28 -0
- pyrogram/methods/messages/search_global.py +58 -0
- pyrogram/methods/messages/search_global_count.py +27 -0
- pyrogram/methods/messages/search_messages.py +77 -0
- pyrogram/methods/messages/search_messages_count.py +39 -0
- pyrogram/methods/messages/send_animation.py +159 -0
- pyrogram/methods/messages/send_audio.py +131 -0
- pyrogram/methods/messages/send_cached_media.py +78 -0
- pyrogram/methods/messages/send_chat_action.py +69 -0
- pyrogram/methods/messages/send_contact.py +72 -0
- pyrogram/methods/messages/send_document.py +120 -0
- pyrogram/methods/messages/send_media_group.py +395 -0
- pyrogram/methods/messages/send_message.py +101 -0
- pyrogram/methods/messages/send_photo.py +115 -0
- pyrogram/methods/messages/send_reaction.py +53 -0
- pyrogram/methods/messages/send_sticker.py +111 -0
- pyrogram/methods/messages/send_video.py +145 -0
- pyrogram/methods/messages/send_video_note.py +125 -0
- pyrogram/methods/messages/send_voice.py +119 -0
- pyrogram/methods/messages/send_web_page.py +103 -0
- pyrogram/methods/messages/stream_media.py +46 -0
- pyrogram/methods/password/__init__.py +11 -0
- pyrogram/methods/password/change_cloud_password.py +35 -0
- pyrogram/methods/password/enable_cloud_password.py +36 -0
- pyrogram/methods/password/remove_cloud_password.py +27 -0
- pyrogram/methods/stickers/__init__.py +10 -0
- pyrogram/methods/stickers/add_sticker_to_set.py +40 -0
- pyrogram/methods/stickers/create_sticker_set.py +50 -0
- pyrogram/methods/stickers/get_sticker_set.py +18 -0
- pyrogram/methods/users/__init__.py +35 -0
- pyrogram/methods/users/block_user.py +18 -0
- pyrogram/methods/users/delete_profile_photos.py +21 -0
- pyrogram/methods/users/get_chat_photos.py +117 -0
- pyrogram/methods/users/get_chat_photos_count.py +36 -0
- pyrogram/methods/users/get_common_chats.py +26 -0
- pyrogram/methods/users/get_default_emoji_statuses.py +16 -0
- pyrogram/methods/users/get_me.py +18 -0
- pyrogram/methods/users/get_users.py +29 -0
- pyrogram/methods/users/set_emoji_status.py +22 -0
- pyrogram/methods/users/set_profile_photo.py +21 -0
- pyrogram/methods/users/set_username.py +18 -0
- pyrogram/methods/users/unblock_user.py +18 -0
- pyrogram/methods/users/update_birthday.py +18 -0
- pyrogram/methods/users/update_personal_chat.py +15 -0
- pyrogram/methods/users/update_profile.py +20 -0
- pyrogram/methods/utilities/__init__.py +23 -0
- pyrogram/methods/utilities/add_handler.py +17 -0
- pyrogram/methods/utilities/compose.py +24 -0
- pyrogram/methods/utilities/export_session_string.py +8 -0
- pyrogram/methods/utilities/idle.py +30 -0
- pyrogram/methods/utilities/remove_handler.py +15 -0
- pyrogram/methods/utilities/restart.py +18 -0
- pyrogram/methods/utilities/run.py +26 -0
- pyrogram/methods/utilities/run_sync.py +8 -0
- pyrogram/methods/utilities/start.py +31 -0
- pyrogram/methods/utilities/stop.py +18 -0
- pyrogram/methods/utilities/stop_transmission.py +7 -0
- pyrogram/mime_types.py +1861 -0
- pyrogram/parser/__init__.py +3 -0
- pyrogram/parser/html.py +215 -0
- pyrogram/parser/markdown.py +212 -0
- pyrogram/parser/parser.py +43 -0
- pyrogram/parser/utils.py +20 -0
- pyrogram/py.typed +0 -0
- pyrogram/raw/__init__.py +8 -0
- pyrogram/raw/all.py +2039 -0
- pyrogram/raw/base/__init__.py +351 -0
- pyrogram/raw/base/access_point_rule.py +35 -0
- pyrogram/raw/base/account/__init__.py +29 -0
- pyrogram/raw/base/account/authorization_form.py +44 -0
- pyrogram/raw/base/account/authorizations.py +44 -0
- pyrogram/raw/base/account/auto_download_settings.py +44 -0
- pyrogram/raw/base/account/auto_save_settings.py +44 -0
- pyrogram/raw/base/account/business_chat_links.py +44 -0
- pyrogram/raw/base/account/connected_bots.py +44 -0
- pyrogram/raw/base/account/content_settings.py +44 -0
- pyrogram/raw/base/account/email_verified.py +45 -0
- pyrogram/raw/base/account/emoji_statuses.py +47 -0
- pyrogram/raw/base/account/password.py +44 -0
- pyrogram/raw/base/account/password_input_settings.py +34 -0
- pyrogram/raw/base/account/password_settings.py +44 -0
- pyrogram/raw/base/account/privacy_rules.py +45 -0
- pyrogram/raw/base/account/reset_password_result.py +46 -0
- pyrogram/raw/base/account/resolved_business_chat_links.py +44 -0
- pyrogram/raw/base/account/saved_ringtone.py +45 -0
- pyrogram/raw/base/account/saved_ringtones.py +45 -0
- pyrogram/raw/base/account/sent_email_code.py +44 -0
- pyrogram/raw/base/account/takeout.py +44 -0
- pyrogram/raw/base/account/themes.py +46 -0
- pyrogram/raw/base/account/tmp_password.py +44 -0
- pyrogram/raw/base/account/wall_papers.py +45 -0
- pyrogram/raw/base/account/web_authorizations.py +44 -0
- pyrogram/raw/base/account_days_ttl.py +44 -0
- pyrogram/raw/base/attach_menu_bot.py +34 -0
- pyrogram/raw/base/attach_menu_bot_icon.py +34 -0
- pyrogram/raw/base/attach_menu_bot_icon_color.py +34 -0
- pyrogram/raw/base/attach_menu_bots.py +45 -0
- pyrogram/raw/base/attach_menu_bots_bot.py +44 -0
- pyrogram/raw/base/attach_menu_peer_type.py +38 -0
- pyrogram/raw/base/auth/__init__.py +14 -0
- pyrogram/raw/base/auth/authorization.py +51 -0
- pyrogram/raw/base/auth/code_type.py +38 -0
- pyrogram/raw/base/auth/exported_authorization.py +44 -0
- pyrogram/raw/base/auth/logged_out.py +44 -0
- pyrogram/raw/base/auth/login_token.py +47 -0
- pyrogram/raw/base/auth/password_recovery.py +44 -0
- pyrogram/raw/base/auth/sent_code.py +50 -0
- pyrogram/raw/base/auth/sent_code_type.py +44 -0
- pyrogram/raw/base/authorization.py +44 -0
- pyrogram/raw/base/auto_download_settings.py +34 -0
- pyrogram/raw/base/auto_save_exception.py +34 -0
- pyrogram/raw/base/auto_save_settings.py +34 -0
- pyrogram/raw/base/available_effect.py +34 -0
- pyrogram/raw/base/available_reaction.py +34 -0
- pyrogram/raw/base/bad_msg_notification.py +35 -0
- pyrogram/raw/base/bank_card_open_url.py +34 -0
- pyrogram/raw/base/base_theme.py +38 -0
- pyrogram/raw/base/bind_auth_key_inner.py +34 -0
- pyrogram/raw/base/birthday.py +34 -0
- pyrogram/raw/base/boost.py +34 -0
- pyrogram/raw/base/bot_app.py +35 -0
- pyrogram/raw/base/bot_business_connection.py +34 -0
- pyrogram/raw/base/bot_command.py +44 -0
- pyrogram/raw/base/bot_command_scope.py +40 -0
- pyrogram/raw/base/bot_info.py +34 -0
- pyrogram/raw/base/bot_inline_message.py +40 -0
- pyrogram/raw/base/bot_inline_result.py +35 -0
- pyrogram/raw/base/bot_menu_button.py +46 -0
- pyrogram/raw/base/bots/__init__.py +7 -0
- pyrogram/raw/base/bots/bot_info.py +44 -0
- pyrogram/raw/base/broadcast_revenue_balances.py +34 -0
- pyrogram/raw/base/broadcast_revenue_transaction.py +36 -0
- pyrogram/raw/base/business_away_message.py +34 -0
- pyrogram/raw/base/business_away_message_schedule.py +36 -0
- pyrogram/raw/base/business_bot_recipients.py +34 -0
- pyrogram/raw/base/business_chat_link.py +45 -0
- pyrogram/raw/base/business_greeting_message.py +34 -0
- pyrogram/raw/base/business_intro.py +34 -0
- pyrogram/raw/base/business_location.py +34 -0
- pyrogram/raw/base/business_recipients.py +34 -0
- pyrogram/raw/base/business_weekly_open.py +34 -0
- pyrogram/raw/base/business_work_hours.py +34 -0
- pyrogram/raw/base/cdn_config.py +44 -0
- pyrogram/raw/base/cdn_public_key.py +34 -0
- pyrogram/raw/base/channel_admin_log_event.py +34 -0
- pyrogram/raw/base/channel_admin_log_event_action.py +81 -0
- pyrogram/raw/base/channel_admin_log_events_filter.py +34 -0
- pyrogram/raw/base/channel_location.py +35 -0
- pyrogram/raw/base/channel_messages_filter.py +35 -0
- pyrogram/raw/base/channel_participant.py +39 -0
- pyrogram/raw/base/channel_participants_filter.py +41 -0
- pyrogram/raw/base/channels/__init__.py +11 -0
- pyrogram/raw/base/channels/admin_log_results.py +44 -0
- pyrogram/raw/base/channels/channel_participant.py +44 -0
- pyrogram/raw/base/channels/channel_participants.py +45 -0
- pyrogram/raw/base/channels/send_as_peers.py +44 -0
- pyrogram/raw/base/channels/sponsored_message_report_result.py +46 -0
- pyrogram/raw/base/chat.py +38 -0
- pyrogram/raw/base/chat_admin_rights.py +34 -0
- pyrogram/raw/base/chat_admin_with_invites.py +34 -0
- pyrogram/raw/base/chat_banned_rights.py +34 -0
- pyrogram/raw/base/chat_full.py +35 -0
- pyrogram/raw/base/chat_invite.py +46 -0
- pyrogram/raw/base/chat_invite_importer.py +34 -0
- pyrogram/raw/base/chat_onlines.py +44 -0
- pyrogram/raw/base/chat_participant.py +36 -0
- pyrogram/raw/base/chat_participants.py +35 -0
- pyrogram/raw/base/chat_photo.py +35 -0
- pyrogram/raw/base/chat_reactions.py +36 -0
- pyrogram/raw/base/chatlists/__init__.py +10 -0
- pyrogram/raw/base/chatlists/chatlist_invite.py +45 -0
- pyrogram/raw/base/chatlists/chatlist_updates.py +44 -0
- pyrogram/raw/base/chatlists/exported_chatlist_invite.py +44 -0
- pyrogram/raw/base/chatlists/exported_invites.py +44 -0
- pyrogram/raw/base/client_dh_inner_data.py +34 -0
- pyrogram/raw/base/code_settings.py +34 -0
- pyrogram/raw/base/config.py +44 -0
- pyrogram/raw/base/connected_bot.py +34 -0
- pyrogram/raw/base/contact.py +34 -0
- pyrogram/raw/base/contact_birthday.py +34 -0
- pyrogram/raw/base/contact_status.py +44 -0
- pyrogram/raw/base/contacts/__init__.py +13 -0
- pyrogram/raw/base/contacts/blocked.py +45 -0
- pyrogram/raw/base/contacts/contact_birthdays.py +44 -0
- pyrogram/raw/base/contacts/contacts.py +45 -0
- pyrogram/raw/base/contacts/found.py +44 -0
- pyrogram/raw/base/contacts/imported_contacts.py +44 -0
- pyrogram/raw/base/contacts/resolved_peer.py +45 -0
- pyrogram/raw/base/contacts/top_peers.py +46 -0
- pyrogram/raw/base/data_json.py +46 -0
- pyrogram/raw/base/dc_option.py +34 -0
- pyrogram/raw/base/default_history_ttl.py +44 -0
- pyrogram/raw/base/destroy_auth_key_res.py +46 -0
- pyrogram/raw/base/destroy_session_res.py +45 -0
- pyrogram/raw/base/dialog.py +35 -0
- pyrogram/raw/base/dialog_filter.py +36 -0
- pyrogram/raw/base/dialog_filter_suggested.py +44 -0
- pyrogram/raw/base/dialog_peer.py +45 -0
- pyrogram/raw/base/document.py +48 -0
- pyrogram/raw/base/document_attribute.py +41 -0
- pyrogram/raw/base/draft_message.py +35 -0
- pyrogram/raw/base/email_verification.py +36 -0
- pyrogram/raw/base/email_verify_purpose.py +36 -0
- pyrogram/raw/base/emoji_group.py +36 -0
- pyrogram/raw/base/emoji_keyword.py +35 -0
- pyrogram/raw/base/emoji_keywords_difference.py +45 -0
- pyrogram/raw/base/emoji_language.py +44 -0
- pyrogram/raw/base/emoji_list.py +49 -0
- pyrogram/raw/base/emoji_status.py +36 -0
- pyrogram/raw/base/emoji_url.py +44 -0
- pyrogram/raw/base/encrypted_chat.py +49 -0
- pyrogram/raw/base/encrypted_file.py +45 -0
- pyrogram/raw/base/encrypted_message.py +35 -0
- pyrogram/raw/base/exported_chat_invite.py +45 -0
- pyrogram/raw/base/exported_chatlist_invite.py +44 -0
- pyrogram/raw/base/exported_contact_token.py +44 -0
- pyrogram/raw/base/exported_message_link.py +44 -0
- pyrogram/raw/base/exported_story_link.py +44 -0
- pyrogram/raw/base/fact_check.py +44 -0
- pyrogram/raw/base/file_hash.py +46 -0
- pyrogram/raw/base/folder.py +34 -0
- pyrogram/raw/base/folder_peer.py +34 -0
- pyrogram/raw/base/forum_topic.py +35 -0
- pyrogram/raw/base/found_story.py +34 -0
- pyrogram/raw/base/fragment/__init__.py +7 -0
- pyrogram/raw/base/fragment/collectible_info.py +44 -0
- pyrogram/raw/base/game.py +34 -0
- pyrogram/raw/base/geo_point.py +35 -0
- pyrogram/raw/base/geo_point_address.py +34 -0
- pyrogram/raw/base/global_privacy_settings.py +45 -0
- pyrogram/raw/base/group_call.py +35 -0
- pyrogram/raw/base/group_call_participant.py +34 -0
- pyrogram/raw/base/group_call_participant_video.py +34 -0
- pyrogram/raw/base/group_call_participant_video_source_group.py +34 -0
- pyrogram/raw/base/group_call_stream_channel.py +34 -0
- pyrogram/raw/base/help/__init__.py +27 -0
- pyrogram/raw/base/help/app_config.py +45 -0
- pyrogram/raw/base/help/app_update.py +45 -0
- pyrogram/raw/base/help/config_simple.py +35 -0
- pyrogram/raw/base/help/countries_list.py +45 -0
- pyrogram/raw/base/help/country.py +34 -0
- pyrogram/raw/base/help/country_code.py +34 -0
- pyrogram/raw/base/help/deep_link_info.py +45 -0
- pyrogram/raw/base/help/invite_text.py +44 -0
- pyrogram/raw/base/help/passport_config.py +45 -0
- pyrogram/raw/base/help/peer_color_option.py +34 -0
- pyrogram/raw/base/help/peer_color_set.py +35 -0
- pyrogram/raw/base/help/peer_colors.py +46 -0
- pyrogram/raw/base/help/premium_promo.py +44 -0
- pyrogram/raw/base/help/promo_data.py +45 -0
- pyrogram/raw/base/help/recent_me_urls.py +44 -0
- pyrogram/raw/base/help/support.py +44 -0
- pyrogram/raw/base/help/support_name.py +44 -0
- pyrogram/raw/base/help/terms_of_service.py +34 -0
- pyrogram/raw/base/help/terms_of_service_update.py +45 -0
- pyrogram/raw/base/help/timezones_list.py +45 -0
- pyrogram/raw/base/help/user_info.py +46 -0
- pyrogram/raw/base/high_score.py +34 -0
- pyrogram/raw/base/http_wait.py +34 -0
- pyrogram/raw/base/imported_contact.py +34 -0
- pyrogram/raw/base/inline_bot_switch_pm.py +34 -0
- pyrogram/raw/base/inline_bot_web_view.py +34 -0
- pyrogram/raw/base/inline_query_peer_type.py +39 -0
- pyrogram/raw/base/input_app_event.py +34 -0
- pyrogram/raw/base/input_bot_app.py +35 -0
- pyrogram/raw/base/input_bot_inline_message.py +41 -0
- pyrogram/raw/base/input_bot_inline_message_id.py +35 -0
- pyrogram/raw/base/input_bot_inline_result.py +37 -0
- pyrogram/raw/base/input_business_away_message.py +34 -0
- pyrogram/raw/base/input_business_bot_recipients.py +34 -0
- pyrogram/raw/base/input_business_chat_link.py +34 -0
- pyrogram/raw/base/input_business_greeting_message.py +34 -0
- pyrogram/raw/base/input_business_intro.py +34 -0
- pyrogram/raw/base/input_business_recipients.py +34 -0
- pyrogram/raw/base/input_channel.py +36 -0
- pyrogram/raw/base/input_chat_photo.py +36 -0
- pyrogram/raw/base/input_chatlist.py +34 -0
- pyrogram/raw/base/input_check_password_srp.py +35 -0
- pyrogram/raw/base/input_client_proxy.py +34 -0
- pyrogram/raw/base/input_collectible.py +35 -0
- pyrogram/raw/base/input_contact.py +34 -0
- pyrogram/raw/base/input_dialog_peer.py +35 -0
- pyrogram/raw/base/input_document.py +35 -0
- pyrogram/raw/base/input_encrypted_chat.py +34 -0
- pyrogram/raw/base/input_encrypted_file.py +37 -0
- pyrogram/raw/base/input_file.py +35 -0
- pyrogram/raw/base/input_file_location.py +45 -0
- pyrogram/raw/base/input_folder_peer.py +34 -0
- pyrogram/raw/base/input_game.py +35 -0
- pyrogram/raw/base/input_geo_point.py +35 -0
- pyrogram/raw/base/input_group_call.py +34 -0
- pyrogram/raw/base/input_invoice.py +37 -0
- pyrogram/raw/base/input_media.py +51 -0
- pyrogram/raw/base/input_message.py +37 -0
- pyrogram/raw/base/input_notify_peer.py +38 -0
- pyrogram/raw/base/input_payment_credentials.py +37 -0
- pyrogram/raw/base/input_peer.py +40 -0
- pyrogram/raw/base/input_peer_notify_settings.py +34 -0
- pyrogram/raw/base/input_phone_call.py +34 -0
- pyrogram/raw/base/input_photo.py +35 -0
- pyrogram/raw/base/input_privacy_key.py +44 -0
- pyrogram/raw/base/input_privacy_rule.py +43 -0
- pyrogram/raw/base/input_quick_reply_shortcut.py +35 -0
- pyrogram/raw/base/input_reply_to.py +35 -0
- pyrogram/raw/base/input_secure_file.py +35 -0
- pyrogram/raw/base/input_secure_value.py +34 -0
- pyrogram/raw/base/input_single_media.py +34 -0
- pyrogram/raw/base/input_stars_transaction.py +34 -0
- pyrogram/raw/base/input_sticker_set.py +44 -0
- pyrogram/raw/base/input_sticker_set_item.py +34 -0
- pyrogram/raw/base/input_stickered_media.py +35 -0
- pyrogram/raw/base/input_store_payment_purpose.py +38 -0
- pyrogram/raw/base/input_theme.py +35 -0
- pyrogram/raw/base/input_theme_settings.py +34 -0
- pyrogram/raw/base/input_user.py +37 -0
- pyrogram/raw/base/input_wall_paper.py +36 -0
- pyrogram/raw/base/input_web_document.py +34 -0
- pyrogram/raw/base/input_web_file_location.py +36 -0
- pyrogram/raw/base/invoice.py +34 -0
- pyrogram/raw/base/ip_port.py +37 -0
- pyrogram/raw/base/json_object_value.py +34 -0
- pyrogram/raw/base/json_value.py +39 -0
- pyrogram/raw/base/keyboard_button.py +50 -0
- pyrogram/raw/base/keyboard_button_row.py +34 -0
- pyrogram/raw/base/labeled_price.py +34 -0
- pyrogram/raw/base/lang_pack_difference.py +45 -0
- pyrogram/raw/base/lang_pack_language.py +45 -0
- pyrogram/raw/base/lang_pack_string.py +46 -0
- pyrogram/raw/base/mask_coords.py +34 -0
- pyrogram/raw/base/media_area.py +40 -0
- pyrogram/raw/base/media_area_coordinates.py +34 -0
- pyrogram/raw/base/message.py +36 -0
- pyrogram/raw/base/message_action.py +77 -0
- pyrogram/raw/base/message_entity.py +54 -0
- pyrogram/raw/base/message_extended_media.py +35 -0
- pyrogram/raw/base/message_fwd_header.py +34 -0
- pyrogram/raw/base/message_media.py +62 -0
- pyrogram/raw/base/message_peer_reaction.py +34 -0
- pyrogram/raw/base/message_peer_vote.py +36 -0
- pyrogram/raw/base/message_range.py +44 -0
- pyrogram/raw/base/message_reactions.py +34 -0
- pyrogram/raw/base/message_replies.py +34 -0
- pyrogram/raw/base/message_reply_header.py +35 -0
- pyrogram/raw/base/message_views.py +34 -0
- pyrogram/raw/base/messages/__init__.py +62 -0
- pyrogram/raw/base/messages/affected_found_messages.py +44 -0
- pyrogram/raw/base/messages/affected_history.py +50 -0
- pyrogram/raw/base/messages/affected_messages.py +47 -0
- pyrogram/raw/base/messages/all_stickers.py +47 -0
- pyrogram/raw/base/messages/archived_stickers.py +44 -0
- pyrogram/raw/base/messages/available_effects.py +45 -0
- pyrogram/raw/base/messages/available_reactions.py +45 -0
- pyrogram/raw/base/messages/bot_app.py +44 -0
- pyrogram/raw/base/messages/bot_callback_answer.py +44 -0
- pyrogram/raw/base/messages/bot_results.py +44 -0
- pyrogram/raw/base/messages/chat_admins_with_invites.py +44 -0
- pyrogram/raw/base/messages/chat_full.py +45 -0
- pyrogram/raw/base/messages/chat_invite_importers.py +44 -0
- pyrogram/raw/base/messages/chats.py +52 -0
- pyrogram/raw/base/messages/checked_history_import_peer.py +44 -0
- pyrogram/raw/base/messages/dh_config.py +45 -0
- pyrogram/raw/base/messages/dialog_filters.py +44 -0
- pyrogram/raw/base/messages/dialogs.py +46 -0
- pyrogram/raw/base/messages/discussion_message.py +44 -0
- pyrogram/raw/base/messages/emoji_groups.py +48 -0
- pyrogram/raw/base/messages/exported_chat_invite.py +46 -0
- pyrogram/raw/base/messages/exported_chat_invites.py +44 -0
- pyrogram/raw/base/messages/faved_stickers.py +45 -0
- pyrogram/raw/base/messages/featured_stickers.py +47 -0
- pyrogram/raw/base/messages/forum_topics.py +45 -0
- pyrogram/raw/base/messages/found_sticker_sets.py +46 -0
- pyrogram/raw/base/messages/high_scores.py +45 -0
- pyrogram/raw/base/messages/history_import.py +44 -0
- pyrogram/raw/base/messages/history_import_parsed.py +44 -0
- pyrogram/raw/base/messages/inactive_chats.py +44 -0
- pyrogram/raw/base/messages/invited_users.py +46 -0
- pyrogram/raw/base/messages/message_edit_data.py +44 -0
- pyrogram/raw/base/messages/message_reactions_list.py +44 -0
- pyrogram/raw/base/messages/message_views.py +44 -0
- pyrogram/raw/base/messages/messages.py +61 -0
- pyrogram/raw/base/messages/my_stickers.py +44 -0
- pyrogram/raw/base/messages/peer_dialogs.py +45 -0
- pyrogram/raw/base/messages/peer_settings.py +44 -0
- pyrogram/raw/base/messages/quick_replies.py +45 -0
- pyrogram/raw/base/messages/reactions.py +47 -0
- pyrogram/raw/base/messages/recent_stickers.py +45 -0
- pyrogram/raw/base/messages/saved_dialogs.py +47 -0
- pyrogram/raw/base/messages/saved_gifs.py +45 -0
- pyrogram/raw/base/messages/saved_reaction_tags.py +45 -0
- pyrogram/raw/base/messages/search_counter.py +44 -0
- pyrogram/raw/base/messages/search_results_calendar.py +44 -0
- pyrogram/raw/base/messages/search_results_positions.py +44 -0
- pyrogram/raw/base/messages/sent_encrypted_message.py +47 -0
- pyrogram/raw/base/messages/sponsored_messages.py +45 -0
- pyrogram/raw/base/messages/sticker_set.py +53 -0
- pyrogram/raw/base/messages/sticker_set_install_result.py +45 -0
- pyrogram/raw/base/messages/stickers.py +45 -0
- pyrogram/raw/base/messages/transcribed_audio.py +44 -0
- pyrogram/raw/base/messages/translated_text.py +44 -0
- pyrogram/raw/base/messages/votes_list.py +44 -0
- pyrogram/raw/base/messages/web_page.py +44 -0
- pyrogram/raw/base/messages_filter.py +50 -0
- pyrogram/raw/base/missing_invitee.py +34 -0
- pyrogram/raw/base/msg_detailed_info.py +35 -0
- pyrogram/raw/base/msg_resend_req.py +35 -0
- pyrogram/raw/base/msgs_ack.py +34 -0
- pyrogram/raw/base/msgs_all_info.py +34 -0
- pyrogram/raw/base/msgs_state_info.py +34 -0
- pyrogram/raw/base/msgs_state_req.py +34 -0
- pyrogram/raw/base/my_boost.py +34 -0
- pyrogram/raw/base/nearest_dc.py +44 -0
- pyrogram/raw/base/new_session.py +34 -0
- pyrogram/raw/base/notification_sound.py +37 -0
- pyrogram/raw/base/notify_peer.py +38 -0
- pyrogram/raw/base/outbox_read_date.py +44 -0
- pyrogram/raw/base/page.py +34 -0
- pyrogram/raw/base/page_block.py +62 -0
- pyrogram/raw/base/page_caption.py +34 -0
- pyrogram/raw/base/page_list_item.py +35 -0
- pyrogram/raw/base/page_list_ordered_item.py +35 -0
- pyrogram/raw/base/page_related_article.py +34 -0
- pyrogram/raw/base/page_table_cell.py +34 -0
- pyrogram/raw/base/page_table_row.py +34 -0
- pyrogram/raw/base/password_kdf_algo.py +35 -0
- pyrogram/raw/base/payment_charge.py +34 -0
- pyrogram/raw/base/payment_form_method.py +34 -0
- pyrogram/raw/base/payment_requested_info.py +34 -0
- pyrogram/raw/base/payment_saved_credentials.py +34 -0
- pyrogram/raw/base/payments/__init__.py +19 -0
- pyrogram/raw/base/payments/bank_card_data.py +44 -0
- pyrogram/raw/base/payments/checked_gift_code.py +44 -0
- pyrogram/raw/base/payments/exported_invoice.py +44 -0
- pyrogram/raw/base/payments/giveaway_info.py +45 -0
- pyrogram/raw/base/payments/payment_form.py +45 -0
- pyrogram/raw/base/payments/payment_receipt.py +45 -0
- pyrogram/raw/base/payments/payment_result.py +46 -0
- pyrogram/raw/base/payments/saved_info.py +44 -0
- pyrogram/raw/base/payments/stars_revenue_ads_account_url.py +44 -0
- pyrogram/raw/base/payments/stars_revenue_stats.py +44 -0
- pyrogram/raw/base/payments/stars_revenue_withdrawal_url.py +44 -0
- pyrogram/raw/base/payments/stars_status.py +46 -0
- pyrogram/raw/base/payments/validated_requested_info.py +44 -0
- pyrogram/raw/base/peer.py +46 -0
- pyrogram/raw/base/peer_blocked.py +34 -0
- pyrogram/raw/base/peer_color.py +34 -0
- pyrogram/raw/base/peer_located.py +35 -0
- pyrogram/raw/base/peer_notify_settings.py +44 -0
- pyrogram/raw/base/peer_settings.py +34 -0
- pyrogram/raw/base/peer_stories.py +34 -0
- pyrogram/raw/base/phone/__init__.py +13 -0
- pyrogram/raw/base/phone/exported_group_call_invite.py +44 -0
- pyrogram/raw/base/phone/group_call.py +44 -0
- pyrogram/raw/base/phone/group_call_stream_channels.py +44 -0
- pyrogram/raw/base/phone/group_call_stream_rtmp_url.py +44 -0
- pyrogram/raw/base/phone/group_participants.py +44 -0
- pyrogram/raw/base/phone/join_as_peers.py +44 -0
- pyrogram/raw/base/phone/phone_call.py +46 -0
- pyrogram/raw/base/phone_call.py +39 -0
- pyrogram/raw/base/phone_call_discard_reason.py +37 -0
- pyrogram/raw/base/phone_call_protocol.py +34 -0
- pyrogram/raw/base/phone_connection.py +35 -0
- pyrogram/raw/base/photo.py +35 -0
- pyrogram/raw/base/photo_size.py +39 -0
- pyrogram/raw/base/photos/__init__.py +8 -0
- pyrogram/raw/base/photos/photo.py +46 -0
- pyrogram/raw/base/photos/photos.py +45 -0
- pyrogram/raw/base/poll.py +34 -0
- pyrogram/raw/base/poll_answer.py +34 -0
- pyrogram/raw/base/poll_answer_voters.py +34 -0
- pyrogram/raw/base/poll_results.py +34 -0
- pyrogram/raw/base/pong.py +45 -0
- pyrogram/raw/base/popular_contact.py +34 -0
- pyrogram/raw/base/post_address.py +34 -0
- pyrogram/raw/base/post_interaction_counters.py +35 -0
- pyrogram/raw/base/pq_inner_data.py +37 -0
- pyrogram/raw/base/premium/__init__.py +9 -0
- pyrogram/raw/base/premium/boosts_list.py +45 -0
- pyrogram/raw/base/premium/boosts_status.py +44 -0
- pyrogram/raw/base/premium/my_boosts.py +45 -0
- pyrogram/raw/base/premium_gift_code_option.py +44 -0
- pyrogram/raw/base/premium_gift_option.py +34 -0
- pyrogram/raw/base/premium_subscription_option.py +34 -0
- pyrogram/raw/base/prepaid_giveaway.py +34 -0
- pyrogram/raw/base/privacy_key.py +44 -0
- pyrogram/raw/base/privacy_rule.py +43 -0
- pyrogram/raw/base/public_forward.py +35 -0
- pyrogram/raw/base/quick_reply.py +34 -0
- pyrogram/raw/base/reaction.py +36 -0
- pyrogram/raw/base/reaction_count.py +34 -0
- pyrogram/raw/base/reaction_notifications_from.py +35 -0
- pyrogram/raw/base/reactions_notify_settings.py +45 -0
- pyrogram/raw/base/read_participant_date.py +44 -0
- pyrogram/raw/base/received_notify_message.py +44 -0
- pyrogram/raw/base/recent_me_url.py +38 -0
- pyrogram/raw/base/reply_markup.py +37 -0
- pyrogram/raw/base/report_reason.py +43 -0
- pyrogram/raw/base/request_peer_type.py +36 -0
- pyrogram/raw/base/requested_peer.py +36 -0
- pyrogram/raw/base/res_pq.py +45 -0
- pyrogram/raw/base/restriction_reason.py +34 -0
- pyrogram/raw/base/rich_text.py +49 -0
- pyrogram/raw/base/rpc_drop_answer.py +46 -0
- pyrogram/raw/base/rpc_error.py +34 -0
- pyrogram/raw/base/rpc_result.py +34 -0
- pyrogram/raw/base/saved_contact.py +44 -0
- pyrogram/raw/base/saved_dialog.py +34 -0
- pyrogram/raw/base/saved_reaction_tag.py +34 -0
- pyrogram/raw/base/search_results_calendar_period.py +34 -0
- pyrogram/raw/base/search_results_position.py +34 -0
- pyrogram/raw/base/secure_credentials_encrypted.py +34 -0
- pyrogram/raw/base/secure_data.py +34 -0
- pyrogram/raw/base/secure_file.py +35 -0
- pyrogram/raw/base/secure_password_kdf_algo.py +36 -0
- pyrogram/raw/base/secure_plain_data.py +35 -0
- pyrogram/raw/base/secure_required_type.py +35 -0
- pyrogram/raw/base/secure_secret_settings.py +34 -0
- pyrogram/raw/base/secure_value.py +46 -0
- pyrogram/raw/base/secure_value_error.py +42 -0
- pyrogram/raw/base/secure_value_hash.py +34 -0
- pyrogram/raw/base/secure_value_type.py +46 -0
- pyrogram/raw/base/send_as_peer.py +34 -0
- pyrogram/raw/base/send_message_action.py +51 -0
- pyrogram/raw/base/server_dh_inner_data.py +34 -0
- pyrogram/raw/base/server_dh_params.py +45 -0
- pyrogram/raw/base/set_client_dh_params_answer.py +46 -0
- pyrogram/raw/base/shipping_option.py +34 -0
- pyrogram/raw/base/sms_job.py +44 -0
- pyrogram/raw/base/smsjobs/__init__.py +8 -0
- pyrogram/raw/base/smsjobs/eligibility_to_join.py +44 -0
- pyrogram/raw/base/smsjobs/status.py +44 -0
- pyrogram/raw/base/sponsored_message.py +34 -0
- pyrogram/raw/base/sponsored_message_report_option.py +34 -0
- pyrogram/raw/base/stars_revenue_status.py +34 -0
- pyrogram/raw/base/stars_topup_option.py +44 -0
- pyrogram/raw/base/stars_transaction.py +34 -0
- pyrogram/raw/base/stars_transaction_peer.py +40 -0
- pyrogram/raw/base/stats/__init__.py +14 -0
- pyrogram/raw/base/stats/broadcast_revenue_stats.py +44 -0
- pyrogram/raw/base/stats/broadcast_revenue_transactions.py +44 -0
- pyrogram/raw/base/stats/broadcast_revenue_withdrawal_url.py +44 -0
- pyrogram/raw/base/stats/broadcast_stats.py +44 -0
- pyrogram/raw/base/stats/megagroup_stats.py +44 -0
- pyrogram/raw/base/stats/message_stats.py +44 -0
- pyrogram/raw/base/stats/public_forwards.py +45 -0
- pyrogram/raw/base/stats/story_stats.py +44 -0
- pyrogram/raw/base/stats_abs_value_and_prev.py +34 -0
- pyrogram/raw/base/stats_date_range_days.py +34 -0
- pyrogram/raw/base/stats_graph.py +46 -0
- pyrogram/raw/base/stats_group_top_admin.py +34 -0
- pyrogram/raw/base/stats_group_top_inviter.py +34 -0
- pyrogram/raw/base/stats_group_top_poster.py +34 -0
- pyrogram/raw/base/stats_percent_value.py +34 -0
- pyrogram/raw/base/stats_url.py +34 -0
- pyrogram/raw/base/sticker_keyword.py +34 -0
- pyrogram/raw/base/sticker_pack.py +34 -0
- pyrogram/raw/base/sticker_set.py +34 -0
- pyrogram/raw/base/sticker_set_covered.py +47 -0
- pyrogram/raw/base/stickers/__init__.py +7 -0
- pyrogram/raw/base/stickers/suggested_short_name.py +44 -0
- pyrogram/raw/base/storage/__init__.py +7 -0
- pyrogram/raw/base/storage/file_type.py +43 -0
- pyrogram/raw/base/stories/__init__.py +13 -0
- pyrogram/raw/base/stories/all_stories.py +45 -0
- pyrogram/raw/base/stories/found_stories.py +44 -0
- pyrogram/raw/base/stories/peer_stories.py +44 -0
- pyrogram/raw/base/stories/stories.py +46 -0
- pyrogram/raw/base/stories/story_reactions_list.py +44 -0
- pyrogram/raw/base/stories/story_views.py +44 -0
- pyrogram/raw/base/stories/story_views_list.py +44 -0
- pyrogram/raw/base/stories_stealth_mode.py +34 -0
- pyrogram/raw/base/story_fwd_header.py +34 -0
- pyrogram/raw/base/story_item.py +36 -0
- pyrogram/raw/base/story_reaction.py +36 -0
- pyrogram/raw/base/story_view.py +36 -0
- pyrogram/raw/base/story_views.py +34 -0
- pyrogram/raw/base/text_with_entities.py +34 -0
- pyrogram/raw/base/theme.py +46 -0
- pyrogram/raw/base/theme_settings.py +34 -0
- pyrogram/raw/base/timezone.py +34 -0
- pyrogram/raw/base/top_peer.py +34 -0
- pyrogram/raw/base/top_peer_category.py +41 -0
- pyrogram/raw/base/top_peer_category_peers.py +34 -0
- pyrogram/raw/base/update.py +172 -0
- pyrogram/raw/base/updates/__init__.py +9 -0
- pyrogram/raw/base/updates/channel_difference.py +46 -0
- pyrogram/raw/base/updates/difference.py +47 -0
- pyrogram/raw/base/updates/state.py +44 -0
- pyrogram/raw/base/updates_t.py +152 -0
- pyrogram/raw/base/upload/__init__.py +9 -0
- pyrogram/raw/base/upload/cdn_file.py +45 -0
- pyrogram/raw/base/upload/file.py +45 -0
- pyrogram/raw/base/upload/web_file.py +44 -0
- pyrogram/raw/base/url_auth_result.py +47 -0
- pyrogram/raw/base/user.py +49 -0
- pyrogram/raw/base/user_full.py +34 -0
- pyrogram/raw/base/user_profile_photo.py +35 -0
- pyrogram/raw/base/user_status.py +39 -0
- pyrogram/raw/base/username.py +34 -0
- pyrogram/raw/base/users/__init__.py +7 -0
- pyrogram/raw/base/users/user_full.py +44 -0
- pyrogram/raw/base/video_size.py +36 -0
- pyrogram/raw/base/wall_paper.py +47 -0
- pyrogram/raw/base/wall_paper_settings.py +34 -0
- pyrogram/raw/base/web_authorization.py +34 -0
- pyrogram/raw/base/web_document.py +35 -0
- pyrogram/raw/base/web_page.py +37 -0
- pyrogram/raw/base/web_page_attribute.py +36 -0
- pyrogram/raw/base/web_view_message_sent.py +44 -0
- pyrogram/raw/base/web_view_result.py +46 -0
- pyrogram/raw/core/__init__.py +13 -0
- pyrogram/raw/core/future_salt.py +35 -0
- pyrogram/raw/core/future_salts.py +45 -0
- pyrogram/raw/core/gzip_packed.py +43 -0
- pyrogram/raw/core/list.py +8 -0
- pyrogram/raw/core/message.py +38 -0
- pyrogram/raw/core/msg_container.py +35 -0
- pyrogram/raw/core/primitives/__init__.py +6 -0
- pyrogram/raw/core/primitives/bool.py +30 -0
- pyrogram/raw/core/primitives/bytes.py +37 -0
- pyrogram/raw/core/primitives/double.py +14 -0
- pyrogram/raw/core/primitives/int.py +27 -0
- pyrogram/raw/core/primitives/string.py +13 -0
- pyrogram/raw/core/primitives/vector.py +51 -0
- pyrogram/raw/core/tl_object.py +64 -0
- pyrogram/raw/functions/__init__.py +27 -0
- pyrogram/raw/functions/account/__init__.py +118 -0
- pyrogram/raw/functions/account/accept_authorization.py +86 -0
- pyrogram/raw/functions/account/cancel_password_email.py +49 -0
- pyrogram/raw/functions/account/change_authorization_settings.py +80 -0
- pyrogram/raw/functions/account/change_phone.py +70 -0
- pyrogram/raw/functions/account/check_username.py +54 -0
- pyrogram/raw/functions/account/clear_recent_emoji_statuses.py +49 -0
- pyrogram/raw/functions/account/confirm_password_email.py +54 -0
- pyrogram/raw/functions/account/confirm_phone.py +62 -0
- pyrogram/raw/functions/account/create_business_chat_link.py +54 -0
- pyrogram/raw/functions/account/create_theme.py +84 -0
- pyrogram/raw/functions/account/decline_password_reset.py +49 -0
- pyrogram/raw/functions/account/delete_account.py +66 -0
- pyrogram/raw/functions/account/delete_auto_save_exceptions.py +49 -0
- pyrogram/raw/functions/account/delete_business_chat_link.py +54 -0
- pyrogram/raw/functions/account/delete_secure_value.py +54 -0
- pyrogram/raw/functions/account/disable_peer_connected_bot.py +54 -0
- pyrogram/raw/functions/account/edit_business_chat_link.py +62 -0
- pyrogram/raw/functions/account/finish_takeout_session.py +54 -0
- pyrogram/raw/functions/account/get_account_ttl.py +49 -0
- pyrogram/raw/functions/account/get_all_secure_values.py +49 -0
- pyrogram/raw/functions/account/get_authorization_form.py +70 -0
- pyrogram/raw/functions/account/get_authorizations.py +49 -0
- pyrogram/raw/functions/account/get_auto_download_settings.py +49 -0
- pyrogram/raw/functions/account/get_auto_save_settings.py +49 -0
- pyrogram/raw/functions/account/get_bot_business_connection.py +54 -0
- pyrogram/raw/functions/account/get_business_chat_links.py +49 -0
- pyrogram/raw/functions/account/get_channel_default_emoji_statuses.py +54 -0
- pyrogram/raw/functions/account/get_channel_restricted_status_emojis.py +54 -0
- pyrogram/raw/functions/account/get_chat_themes.py +54 -0
- pyrogram/raw/functions/account/get_connected_bots.py +49 -0
- pyrogram/raw/functions/account/get_contact_sign_up_notification.py +49 -0
- pyrogram/raw/functions/account/get_content_settings.py +49 -0
- pyrogram/raw/functions/account/get_default_background_emojis.py +54 -0
- pyrogram/raw/functions/account/get_default_emoji_statuses.py +54 -0
- pyrogram/raw/functions/account/get_default_group_photo_emojis.py +54 -0
- pyrogram/raw/functions/account/get_default_profile_photo_emojis.py +54 -0
- pyrogram/raw/functions/account/get_global_privacy_settings.py +49 -0
- pyrogram/raw/functions/account/get_multi_wall_papers.py +54 -0
- pyrogram/raw/functions/account/get_notify_exceptions.py +70 -0
- pyrogram/raw/functions/account/get_notify_settings.py +54 -0
- pyrogram/raw/functions/account/get_password.py +49 -0
- pyrogram/raw/functions/account/get_password_settings.py +54 -0
- pyrogram/raw/functions/account/get_privacy.py +54 -0
- pyrogram/raw/functions/account/get_reactions_notify_settings.py +49 -0
- pyrogram/raw/functions/account/get_recent_emoji_statuses.py +54 -0
- pyrogram/raw/functions/account/get_saved_ringtones.py +54 -0
- pyrogram/raw/functions/account/get_secure_value.py +54 -0
- pyrogram/raw/functions/account/get_theme.py +62 -0
- pyrogram/raw/functions/account/get_themes.py +62 -0
- pyrogram/raw/functions/account/get_tmp_password.py +62 -0
- pyrogram/raw/functions/account/get_wall_paper.py +54 -0
- pyrogram/raw/functions/account/get_wall_papers.py +54 -0
- pyrogram/raw/functions/account/get_web_authorizations.py +49 -0
- pyrogram/raw/functions/account/init_takeout_session.py +93 -0
- pyrogram/raw/functions/account/install_theme.py +83 -0
- pyrogram/raw/functions/account/install_wall_paper.py +62 -0
- pyrogram/raw/functions/account/invalidate_sign_in_codes.py +54 -0
- pyrogram/raw/functions/account/register_device.py +94 -0
- pyrogram/raw/functions/account/reorder_usernames.py +54 -0
- pyrogram/raw/functions/account/report_peer.py +70 -0
- pyrogram/raw/functions/account/report_profile_photo.py +78 -0
- pyrogram/raw/functions/account/resend_password_email.py +49 -0
- pyrogram/raw/functions/account/reset_authorization.py +54 -0
- pyrogram/raw/functions/account/reset_notify_settings.py +49 -0
- pyrogram/raw/functions/account/reset_password.py +49 -0
- pyrogram/raw/functions/account/reset_wall_papers.py +49 -0
- pyrogram/raw/functions/account/reset_web_authorization.py +54 -0
- pyrogram/raw/functions/account/reset_web_authorizations.py +49 -0
- pyrogram/raw/functions/account/resolve_business_chat_link.py +54 -0
- pyrogram/raw/functions/account/save_auto_download_settings.py +68 -0
- pyrogram/raw/functions/account/save_auto_save_settings.py +84 -0
- pyrogram/raw/functions/account/save_ringtone.py +62 -0
- pyrogram/raw/functions/account/save_secure_value.py +62 -0
- pyrogram/raw/functions/account/save_theme.py +62 -0
- pyrogram/raw/functions/account/save_wall_paper.py +70 -0
- pyrogram/raw/functions/account/send_change_phone_code.py +62 -0
- pyrogram/raw/functions/account/send_confirm_phone_code.py +62 -0
- pyrogram/raw/functions/account/send_verify_email_code.py +62 -0
- pyrogram/raw/functions/account/send_verify_phone_code.py +62 -0
- pyrogram/raw/functions/account/set_account_ttl.py +54 -0
- pyrogram/raw/functions/account/set_authorization_ttl.py +54 -0
- pyrogram/raw/functions/account/set_contact_sign_up_notification.py +54 -0
- pyrogram/raw/functions/account/set_content_settings.py +54 -0
- pyrogram/raw/functions/account/set_global_privacy_settings.py +54 -0
- pyrogram/raw/functions/account/set_privacy.py +62 -0
- pyrogram/raw/functions/account/set_reactions_notify_settings.py +54 -0
- pyrogram/raw/functions/account/toggle_connected_bot_paused.py +62 -0
- pyrogram/raw/functions/account/toggle_sponsored_messages.py +54 -0
- pyrogram/raw/functions/account/toggle_username.py +62 -0
- pyrogram/raw/functions/account/unregister_device.py +70 -0
- pyrogram/raw/functions/account/update_birthday.py +58 -0
- pyrogram/raw/functions/account/update_business_away_message.py +58 -0
- pyrogram/raw/functions/account/update_business_greeting_message.py +58 -0
- pyrogram/raw/functions/account/update_business_intro.py +58 -0
- pyrogram/raw/functions/account/update_business_location.py +67 -0
- pyrogram/raw/functions/account/update_business_work_hours.py +58 -0
- pyrogram/raw/functions/account/update_color.py +72 -0
- pyrogram/raw/functions/account/update_connected_bot.py +76 -0
- pyrogram/raw/functions/account/update_device_locked.py +54 -0
- pyrogram/raw/functions/account/update_emoji_status.py +54 -0
- pyrogram/raw/functions/account/update_notify_settings.py +62 -0
- pyrogram/raw/functions/account/update_password_settings.py +62 -0
- pyrogram/raw/functions/account/update_personal_channel.py +54 -0
- pyrogram/raw/functions/account/update_profile.py +75 -0
- pyrogram/raw/functions/account/update_status.py +54 -0
- pyrogram/raw/functions/account/update_theme.py +102 -0
- pyrogram/raw/functions/account/update_username.py +54 -0
- pyrogram/raw/functions/account/upload_ringtone.py +70 -0
- pyrogram/raw/functions/account/upload_theme.py +82 -0
- pyrogram/raw/functions/account/upload_wall_paper.py +78 -0
- pyrogram/raw/functions/account/verify_email.py +62 -0
- pyrogram/raw/functions/account/verify_phone.py +70 -0
- pyrogram/raw/functions/auth/__init__.py +29 -0
- pyrogram/raw/functions/auth/accept_login_token.py +54 -0
- pyrogram/raw/functions/auth/bind_temp_auth_key.py +78 -0
- pyrogram/raw/functions/auth/cancel_code.py +62 -0
- pyrogram/raw/functions/auth/check_password.py +54 -0
- pyrogram/raw/functions/auth/check_recovery_password.py +54 -0
- pyrogram/raw/functions/auth/drop_temp_auth_keys.py +54 -0
- pyrogram/raw/functions/auth/export_authorization.py +54 -0
- pyrogram/raw/functions/auth/export_login_token.py +70 -0
- pyrogram/raw/functions/auth/import_authorization.py +62 -0
- pyrogram/raw/functions/auth/import_bot_authorization.py +78 -0
- pyrogram/raw/functions/auth/import_login_token.py +54 -0
- pyrogram/raw/functions/auth/import_web_token_authorization.py +70 -0
- pyrogram/raw/functions/auth/log_out.py +49 -0
- pyrogram/raw/functions/auth/recover_password.py +66 -0
- pyrogram/raw/functions/auth/report_missing_code.py +70 -0
- pyrogram/raw/functions/auth/request_firebase_sms.py +91 -0
- pyrogram/raw/functions/auth/request_password_recovery.py +49 -0
- pyrogram/raw/functions/auth/resend_code.py +73 -0
- pyrogram/raw/functions/auth/reset_authorizations.py +49 -0
- pyrogram/raw/functions/auth/reset_login_email.py +62 -0
- pyrogram/raw/functions/auth/send_code.py +78 -0
- pyrogram/raw/functions/auth/sign_in.py +83 -0
- pyrogram/raw/functions/auth/sign_up.py +86 -0
- pyrogram/raw/functions/bots/__init__.py +22 -0
- pyrogram/raw/functions/bots/allow_send_message.py +54 -0
- pyrogram/raw/functions/bots/answer_webhook_json_query.py +62 -0
- pyrogram/raw/functions/bots/can_send_message.py +54 -0
- pyrogram/raw/functions/bots/get_bot_commands.py +62 -0
- pyrogram/raw/functions/bots/get_bot_info.py +66 -0
- pyrogram/raw/functions/bots/get_bot_menu_button.py +54 -0
- pyrogram/raw/functions/bots/invoke_web_view_custom_method.py +70 -0
- pyrogram/raw/functions/bots/reorder_usernames.py +62 -0
- pyrogram/raw/functions/bots/reset_bot_commands.py +62 -0
- pyrogram/raw/functions/bots/send_custom_request.py +62 -0
- pyrogram/raw/functions/bots/set_bot_broadcast_default_admin_rights.py +54 -0
- pyrogram/raw/functions/bots/set_bot_commands.py +70 -0
- pyrogram/raw/functions/bots/set_bot_group_default_admin_rights.py +54 -0
- pyrogram/raw/functions/bots/set_bot_info.py +93 -0
- pyrogram/raw/functions/bots/set_bot_menu_button.py +62 -0
- pyrogram/raw/functions/bots/toggle_username.py +70 -0
- pyrogram/raw/functions/channels/__init__.py +71 -0
- pyrogram/raw/functions/channels/check_username.py +62 -0
- pyrogram/raw/functions/channels/click_sponsored_message.py +62 -0
- pyrogram/raw/functions/channels/convert_to_gigagroup.py +54 -0
- pyrogram/raw/functions/channels/create_channel.py +116 -0
- pyrogram/raw/functions/channels/create_forum_topic.py +100 -0
- pyrogram/raw/functions/channels/deactivate_all_usernames.py +54 -0
- pyrogram/raw/functions/channels/delete_channel.py +54 -0
- pyrogram/raw/functions/channels/delete_history.py +70 -0
- pyrogram/raw/functions/channels/delete_messages.py +62 -0
- pyrogram/raw/functions/channels/delete_participant_history.py +62 -0
- pyrogram/raw/functions/channels/delete_topic_history.py +62 -0
- pyrogram/raw/functions/channels/edit_admin.py +78 -0
- pyrogram/raw/functions/channels/edit_banned.py +70 -0
- pyrogram/raw/functions/channels/edit_creator.py +70 -0
- pyrogram/raw/functions/channels/edit_forum_topic.py +100 -0
- pyrogram/raw/functions/channels/edit_location.py +70 -0
- pyrogram/raw/functions/channels/edit_photo.py +62 -0
- pyrogram/raw/functions/channels/edit_title.py +62 -0
- pyrogram/raw/functions/channels/export_message_link.py +76 -0
- pyrogram/raw/functions/channels/get_admin_log.py +108 -0
- pyrogram/raw/functions/channels/get_admined_public_channels.py +66 -0
- pyrogram/raw/functions/channels/get_channel_recommendations.py +58 -0
- pyrogram/raw/functions/channels/get_channels.py +54 -0
- pyrogram/raw/functions/channels/get_forum_topics.py +97 -0
- pyrogram/raw/functions/channels/get_forum_topics_by_id.py +62 -0
- pyrogram/raw/functions/channels/get_full_channel.py +54 -0
- pyrogram/raw/functions/channels/get_groups_for_discussion.py +49 -0
- pyrogram/raw/functions/channels/get_inactive_channels.py +49 -0
- pyrogram/raw/functions/channels/get_left_channels.py +54 -0
- pyrogram/raw/functions/channels/get_messages.py +62 -0
- pyrogram/raw/functions/channels/get_participant.py +62 -0
- pyrogram/raw/functions/channels/get_participants.py +86 -0
- pyrogram/raw/functions/channels/get_send_as.py +54 -0
- pyrogram/raw/functions/channels/get_sponsored_messages.py +54 -0
- pyrogram/raw/functions/channels/invite_to_channel.py +62 -0
- pyrogram/raw/functions/channels/join_channel.py +54 -0
- pyrogram/raw/functions/channels/leave_channel.py +54 -0
- pyrogram/raw/functions/channels/read_history.py +62 -0
- pyrogram/raw/functions/channels/read_message_contents.py +62 -0
- pyrogram/raw/functions/channels/reorder_pinned_forum_topics.py +70 -0
- pyrogram/raw/functions/channels/reorder_usernames.py +62 -0
- pyrogram/raw/functions/channels/report_anti_spam_false_positive.py +62 -0
- pyrogram/raw/functions/channels/report_spam.py +70 -0
- pyrogram/raw/functions/channels/report_sponsored_message.py +70 -0
- pyrogram/raw/functions/channels/restrict_sponsored_messages.py +62 -0
- pyrogram/raw/functions/channels/search_posts.py +86 -0
- pyrogram/raw/functions/channels/set_boosts_to_unblock_restrictions.py +62 -0
- pyrogram/raw/functions/channels/set_discussion_group.py +62 -0
- pyrogram/raw/functions/channels/set_emoji_stickers.py +62 -0
- pyrogram/raw/functions/channels/set_stickers.py +62 -0
- pyrogram/raw/functions/channels/toggle_anti_spam.py +62 -0
- pyrogram/raw/functions/channels/toggle_forum.py +62 -0
- pyrogram/raw/functions/channels/toggle_join_request.py +62 -0
- pyrogram/raw/functions/channels/toggle_join_to_send.py +62 -0
- pyrogram/raw/functions/channels/toggle_participants_hidden.py +62 -0
- pyrogram/raw/functions/channels/toggle_pre_history_hidden.py +62 -0
- pyrogram/raw/functions/channels/toggle_signatures.py +62 -0
- pyrogram/raw/functions/channels/toggle_slow_mode.py +62 -0
- pyrogram/raw/functions/channels/toggle_username.py +70 -0
- pyrogram/raw/functions/channels/toggle_view_forum_as_messages.py +62 -0
- pyrogram/raw/functions/channels/update_color.py +80 -0
- pyrogram/raw/functions/channels/update_emoji_status.py +62 -0
- pyrogram/raw/functions/channels/update_pinned_forum_topic.py +70 -0
- pyrogram/raw/functions/channels/update_username.py +62 -0
- pyrogram/raw/functions/channels/view_sponsored_message.py +62 -0
- pyrogram/raw/functions/chatlists/__init__.py +17 -0
- pyrogram/raw/functions/chatlists/check_chatlist_invite.py +54 -0
- pyrogram/raw/functions/chatlists/delete_exported_invite.py +62 -0
- pyrogram/raw/functions/chatlists/edit_exported_invite.py +83 -0
- pyrogram/raw/functions/chatlists/export_chatlist_invite.py +70 -0
- pyrogram/raw/functions/chatlists/get_chatlist_updates.py +54 -0
- pyrogram/raw/functions/chatlists/get_exported_invites.py +54 -0
- pyrogram/raw/functions/chatlists/get_leave_chatlist_suggestions.py +54 -0
- pyrogram/raw/functions/chatlists/hide_chatlist_updates.py +54 -0
- pyrogram/raw/functions/chatlists/join_chatlist_invite.py +62 -0
- pyrogram/raw/functions/chatlists/join_chatlist_updates.py +62 -0
- pyrogram/raw/functions/chatlists/leave_chatlist.py +62 -0
- pyrogram/raw/functions/contacts/__init__.py +32 -0
- pyrogram/raw/functions/contacts/accept_contact.py +54 -0
- pyrogram/raw/functions/contacts/add_contact.py +86 -0
- pyrogram/raw/functions/contacts/block.py +62 -0
- pyrogram/raw/functions/contacts/block_from_replies.py +74 -0
- pyrogram/raw/functions/contacts/delete_by_phones.py +54 -0
- pyrogram/raw/functions/contacts/delete_contacts.py +54 -0
- pyrogram/raw/functions/contacts/edit_close_friends.py +54 -0
- pyrogram/raw/functions/contacts/export_contact_token.py +49 -0
- pyrogram/raw/functions/contacts/get_birthdays.py +49 -0
- pyrogram/raw/functions/contacts/get_blocked.py +70 -0
- pyrogram/raw/functions/contacts/get_contact_i_ds.py +54 -0
- pyrogram/raw/functions/contacts/get_contacts.py +54 -0
- pyrogram/raw/functions/contacts/get_located.py +71 -0
- pyrogram/raw/functions/contacts/get_saved.py +49 -0
- pyrogram/raw/functions/contacts/get_statuses.py +49 -0
- pyrogram/raw/functions/contacts/get_top_peers.py +120 -0
- pyrogram/raw/functions/contacts/import_contact_token.py +54 -0
- pyrogram/raw/functions/contacts/import_contacts.py +54 -0
- pyrogram/raw/functions/contacts/reset_saved.py +49 -0
- pyrogram/raw/functions/contacts/reset_top_peer_rating.py +62 -0
- pyrogram/raw/functions/contacts/resolve_phone.py +54 -0
- pyrogram/raw/functions/contacts/resolve_username.py +54 -0
- pyrogram/raw/functions/contacts/search.py +62 -0
- pyrogram/raw/functions/contacts/set_blocked.py +70 -0
- pyrogram/raw/functions/contacts/toggle_top_peers.py +54 -0
- pyrogram/raw/functions/contacts/unblock.py +62 -0
- pyrogram/raw/functions/contest/__init__.py +7 -0
- pyrogram/raw/functions/contest/save_developer_info.py +86 -0
- pyrogram/raw/functions/destroy_auth_key.py +49 -0
- pyrogram/raw/functions/destroy_session.py +54 -0
- pyrogram/raw/functions/folders/__init__.py +7 -0
- pyrogram/raw/functions/folders/edit_peer_folders.py +54 -0
- pyrogram/raw/functions/fragment/__init__.py +7 -0
- pyrogram/raw/functions/fragment/get_collectible_info.py +54 -0
- pyrogram/raw/functions/get_future_salts.py +54 -0
- pyrogram/raw/functions/help/__init__.py +31 -0
- pyrogram/raw/functions/help/accept_terms_of_service.py +54 -0
- pyrogram/raw/functions/help/dismiss_suggestion.py +62 -0
- pyrogram/raw/functions/help/edit_user_info.py +70 -0
- pyrogram/raw/functions/help/get_app_config.py +54 -0
- pyrogram/raw/functions/help/get_app_update.py +54 -0
- pyrogram/raw/functions/help/get_cdn_config.py +49 -0
- pyrogram/raw/functions/help/get_config.py +49 -0
- pyrogram/raw/functions/help/get_countries_list.py +62 -0
- pyrogram/raw/functions/help/get_deep_link_info.py +54 -0
- pyrogram/raw/functions/help/get_invite_text.py +49 -0
- pyrogram/raw/functions/help/get_nearest_dc.py +49 -0
- pyrogram/raw/functions/help/get_passport_config.py +54 -0
- pyrogram/raw/functions/help/get_peer_colors.py +54 -0
- pyrogram/raw/functions/help/get_peer_profile_colors.py +54 -0
- pyrogram/raw/functions/help/get_premium_promo.py +49 -0
- pyrogram/raw/functions/help/get_promo_data.py +49 -0
- pyrogram/raw/functions/help/get_recent_me_urls.py +54 -0
- pyrogram/raw/functions/help/get_support.py +49 -0
- pyrogram/raw/functions/help/get_support_name.py +49 -0
- pyrogram/raw/functions/help/get_terms_of_service_update.py +49 -0
- pyrogram/raw/functions/help/get_timezones_list.py +54 -0
- pyrogram/raw/functions/help/get_user_info.py +54 -0
- pyrogram/raw/functions/help/hide_promo_data.py +54 -0
- pyrogram/raw/functions/help/save_app_log.py +54 -0
- pyrogram/raw/functions/help/set_bot_updates_status.py +62 -0
- pyrogram/raw/functions/init_connection.py +132 -0
- pyrogram/raw/functions/invoke_after_msg.py +62 -0
- pyrogram/raw/functions/invoke_after_msgs.py +62 -0
- pyrogram/raw/functions/invoke_with_apns_secret.py +70 -0
- pyrogram/raw/functions/invoke_with_business_connection.py +62 -0
- pyrogram/raw/functions/invoke_with_google_play_integrity.py +70 -0
- pyrogram/raw/functions/invoke_with_layer.py +62 -0
- pyrogram/raw/functions/invoke_with_messages_range.py +62 -0
- pyrogram/raw/functions/invoke_with_takeout.py +62 -0
- pyrogram/raw/functions/invoke_without_updates.py +54 -0
- pyrogram/raw/functions/langpack/__init__.py +11 -0
- pyrogram/raw/functions/langpack/get_difference.py +70 -0
- pyrogram/raw/functions/langpack/get_lang_pack.py +62 -0
- pyrogram/raw/functions/langpack/get_language.py +62 -0
- pyrogram/raw/functions/langpack/get_languages.py +54 -0
- pyrogram/raw/functions/langpack/get_strings.py +70 -0
- pyrogram/raw/functions/messages/__init__.py +219 -0
- pyrogram/raw/functions/messages/accept_encryption.py +70 -0
- pyrogram/raw/functions/messages/accept_url_auth.py +91 -0
- pyrogram/raw/functions/messages/add_chat_user.py +70 -0
- pyrogram/raw/functions/messages/check_chat_invite.py +54 -0
- pyrogram/raw/functions/messages/check_history_import.py +54 -0
- pyrogram/raw/functions/messages/check_history_import_peer.py +54 -0
- pyrogram/raw/functions/messages/check_quick_reply_shortcut.py +54 -0
- pyrogram/raw/functions/messages/clear_all_drafts.py +49 -0
- pyrogram/raw/functions/messages/clear_recent_reactions.py +49 -0
- pyrogram/raw/functions/messages/clear_recent_stickers.py +54 -0
- pyrogram/raw/functions/messages/create_chat.py +73 -0
- pyrogram/raw/functions/messages/delete_chat.py +54 -0
- pyrogram/raw/functions/messages/delete_chat_user.py +70 -0
- pyrogram/raw/functions/messages/delete_exported_chat_invite.py +62 -0
- pyrogram/raw/functions/messages/delete_fact_check.py +62 -0
- pyrogram/raw/functions/messages/delete_history.py +94 -0
- pyrogram/raw/functions/messages/delete_messages.py +62 -0
- pyrogram/raw/functions/messages/delete_phone_call_history.py +54 -0
- pyrogram/raw/functions/messages/delete_quick_reply_messages.py +62 -0
- pyrogram/raw/functions/messages/delete_quick_reply_shortcut.py +54 -0
- pyrogram/raw/functions/messages/delete_revoked_exported_chat_invites.py +62 -0
- pyrogram/raw/functions/messages/delete_saved_history.py +82 -0
- pyrogram/raw/functions/messages/delete_scheduled_messages.py +62 -0
- pyrogram/raw/functions/messages/discard_encryption.py +62 -0
- pyrogram/raw/functions/messages/edit_chat_about.py +62 -0
- pyrogram/raw/functions/messages/edit_chat_admin.py +70 -0
- pyrogram/raw/functions/messages/edit_chat_default_banned_rights.py +62 -0
- pyrogram/raw/functions/messages/edit_chat_photo.py +62 -0
- pyrogram/raw/functions/messages/edit_chat_title.py +62 -0
- pyrogram/raw/functions/messages/edit_exported_chat_invite.py +106 -0
- pyrogram/raw/functions/messages/edit_fact_check.py +70 -0
- pyrogram/raw/functions/messages/edit_inline_bot_message.py +107 -0
- pyrogram/raw/functions/messages/edit_message.py +133 -0
- pyrogram/raw/functions/messages/edit_quick_reply_shortcut.py +62 -0
- pyrogram/raw/functions/messages/export_chat_invite.py +95 -0
- pyrogram/raw/functions/messages/fave_sticker.py +62 -0
- pyrogram/raw/functions/messages/forward_messages.py +154 -0
- pyrogram/raw/functions/messages/get_admins_with_invites.py +54 -0
- pyrogram/raw/functions/messages/get_all_drafts.py +49 -0
- pyrogram/raw/functions/messages/get_all_stickers.py +54 -0
- pyrogram/raw/functions/messages/get_archived_stickers.py +76 -0
- pyrogram/raw/functions/messages/get_attach_menu_bot.py +54 -0
- pyrogram/raw/functions/messages/get_attach_menu_bots.py +54 -0
- pyrogram/raw/functions/messages/get_attached_stickers.py +54 -0
- pyrogram/raw/functions/messages/get_available_effects.py +54 -0
- pyrogram/raw/functions/messages/get_available_reactions.py +54 -0
- pyrogram/raw/functions/messages/get_bot_app.py +62 -0
- pyrogram/raw/functions/messages/get_bot_callback_answer.py +89 -0
- pyrogram/raw/functions/messages/get_chat_invite_importers.py +104 -0
- pyrogram/raw/functions/messages/get_chats.py +54 -0
- pyrogram/raw/functions/messages/get_common_chats.py +70 -0
- pyrogram/raw/functions/messages/get_custom_emoji_documents.py +54 -0
- pyrogram/raw/functions/messages/get_default_history_ttl.py +49 -0
- pyrogram/raw/functions/messages/get_default_tag_reactions.py +54 -0
- pyrogram/raw/functions/messages/get_dh_config.py +62 -0
- pyrogram/raw/functions/messages/get_dialog_filters.py +49 -0
- pyrogram/raw/functions/messages/get_dialog_unread_marks.py +49 -0
- pyrogram/raw/functions/messages/get_dialogs.py +103 -0
- pyrogram/raw/functions/messages/get_discussion_message.py +62 -0
- pyrogram/raw/functions/messages/get_document_by_hash.py +70 -0
- pyrogram/raw/functions/messages/get_emoji_groups.py +54 -0
- pyrogram/raw/functions/messages/get_emoji_keywords.py +54 -0
- pyrogram/raw/functions/messages/get_emoji_keywords_difference.py +62 -0
- pyrogram/raw/functions/messages/get_emoji_keywords_languages.py +54 -0
- pyrogram/raw/functions/messages/get_emoji_profile_photo_groups.py +54 -0
- pyrogram/raw/functions/messages/get_emoji_status_groups.py +54 -0
- pyrogram/raw/functions/messages/get_emoji_sticker_groups.py +54 -0
- pyrogram/raw/functions/messages/get_emoji_stickers.py +54 -0
- pyrogram/raw/functions/messages/get_emoji_url.py +54 -0
- pyrogram/raw/functions/messages/get_exported_chat_invite.py +62 -0
- pyrogram/raw/functions/messages/get_exported_chat_invites.py +96 -0
- pyrogram/raw/functions/messages/get_extended_media.py +62 -0
- pyrogram/raw/functions/messages/get_fact_check.py +62 -0
- pyrogram/raw/functions/messages/get_faved_stickers.py +54 -0
- pyrogram/raw/functions/messages/get_featured_emoji_stickers.py +54 -0
- pyrogram/raw/functions/messages/get_featured_stickers.py +54 -0
- pyrogram/raw/functions/messages/get_full_chat.py +54 -0
- pyrogram/raw/functions/messages/get_game_high_scores.py +70 -0
- pyrogram/raw/functions/messages/get_history.py +110 -0
- pyrogram/raw/functions/messages/get_inline_bot_results.py +90 -0
- pyrogram/raw/functions/messages/get_inline_game_high_scores.py +62 -0
- pyrogram/raw/functions/messages/get_mask_stickers.py +54 -0
- pyrogram/raw/functions/messages/get_message_edit_data.py +62 -0
- pyrogram/raw/functions/messages/get_message_reactions_list.py +91 -0
- pyrogram/raw/functions/messages/get_message_read_participants.py +62 -0
- pyrogram/raw/functions/messages/get_messages.py +54 -0
- pyrogram/raw/functions/messages/get_messages_reactions.py +62 -0
- pyrogram/raw/functions/messages/get_messages_views.py +70 -0
- pyrogram/raw/functions/messages/get_my_stickers.py +62 -0
- pyrogram/raw/functions/messages/get_old_featured_stickers.py +70 -0
- pyrogram/raw/functions/messages/get_onlines.py +54 -0
- pyrogram/raw/functions/messages/get_outbox_read_date.py +62 -0
- pyrogram/raw/functions/messages/get_peer_dialogs.py +54 -0
- pyrogram/raw/functions/messages/get_peer_settings.py +54 -0
- pyrogram/raw/functions/messages/get_pinned_dialogs.py +54 -0
- pyrogram/raw/functions/messages/get_pinned_saved_dialogs.py +49 -0
- pyrogram/raw/functions/messages/get_poll_results.py +62 -0
- pyrogram/raw/functions/messages/get_poll_votes.py +90 -0
- pyrogram/raw/functions/messages/get_quick_replies.py +54 -0
- pyrogram/raw/functions/messages/get_quick_reply_messages.py +74 -0
- pyrogram/raw/functions/messages/get_recent_locations.py +70 -0
- pyrogram/raw/functions/messages/get_recent_reactions.py +62 -0
- pyrogram/raw/functions/messages/get_recent_stickers.py +62 -0
- pyrogram/raw/functions/messages/get_replies.py +118 -0
- pyrogram/raw/functions/messages/get_saved_dialogs.py +94 -0
- pyrogram/raw/functions/messages/get_saved_gifs.py +54 -0
- pyrogram/raw/functions/messages/get_saved_history.py +110 -0
- pyrogram/raw/functions/messages/get_saved_reaction_tags.py +66 -0
- pyrogram/raw/functions/messages/get_scheduled_history.py +62 -0
- pyrogram/raw/functions/messages/get_scheduled_messages.py +62 -0
- pyrogram/raw/functions/messages/get_search_counters.py +83 -0
- pyrogram/raw/functions/messages/get_search_results_calendar.py +90 -0
- pyrogram/raw/functions/messages/get_search_results_positions.py +90 -0
- pyrogram/raw/functions/messages/get_split_ranges.py +49 -0
- pyrogram/raw/functions/messages/get_sticker_set.py +62 -0
- pyrogram/raw/functions/messages/get_stickers.py +62 -0
- pyrogram/raw/functions/messages/get_suggested_dialog_filters.py +49 -0
- pyrogram/raw/functions/messages/get_top_reactions.py +62 -0
- pyrogram/raw/functions/messages/get_unread_mentions.py +105 -0
- pyrogram/raw/functions/messages/get_unread_reactions.py +105 -0
- pyrogram/raw/functions/messages/get_web_page.py +62 -0
- pyrogram/raw/functions/messages/get_web_page_preview.py +66 -0
- pyrogram/raw/functions/messages/hide_all_chat_join_requests.py +71 -0
- pyrogram/raw/functions/messages/hide_chat_join_request.py +70 -0
- pyrogram/raw/functions/messages/hide_peer_settings_bar.py +54 -0
- pyrogram/raw/functions/messages/import_chat_invite.py +54 -0
- pyrogram/raw/functions/messages/init_history_import.py +70 -0
- pyrogram/raw/functions/messages/install_sticker_set.py +62 -0
- pyrogram/raw/functions/messages/mark_dialog_unread.py +62 -0
- pyrogram/raw/functions/messages/migrate_chat.py +54 -0
- pyrogram/raw/functions/messages/prolong_web_view.py +98 -0
- pyrogram/raw/functions/messages/rate_transcribed_audio.py +78 -0
- pyrogram/raw/functions/messages/read_discussion.py +70 -0
- pyrogram/raw/functions/messages/read_encrypted_history.py +62 -0
- pyrogram/raw/functions/messages/read_featured_stickers.py +54 -0
- pyrogram/raw/functions/messages/read_history.py +62 -0
- pyrogram/raw/functions/messages/read_mentions.py +65 -0
- pyrogram/raw/functions/messages/read_message_contents.py +54 -0
- pyrogram/raw/functions/messages/read_reactions.py +65 -0
- pyrogram/raw/functions/messages/received_messages.py +54 -0
- pyrogram/raw/functions/messages/received_queue.py +54 -0
- pyrogram/raw/functions/messages/reorder_pinned_dialogs.py +70 -0
- pyrogram/raw/functions/messages/reorder_pinned_saved_dialogs.py +62 -0
- pyrogram/raw/functions/messages/reorder_quick_replies.py +54 -0
- pyrogram/raw/functions/messages/reorder_sticker_sets.py +68 -0
- pyrogram/raw/functions/messages/report.py +78 -0
- pyrogram/raw/functions/messages/report_encrypted_spam.py +54 -0
- pyrogram/raw/functions/messages/report_reaction.py +70 -0
- pyrogram/raw/functions/messages/report_spam.py +54 -0
- pyrogram/raw/functions/messages/request_app_web_view.py +103 -0
- pyrogram/raw/functions/messages/request_encryption.py +70 -0
- pyrogram/raw/functions/messages/request_simple_web_view.py +110 -0
- pyrogram/raw/functions/messages/request_url_auth.py +85 -0
- pyrogram/raw/functions/messages/request_web_view.py +138 -0
- pyrogram/raw/functions/messages/save_default_send_as.py +62 -0
- pyrogram/raw/functions/messages/save_draft.py +115 -0
- pyrogram/raw/functions/messages/save_gif.py +62 -0
- pyrogram/raw/functions/messages/save_recent_sticker.py +70 -0
- pyrogram/raw/functions/messages/search.py +175 -0
- pyrogram/raw/functions/messages/search_custom_emoji.py +62 -0
- pyrogram/raw/functions/messages/search_emoji_sticker_sets.py +70 -0
- pyrogram/raw/functions/messages/search_global.py +127 -0
- pyrogram/raw/functions/messages/search_sent_media.py +70 -0
- pyrogram/raw/functions/messages/search_sticker_sets.py +70 -0
- pyrogram/raw/functions/messages/send_bot_requested_peer.py +78 -0
- pyrogram/raw/functions/messages/send_encrypted.py +78 -0
- pyrogram/raw/functions/messages/send_encrypted_file.py +86 -0
- pyrogram/raw/functions/messages/send_encrypted_service.py +70 -0
- pyrogram/raw/functions/messages/send_inline_bot_result.py +143 -0
- pyrogram/raw/functions/messages/send_media.py +184 -0
- pyrogram/raw/functions/messages/send_message.py +182 -0
- pyrogram/raw/functions/messages/send_multi_media.py +148 -0
- pyrogram/raw/functions/messages/send_quick_reply_messages.py +78 -0
- pyrogram/raw/functions/messages/send_reaction.py +86 -0
- pyrogram/raw/functions/messages/send_scheduled_messages.py +62 -0
- pyrogram/raw/functions/messages/send_screenshot_notification.py +70 -0
- pyrogram/raw/functions/messages/send_vote.py +70 -0
- pyrogram/raw/functions/messages/send_web_view_data.py +78 -0
- pyrogram/raw/functions/messages/send_web_view_result_message.py +62 -0
- pyrogram/raw/functions/messages/set_bot_callback_answer.py +88 -0
- pyrogram/raw/functions/messages/set_bot_precheckout_results.py +71 -0
- pyrogram/raw/functions/messages/set_bot_shipping_results.py +75 -0
- pyrogram/raw/functions/messages/set_chat_available_reactions.py +73 -0
- pyrogram/raw/functions/messages/set_chat_theme.py +62 -0
- pyrogram/raw/functions/messages/set_chat_wall_paper.py +97 -0
- pyrogram/raw/functions/messages/set_default_history_ttl.py +54 -0
- pyrogram/raw/functions/messages/set_default_reaction.py +54 -0
- pyrogram/raw/functions/messages/set_encrypted_typing.py +62 -0
- pyrogram/raw/functions/messages/set_game_score.py +92 -0
- pyrogram/raw/functions/messages/set_history_ttl.py +62 -0
- pyrogram/raw/functions/messages/set_inline_bot_results.py +113 -0
- pyrogram/raw/functions/messages/set_inline_game_score.py +84 -0
- pyrogram/raw/functions/messages/set_typing.py +73 -0
- pyrogram/raw/functions/messages/start_bot.py +78 -0
- pyrogram/raw/functions/messages/start_history_import.py +62 -0
- pyrogram/raw/functions/messages/toggle_bot_in_attach_menu.py +70 -0
- pyrogram/raw/functions/messages/toggle_dialog_filter_tags.py +54 -0
- pyrogram/raw/functions/messages/toggle_dialog_pin.py +62 -0
- pyrogram/raw/functions/messages/toggle_no_forwards.py +62 -0
- pyrogram/raw/functions/messages/toggle_peer_translations.py +62 -0
- pyrogram/raw/functions/messages/toggle_saved_dialog_pin.py +62 -0
- pyrogram/raw/functions/messages/toggle_sticker_sets.py +74 -0
- pyrogram/raw/functions/messages/transcribe_audio.py +62 -0
- pyrogram/raw/functions/messages/translate_text.py +86 -0
- pyrogram/raw/functions/messages/uninstall_sticker_set.py +54 -0
- pyrogram/raw/functions/messages/unpin_all_messages.py +65 -0
- pyrogram/raw/functions/messages/update_dialog_filter.py +66 -0
- pyrogram/raw/functions/messages/update_dialog_filters_order.py +54 -0
- pyrogram/raw/functions/messages/update_pinned_message.py +82 -0
- pyrogram/raw/functions/messages/update_saved_reaction_tag.py +65 -0
- pyrogram/raw/functions/messages/upload_encrypted_file.py +62 -0
- pyrogram/raw/functions/messages/upload_imported_media.py +78 -0
- pyrogram/raw/functions/messages/upload_media.py +73 -0
- pyrogram/raw/functions/payments/__init__.py +31 -0
- pyrogram/raw/functions/payments/apply_gift_code.py +54 -0
- pyrogram/raw/functions/payments/assign_app_store_transaction.py +62 -0
- pyrogram/raw/functions/payments/assign_play_market_transaction.py +62 -0
- pyrogram/raw/functions/payments/can_purchase_premium.py +54 -0
- pyrogram/raw/functions/payments/check_gift_code.py +54 -0
- pyrogram/raw/functions/payments/clear_saved_info.py +60 -0
- pyrogram/raw/functions/payments/export_invoice.py +54 -0
- pyrogram/raw/functions/payments/get_bank_card_data.py +54 -0
- pyrogram/raw/functions/payments/get_giveaway_info.py +62 -0
- pyrogram/raw/functions/payments/get_payment_form.py +66 -0
- pyrogram/raw/functions/payments/get_payment_receipt.py +62 -0
- pyrogram/raw/functions/payments/get_premium_gift_code_options.py +58 -0
- pyrogram/raw/functions/payments/get_saved_info.py +49 -0
- pyrogram/raw/functions/payments/get_stars_revenue_ads_account_url.py +54 -0
- pyrogram/raw/functions/payments/get_stars_revenue_stats.py +62 -0
- pyrogram/raw/functions/payments/get_stars_revenue_withdrawal_url.py +70 -0
- pyrogram/raw/functions/payments/get_stars_status.py +54 -0
- pyrogram/raw/functions/payments/get_stars_topup_options.py +49 -0
- pyrogram/raw/functions/payments/get_stars_transactions.py +90 -0
- pyrogram/raw/functions/payments/get_stars_transactions_by_id.py +62 -0
- pyrogram/raw/functions/payments/launch_prepaid_giveaway.py +70 -0
- pyrogram/raw/functions/payments/refund_stars_charge.py +62 -0
- pyrogram/raw/functions/payments/send_payment_form.py +99 -0
- pyrogram/raw/functions/payments/send_stars_form.py +65 -0
- pyrogram/raw/functions/payments/validate_requested_info.py +70 -0
- pyrogram/raw/functions/phone/__init__.py +37 -0
- pyrogram/raw/functions/phone/accept_call.py +70 -0
- pyrogram/raw/functions/phone/check_group_call.py +62 -0
- pyrogram/raw/functions/phone/confirm_call.py +78 -0
- pyrogram/raw/functions/phone/create_group_call.py +88 -0
- pyrogram/raw/functions/phone/discard_call.py +86 -0
- pyrogram/raw/functions/phone/discard_group_call.py +54 -0
- pyrogram/raw/functions/phone/edit_group_call_participant.py +118 -0
- pyrogram/raw/functions/phone/edit_group_call_title.py +62 -0
- pyrogram/raw/functions/phone/export_group_call_invite.py +62 -0
- pyrogram/raw/functions/phone/get_call_config.py +49 -0
- pyrogram/raw/functions/phone/get_group_call.py +62 -0
- pyrogram/raw/functions/phone/get_group_call_join_as.py +54 -0
- pyrogram/raw/functions/phone/get_group_call_stream_channels.py +54 -0
- pyrogram/raw/functions/phone/get_group_call_stream_rtmp_url.py +62 -0
- pyrogram/raw/functions/phone/get_group_participants.py +86 -0
- pyrogram/raw/functions/phone/invite_to_group_call.py +62 -0
- pyrogram/raw/functions/phone/join_group_call.py +93 -0
- pyrogram/raw/functions/phone/join_group_call_presentation.py +62 -0
- pyrogram/raw/functions/phone/leave_group_call.py +62 -0
- pyrogram/raw/functions/phone/leave_group_call_presentation.py +54 -0
- pyrogram/raw/functions/phone/received_call.py +54 -0
- pyrogram/raw/functions/phone/request_call.py +86 -0
- pyrogram/raw/functions/phone/save_call_debug.py +62 -0
- pyrogram/raw/functions/phone/save_call_log.py +62 -0
- pyrogram/raw/functions/phone/save_default_group_call_join_as.py +62 -0
- pyrogram/raw/functions/phone/send_signaling_data.py +62 -0
- pyrogram/raw/functions/phone/set_call_rating.py +78 -0
- pyrogram/raw/functions/phone/start_scheduled_group_call.py +54 -0
- pyrogram/raw/functions/phone/toggle_group_call_record.py +86 -0
- pyrogram/raw/functions/phone/toggle_group_call_settings.py +71 -0
- pyrogram/raw/functions/phone/toggle_group_call_start_subscription.py +62 -0
- pyrogram/raw/functions/photos/__init__.py +11 -0
- pyrogram/raw/functions/photos/delete_photos.py +54 -0
- pyrogram/raw/functions/photos/get_user_photos.py +78 -0
- pyrogram/raw/functions/photos/update_profile_photo.py +72 -0
- pyrogram/raw/functions/photos/upload_contact_profile_photo.py +107 -0
- pyrogram/raw/functions/photos/upload_profile_photo.py +103 -0
- pyrogram/raw/functions/ping.py +54 -0
- pyrogram/raw/functions/ping_delay_disconnect.py +62 -0
- pyrogram/raw/functions/premium/__init__.py +11 -0
- pyrogram/raw/functions/premium/apply_boost.py +66 -0
- pyrogram/raw/functions/premium/get_boosts_list.py +78 -0
- pyrogram/raw/functions/premium/get_boosts_status.py +54 -0
- pyrogram/raw/functions/premium/get_my_boosts.py +49 -0
- pyrogram/raw/functions/premium/get_user_boosts.py +62 -0
- pyrogram/raw/functions/req_dh_params.py +94 -0
- pyrogram/raw/functions/req_pq.py +54 -0
- pyrogram/raw/functions/req_pq_multi.py +54 -0
- pyrogram/raw/functions/rpc_drop_answer.py +54 -0
- pyrogram/raw/functions/set_client_dh_params.py +70 -0
- pyrogram/raw/functions/smsjobs/__init__.py +13 -0
- pyrogram/raw/functions/smsjobs/finish_job.py +65 -0
- pyrogram/raw/functions/smsjobs/get_sms_job.py +54 -0
- pyrogram/raw/functions/smsjobs/get_status.py +49 -0
- pyrogram/raw/functions/smsjobs/is_eligible_to_join.py +49 -0
- pyrogram/raw/functions/smsjobs/join.py +49 -0
- pyrogram/raw/functions/smsjobs/leave.py +49 -0
- pyrogram/raw/functions/smsjobs/update_settings.py +54 -0
- pyrogram/raw/functions/stats/__init__.py +16 -0
- pyrogram/raw/functions/stats/get_broadcast_revenue_stats.py +62 -0
- pyrogram/raw/functions/stats/get_broadcast_revenue_transactions.py +70 -0
- pyrogram/raw/functions/stats/get_broadcast_revenue_withdrawal_url.py +62 -0
- pyrogram/raw/functions/stats/get_broadcast_stats.py +62 -0
- pyrogram/raw/functions/stats/get_megagroup_stats.py +62 -0
- pyrogram/raw/functions/stats/get_message_public_forwards.py +78 -0
- pyrogram/raw/functions/stats/get_message_stats.py +70 -0
- pyrogram/raw/functions/stats/get_story_public_forwards.py +78 -0
- pyrogram/raw/functions/stats/get_story_stats.py +70 -0
- pyrogram/raw/functions/stats/load_async_graph.py +65 -0
- pyrogram/raw/functions/stickers/__init__.py +17 -0
- pyrogram/raw/functions/stickers/add_sticker_to_set.py +62 -0
- pyrogram/raw/functions/stickers/change_sticker.py +84 -0
- pyrogram/raw/functions/stickers/change_sticker_position.py +62 -0
- pyrogram/raw/functions/stickers/check_short_name.py +54 -0
- pyrogram/raw/functions/stickers/create_sticker_set.py +117 -0
- pyrogram/raw/functions/stickers/delete_sticker_set.py +54 -0
- pyrogram/raw/functions/stickers/remove_sticker_from_set.py +54 -0
- pyrogram/raw/functions/stickers/rename_sticker_set.py +62 -0
- pyrogram/raw/functions/stickers/replace_sticker.py +62 -0
- pyrogram/raw/functions/stickers/set_sticker_set_thumb.py +75 -0
- pyrogram/raw/functions/stickers/suggest_short_name.py +54 -0
- pyrogram/raw/functions/stories/__init__.py +32 -0
- pyrogram/raw/functions/stories/activate_stealth_mode.py +60 -0
- pyrogram/raw/functions/stories/can_send_story.py +54 -0
- pyrogram/raw/functions/stories/delete_stories.py +62 -0
- pyrogram/raw/functions/stories/edit_story.py +113 -0
- pyrogram/raw/functions/stories/export_story_link.py +62 -0
- pyrogram/raw/functions/stories/get_all_read_peer_stories.py +49 -0
- pyrogram/raw/functions/stories/get_all_stories.py +69 -0
- pyrogram/raw/functions/stories/get_chats_to_send.py +49 -0
- pyrogram/raw/functions/stories/get_peer_max_i_ds.py +54 -0
- pyrogram/raw/functions/stories/get_peer_stories.py +54 -0
- pyrogram/raw/functions/stories/get_pinned_stories.py +70 -0
- pyrogram/raw/functions/stories/get_stories_archive.py +70 -0
- pyrogram/raw/functions/stories/get_stories_by_id.py +62 -0
- pyrogram/raw/functions/stories/get_stories_views.py +62 -0
- pyrogram/raw/functions/stories/get_story_reactions_list.py +97 -0
- pyrogram/raw/functions/stories/get_story_views_list.py +107 -0
- pyrogram/raw/functions/stories/increment_story_views.py +62 -0
- pyrogram/raw/functions/stories/read_stories.py +62 -0
- pyrogram/raw/functions/stories/report.py +78 -0
- pyrogram/raw/functions/stories/search_posts.py +83 -0
- pyrogram/raw/functions/stories/send_reaction.py +78 -0
- pyrogram/raw/functions/stories/send_story.py +155 -0
- pyrogram/raw/functions/stories/toggle_all_stories_hidden.py +54 -0
- pyrogram/raw/functions/stories/toggle_peer_stories_hidden.py +62 -0
- pyrogram/raw/functions/stories/toggle_pinned.py +70 -0
- pyrogram/raw/functions/stories/toggle_pinned_to_top.py +62 -0
- pyrogram/raw/functions/updates/__init__.py +9 -0
- pyrogram/raw/functions/updates/get_channel_difference.py +86 -0
- pyrogram/raw/functions/updates/get_difference.py +99 -0
- pyrogram/raw/functions/updates/get_state.py +49 -0
- pyrogram/raw/functions/upload/__init__.py +14 -0
- pyrogram/raw/functions/upload/get_cdn_file.py +70 -0
- pyrogram/raw/functions/upload/get_cdn_file_hashes.py +62 -0
- pyrogram/raw/functions/upload/get_file.py +84 -0
- pyrogram/raw/functions/upload/get_file_hashes.py +62 -0
- pyrogram/raw/functions/upload/get_web_file.py +70 -0
- pyrogram/raw/functions/upload/reupload_cdn_file.py +62 -0
- pyrogram/raw/functions/upload/save_big_file_part.py +78 -0
- pyrogram/raw/functions/upload/save_file_part.py +70 -0
- pyrogram/raw/functions/users/__init__.py +10 -0
- pyrogram/raw/functions/users/get_full_user.py +54 -0
- pyrogram/raw/functions/users/get_is_premium_required_to_contact.py +54 -0
- pyrogram/raw/functions/users/get_users.py +54 -0
- pyrogram/raw/functions/users/set_secure_value_errors.py +62 -0
- pyrogram/raw/types/__init__.py +1102 -0
- pyrogram/raw/types/access_point_rule.py +70 -0
- pyrogram/raw/types/account/__init__.py +37 -0
- pyrogram/raw/types/account/authorization_form.py +98 -0
- pyrogram/raw/types/account/authorizations.py +71 -0
- pyrogram/raw/types/account/auto_download_settings.py +79 -0
- pyrogram/raw/types/account/auto_save_settings.py +103 -0
- pyrogram/raw/types/account/business_chat_links.py +79 -0
- pyrogram/raw/types/account/connected_bots.py +71 -0
- pyrogram/raw/types/account/content_settings.py +69 -0
- pyrogram/raw/types/account/email_verified.py +63 -0
- pyrogram/raw/types/account/email_verified_login.py +71 -0
- pyrogram/raw/types/account/emoji_statuses.py +73 -0
- pyrogram/raw/types/account/emoji_statuses_not_modified.py +60 -0
- pyrogram/raw/types/account/password.py +163 -0
- pyrogram/raw/types/account/password_input_settings.py +95 -0
- pyrogram/raw/types/account/password_settings.py +76 -0
- pyrogram/raw/types/account/privacy_rules.py +80 -0
- pyrogram/raw/types/account/reset_password_failed_wait.py +63 -0
- pyrogram/raw/types/account/reset_password_ok.py +58 -0
- pyrogram/raw/types/account/reset_password_requested_wait.py +63 -0
- pyrogram/raw/types/account/resolved_business_chat_links.py +99 -0
- pyrogram/raw/types/account/saved_ringtone.py +58 -0
- pyrogram/raw/types/account/saved_ringtone_converted.py +63 -0
- pyrogram/raw/types/account/saved_ringtones.py +71 -0
- pyrogram/raw/types/account/saved_ringtones_not_modified.py +58 -0
- pyrogram/raw/types/account/sent_email_code.py +71 -0
- pyrogram/raw/types/account/takeout.py +63 -0
- pyrogram/raw/types/account/themes.py +72 -0
- pyrogram/raw/types/account/themes_not_modified.py +59 -0
- pyrogram/raw/types/account/tmp_password.py +71 -0
- pyrogram/raw/types/account/wall_papers.py +71 -0
- pyrogram/raw/types/account/wall_papers_not_modified.py +58 -0
- pyrogram/raw/types/account/web_authorizations.py +71 -0
- pyrogram/raw/types/account_days_ttl.py +63 -0
- pyrogram/raw/types/attach_menu_bot.py +118 -0
- pyrogram/raw/types/attach_menu_bot_icon.py +74 -0
- pyrogram/raw/types/attach_menu_bot_icon_color.py +62 -0
- pyrogram/raw/types/attach_menu_bots.py +79 -0
- pyrogram/raw/types/attach_menu_bots_bot.py +71 -0
- pyrogram/raw/types/attach_menu_bots_not_modified.py +58 -0
- pyrogram/raw/types/attach_menu_peer_type_bot_pm.py +49 -0
- pyrogram/raw/types/attach_menu_peer_type_broadcast.py +49 -0
- pyrogram/raw/types/attach_menu_peer_type_chat.py +49 -0
- pyrogram/raw/types/attach_menu_peer_type_pm.py +49 -0
- pyrogram/raw/types/attach_menu_peer_type_same_bot_pm.py +49 -0
- pyrogram/raw/types/auth/__init__.py +32 -0
- pyrogram/raw/types/auth/authorization.py +104 -0
- pyrogram/raw/types/auth/authorization_sign_up_required.py +73 -0
- pyrogram/raw/types/auth/code_type_call.py +49 -0
- pyrogram/raw/types/auth/code_type_flash_call.py +49 -0
- pyrogram/raw/types/auth/code_type_fragment_sms.py +49 -0
- pyrogram/raw/types/auth/code_type_missed_call.py +49 -0
- pyrogram/raw/types/auth/code_type_sms.py +49 -0
- pyrogram/raw/types/auth/exported_authorization.py +71 -0
- pyrogram/raw/types/auth/logged_out.py +66 -0
- pyrogram/raw/types/auth/login_token.py +72 -0
- pyrogram/raw/types/auth/login_token_migrate_to.py +72 -0
- pyrogram/raw/types/auth/login_token_success.py +64 -0
- pyrogram/raw/types/auth/password_recovery.py +63 -0
- pyrogram/raw/types/auth/sent_code.py +97 -0
- pyrogram/raw/types/auth/sent_code_success.py +68 -0
- pyrogram/raw/types/auth/sent_code_type_app.py +54 -0
- pyrogram/raw/types/auth/sent_code_type_call.py +54 -0
- pyrogram/raw/types/auth/sent_code_type_email_code.py +94 -0
- pyrogram/raw/types/auth/sent_code_type_firebase_sms.py +101 -0
- pyrogram/raw/types/auth/sent_code_type_flash_call.py +54 -0
- pyrogram/raw/types/auth/sent_code_type_fragment_sms.py +62 -0
- pyrogram/raw/types/auth/sent_code_type_missed_call.py +62 -0
- pyrogram/raw/types/auth/sent_code_type_set_up_email_required.py +60 -0
- pyrogram/raw/types/auth/sent_code_type_sms.py +54 -0
- pyrogram/raw/types/auth/sent_code_type_sms_phrase.py +57 -0
- pyrogram/raw/types/auth/sent_code_type_sms_word.py +57 -0
- pyrogram/raw/types/authorization.py +189 -0
- pyrogram/raw/types/auto_download_settings.py +126 -0
- pyrogram/raw/types/auto_save_exception.py +62 -0
- pyrogram/raw/types/auto_save_settings.py +69 -0
- pyrogram/raw/types/available_effect.py +96 -0
- pyrogram/raw/types/available_reaction.py +136 -0
- pyrogram/raw/types/bad_msg_notification.py +70 -0
- pyrogram/raw/types/bad_server_salt.py +78 -0
- pyrogram/raw/types/bank_card_open_url.py +62 -0
- pyrogram/raw/types/base_theme_arctic.py +49 -0
- pyrogram/raw/types/base_theme_classic.py +49 -0
- pyrogram/raw/types/base_theme_day.py +49 -0
- pyrogram/raw/types/base_theme_night.py +49 -0
- pyrogram/raw/types/base_theme_tinted.py +49 -0
- pyrogram/raw/types/bind_auth_key_inner.py +86 -0
- pyrogram/raw/types/birthday.py +73 -0
- pyrogram/raw/types/boost.py +126 -0
- pyrogram/raw/types/bot_app.py +114 -0
- pyrogram/raw/types/bot_app_not_modified.py +49 -0
- pyrogram/raw/types/bot_business_connection.py +92 -0
- pyrogram/raw/types/bot_command.py +71 -0
- pyrogram/raw/types/bot_command_scope_chat_admins.py +49 -0
- pyrogram/raw/types/bot_command_scope_chats.py +49 -0
- pyrogram/raw/types/bot_command_scope_default.py +49 -0
- pyrogram/raw/types/bot_command_scope_peer.py +54 -0
- pyrogram/raw/types/bot_command_scope_peer_admins.py +54 -0
- pyrogram/raw/types/bot_command_scope_peer_user.py +62 -0
- pyrogram/raw/types/bot_command_scope_users.py +49 -0
- pyrogram/raw/types/bot_info.py +106 -0
- pyrogram/raw/types/bot_inline_media_result.py +110 -0
- pyrogram/raw/types/bot_inline_message_media_auto.py +82 -0
- pyrogram/raw/types/bot_inline_message_media_contact.py +90 -0
- pyrogram/raw/types/bot_inline_message_media_geo.py +93 -0
- pyrogram/raw/types/bot_inline_message_media_invoice.py +112 -0
- pyrogram/raw/types/bot_inline_message_media_venue.py +106 -0
- pyrogram/raw/types/bot_inline_message_media_web_page.py +114 -0
- pyrogram/raw/types/bot_inline_message_text.py +88 -0
- pyrogram/raw/types/bot_inline_result.py +119 -0
- pyrogram/raw/types/bot_menu_button.py +71 -0
- pyrogram/raw/types/bot_menu_button_commands.py +58 -0
- pyrogram/raw/types/bot_menu_button_default.py +58 -0
- pyrogram/raw/types/bots/__init__.py +7 -0
- pyrogram/raw/types/bots/bot_info.py +79 -0
- pyrogram/raw/types/broadcast_revenue_balances.py +70 -0
- pyrogram/raw/types/broadcast_revenue_transaction_proceeds.py +70 -0
- pyrogram/raw/types/broadcast_revenue_transaction_refund.py +70 -0
- pyrogram/raw/types/broadcast_revenue_transaction_withdrawal.py +102 -0
- pyrogram/raw/types/business_away_message.py +78 -0
- pyrogram/raw/types/business_away_message_schedule_always.py +49 -0
- pyrogram/raw/types/business_away_message_schedule_custom.py +62 -0
- pyrogram/raw/types/business_away_message_schedule_outside_work_hours.py +49 -0
- pyrogram/raw/types/business_bot_recipients.py +98 -0
- pyrogram/raw/types/business_chat_link.py +101 -0
- pyrogram/raw/types/business_greeting_message.py +70 -0
- pyrogram/raw/types/business_intro.py +74 -0
- pyrogram/raw/types/business_location.py +66 -0
- pyrogram/raw/types/business_recipients.py +88 -0
- pyrogram/raw/types/business_weekly_open.py +62 -0
- pyrogram/raw/types/business_work_hours.py +70 -0
- pyrogram/raw/types/cdn_config.py +63 -0
- pyrogram/raw/types/cdn_public_key.py +62 -0
- pyrogram/raw/types/channel.py +347 -0
- pyrogram/raw/types/channel_admin_log_event.py +78 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_about.py +62 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_available_reactions.py +62 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_emoji_status.py +62 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_emoji_sticker_set.py +62 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_history_ttl.py +62 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_linked_chat.py +62 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_location.py +62 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_peer_color.py +62 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_photo.py +62 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_profile_peer_color.py +62 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_sticker_set.py +62 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_title.py +62 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_username.py +62 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_usernames.py +62 -0
- pyrogram/raw/types/channel_admin_log_event_action_change_wallpaper.py +62 -0
- pyrogram/raw/types/channel_admin_log_event_action_create_topic.py +54 -0
- pyrogram/raw/types/channel_admin_log_event_action_default_banned_rights.py +62 -0
- pyrogram/raw/types/channel_admin_log_event_action_delete_message.py +54 -0
- pyrogram/raw/types/channel_admin_log_event_action_delete_topic.py +54 -0
- pyrogram/raw/types/channel_admin_log_event_action_discard_group_call.py +54 -0
- pyrogram/raw/types/channel_admin_log_event_action_edit_message.py +62 -0
- pyrogram/raw/types/channel_admin_log_event_action_edit_topic.py +62 -0
- pyrogram/raw/types/channel_admin_log_event_action_exported_invite_delete.py +54 -0
- pyrogram/raw/types/channel_admin_log_event_action_exported_invite_edit.py +62 -0
- pyrogram/raw/types/channel_admin_log_event_action_exported_invite_revoke.py +54 -0
- pyrogram/raw/types/channel_admin_log_event_action_participant_invite.py +54 -0
- pyrogram/raw/types/channel_admin_log_event_action_participant_join.py +49 -0
- pyrogram/raw/types/channel_admin_log_event_action_participant_join_by_invite.py +62 -0
- pyrogram/raw/types/channel_admin_log_event_action_participant_join_by_request.py +62 -0
- pyrogram/raw/types/channel_admin_log_event_action_participant_leave.py +49 -0
- pyrogram/raw/types/channel_admin_log_event_action_participant_mute.py +54 -0
- pyrogram/raw/types/channel_admin_log_event_action_participant_toggle_admin.py +62 -0
- pyrogram/raw/types/channel_admin_log_event_action_participant_toggle_ban.py +62 -0
- pyrogram/raw/types/channel_admin_log_event_action_participant_unmute.py +54 -0
- pyrogram/raw/types/channel_admin_log_event_action_participant_volume.py +54 -0
- pyrogram/raw/types/channel_admin_log_event_action_pin_topic.py +68 -0
- pyrogram/raw/types/channel_admin_log_event_action_send_message.py +54 -0
- pyrogram/raw/types/channel_admin_log_event_action_start_group_call.py +54 -0
- pyrogram/raw/types/channel_admin_log_event_action_stop_poll.py +54 -0
- pyrogram/raw/types/channel_admin_log_event_action_toggle_anti_spam.py +54 -0
- pyrogram/raw/types/channel_admin_log_event_action_toggle_forum.py +54 -0
- pyrogram/raw/types/channel_admin_log_event_action_toggle_group_call_setting.py +54 -0
- pyrogram/raw/types/channel_admin_log_event_action_toggle_invites.py +54 -0
- pyrogram/raw/types/channel_admin_log_event_action_toggle_no_forwards.py +54 -0
- pyrogram/raw/types/channel_admin_log_event_action_toggle_pre_history_hidden.py +54 -0
- pyrogram/raw/types/channel_admin_log_event_action_toggle_signatures.py +54 -0
- pyrogram/raw/types/channel_admin_log_event_action_toggle_slow_mode.py +62 -0
- pyrogram/raw/types/channel_admin_log_event_action_update_pinned.py +54 -0
- pyrogram/raw/types/channel_admin_log_events_filter.py +156 -0
- pyrogram/raw/types/channel_forbidden.py +93 -0
- pyrogram/raw/types/channel_full.py +532 -0
- pyrogram/raw/types/channel_location.py +62 -0
- pyrogram/raw/types/channel_location_empty.py +49 -0
- pyrogram/raw/types/channel_messages_filter.py +62 -0
- pyrogram/raw/types/channel_messages_filter_empty.py +49 -0
- pyrogram/raw/types/channel_participant.py +62 -0
- pyrogram/raw/types/channel_participant_admin.py +110 -0
- pyrogram/raw/types/channel_participant_banned.py +86 -0
- pyrogram/raw/types/channel_participant_creator.py +73 -0
- pyrogram/raw/types/channel_participant_left.py +54 -0
- pyrogram/raw/types/channel_participant_self.py +78 -0
- pyrogram/raw/types/channel_participants_admins.py +49 -0
- pyrogram/raw/types/channel_participants_banned.py +54 -0
- pyrogram/raw/types/channel_participants_bots.py +49 -0
- pyrogram/raw/types/channel_participants_contacts.py +54 -0
- pyrogram/raw/types/channel_participants_kicked.py +54 -0
- pyrogram/raw/types/channel_participants_mentions.py +66 -0
- pyrogram/raw/types/channel_participants_recent.py +49 -0
- pyrogram/raw/types/channel_participants_search.py +54 -0
- pyrogram/raw/types/channels/__init__.py +14 -0
- pyrogram/raw/types/channels/admin_log_results.py +79 -0
- pyrogram/raw/types/channels/channel_participant.py +79 -0
- pyrogram/raw/types/channels/channel_participants.py +87 -0
- pyrogram/raw/types/channels/channel_participants_not_modified.py +58 -0
- pyrogram/raw/types/channels/send_as_peers.py +79 -0
- pyrogram/raw/types/channels/sponsored_message_report_result_ads_hidden.py +58 -0
- pyrogram/raw/types/channels/sponsored_message_report_result_choose_option.py +71 -0
- pyrogram/raw/types/channels/sponsored_message_report_result_reported.py +58 -0
- pyrogram/raw/types/chat.py +162 -0
- pyrogram/raw/types/chat_admin_rights.py +138 -0
- pyrogram/raw/types/chat_admin_with_invites.py +70 -0
- pyrogram/raw/types/chat_banned_rights.py +176 -0
- pyrogram/raw/types/chat_empty.py +54 -0
- pyrogram/raw/types/chat_forbidden.py +62 -0
- pyrogram/raw/types/chat_full.py +222 -0
- pyrogram/raw/types/chat_invite.py +156 -0
- pyrogram/raw/types/chat_invite_already.py +63 -0
- pyrogram/raw/types/chat_invite_exported.py +153 -0
- pyrogram/raw/types/chat_invite_importer.py +94 -0
- pyrogram/raw/types/chat_invite_peek.py +71 -0
- pyrogram/raw/types/chat_invite_public_join_requests.py +58 -0
- pyrogram/raw/types/chat_onlines.py +63 -0
- pyrogram/raw/types/chat_participant.py +70 -0
- pyrogram/raw/types/chat_participant_admin.py +70 -0
- pyrogram/raw/types/chat_participant_creator.py +54 -0
- pyrogram/raw/types/chat_participants.py +70 -0
- pyrogram/raw/types/chat_participants_forbidden.py +66 -0
- pyrogram/raw/types/chat_photo.py +79 -0
- pyrogram/raw/types/chat_photo_empty.py +49 -0
- pyrogram/raw/types/chat_reactions_all.py +54 -0
- pyrogram/raw/types/chat_reactions_none.py +49 -0
- pyrogram/raw/types/chat_reactions_some.py +54 -0
- pyrogram/raw/types/chatlists/__init__.py +11 -0
- pyrogram/raw/types/chatlists/chatlist_invite.py +98 -0
- pyrogram/raw/types/chatlists/chatlist_invite_already.py +95 -0
- pyrogram/raw/types/chatlists/chatlist_updates.py +79 -0
- pyrogram/raw/types/chatlists/exported_chatlist_invite.py +71 -0
- pyrogram/raw/types/chatlists/exported_invites.py +79 -0
- pyrogram/raw/types/client_dh_inner_data.py +78 -0
- pyrogram/raw/types/code_settings.py +112 -0
- pyrogram/raw/types/config.py +435 -0
- pyrogram/raw/types/connected_bot.py +70 -0
- pyrogram/raw/types/contact.py +62 -0
- pyrogram/raw/types/contact_birthday.py +62 -0
- pyrogram/raw/types/contact_status.py +71 -0
- pyrogram/raw/types/contacts/__init__.py +17 -0
- pyrogram/raw/types/contacts/blocked.py +79 -0
- pyrogram/raw/types/contacts/blocked_slice.py +87 -0
- pyrogram/raw/types/contacts/contact_birthdays.py +71 -0
- pyrogram/raw/types/contacts/contacts.py +79 -0
- pyrogram/raw/types/contacts/contacts_not_modified.py +58 -0
- pyrogram/raw/types/contacts/found.py +87 -0
- pyrogram/raw/types/contacts/imported_contacts.py +87 -0
- pyrogram/raw/types/contacts/resolved_peer.py +80 -0
- pyrogram/raw/types/contacts/top_peers.py +79 -0
- pyrogram/raw/types/contacts/top_peers_disabled.py +58 -0
- pyrogram/raw/types/contacts/top_peers_not_modified.py +58 -0
- pyrogram/raw/types/data_json.py +65 -0
- pyrogram/raw/types/dc_option.py +117 -0
- pyrogram/raw/types/default_history_ttl.py +63 -0
- pyrogram/raw/types/destroy_auth_key_fail.py +58 -0
- pyrogram/raw/types/destroy_auth_key_none.py +58 -0
- pyrogram/raw/types/destroy_auth_key_ok.py +58 -0
- pyrogram/raw/types/destroy_session_none.py +63 -0
- pyrogram/raw/types/destroy_session_ok.py +63 -0
- pyrogram/raw/types/dh_gen_fail.py +79 -0
- pyrogram/raw/types/dh_gen_ok.py +79 -0
- pyrogram/raw/types/dh_gen_retry.py +79 -0
- pyrogram/raw/types/dialog.py +167 -0
- pyrogram/raw/types/dialog_filter.py +154 -0
- pyrogram/raw/types/dialog_filter_chatlist.py +104 -0
- pyrogram/raw/types/dialog_filter_default.py +49 -0
- pyrogram/raw/types/dialog_filter_suggested.py +71 -0
- pyrogram/raw/types/dialog_folder.py +110 -0
- pyrogram/raw/types/dialog_peer.py +63 -0
- pyrogram/raw/types/dialog_peer_folder.py +63 -0
- pyrogram/raw/types/document.py +144 -0
- pyrogram/raw/types/document_attribute_animated.py +49 -0
- pyrogram/raw/types/document_attribute_audio.py +89 -0
- pyrogram/raw/types/document_attribute_custom_emoji.py +76 -0
- pyrogram/raw/types/document_attribute_filename.py +54 -0
- pyrogram/raw/types/document_attribute_has_stickers.py +49 -0
- pyrogram/raw/types/document_attribute_image_size.py +62 -0
- pyrogram/raw/types/document_attribute_sticker.py +80 -0
- pyrogram/raw/types/document_attribute_video.py +99 -0
- pyrogram/raw/types/document_empty.py +66 -0
- pyrogram/raw/types/draft_message.py +115 -0
- pyrogram/raw/types/draft_message_empty.py +57 -0
- pyrogram/raw/types/email_verification_apple.py +54 -0
- pyrogram/raw/types/email_verification_code.py +54 -0
- pyrogram/raw/types/email_verification_google.py +54 -0
- pyrogram/raw/types/email_verify_purpose_login_change.py +49 -0
- pyrogram/raw/types/email_verify_purpose_login_setup.py +62 -0
- pyrogram/raw/types/email_verify_purpose_passport.py +49 -0
- pyrogram/raw/types/emoji_group.py +70 -0
- pyrogram/raw/types/emoji_group_greeting.py +70 -0
- pyrogram/raw/types/emoji_group_premium.py +62 -0
- pyrogram/raw/types/emoji_keyword.py +62 -0
- pyrogram/raw/types/emoji_keyword_deleted.py +62 -0
- pyrogram/raw/types/emoji_keywords_difference.py +88 -0
- pyrogram/raw/types/emoji_language.py +63 -0
- pyrogram/raw/types/emoji_list.py +75 -0
- pyrogram/raw/types/emoji_list_not_modified.py +62 -0
- pyrogram/raw/types/emoji_status.py +54 -0
- pyrogram/raw/types/emoji_status_empty.py +49 -0
- pyrogram/raw/types/emoji_status_until.py +62 -0
- pyrogram/raw/types/emoji_url.py +63 -0
- pyrogram/raw/types/encrypted_chat.py +112 -0
- pyrogram/raw/types/encrypted_chat_discarded.py +72 -0
- pyrogram/raw/types/encrypted_chat_empty.py +64 -0
- pyrogram/raw/types/encrypted_chat_requested.py +115 -0
- pyrogram/raw/types/encrypted_chat_waiting.py +96 -0
- pyrogram/raw/types/encrypted_file.py +95 -0
- pyrogram/raw/types/encrypted_file_empty.py +58 -0
- pyrogram/raw/types/encrypted_message.py +86 -0
- pyrogram/raw/types/encrypted_message_service.py +78 -0
- pyrogram/raw/types/exported_chatlist_invite.py +82 -0
- pyrogram/raw/types/exported_contact_token.py +71 -0
- pyrogram/raw/types/exported_message_link.py +71 -0
- pyrogram/raw/types/exported_story_link.py +63 -0
- pyrogram/raw/types/fact_check.py +90 -0
- pyrogram/raw/types/file_hash.py +81 -0
- pyrogram/raw/types/folder.py +92 -0
- pyrogram/raw/types/folder_peer.py +62 -0
- pyrogram/raw/types/forum_topic.py +193 -0
- pyrogram/raw/types/forum_topic_deleted.py +54 -0
- pyrogram/raw/types/found_story.py +62 -0
- pyrogram/raw/types/fragment/__init__.py +7 -0
- pyrogram/raw/types/fragment/collectible_info.py +103 -0
- pyrogram/raw/types/game.py +106 -0
- pyrogram/raw/types/geo_point.py +81 -0
- pyrogram/raw/types/geo_point_address.py +83 -0
- pyrogram/raw/types/geo_point_empty.py +49 -0
- pyrogram/raw/types/global_privacy_settings.py +88 -0
- pyrogram/raw/types/group_call.py +181 -0
- pyrogram/raw/types/group_call_discarded.py +70 -0
- pyrogram/raw/types/group_call_participant.py +188 -0
- pyrogram/raw/types/group_call_participant_video.py +79 -0
- pyrogram/raw/types/group_call_participant_video_source_group.py +62 -0
- pyrogram/raw/types/group_call_stream_channel.py +70 -0
- pyrogram/raw/types/help/__init__.py +39 -0
- pyrogram/raw/types/help/app_config.py +71 -0
- pyrogram/raw/types/help/app_config_not_modified.py +58 -0
- pyrogram/raw/types/help/app_update.py +124 -0
- pyrogram/raw/types/help/config_simple.py +70 -0
- pyrogram/raw/types/help/countries_list.py +71 -0
- pyrogram/raw/types/help/countries_list_not_modified.py +58 -0
- pyrogram/raw/types/help/country.py +87 -0
- pyrogram/raw/types/help/country_code.py +76 -0
- pyrogram/raw/types/help/deep_link_info.py +81 -0
- pyrogram/raw/types/help/deep_link_info_empty.py +58 -0
- pyrogram/raw/types/help/invite_text.py +63 -0
- pyrogram/raw/types/help/no_app_update.py +58 -0
- pyrogram/raw/types/help/passport_config.py +71 -0
- pyrogram/raw/types/help/passport_config_not_modified.py +58 -0
- pyrogram/raw/types/help/peer_color_option.py +100 -0
- pyrogram/raw/types/help/peer_color_profile_set.py +70 -0
- pyrogram/raw/types/help/peer_color_set.py +54 -0
- pyrogram/raw/types/help/peer_colors.py +72 -0
- pyrogram/raw/types/help/peer_colors_not_modified.py +59 -0
- pyrogram/raw/types/help/premium_promo.py +103 -0
- pyrogram/raw/types/help/promo_data.py +113 -0
- pyrogram/raw/types/help/promo_data_empty.py +63 -0
- pyrogram/raw/types/help/recent_me_urls.py +79 -0
- pyrogram/raw/types/help/support.py +71 -0
- pyrogram/raw/types/help/support_name.py +63 -0
- pyrogram/raw/types/help/terms_of_service.py +87 -0
- pyrogram/raw/types/help/terms_of_service_update.py +71 -0
- pyrogram/raw/types/help/terms_of_service_update_empty.py +63 -0
- pyrogram/raw/types/help/timezones_list.py +71 -0
- pyrogram/raw/types/help/timezones_list_not_modified.py +58 -0
- pyrogram/raw/types/help/user_info.py +88 -0
- pyrogram/raw/types/help/user_info_empty.py +59 -0
- pyrogram/raw/types/high_score.py +70 -0
- pyrogram/raw/types/http_wait.py +70 -0
- pyrogram/raw/types/imported_contact.py +62 -0
- pyrogram/raw/types/inline_bot_switch_pm.py +62 -0
- pyrogram/raw/types/inline_bot_web_view.py +62 -0
- pyrogram/raw/types/inline_query_peer_type_bot_pm.py +49 -0
- pyrogram/raw/types/inline_query_peer_type_broadcast.py +49 -0
- pyrogram/raw/types/inline_query_peer_type_chat.py +49 -0
- pyrogram/raw/types/inline_query_peer_type_megagroup.py +49 -0
- pyrogram/raw/types/inline_query_peer_type_pm.py +49 -0
- pyrogram/raw/types/inline_query_peer_type_same_bot_pm.py +49 -0
- pyrogram/raw/types/input_app_event.py +78 -0
- pyrogram/raw/types/input_bot_app_id.py +62 -0
- pyrogram/raw/types/input_bot_app_short_name.py +62 -0
- pyrogram/raw/types/input_bot_inline_message_game.py +58 -0
- pyrogram/raw/types/input_bot_inline_message_id.py +70 -0
- pyrogram/raw/types/input_bot_inline_message_id64.py +78 -0
- pyrogram/raw/types/input_bot_inline_message_media_auto.py +82 -0
- pyrogram/raw/types/input_bot_inline_message_media_contact.py +90 -0
- pyrogram/raw/types/input_bot_inline_message_media_geo.py +93 -0
- pyrogram/raw/types/input_bot_inline_message_media_invoice.py +116 -0
- pyrogram/raw/types/input_bot_inline_message_media_venue.py +106 -0
- pyrogram/raw/types/input_bot_inline_message_media_web_page.py +108 -0
- pyrogram/raw/types/input_bot_inline_message_text.py +88 -0
- pyrogram/raw/types/input_bot_inline_result.py +119 -0
- pyrogram/raw/types/input_bot_inline_result_document.py +98 -0
- pyrogram/raw/types/input_bot_inline_result_game.py +70 -0
- pyrogram/raw/types/input_bot_inline_result_photo.py +78 -0
- pyrogram/raw/types/input_business_away_message.py +78 -0
- pyrogram/raw/types/input_business_bot_recipients.py +98 -0
- pyrogram/raw/types/input_business_chat_link.py +75 -0
- pyrogram/raw/types/input_business_greeting_message.py +70 -0
- pyrogram/raw/types/input_business_intro.py +74 -0
- pyrogram/raw/types/input_business_recipients.py +88 -0
- pyrogram/raw/types/input_channel.py +62 -0
- pyrogram/raw/types/input_channel_empty.py +49 -0
- pyrogram/raw/types/input_channel_from_message.py +70 -0
- pyrogram/raw/types/input_chat_photo.py +54 -0
- pyrogram/raw/types/input_chat_photo_empty.py +49 -0
- pyrogram/raw/types/input_chat_uploaded_photo.py +87 -0
- pyrogram/raw/types/input_chatlist_dialog_filter.py +54 -0
- pyrogram/raw/types/input_check_password_empty.py +49 -0
- pyrogram/raw/types/input_check_password_srp.py +70 -0
- pyrogram/raw/types/input_client_proxy.py +62 -0
- pyrogram/raw/types/input_collectible_phone.py +54 -0
- pyrogram/raw/types/input_collectible_username.py +54 -0
- pyrogram/raw/types/input_dialog_peer.py +54 -0
- pyrogram/raw/types/input_dialog_peer_folder.py +54 -0
- pyrogram/raw/types/input_document.py +70 -0
- pyrogram/raw/types/input_document_empty.py +49 -0
- pyrogram/raw/types/input_document_file_location.py +78 -0
- pyrogram/raw/types/input_encrypted_chat.py +62 -0
- pyrogram/raw/types/input_encrypted_file.py +62 -0
- pyrogram/raw/types/input_encrypted_file_big_uploaded.py +70 -0
- pyrogram/raw/types/input_encrypted_file_empty.py +49 -0
- pyrogram/raw/types/input_encrypted_file_location.py +62 -0
- pyrogram/raw/types/input_encrypted_file_uploaded.py +78 -0
- pyrogram/raw/types/input_file.py +78 -0
- pyrogram/raw/types/input_file_big.py +70 -0
- pyrogram/raw/types/input_file_location.py +78 -0
- pyrogram/raw/types/input_folder_peer.py +62 -0
- pyrogram/raw/types/input_game_id.py +62 -0
- pyrogram/raw/types/input_game_short_name.py +62 -0
- pyrogram/raw/types/input_geo_point.py +73 -0
- pyrogram/raw/types/input_geo_point_empty.py +49 -0
- pyrogram/raw/types/input_group_call.py +62 -0
- pyrogram/raw/types/input_group_call_stream.py +90 -0
- pyrogram/raw/types/input_invoice_message.py +62 -0
- pyrogram/raw/types/input_invoice_premium_gift_code.py +62 -0
- pyrogram/raw/types/input_invoice_slug.py +54 -0
- pyrogram/raw/types/input_invoice_stars.py +54 -0
- pyrogram/raw/types/input_keyboard_button_request_peer.py +98 -0
- pyrogram/raw/types/input_keyboard_button_url_auth.py +87 -0
- pyrogram/raw/types/input_keyboard_button_user_profile.py +62 -0
- pyrogram/raw/types/input_media_area_channel_post.py +70 -0
- pyrogram/raw/types/input_media_area_venue.py +70 -0
- pyrogram/raw/types/input_media_contact.py +78 -0
- pyrogram/raw/types/input_media_dice.py +54 -0
- pyrogram/raw/types/input_media_document.py +80 -0
- pyrogram/raw/types/input_media_document_external.py +71 -0
- pyrogram/raw/types/input_media_empty.py +49 -0
- pyrogram/raw/types/input_media_game.py +54 -0
- pyrogram/raw/types/input_media_geo_live.py +89 -0
- pyrogram/raw/types/input_media_geo_point.py +54 -0
- pyrogram/raw/types/input_media_invoice.py +126 -0
- pyrogram/raw/types/input_media_paid_media.py +62 -0
- pyrogram/raw/types/input_media_photo.py +71 -0
- pyrogram/raw/types/input_media_photo_external.py +71 -0
- pyrogram/raw/types/input_media_poll.py +85 -0
- pyrogram/raw/types/input_media_story.py +62 -0
- pyrogram/raw/types/input_media_uploaded_document.py +119 -0
- pyrogram/raw/types/input_media_uploaded_photo.py +81 -0
- pyrogram/raw/types/input_media_venue.py +94 -0
- pyrogram/raw/types/input_media_web_page.py +74 -0
- pyrogram/raw/types/input_message_callback_query.py +62 -0
- pyrogram/raw/types/input_message_entity_mention_name.py +70 -0
- pyrogram/raw/types/input_message_id.py +54 -0
- pyrogram/raw/types/input_message_pinned.py +49 -0
- pyrogram/raw/types/input_message_reply_to.py +54 -0
- pyrogram/raw/types/input_messages_filter_chat_photos.py +49 -0
- pyrogram/raw/types/input_messages_filter_contacts.py +49 -0
- pyrogram/raw/types/input_messages_filter_document.py +49 -0
- pyrogram/raw/types/input_messages_filter_empty.py +49 -0
- pyrogram/raw/types/input_messages_filter_geo.py +49 -0
- pyrogram/raw/types/input_messages_filter_gif.py +49 -0
- pyrogram/raw/types/input_messages_filter_music.py +49 -0
- pyrogram/raw/types/input_messages_filter_my_mentions.py +49 -0
- pyrogram/raw/types/input_messages_filter_phone_calls.py +54 -0
- pyrogram/raw/types/input_messages_filter_photo_video.py +49 -0
- pyrogram/raw/types/input_messages_filter_photos.py +49 -0
- pyrogram/raw/types/input_messages_filter_pinned.py +49 -0
- pyrogram/raw/types/input_messages_filter_round_video.py +49 -0
- pyrogram/raw/types/input_messages_filter_round_voice.py +49 -0
- pyrogram/raw/types/input_messages_filter_url.py +49 -0
- pyrogram/raw/types/input_messages_filter_video.py +49 -0
- pyrogram/raw/types/input_messages_filter_voice.py +49 -0
- pyrogram/raw/types/input_notify_broadcasts.py +49 -0
- pyrogram/raw/types/input_notify_chats.py +49 -0
- pyrogram/raw/types/input_notify_forum_topic.py +62 -0
- pyrogram/raw/types/input_notify_peer.py +54 -0
- pyrogram/raw/types/input_notify_users.py +49 -0
- pyrogram/raw/types/input_payment_credentials.py +62 -0
- pyrogram/raw/types/input_payment_credentials_apple_pay.py +54 -0
- pyrogram/raw/types/input_payment_credentials_google_pay.py +54 -0
- pyrogram/raw/types/input_payment_credentials_saved.py +62 -0
- pyrogram/raw/types/input_peer_channel.py +62 -0
- pyrogram/raw/types/input_peer_channel_from_message.py +70 -0
- pyrogram/raw/types/input_peer_chat.py +54 -0
- pyrogram/raw/types/input_peer_empty.py +49 -0
- pyrogram/raw/types/input_peer_notify_settings.py +113 -0
- pyrogram/raw/types/input_peer_photo_file_location.py +70 -0
- pyrogram/raw/types/input_peer_photo_file_location_legacy.py +78 -0
- pyrogram/raw/types/input_peer_self.py +49 -0
- pyrogram/raw/types/input_peer_user.py +62 -0
- pyrogram/raw/types/input_peer_user_from_message.py +70 -0
- pyrogram/raw/types/input_phone_call.py +62 -0
- pyrogram/raw/types/input_phone_contact.py +78 -0
- pyrogram/raw/types/input_photo.py +70 -0
- pyrogram/raw/types/input_photo_empty.py +49 -0
- pyrogram/raw/types/input_photo_file_location.py +78 -0
- pyrogram/raw/types/input_photo_legacy_file_location.py +94 -0
- pyrogram/raw/types/input_privacy_key_about.py +49 -0
- pyrogram/raw/types/input_privacy_key_added_by_phone.py +49 -0
- pyrogram/raw/types/input_privacy_key_birthday.py +49 -0
- pyrogram/raw/types/input_privacy_key_chat_invite.py +49 -0
- pyrogram/raw/types/input_privacy_key_forwards.py +49 -0
- pyrogram/raw/types/input_privacy_key_phone_call.py +49 -0
- pyrogram/raw/types/input_privacy_key_phone_number.py +49 -0
- pyrogram/raw/types/input_privacy_key_phone_p2_p.py +49 -0
- pyrogram/raw/types/input_privacy_key_profile_photo.py +49 -0
- pyrogram/raw/types/input_privacy_key_status_timestamp.py +49 -0
- pyrogram/raw/types/input_privacy_key_voice_messages.py +49 -0
- pyrogram/raw/types/input_privacy_value_allow_all.py +49 -0
- pyrogram/raw/types/input_privacy_value_allow_chat_participants.py +54 -0
- pyrogram/raw/types/input_privacy_value_allow_close_friends.py +49 -0
- pyrogram/raw/types/input_privacy_value_allow_contacts.py +49 -0
- pyrogram/raw/types/input_privacy_value_allow_premium.py +49 -0
- pyrogram/raw/types/input_privacy_value_allow_users.py +54 -0
- pyrogram/raw/types/input_privacy_value_disallow_all.py +49 -0
- pyrogram/raw/types/input_privacy_value_disallow_chat_participants.py +54 -0
- pyrogram/raw/types/input_privacy_value_disallow_contacts.py +49 -0
- pyrogram/raw/types/input_privacy_value_disallow_users.py +54 -0
- pyrogram/raw/types/input_quick_reply_shortcut.py +54 -0
- pyrogram/raw/types/input_quick_reply_shortcut_id.py +54 -0
- pyrogram/raw/types/input_reply_to_message.py +103 -0
- pyrogram/raw/types/input_reply_to_story.py +62 -0
- pyrogram/raw/types/input_report_reason_child_abuse.py +49 -0
- pyrogram/raw/types/input_report_reason_copyright.py +49 -0
- pyrogram/raw/types/input_report_reason_fake.py +49 -0
- pyrogram/raw/types/input_report_reason_geo_irrelevant.py +49 -0
- pyrogram/raw/types/input_report_reason_illegal_drugs.py +49 -0
- pyrogram/raw/types/input_report_reason_other.py +49 -0
- pyrogram/raw/types/input_report_reason_personal_details.py +49 -0
- pyrogram/raw/types/input_report_reason_pornography.py +49 -0
- pyrogram/raw/types/input_report_reason_spam.py +49 -0
- pyrogram/raw/types/input_report_reason_violence.py +49 -0
- pyrogram/raw/types/input_secure_file.py +62 -0
- pyrogram/raw/types/input_secure_file_location.py +62 -0
- pyrogram/raw/types/input_secure_file_uploaded.py +86 -0
- pyrogram/raw/types/input_secure_value.py +126 -0
- pyrogram/raw/types/input_single_media.py +82 -0
- pyrogram/raw/types/input_stars_transaction.py +62 -0
- pyrogram/raw/types/input_sticker_set_animated_emoji.py +49 -0
- pyrogram/raw/types/input_sticker_set_animated_emoji_animations.py +49 -0
- pyrogram/raw/types/input_sticker_set_dice.py +54 -0
- pyrogram/raw/types/input_sticker_set_emoji_channel_default_statuses.py +49 -0
- pyrogram/raw/types/input_sticker_set_emoji_default_statuses.py +49 -0
- pyrogram/raw/types/input_sticker_set_emoji_default_topic_icons.py +49 -0
- pyrogram/raw/types/input_sticker_set_emoji_generic_animations.py +49 -0
- pyrogram/raw/types/input_sticker_set_empty.py +49 -0
- pyrogram/raw/types/input_sticker_set_id.py +62 -0
- pyrogram/raw/types/input_sticker_set_item.py +83 -0
- pyrogram/raw/types/input_sticker_set_premium_gifts.py +49 -0
- pyrogram/raw/types/input_sticker_set_short_name.py +54 -0
- pyrogram/raw/types/input_sticker_set_thumb.py +62 -0
- pyrogram/raw/types/input_sticker_set_thumb_legacy.py +70 -0
- pyrogram/raw/types/input_stickered_media_document.py +54 -0
- pyrogram/raw/types/input_stickered_media_photo.py +54 -0
- pyrogram/raw/types/input_store_payment_gift_premium.py +70 -0
- pyrogram/raw/types/input_store_payment_premium_gift_code.py +82 -0
- pyrogram/raw/types/input_store_payment_premium_giveaway.py +129 -0
- pyrogram/raw/types/input_store_payment_premium_subscription.py +60 -0
- pyrogram/raw/types/input_store_payment_stars.py +73 -0
- pyrogram/raw/types/input_takeout_file_location.py +49 -0
- pyrogram/raw/types/input_theme.py +62 -0
- pyrogram/raw/types/input_theme_settings.py +109 -0
- pyrogram/raw/types/input_theme_slug.py +54 -0
- pyrogram/raw/types/input_user.py +62 -0
- pyrogram/raw/types/input_user_empty.py +49 -0
- pyrogram/raw/types/input_user_from_message.py +70 -0
- pyrogram/raw/types/input_user_self.py +49 -0
- pyrogram/raw/types/input_wall_paper.py +62 -0
- pyrogram/raw/types/input_wall_paper_no_file.py +54 -0
- pyrogram/raw/types/input_wall_paper_slug.py +54 -0
- pyrogram/raw/types/input_web_document.py +78 -0
- pyrogram/raw/types/input_web_file_audio_album_thumb_location.py +82 -0
- pyrogram/raw/types/input_web_file_geo_point_location.py +94 -0
- pyrogram/raw/types/input_web_file_location.py +62 -0
- pyrogram/raw/types/invoice.py +146 -0
- pyrogram/raw/types/ip_port.py +62 -0
- pyrogram/raw/types/ip_port_secret.py +70 -0
- pyrogram/raw/types/json_array.py +54 -0
- pyrogram/raw/types/json_bool.py +54 -0
- pyrogram/raw/types/json_null.py +49 -0
- pyrogram/raw/types/json_number.py +54 -0
- pyrogram/raw/types/json_object.py +54 -0
- pyrogram/raw/types/json_object_value.py +62 -0
- pyrogram/raw/types/json_string.py +54 -0
- pyrogram/raw/types/keyboard_button.py +54 -0
- pyrogram/raw/types/keyboard_button_buy.py +54 -0
- pyrogram/raw/types/keyboard_button_callback.py +70 -0
- pyrogram/raw/types/keyboard_button_game.py +54 -0
- pyrogram/raw/types/keyboard_button_request_geo_location.py +54 -0
- pyrogram/raw/types/keyboard_button_request_peer.py +78 -0
- pyrogram/raw/types/keyboard_button_request_phone.py +54 -0
- pyrogram/raw/types/keyboard_button_request_poll.py +65 -0
- pyrogram/raw/types/keyboard_button_row.py +54 -0
- pyrogram/raw/types/keyboard_button_simple_web_view.py +62 -0
- pyrogram/raw/types/keyboard_button_switch_inline.py +80 -0
- pyrogram/raw/types/keyboard_button_url.py +62 -0
- pyrogram/raw/types/keyboard_button_url_auth.py +81 -0
- pyrogram/raw/types/keyboard_button_user_profile.py +62 -0
- pyrogram/raw/types/keyboard_button_web_view.py +62 -0
- pyrogram/raw/types/labeled_price.py +62 -0
- pyrogram/raw/types/lang_pack_difference.py +88 -0
- pyrogram/raw/types/lang_pack_language.py +141 -0
- pyrogram/raw/types/lang_pack_string.py +71 -0
- pyrogram/raw/types/lang_pack_string_deleted.py +63 -0
- pyrogram/raw/types/lang_pack_string_pluralized.py +118 -0
- pyrogram/raw/types/mask_coords.py +78 -0
- pyrogram/raw/types/media_area_channel_post.py +70 -0
- pyrogram/raw/types/media_area_coordinates.py +97 -0
- pyrogram/raw/types/media_area_geo_point.py +74 -0
- pyrogram/raw/types/media_area_suggested_reaction.py +76 -0
- pyrogram/raw/types/media_area_url.py +62 -0
- pyrogram/raw/types/media_area_venue.py +102 -0
- pyrogram/raw/types/message.py +365 -0
- pyrogram/raw/types/message_action_boost_apply.py +54 -0
- pyrogram/raw/types/message_action_bot_allowed.py +79 -0
- pyrogram/raw/types/message_action_channel_create.py +54 -0
- pyrogram/raw/types/message_action_channel_migrate_from.py +62 -0
- pyrogram/raw/types/message_action_chat_add_user.py +54 -0
- pyrogram/raw/types/message_action_chat_create.py +62 -0
- pyrogram/raw/types/message_action_chat_delete_photo.py +49 -0
- pyrogram/raw/types/message_action_chat_delete_user.py +54 -0
- pyrogram/raw/types/message_action_chat_edit_photo.py +54 -0
- pyrogram/raw/types/message_action_chat_edit_title.py +54 -0
- pyrogram/raw/types/message_action_chat_joined_by_link.py +54 -0
- pyrogram/raw/types/message_action_chat_joined_by_request.py +49 -0
- pyrogram/raw/types/message_action_chat_migrate_to.py +54 -0
- pyrogram/raw/types/message_action_contact_sign_up.py +49 -0
- pyrogram/raw/types/message_action_custom_action.py +54 -0
- pyrogram/raw/types/message_action_empty.py +49 -0
- pyrogram/raw/types/message_action_game_score.py +62 -0
- pyrogram/raw/types/message_action_geo_proximity_reached.py +70 -0
- pyrogram/raw/types/message_action_gift_code.py +122 -0
- pyrogram/raw/types/message_action_gift_premium.py +90 -0
- pyrogram/raw/types/message_action_giveaway_launch.py +49 -0
- pyrogram/raw/types/message_action_giveaway_results.py +62 -0
- pyrogram/raw/types/message_action_group_call.py +65 -0
- pyrogram/raw/types/message_action_group_call_scheduled.py +62 -0
- pyrogram/raw/types/message_action_history_clear.py +49 -0
- pyrogram/raw/types/message_action_invite_to_group_call.py +62 -0
- pyrogram/raw/types/message_action_payment_refunded.py +89 -0
- pyrogram/raw/types/message_action_payment_sent.py +85 -0
- pyrogram/raw/types/message_action_payment_sent_me.py +111 -0
- pyrogram/raw/types/message_action_phone_call.py +81 -0
- pyrogram/raw/types/message_action_pin_message.py +49 -0
- pyrogram/raw/types/message_action_requested_peer.py +62 -0
- pyrogram/raw/types/message_action_requested_peer_sent_me.py +62 -0
- pyrogram/raw/types/message_action_screenshot_taken.py +49 -0
- pyrogram/raw/types/message_action_secure_values_sent.py +54 -0
- pyrogram/raw/types/message_action_secure_values_sent_me.py +62 -0
- pyrogram/raw/types/message_action_set_chat_theme.py +54 -0
- pyrogram/raw/types/message_action_set_chat_wall_paper.py +68 -0
- pyrogram/raw/types/message_action_set_messages_ttl.py +65 -0
- pyrogram/raw/types/message_action_suggest_profile_photo.py +54 -0
- pyrogram/raw/types/message_action_topic_create.py +73 -0
- pyrogram/raw/types/message_action_topic_edit.py +84 -0
- pyrogram/raw/types/message_action_web_view_data_sent.py +54 -0
- pyrogram/raw/types/message_action_web_view_data_sent_me.py +62 -0
- pyrogram/raw/types/message_empty.py +66 -0
- pyrogram/raw/types/message_entity_bank_card.py +62 -0
- pyrogram/raw/types/message_entity_blockquote.py +70 -0
- pyrogram/raw/types/message_entity_bold.py +62 -0
- pyrogram/raw/types/message_entity_bot_command.py +62 -0
- pyrogram/raw/types/message_entity_cashtag.py +62 -0
- pyrogram/raw/types/message_entity_code.py +62 -0
- pyrogram/raw/types/message_entity_custom_emoji.py +70 -0
- pyrogram/raw/types/message_entity_email.py +62 -0
- pyrogram/raw/types/message_entity_hashtag.py +62 -0
- pyrogram/raw/types/message_entity_italic.py +62 -0
- pyrogram/raw/types/message_entity_mention.py +62 -0
- pyrogram/raw/types/message_entity_mention_name.py +70 -0
- pyrogram/raw/types/message_entity_phone.py +62 -0
- pyrogram/raw/types/message_entity_pre.py +70 -0
- pyrogram/raw/types/message_entity_spoiler.py +62 -0
- pyrogram/raw/types/message_entity_strike.py +62 -0
- pyrogram/raw/types/message_entity_text_url.py +70 -0
- pyrogram/raw/types/message_entity_underline.py +62 -0
- pyrogram/raw/types/message_entity_unknown.py +62 -0
- pyrogram/raw/types/message_entity_url.py +62 -0
- pyrogram/raw/types/message_extended_media.py +54 -0
- pyrogram/raw/types/message_extended_media_preview.py +85 -0
- pyrogram/raw/types/message_fwd_header.py +161 -0
- pyrogram/raw/types/message_media_contact.py +97 -0
- pyrogram/raw/types/message_media_dice.py +73 -0
- pyrogram/raw/types/message_media_document.py +118 -0
- pyrogram/raw/types/message_media_empty.py +60 -0
- pyrogram/raw/types/message_media_game.py +65 -0
- pyrogram/raw/types/message_media_geo.py +65 -0
- pyrogram/raw/types/message_media_geo_live.py +93 -0
- pyrogram/raw/types/message_media_giveaway.py +122 -0
- pyrogram/raw/types/message_media_giveaway_results.py +145 -0
- pyrogram/raw/types/message_media_invoice.py +140 -0
- pyrogram/raw/types/message_media_paid_media.py +73 -0
- pyrogram/raw/types/message_media_photo.py +84 -0
- pyrogram/raw/types/message_media_poll.py +73 -0
- pyrogram/raw/types/message_media_story.py +91 -0
- pyrogram/raw/types/message_media_unsupported.py +60 -0
- pyrogram/raw/types/message_media_venue.py +105 -0
- pyrogram/raw/types/message_media_web_page.py +91 -0
- pyrogram/raw/types/message_peer_reaction.py +90 -0
- pyrogram/raw/types/message_peer_vote.py +70 -0
- pyrogram/raw/types/message_peer_vote_input_option.py +62 -0
- pyrogram/raw/types/message_peer_vote_multiple.py +70 -0
- pyrogram/raw/types/message_range.py +71 -0
- pyrogram/raw/types/message_reactions.py +84 -0
- pyrogram/raw/types/message_replies.py +107 -0
- pyrogram/raw/types/message_reply_header.py +142 -0
- pyrogram/raw/types/message_reply_story_header.py +62 -0
- pyrogram/raw/types/message_service.py +145 -0
- pyrogram/raw/types/message_views.py +76 -0
- pyrogram/raw/types/messages/__init__.py +89 -0
- pyrogram/raw/types/messages/affected_found_messages.py +87 -0
- pyrogram/raw/types/messages/affected_history.py +85 -0
- pyrogram/raw/types/messages/affected_messages.py +74 -0
- pyrogram/raw/types/messages/all_stickers.py +73 -0
- pyrogram/raw/types/messages/all_stickers_not_modified.py +60 -0
- pyrogram/raw/types/messages/archived_stickers.py +71 -0
- pyrogram/raw/types/messages/available_effects.py +79 -0
- pyrogram/raw/types/messages/available_effects_not_modified.py +58 -0
- pyrogram/raw/types/messages/available_reactions.py +71 -0
- pyrogram/raw/types/messages/available_reactions_not_modified.py +58 -0
- pyrogram/raw/types/messages/bot_app.py +83 -0
- pyrogram/raw/types/messages/bot_callback_answer.py +101 -0
- pyrogram/raw/types/messages/bot_results.py +124 -0
- pyrogram/raw/types/messages/channel_messages.py +134 -0
- pyrogram/raw/types/messages/chat_admins_with_invites.py +71 -0
- pyrogram/raw/types/messages/chat_full.py +80 -0
- pyrogram/raw/types/messages/chat_invite_importers.py +79 -0
- pyrogram/raw/types/messages/chats.py +70 -0
- pyrogram/raw/types/messages/chats_slice.py +78 -0
- pyrogram/raw/types/messages/checked_history_import_peer.py +63 -0
- pyrogram/raw/types/messages/dh_config.py +87 -0
- pyrogram/raw/types/messages/dh_config_not_modified.py +63 -0
- pyrogram/raw/types/messages/dialog_filters.py +71 -0
- pyrogram/raw/types/messages/dialogs.py +87 -0
- pyrogram/raw/types/messages/dialogs_not_modified.py +63 -0
- pyrogram/raw/types/messages/dialogs_slice.py +95 -0
- pyrogram/raw/types/messages/discussion_message.py +116 -0
- pyrogram/raw/types/messages/emoji_groups.py +74 -0
- pyrogram/raw/types/messages/emoji_groups_not_modified.py +61 -0
- pyrogram/raw/types/messages/exported_chat_invite.py +72 -0
- pyrogram/raw/types/messages/exported_chat_invite_replaced.py +80 -0
- pyrogram/raw/types/messages/exported_chat_invites.py +79 -0
- pyrogram/raw/types/messages/faved_stickers.py +79 -0
- pyrogram/raw/types/messages/faved_stickers_not_modified.py +58 -0
- pyrogram/raw/types/messages/featured_stickers.py +97 -0
- pyrogram/raw/types/messages/featured_stickers_not_modified.py +65 -0
- pyrogram/raw/types/messages/forum_topics.py +112 -0
- pyrogram/raw/types/messages/found_sticker_sets.py +72 -0
- pyrogram/raw/types/messages/found_sticker_sets_not_modified.py +59 -0
- pyrogram/raw/types/messages/high_scores.py +72 -0
- pyrogram/raw/types/messages/history_import.py +63 -0
- pyrogram/raw/types/messages/history_import_parsed.py +78 -0
- pyrogram/raw/types/messages/inactive_chats.py +79 -0
- pyrogram/raw/types/messages/invited_users.py +73 -0
- pyrogram/raw/types/messages/message_edit_data.py +63 -0
- pyrogram/raw/types/messages/message_reactions_list.py +98 -0
- pyrogram/raw/types/messages/message_views.py +79 -0
- pyrogram/raw/types/messages/messages.py +93 -0
- pyrogram/raw/types/messages/messages_not_modified.py +77 -0
- pyrogram/raw/types/messages/messages_slice.py +127 -0
- pyrogram/raw/types/messages/my_stickers.py +71 -0
- pyrogram/raw/types/messages/peer_dialogs.py +96 -0
- pyrogram/raw/types/messages/peer_settings.py +79 -0
- pyrogram/raw/types/messages/quick_replies.py +87 -0
- pyrogram/raw/types/messages/quick_replies_not_modified.py +58 -0
- pyrogram/raw/types/messages/reactions.py +73 -0
- pyrogram/raw/types/messages/reactions_not_modified.py +60 -0
- pyrogram/raw/types/messages/recent_stickers.py +87 -0
- pyrogram/raw/types/messages/recent_stickers_not_modified.py +58 -0
- pyrogram/raw/types/messages/saved_dialogs.py +88 -0
- pyrogram/raw/types/messages/saved_dialogs_not_modified.py +64 -0
- pyrogram/raw/types/messages/saved_dialogs_slice.py +96 -0
- pyrogram/raw/types/messages/saved_gifs.py +71 -0
- pyrogram/raw/types/messages/saved_gifs_not_modified.py +58 -0
- pyrogram/raw/types/messages/saved_reaction_tags.py +71 -0
- pyrogram/raw/types/messages/saved_reaction_tags_not_modified.py +58 -0
- pyrogram/raw/types/messages/search_counter.py +79 -0
- pyrogram/raw/types/messages/search_results_calendar.py +128 -0
- pyrogram/raw/types/messages/search_results_positions.py +71 -0
- pyrogram/raw/types/messages/sent_encrypted_file.py +73 -0
- pyrogram/raw/types/messages/sent_encrypted_message.py +65 -0
- pyrogram/raw/types/messages/sponsored_messages.py +90 -0
- pyrogram/raw/types/messages/sponsored_messages_empty.py +58 -0
- pyrogram/raw/types/messages/sticker_set.py +95 -0
- pyrogram/raw/types/messages/sticker_set_install_result_archive.py +63 -0
- pyrogram/raw/types/messages/sticker_set_install_result_success.py +58 -0
- pyrogram/raw/types/messages/sticker_set_not_modified.py +66 -0
- pyrogram/raw/types/messages/stickers.py +71 -0
- pyrogram/raw/types/messages/stickers_not_modified.py +58 -0
- pyrogram/raw/types/messages/transcribed_audio.py +97 -0
- pyrogram/raw/types/messages/translate_result.py +63 -0
- pyrogram/raw/types/messages/votes_list.py +98 -0
- pyrogram/raw/types/messages/web_page.py +79 -0
- pyrogram/raw/types/missing_invitee.py +68 -0
- pyrogram/raw/types/msg_detailed_info.py +78 -0
- pyrogram/raw/types/msg_new_detailed_info.py +70 -0
- pyrogram/raw/types/msg_resend_ans_req.py +54 -0
- pyrogram/raw/types/msg_resend_req.py +54 -0
- pyrogram/raw/types/msgs_ack.py +54 -0
- pyrogram/raw/types/msgs_all_info.py +62 -0
- pyrogram/raw/types/msgs_state_info.py +62 -0
- pyrogram/raw/types/msgs_state_req.py +54 -0
- pyrogram/raw/types/my_boost.py +91 -0
- pyrogram/raw/types/nearest_dc.py +79 -0
- pyrogram/raw/types/new_session_created.py +70 -0
- pyrogram/raw/types/notification_sound_default.py +49 -0
- pyrogram/raw/types/notification_sound_local.py +62 -0
- pyrogram/raw/types/notification_sound_none.py +49 -0
- pyrogram/raw/types/notification_sound_ringtone.py +54 -0
- pyrogram/raw/types/notify_broadcasts.py +49 -0
- pyrogram/raw/types/notify_chats.py +49 -0
- pyrogram/raw/types/notify_forum_topic.py +62 -0
- pyrogram/raw/types/notify_peer.py +54 -0
- pyrogram/raw/types/notify_users.py +49 -0
- pyrogram/raw/types/outbox_read_date.py +63 -0
- pyrogram/raw/types/page.py +107 -0
- pyrogram/raw/types/page_block_anchor.py +54 -0
- pyrogram/raw/types/page_block_audio.py +62 -0
- pyrogram/raw/types/page_block_author_date.py +62 -0
- pyrogram/raw/types/page_block_blockquote.py +62 -0
- pyrogram/raw/types/page_block_channel.py +54 -0
- pyrogram/raw/types/page_block_collage.py +62 -0
- pyrogram/raw/types/page_block_cover.py +54 -0
- pyrogram/raw/types/page_block_details.py +70 -0
- pyrogram/raw/types/page_block_divider.py +49 -0
- pyrogram/raw/types/page_block_embed.py +113 -0
- pyrogram/raw/types/page_block_embed_post.py +102 -0
- pyrogram/raw/types/page_block_footer.py +54 -0
- pyrogram/raw/types/page_block_header.py +54 -0
- pyrogram/raw/types/page_block_kicker.py +54 -0
- pyrogram/raw/types/page_block_list.py +54 -0
- pyrogram/raw/types/page_block_map.py +86 -0
- pyrogram/raw/types/page_block_ordered_list.py +54 -0
- pyrogram/raw/types/page_block_paragraph.py +54 -0
- pyrogram/raw/types/page_block_photo.py +82 -0
- pyrogram/raw/types/page_block_preformatted.py +62 -0
- pyrogram/raw/types/page_block_pullquote.py +62 -0
- pyrogram/raw/types/page_block_related_articles.py +62 -0
- pyrogram/raw/types/page_block_slideshow.py +62 -0
- pyrogram/raw/types/page_block_subheader.py +54 -0
- pyrogram/raw/types/page_block_subtitle.py +54 -0
- pyrogram/raw/types/page_block_table.py +76 -0
- pyrogram/raw/types/page_block_title.py +54 -0
- pyrogram/raw/types/page_block_unsupported.py +49 -0
- pyrogram/raw/types/page_block_video.py +76 -0
- pyrogram/raw/types/page_caption.py +62 -0
- pyrogram/raw/types/page_list_item_blocks.py +54 -0
- pyrogram/raw/types/page_list_item_text.py +54 -0
- pyrogram/raw/types/page_list_ordered_item_blocks.py +62 -0
- pyrogram/raw/types/page_list_ordered_item_text.py +62 -0
- pyrogram/raw/types/page_related_article.py +109 -0
- pyrogram/raw/types/page_table_cell.py +106 -0
- pyrogram/raw/types/page_table_row.py +54 -0
- pyrogram/raw/types/password_kdf_algo_sha256_sha256_pbkdf2_hmacsha512iter100000_sha256_mod_pow.py +78 -0
- pyrogram/raw/types/password_kdf_algo_unknown.py +49 -0
- pyrogram/raw/types/payment_charge.py +62 -0
- pyrogram/raw/types/payment_form_method.py +62 -0
- pyrogram/raw/types/payment_requested_info.py +85 -0
- pyrogram/raw/types/payment_saved_credentials_card.py +62 -0
- pyrogram/raw/types/payments/__init__.py +23 -0
- pyrogram/raw/types/payments/bank_card_data.py +71 -0
- pyrogram/raw/types/payments/checked_gift_code.py +132 -0
- pyrogram/raw/types/payments/exported_invoice.py +63 -0
- pyrogram/raw/types/payments/giveaway_info.py +104 -0
- pyrogram/raw/types/payments/giveaway_info_results.py +110 -0
- pyrogram/raw/types/payments/payment_form.py +192 -0
- pyrogram/raw/types/payments/payment_form_stars.py +115 -0
- pyrogram/raw/types/payments/payment_receipt.py +176 -0
- pyrogram/raw/types/payments/payment_receipt_stars.py +139 -0
- pyrogram/raw/types/payments/payment_result.py +64 -0
- pyrogram/raw/types/payments/payment_verification_needed.py +64 -0
- pyrogram/raw/types/payments/saved_info.py +73 -0
- pyrogram/raw/types/payments/stars_revenue_ads_account_url.py +63 -0
- pyrogram/raw/types/payments/stars_revenue_stats.py +79 -0
- pyrogram/raw/types/payments/stars_revenue_withdrawal_url.py +63 -0
- pyrogram/raw/types/payments/stars_status.py +100 -0
- pyrogram/raw/types/payments/validated_requested_info.py +76 -0
- pyrogram/raw/types/peer_blocked.py +62 -0
- pyrogram/raw/types/peer_channel.py +63 -0
- pyrogram/raw/types/peer_chat.py +63 -0
- pyrogram/raw/types/peer_color.py +66 -0
- pyrogram/raw/types/peer_located.py +70 -0
- pyrogram/raw/types/peer_notify_settings.py +162 -0
- pyrogram/raw/types/peer_self_located.py +54 -0
- pyrogram/raw/types/peer_settings.py +159 -0
- pyrogram/raw/types/peer_stories.py +73 -0
- pyrogram/raw/types/peer_user.py +63 -0
- pyrogram/raw/types/phone/__init__.py +13 -0
- pyrogram/raw/types/phone/exported_group_call_invite.py +63 -0
- pyrogram/raw/types/phone/group_call.py +95 -0
- pyrogram/raw/types/phone/group_call_stream_channels.py +63 -0
- pyrogram/raw/types/phone/group_call_stream_rtmp_url.py +71 -0
- pyrogram/raw/types/phone/group_participants.py +103 -0
- pyrogram/raw/types/phone/join_as_peers.py +79 -0
- pyrogram/raw/types/phone/phone_call.py +73 -0
- pyrogram/raw/types/phone_call.py +150 -0
- pyrogram/raw/types/phone_call_accepted.py +110 -0
- pyrogram/raw/types/phone_call_discard_reason_busy.py +49 -0
- pyrogram/raw/types/phone_call_discard_reason_disconnect.py +49 -0
- pyrogram/raw/types/phone_call_discard_reason_hangup.py +49 -0
- pyrogram/raw/types/phone_call_discard_reason_missed.py +49 -0
- pyrogram/raw/types/phone_call_discarded.py +93 -0
- pyrogram/raw/types/phone_call_empty.py +54 -0
- pyrogram/raw/types/phone_call_protocol.py +84 -0
- pyrogram/raw/types/phone_call_requested.py +110 -0
- pyrogram/raw/types/phone_call_waiting.py +111 -0
- pyrogram/raw/types/phone_connection.py +94 -0
- pyrogram/raw/types/phone_connection_webrtc.py +108 -0
- pyrogram/raw/types/photo.py +112 -0
- pyrogram/raw/types/photo_cached_size.py +78 -0
- pyrogram/raw/types/photo_empty.py +54 -0
- pyrogram/raw/types/photo_path_size.py +62 -0
- pyrogram/raw/types/photo_size.py +78 -0
- pyrogram/raw/types/photo_size_empty.py +54 -0
- pyrogram/raw/types/photo_size_progressive.py +78 -0
- pyrogram/raw/types/photo_stripped_size.py +62 -0
- pyrogram/raw/types/photos/__init__.py +9 -0
- pyrogram/raw/types/photos/photo.py +73 -0
- pyrogram/raw/types/photos/photos.py +71 -0
- pyrogram/raw/types/photos/photos_slice.py +79 -0
- pyrogram/raw/types/poll.py +114 -0
- pyrogram/raw/types/poll_answer.py +62 -0
- pyrogram/raw/types/poll_answer_voters.py +76 -0
- pyrogram/raw/types/poll_results.py +102 -0
- pyrogram/raw/types/pong.py +72 -0
- pyrogram/raw/types/popular_contact.py +62 -0
- pyrogram/raw/types/post_address.py +94 -0
- pyrogram/raw/types/post_interaction_counters_message.py +78 -0
- pyrogram/raw/types/post_interaction_counters_story.py +78 -0
- pyrogram/raw/types/pq_inner_data.py +94 -0
- pyrogram/raw/types/pq_inner_data_dc.py +102 -0
- pyrogram/raw/types/pq_inner_data_temp.py +102 -0
- pyrogram/raw/types/pq_inner_data_temp_dc.py +110 -0
- pyrogram/raw/types/premium/__init__.py +9 -0
- pyrogram/raw/types/premium/boosts_list.py +91 -0
- pyrogram/raw/types/premium/boosts_status.py +143 -0
- pyrogram/raw/types/premium/my_boosts.py +80 -0
- pyrogram/raw/types/premium_gift_code_option.py +107 -0
- pyrogram/raw/types/premium_gift_option.py +89 -0
- pyrogram/raw/types/premium_subscription_option.py +110 -0
- pyrogram/raw/types/prepaid_giveaway.py +78 -0
- pyrogram/raw/types/privacy_key_about.py +49 -0
- pyrogram/raw/types/privacy_key_added_by_phone.py +49 -0
- pyrogram/raw/types/privacy_key_birthday.py +49 -0
- pyrogram/raw/types/privacy_key_chat_invite.py +49 -0
- pyrogram/raw/types/privacy_key_forwards.py +49 -0
- pyrogram/raw/types/privacy_key_phone_call.py +49 -0
- pyrogram/raw/types/privacy_key_phone_number.py +49 -0
- pyrogram/raw/types/privacy_key_phone_p2_p.py +49 -0
- pyrogram/raw/types/privacy_key_profile_photo.py +49 -0
- pyrogram/raw/types/privacy_key_status_timestamp.py +49 -0
- pyrogram/raw/types/privacy_key_voice_messages.py +49 -0
- pyrogram/raw/types/privacy_value_allow_all.py +49 -0
- pyrogram/raw/types/privacy_value_allow_chat_participants.py +54 -0
- pyrogram/raw/types/privacy_value_allow_close_friends.py +49 -0
- pyrogram/raw/types/privacy_value_allow_contacts.py +49 -0
- pyrogram/raw/types/privacy_value_allow_premium.py +49 -0
- pyrogram/raw/types/privacy_value_allow_users.py +54 -0
- pyrogram/raw/types/privacy_value_disallow_all.py +49 -0
- pyrogram/raw/types/privacy_value_disallow_chat_participants.py +54 -0
- pyrogram/raw/types/privacy_value_disallow_contacts.py +49 -0
- pyrogram/raw/types/privacy_value_disallow_users.py +54 -0
- pyrogram/raw/types/public_forward_message.py +54 -0
- pyrogram/raw/types/public_forward_story.py +62 -0
- pyrogram/raw/types/quick_reply.py +78 -0
- pyrogram/raw/types/reaction_count.py +73 -0
- pyrogram/raw/types/reaction_custom_emoji.py +54 -0
- pyrogram/raw/types/reaction_emoji.py +54 -0
- pyrogram/raw/types/reaction_empty.py +49 -0
- pyrogram/raw/types/reaction_notifications_from_all.py +49 -0
- pyrogram/raw/types/reaction_notifications_from_contacts.py +49 -0
- pyrogram/raw/types/reactions_notify_settings.py +94 -0
- pyrogram/raw/types/read_participant_date.py +71 -0
- pyrogram/raw/types/received_notify_message.py +71 -0
- pyrogram/raw/types/recent_me_url_chat.py +62 -0
- pyrogram/raw/types/recent_me_url_chat_invite.py +62 -0
- pyrogram/raw/types/recent_me_url_sticker_set.py +62 -0
- pyrogram/raw/types/recent_me_url_unknown.py +54 -0
- pyrogram/raw/types/recent_me_url_user.py +62 -0
- pyrogram/raw/types/reply_inline_markup.py +54 -0
- pyrogram/raw/types/reply_keyboard_force_reply.py +69 -0
- pyrogram/raw/types/reply_keyboard_hide.py +54 -0
- pyrogram/raw/types/reply_keyboard_markup.py +89 -0
- pyrogram/raw/types/request_peer_type_broadcast.py +83 -0
- pyrogram/raw/types/request_peer_type_chat.py +98 -0
- pyrogram/raw/types/request_peer_type_user.py +66 -0
- pyrogram/raw/types/requested_peer_channel.py +84 -0
- pyrogram/raw/types/requested_peer_chat.py +75 -0
- pyrogram/raw/types/requested_peer_user.py +93 -0
- pyrogram/raw/types/res_pq.py +88 -0
- pyrogram/raw/types/restriction_reason.py +70 -0
- pyrogram/raw/types/rpc_answer_dropped.py +79 -0
- pyrogram/raw/types/rpc_answer_dropped_running.py +58 -0
- pyrogram/raw/types/rpc_answer_unknown.py +58 -0
- pyrogram/raw/types/rpc_error.py +62 -0
- pyrogram/raw/types/rpc_result.py +62 -0
- pyrogram/raw/types/saved_dialog.py +70 -0
- pyrogram/raw/types/saved_phone_contact.py +87 -0
- pyrogram/raw/types/saved_reaction_tag.py +73 -0
- pyrogram/raw/types/search_result_position.py +70 -0
- pyrogram/raw/types/search_results_calendar_period.py +78 -0
- pyrogram/raw/types/secure_credentials_encrypted.py +70 -0
- pyrogram/raw/types/secure_data.py +70 -0
- pyrogram/raw/types/secure_file.py +102 -0
- pyrogram/raw/types/secure_file_empty.py +49 -0
- pyrogram/raw/types/secure_password_kdf_algo_pbkdf2_hmacsha512iter100000.py +54 -0
- pyrogram/raw/types/secure_password_kdf_algo_sha512.py +54 -0
- pyrogram/raw/types/secure_password_kdf_algo_unknown.py +49 -0
- pyrogram/raw/types/secure_plain_email.py +54 -0
- pyrogram/raw/types/secure_plain_phone.py +54 -0
- pyrogram/raw/types/secure_required_type.py +74 -0
- pyrogram/raw/types/secure_required_type_one_of.py +54 -0
- pyrogram/raw/types/secure_secret_settings.py +70 -0
- pyrogram/raw/types/secure_value.py +145 -0
- pyrogram/raw/types/secure_value_error.py +70 -0
- pyrogram/raw/types/secure_value_error_data.py +78 -0
- pyrogram/raw/types/secure_value_error_file.py +70 -0
- pyrogram/raw/types/secure_value_error_files.py +70 -0
- pyrogram/raw/types/secure_value_error_front_side.py +70 -0
- pyrogram/raw/types/secure_value_error_reverse_side.py +70 -0
- pyrogram/raw/types/secure_value_error_selfie.py +70 -0
- pyrogram/raw/types/secure_value_error_translation_file.py +70 -0
- pyrogram/raw/types/secure_value_error_translation_files.py +70 -0
- pyrogram/raw/types/secure_value_hash.py +62 -0
- pyrogram/raw/types/secure_value_type_address.py +49 -0
- pyrogram/raw/types/secure_value_type_bank_statement.py +49 -0
- pyrogram/raw/types/secure_value_type_driver_license.py +49 -0
- pyrogram/raw/types/secure_value_type_email.py +49 -0
- pyrogram/raw/types/secure_value_type_identity_card.py +49 -0
- pyrogram/raw/types/secure_value_type_internal_passport.py +49 -0
- pyrogram/raw/types/secure_value_type_passport.py +49 -0
- pyrogram/raw/types/secure_value_type_passport_registration.py +49 -0
- pyrogram/raw/types/secure_value_type_personal_details.py +49 -0
- pyrogram/raw/types/secure_value_type_phone.py +49 -0
- pyrogram/raw/types/secure_value_type_rental_agreement.py +49 -0
- pyrogram/raw/types/secure_value_type_temporary_registration.py +49 -0
- pyrogram/raw/types/secure_value_type_utility_bill.py +49 -0
- pyrogram/raw/types/send_as_peer.py +62 -0
- pyrogram/raw/types/send_message_cancel_action.py +49 -0
- pyrogram/raw/types/send_message_choose_contact_action.py +49 -0
- pyrogram/raw/types/send_message_choose_sticker_action.py +49 -0
- pyrogram/raw/types/send_message_emoji_interaction.py +70 -0
- pyrogram/raw/types/send_message_emoji_interaction_seen.py +54 -0
- pyrogram/raw/types/send_message_game_play_action.py +49 -0
- pyrogram/raw/types/send_message_geo_location_action.py +49 -0
- pyrogram/raw/types/send_message_history_import_action.py +54 -0
- pyrogram/raw/types/send_message_record_audio_action.py +49 -0
- pyrogram/raw/types/send_message_record_round_action.py +49 -0
- pyrogram/raw/types/send_message_record_video_action.py +49 -0
- pyrogram/raw/types/send_message_typing_action.py +49 -0
- pyrogram/raw/types/send_message_upload_audio_action.py +54 -0
- pyrogram/raw/types/send_message_upload_document_action.py +54 -0
- pyrogram/raw/types/send_message_upload_photo_action.py +54 -0
- pyrogram/raw/types/send_message_upload_round_action.py +54 -0
- pyrogram/raw/types/send_message_upload_video_action.py +54 -0
- pyrogram/raw/types/server_dh_inner_data.py +94 -0
- pyrogram/raw/types/server_dh_params_fail.py +79 -0
- pyrogram/raw/types/server_dh_params_ok.py +79 -0
- pyrogram/raw/types/shipping_option.py +70 -0
- pyrogram/raw/types/sms_job.py +79 -0
- pyrogram/raw/types/smsjobs/__init__.py +8 -0
- pyrogram/raw/types/smsjobs/eligible_to_join.py +71 -0
- pyrogram/raw/types/smsjobs/status.py +120 -0
- pyrogram/raw/types/speaking_in_group_call_action.py +49 -0
- pyrogram/raw/types/sponsored_message.py +148 -0
- pyrogram/raw/types/sponsored_message_report_option.py +62 -0
- pyrogram/raw/types/stars_revenue_status.py +87 -0
- pyrogram/raw/types/stars_topup_option.py +96 -0
- pyrogram/raw/types/stars_transaction.py +172 -0
- pyrogram/raw/types/stars_transaction_peer.py +54 -0
- pyrogram/raw/types/stars_transaction_peer_ads.py +49 -0
- pyrogram/raw/types/stars_transaction_peer_app_store.py +49 -0
- pyrogram/raw/types/stars_transaction_peer_fragment.py +49 -0
- pyrogram/raw/types/stars_transaction_peer_play_market.py +49 -0
- pyrogram/raw/types/stars_transaction_peer_premium_bot.py +49 -0
- pyrogram/raw/types/stars_transaction_peer_unsupported.py +49 -0
- pyrogram/raw/types/stats/__init__.py +14 -0
- pyrogram/raw/types/stats/broadcast_revenue_stats.py +87 -0
- pyrogram/raw/types/stats/broadcast_revenue_transactions.py +71 -0
- pyrogram/raw/types/stats/broadcast_revenue_withdrawal_url.py +63 -0
- pyrogram/raw/types/stats/broadcast_stats.py +231 -0
- pyrogram/raw/types/stats/megagroup_stats.py +191 -0
- pyrogram/raw/types/stats/message_stats.py +71 -0
- pyrogram/raw/types/stats/public_forwards.py +99 -0
- pyrogram/raw/types/stats/story_stats.py +71 -0
- pyrogram/raw/types/stats_abs_value_and_prev.py +62 -0
- pyrogram/raw/types/stats_date_range_days.py +62 -0
- pyrogram/raw/types/stats_graph.py +74 -0
- pyrogram/raw/types/stats_graph_async.py +63 -0
- pyrogram/raw/types/stats_graph_error.py +63 -0
- pyrogram/raw/types/stats_group_top_admin.py +78 -0
- pyrogram/raw/types/stats_group_top_inviter.py +62 -0
- pyrogram/raw/types/stats_group_top_poster.py +70 -0
- pyrogram/raw/types/stats_percent_value.py +62 -0
- pyrogram/raw/types/stats_url.py +54 -0
- pyrogram/raw/types/sticker_keyword.py +62 -0
- pyrogram/raw/types/sticker_pack.py +62 -0
- pyrogram/raw/types/sticker_set.py +184 -0
- pyrogram/raw/types/sticker_set_covered.py +71 -0
- pyrogram/raw/types/sticker_set_full_covered.py +87 -0
- pyrogram/raw/types/sticker_set_multi_covered.py +71 -0
- pyrogram/raw/types/sticker_set_no_covered.py +63 -0
- pyrogram/raw/types/stickers/__init__.py +7 -0
- pyrogram/raw/types/stickers/suggested_short_name.py +63 -0
- pyrogram/raw/types/storage/__init__.py +16 -0
- pyrogram/raw/types/storage/file_gif.py +49 -0
- pyrogram/raw/types/storage/file_jpeg.py +49 -0
- pyrogram/raw/types/storage/file_mov.py +49 -0
- pyrogram/raw/types/storage/file_mp3.py +49 -0
- pyrogram/raw/types/storage/file_mp4.py +49 -0
- pyrogram/raw/types/storage/file_partial.py +49 -0
- pyrogram/raw/types/storage/file_pdf.py +49 -0
- pyrogram/raw/types/storage/file_png.py +49 -0
- pyrogram/raw/types/storage/file_unknown.py +49 -0
- pyrogram/raw/types/storage/file_webp.py +49 -0
- pyrogram/raw/types/stories/__init__.py +14 -0
- pyrogram/raw/types/stories/all_stories.py +111 -0
- pyrogram/raw/types/stories/all_stories_not_modified.py +74 -0
- pyrogram/raw/types/stories/found_stories.py +98 -0
- pyrogram/raw/types/stories/peer_stories.py +79 -0
- pyrogram/raw/types/stories/stories.py +101 -0
- pyrogram/raw/types/stories/story_reactions_list.py +98 -0
- pyrogram/raw/types/stories/story_views.py +71 -0
- pyrogram/raw/types/stories/story_views_list.py +122 -0
- pyrogram/raw/types/stories_stealth_mode.py +66 -0
- pyrogram/raw/types/story_fwd_header.py +82 -0
- pyrogram/raw/types/story_item.py +213 -0
- pyrogram/raw/types/story_item_deleted.py +54 -0
- pyrogram/raw/types/story_item_skipped.py +78 -0
- pyrogram/raw/types/story_reaction.py +70 -0
- pyrogram/raw/types/story_reaction_public_forward.py +54 -0
- pyrogram/raw/types/story_reaction_public_repost.py +62 -0
- pyrogram/raw/types/story_view.py +86 -0
- pyrogram/raw/types/story_view_public_forward.py +68 -0
- pyrogram/raw/types/story_view_public_repost.py +76 -0
- pyrogram/raw/types/story_views.py +100 -0
- pyrogram/raw/types/text_anchor.py +62 -0
- pyrogram/raw/types/text_bold.py +54 -0
- pyrogram/raw/types/text_concat.py +54 -0
- pyrogram/raw/types/text_email.py +62 -0
- pyrogram/raw/types/text_empty.py +49 -0
- pyrogram/raw/types/text_fixed.py +54 -0
- pyrogram/raw/types/text_image.py +70 -0
- pyrogram/raw/types/text_italic.py +54 -0
- pyrogram/raw/types/text_marked.py +54 -0
- pyrogram/raw/types/text_phone.py +62 -0
- pyrogram/raw/types/text_plain.py +54 -0
- pyrogram/raw/types/text_strike.py +54 -0
- pyrogram/raw/types/text_subscript.py +54 -0
- pyrogram/raw/types/text_superscript.py +54 -0
- pyrogram/raw/types/text_underline.py +54 -0
- pyrogram/raw/types/text_url.py +70 -0
- pyrogram/raw/types/text_with_entities.py +62 -0
- pyrogram/raw/types/theme.py +147 -0
- pyrogram/raw/types/theme_settings.py +99 -0
- pyrogram/raw/types/timezone.py +70 -0
- pyrogram/raw/types/top_peer.py +62 -0
- pyrogram/raw/types/top_peer_category_bots_inline.py +49 -0
- pyrogram/raw/types/top_peer_category_bots_pm.py +49 -0
- pyrogram/raw/types/top_peer_category_channels.py +49 -0
- pyrogram/raw/types/top_peer_category_correspondents.py +49 -0
- pyrogram/raw/types/top_peer_category_forward_chats.py +49 -0
- pyrogram/raw/types/top_peer_category_forward_users.py +49 -0
- pyrogram/raw/types/top_peer_category_groups.py +49 -0
- pyrogram/raw/types/top_peer_category_peers.py +70 -0
- pyrogram/raw/types/top_peer_category_phone_calls.py +49 -0
- pyrogram/raw/types/update_attach_menu_bots.py +49 -0
- pyrogram/raw/types/update_auto_save_settings.py +49 -0
- pyrogram/raw/types/update_bot_business_connect.py +62 -0
- pyrogram/raw/types/update_bot_callback_query.py +106 -0
- pyrogram/raw/types/update_bot_chat_boost.py +70 -0
- pyrogram/raw/types/update_bot_chat_invite_requester.py +94 -0
- pyrogram/raw/types/update_bot_commands.py +70 -0
- pyrogram/raw/types/update_bot_delete_business_message.py +78 -0
- pyrogram/raw/types/update_bot_edit_business_message.py +82 -0
- pyrogram/raw/types/update_bot_inline_query.py +100 -0
- pyrogram/raw/types/update_bot_inline_send.py +92 -0
- pyrogram/raw/types/update_bot_menu_button.py +62 -0
- pyrogram/raw/types/update_bot_message_reaction.py +102 -0
- pyrogram/raw/types/update_bot_message_reactions.py +86 -0
- pyrogram/raw/types/update_bot_new_business_message.py +82 -0
- pyrogram/raw/types/update_bot_precheckout_query.py +107 -0
- pyrogram/raw/types/update_bot_shipping_query.py +78 -0
- pyrogram/raw/types/update_bot_stopped.py +78 -0
- pyrogram/raw/types/update_bot_webhook_json.py +54 -0
- pyrogram/raw/types/update_bot_webhook_json_query.py +70 -0
- pyrogram/raw/types/update_broadcast_revenue_transactions.py +62 -0
- pyrogram/raw/types/update_business_bot_callback_query.py +107 -0
- pyrogram/raw/types/update_channel.py +54 -0
- pyrogram/raw/types/update_channel_available_messages.py +62 -0
- pyrogram/raw/types/update_channel_message_forwards.py +70 -0
- pyrogram/raw/types/update_channel_message_views.py +70 -0
- pyrogram/raw/types/update_channel_participant.py +124 -0
- pyrogram/raw/types/update_channel_pinned_topic.py +70 -0
- pyrogram/raw/types/update_channel_pinned_topics.py +66 -0
- pyrogram/raw/types/update_channel_read_messages_contents.py +73 -0
- pyrogram/raw/types/update_channel_too_long.py +65 -0
- pyrogram/raw/types/update_channel_user_typing.py +81 -0
- pyrogram/raw/types/update_channel_view_forum_as_messages.py +62 -0
- pyrogram/raw/types/update_channel_web_page.py +78 -0
- pyrogram/raw/types/update_chat.py +54 -0
- pyrogram/raw/types/update_chat_default_banned_rights.py +70 -0
- pyrogram/raw/types/update_chat_participant.py +118 -0
- pyrogram/raw/types/update_chat_participant_add.py +86 -0
- pyrogram/raw/types/update_chat_participant_admin.py +78 -0
- pyrogram/raw/types/update_chat_participant_delete.py +70 -0
- pyrogram/raw/types/update_chat_participants.py +54 -0
- pyrogram/raw/types/update_chat_user_typing.py +70 -0
- pyrogram/raw/types/update_config.py +49 -0
- pyrogram/raw/types/update_contacts_reset.py +49 -0
- pyrogram/raw/types/update_dc_options.py +54 -0
- pyrogram/raw/types/update_delete_channel_messages.py +78 -0
- pyrogram/raw/types/update_delete_messages.py +70 -0
- pyrogram/raw/types/update_delete_quick_reply.py +54 -0
- pyrogram/raw/types/update_delete_quick_reply_messages.py +62 -0
- pyrogram/raw/types/update_delete_scheduled_messages.py +62 -0
- pyrogram/raw/types/update_dialog_filter.py +66 -0
- pyrogram/raw/types/update_dialog_filter_order.py +54 -0
- pyrogram/raw/types/update_dialog_filters.py +49 -0
- pyrogram/raw/types/update_dialog_pinned.py +71 -0
- pyrogram/raw/types/update_dialog_unread_mark.py +62 -0
- pyrogram/raw/types/update_draft_message.py +73 -0
- pyrogram/raw/types/update_edit_channel_message.py +70 -0
- pyrogram/raw/types/update_edit_message.py +70 -0
- pyrogram/raw/types/update_encrypted_chat_typing.py +54 -0
- pyrogram/raw/types/update_encrypted_messages_read.py +70 -0
- pyrogram/raw/types/update_encryption.py +62 -0
- pyrogram/raw/types/update_faved_stickers.py +49 -0
- pyrogram/raw/types/update_folder_peers.py +70 -0
- pyrogram/raw/types/update_geo_live_viewed.py +62 -0
- pyrogram/raw/types/update_group_call.py +62 -0
- pyrogram/raw/types/update_group_call_connection.py +62 -0
- pyrogram/raw/types/update_group_call_participants.py +70 -0
- pyrogram/raw/types/update_inline_bot_callback_query.py +98 -0
- pyrogram/raw/types/update_lang_pack.py +54 -0
- pyrogram/raw/types/update_lang_pack_too_long.py +54 -0
- pyrogram/raw/types/update_login_token.py +49 -0
- pyrogram/raw/types/update_message_extended_media.py +70 -0
- pyrogram/raw/types/update_message_id.py +62 -0
- pyrogram/raw/types/update_message_poll.py +74 -0
- pyrogram/raw/types/update_message_poll_vote.py +78 -0
- pyrogram/raw/types/update_message_reactions.py +81 -0
- pyrogram/raw/types/update_move_sticker_set_to_top.py +68 -0
- pyrogram/raw/types/update_new_authorization.py +89 -0
- pyrogram/raw/types/update_new_channel_message.py +70 -0
- pyrogram/raw/types/update_new_encrypted_message.py +62 -0
- pyrogram/raw/types/update_new_message.py +70 -0
- pyrogram/raw/types/update_new_quick_reply.py +54 -0
- pyrogram/raw/types/update_new_scheduled_message.py +54 -0
- pyrogram/raw/types/update_new_sticker_set.py +54 -0
- pyrogram/raw/types/update_new_story_reaction.py +70 -0
- pyrogram/raw/types/update_notify_settings.py +62 -0
- pyrogram/raw/types/update_peer_blocked.py +68 -0
- pyrogram/raw/types/update_peer_history_ttl.py +65 -0
- pyrogram/raw/types/update_peer_located.py +54 -0
- pyrogram/raw/types/update_peer_settings.py +62 -0
- pyrogram/raw/types/update_peer_wallpaper.py +72 -0
- pyrogram/raw/types/update_pending_join_requests.py +70 -0
- pyrogram/raw/types/update_phone_call.py +54 -0
- pyrogram/raw/types/update_phone_call_signaling_data.py +62 -0
- pyrogram/raw/types/update_pinned_channel_messages.py +86 -0
- pyrogram/raw/types/update_pinned_dialogs.py +67 -0
- pyrogram/raw/types/update_pinned_messages.py +86 -0
- pyrogram/raw/types/update_pinned_saved_dialogs.py +58 -0
- pyrogram/raw/types/update_privacy.py +62 -0
- pyrogram/raw/types/update_pts_changed.py +49 -0
- pyrogram/raw/types/update_quick_replies.py +54 -0
- pyrogram/raw/types/update_quick_reply_message.py +54 -0
- pyrogram/raw/types/update_read_channel_discussion_inbox.py +90 -0
- pyrogram/raw/types/update_read_channel_discussion_outbox.py +70 -0
- pyrogram/raw/types/update_read_channel_inbox.py +89 -0
- pyrogram/raw/types/update_read_channel_outbox.py +62 -0
- pyrogram/raw/types/update_read_featured_emoji_stickers.py +49 -0
- pyrogram/raw/types/update_read_featured_stickers.py +49 -0
- pyrogram/raw/types/update_read_history_inbox.py +97 -0
- pyrogram/raw/types/update_read_history_outbox.py +78 -0
- pyrogram/raw/types/update_read_messages_contents.py +81 -0
- pyrogram/raw/types/update_read_stories.py +62 -0
- pyrogram/raw/types/update_recent_emoji_statuses.py +49 -0
- pyrogram/raw/types/update_recent_reactions.py +49 -0
- pyrogram/raw/types/update_recent_stickers.py +49 -0
- pyrogram/raw/types/update_saved_dialog_pinned.py +62 -0
- pyrogram/raw/types/update_saved_gifs.py +49 -0
- pyrogram/raw/types/update_saved_reaction_tags.py +49 -0
- pyrogram/raw/types/update_saved_ringtones.py +49 -0
- pyrogram/raw/types/update_sent_story_reaction.py +70 -0
- pyrogram/raw/types/update_service_notification.py +101 -0
- pyrogram/raw/types/update_short.py +173 -0
- pyrogram/raw/types/update_short_chat_message.py +287 -0
- pyrogram/raw/types/update_short_message.py +279 -0
- pyrogram/raw/types/update_short_sent_message.py +226 -0
- pyrogram/raw/types/update_sms_job.py +54 -0
- pyrogram/raw/types/update_stars_balance.py +54 -0
- pyrogram/raw/types/update_stars_revenue_status.py +62 -0
- pyrogram/raw/types/update_sticker_sets.py +60 -0
- pyrogram/raw/types/update_sticker_sets_order.py +68 -0
- pyrogram/raw/types/update_stories_stealth_mode.py +54 -0
- pyrogram/raw/types/update_story.py +62 -0
- pyrogram/raw/types/update_story_id.py +62 -0
- pyrogram/raw/types/update_theme.py +54 -0
- pyrogram/raw/types/update_transcribed_audio.py +86 -0
- pyrogram/raw/types/update_user.py +54 -0
- pyrogram/raw/types/update_user_emoji_status.py +62 -0
- pyrogram/raw/types/update_user_name.py +78 -0
- pyrogram/raw/types/update_user_phone.py +62 -0
- pyrogram/raw/types/update_user_status.py +62 -0
- pyrogram/raw/types/update_user_typing.py +62 -0
- pyrogram/raw/types/update_web_page.py +70 -0
- pyrogram/raw/types/update_web_view_result_sent.py +54 -0
- pyrogram/raw/types/updates/__init__.py +14 -0
- pyrogram/raw/types/updates/channel_difference.py +112 -0
- pyrogram/raw/types/updates/channel_difference_empty.py +80 -0
- pyrogram/raw/types/updates/channel_difference_too_long.py +104 -0
- pyrogram/raw/types/updates/difference.py +103 -0
- pyrogram/raw/types/updates/difference_empty.py +71 -0
- pyrogram/raw/types/updates/difference_slice.py +103 -0
- pyrogram/raw/types/updates/difference_too_long.py +63 -0
- pyrogram/raw/types/updates/state.py +95 -0
- pyrogram/raw/types/updates_combined.py +205 -0
- pyrogram/raw/types/updates_t.py +197 -0
- pyrogram/raw/types/updates_too_long.py +160 -0
- pyrogram/raw/types/upload/__init__.py +11 -0
- pyrogram/raw/types/upload/cdn_file.py +63 -0
- pyrogram/raw/types/upload/cdn_file_reupload_needed.py +63 -0
- pyrogram/raw/types/upload/file.py +79 -0
- pyrogram/raw/types/upload/file_cdn_redirect.py +95 -0
- pyrogram/raw/types/upload/web_file.py +95 -0
- pyrogram/raw/types/url_auth_result_accepted.py +64 -0
- pyrogram/raw/types/url_auth_result_default.py +59 -0
- pyrogram/raw/types/url_auth_result_request.py +80 -0
- pyrogram/raw/types/user.py +368 -0
- pyrogram/raw/types/user_empty.py +67 -0
- pyrogram/raw/types/user_full.py +390 -0
- pyrogram/raw/types/user_profile_photo.py +85 -0
- pyrogram/raw/types/user_profile_photo_empty.py +49 -0
- pyrogram/raw/types/user_status_empty.py +49 -0
- pyrogram/raw/types/user_status_last_month.py +54 -0
- pyrogram/raw/types/user_status_last_week.py +54 -0
- pyrogram/raw/types/user_status_offline.py +54 -0
- pyrogram/raw/types/user_status_online.py +54 -0
- pyrogram/raw/types/user_status_recently.py +54 -0
- pyrogram/raw/types/username.py +68 -0
- pyrogram/raw/types/users/__init__.py +7 -0
- pyrogram/raw/types/users/user_full.py +79 -0
- pyrogram/raw/types/video_size.py +89 -0
- pyrogram/raw/types/video_size_emoji_markup.py +62 -0
- pyrogram/raw/types/video_size_sticker_markup.py +70 -0
- pyrogram/raw/types/wall_paper.py +125 -0
- pyrogram/raw/types/wall_paper_no_file.py +89 -0
- pyrogram/raw/types/wall_paper_settings.py +123 -0
- pyrogram/raw/types/web_authorization.py +118 -0
- pyrogram/raw/types/web_document.py +86 -0
- pyrogram/raw/types/web_document_no_proxy.py +78 -0
- pyrogram/raw/types/web_page.py +216 -0
- pyrogram/raw/types/web_page_attribute_sticker_set.py +68 -0
- pyrogram/raw/types/web_page_attribute_story.py +74 -0
- pyrogram/raw/types/web_page_attribute_theme.py +68 -0
- pyrogram/raw/types/web_page_empty.py +65 -0
- pyrogram/raw/types/web_page_not_modified.py +57 -0
- pyrogram/raw/types/web_page_pending.py +73 -0
- pyrogram/raw/types/web_view_message_sent.py +67 -0
- pyrogram/raw/types/web_view_result_url.py +82 -0
- pyrogram/session/__init__.py +2 -0
- pyrogram/session/auth.py +253 -0
- pyrogram/session/internals/__init__.py +3 -0
- pyrogram/session/internals/data_center.py +64 -0
- pyrogram/session/internals/msg_factory.py +20 -0
- pyrogram/session/internals/msg_id.py +17 -0
- pyrogram/session/internals/seq_no.py +11 -0
- pyrogram/session/session.py +399 -0
- pyrogram/storage/__init__.py +6 -0
- pyrogram/storage/dummy_client.py +44 -0
- pyrogram/storage/file_storage.py +69 -0
- pyrogram/storage/memory_storage.py +54 -0
- pyrogram/storage/mongo_storage.py +198 -0
- pyrogram/storage/sqlite_storage.py +279 -0
- pyrogram/storage/storage.py +81 -0
- pyrogram/sync.py +92 -0
- pyrogram/types/__init__.py +10 -0
- pyrogram/types/authorization/__init__.py +7 -0
- pyrogram/types/authorization/sent_code.py +27 -0
- pyrogram/types/authorization/terms_of_service.py +25 -0
- pyrogram/types/bots_and_keyboards/__init__.py +57 -0
- pyrogram/types/bots_and_keyboards/bot_command.py +24 -0
- pyrogram/types/bots_and_keyboards/bot_command_scope.py +13 -0
- pyrogram/types/bots_and_keyboards/bot_command_scope_all_chat_administrators.py +11 -0
- pyrogram/types/bots_and_keyboards/bot_command_scope_all_group_chats.py +11 -0
- pyrogram/types/bots_and_keyboards/bot_command_scope_all_private_chats.py +11 -0
- pyrogram/types/bots_and_keyboards/bot_command_scope_chat.py +17 -0
- pyrogram/types/bots_and_keyboards/bot_command_scope_chat_administrators.py +17 -0
- pyrogram/types/bots_and_keyboards/bot_command_scope_chat_member.py +19 -0
- pyrogram/types/bots_and_keyboards/bot_command_scope_default.py +11 -0
- pyrogram/types/bots_and_keyboards/bot_info.py +21 -0
- pyrogram/types/bots_and_keyboards/callback_query.py +143 -0
- pyrogram/types/bots_and_keyboards/force_reply.py +30 -0
- pyrogram/types/bots_and_keyboards/inline_keyboard_button.py +142 -0
- pyrogram/types/bots_and_keyboards/inline_keyboard_markup.py +42 -0
- pyrogram/types/bots_and_keyboards/keyboard_button.py +121 -0
- pyrogram/types/bots_and_keyboards/login_url.py +38 -0
- pyrogram/types/bots_and_keyboards/menu_button.py +13 -0
- pyrogram/types/bots_and_keyboards/menu_button_commands.py +11 -0
- pyrogram/types/bots_and_keyboards/menu_button_default.py +11 -0
- pyrogram/types/bots_and_keyboards/menu_button_web_app.py +21 -0
- pyrogram/types/bots_and_keyboards/reply_keyboard_markup.py +63 -0
- pyrogram/types/bots_and_keyboards/reply_keyboard_remove.py +24 -0
- pyrogram/types/bots_and_keyboards/request_peer_type_channel.py +15 -0
- pyrogram/types/bots_and_keyboards/request_peer_type_chat.py +19 -0
- pyrogram/types/bots_and_keyboards/request_peer_type_user.py +15 -0
- pyrogram/types/bots_and_keyboards/sent_web_app_message.py +16 -0
- pyrogram/types/bots_and_keyboards/web_app_info.py +11 -0
- pyrogram/types/inline_mode/__init__.py +43 -0
- pyrogram/types/inline_mode/chosen_inline_result.py +55 -0
- pyrogram/types/inline_mode/inline_query.py +82 -0
- pyrogram/types/inline_mode/inline_query_result.py +24 -0
- pyrogram/types/inline_mode/inline_query_result_animation.py +85 -0
- pyrogram/types/inline_mode/inline_query_result_article.py +49 -0
- pyrogram/types/inline_mode/inline_query_result_audio.py +73 -0
- pyrogram/types/inline_mode/inline_query_result_cached_animation.py +56 -0
- pyrogram/types/inline_mode/inline_query_result_cached_audio.py +53 -0
- pyrogram/types/inline_mode/inline_query_result_cached_document.py +59 -0
- pyrogram/types/inline_mode/inline_query_result_cached_photo.py +57 -0
- pyrogram/types/inline_mode/inline_query_result_cached_sticker.py +40 -0
- pyrogram/types/inline_mode/inline_query_result_cached_video.py +59 -0
- pyrogram/types/inline_mode/inline_query_result_cached_voice.py +56 -0
- pyrogram/types/inline_mode/inline_query_result_contact.py +57 -0
- pyrogram/types/inline_mode/inline_query_result_document.py +78 -0
- pyrogram/types/inline_mode/inline_query_result_location.py +55 -0
- pyrogram/types/inline_mode/inline_query_result_photo.py +81 -0
- pyrogram/types/inline_mode/inline_query_result_venue.py +63 -0
- pyrogram/types/inline_mode/inline_query_result_video.py +79 -0
- pyrogram/types/inline_mode/inline_query_result_voice.py +59 -0
- pyrogram/types/input_media/__init__.py +21 -0
- pyrogram/types/input_media/input_media.py +20 -0
- pyrogram/types/input_media/input_media_animation.py +27 -0
- pyrogram/types/input_media/input_media_area.py +13 -0
- pyrogram/types/input_media/input_media_area_channel_post.py +27 -0
- pyrogram/types/input_media/input_media_audio.py +25 -0
- pyrogram/types/input_media/input_media_document.py +19 -0
- pyrogram/types/input_media/input_media_photo.py +19 -0
- pyrogram/types/input_media/input_media_video.py +29 -0
- pyrogram/types/input_media/input_phone_contact.py +19 -0
- pyrogram/types/input_message_content/__init__.py +9 -0
- pyrogram/types/input_message_content/input_message_content.py +11 -0
- pyrogram/types/input_message_content/input_reply_to_message.py +45 -0
- pyrogram/types/input_message_content/input_text_message_content.py +33 -0
- pyrogram/types/list.py +11 -0
- pyrogram/types/messages_and_media/__init__.py +61 -0
- pyrogram/types/messages_and_media/animation.py +109 -0
- pyrogram/types/messages_and_media/audio.py +68 -0
- pyrogram/types/messages_and_media/available_effect.py +45 -0
- pyrogram/types/messages_and_media/contact.py +34 -0
- pyrogram/types/messages_and_media/document.py +54 -0
- pyrogram/types/messages_and_media/media_area.py +21 -0
- pyrogram/types/messages_and_media/media_area_channel_post.py +39 -0
- pyrogram/types/messages_and_media/media_area_coordinates.py +40 -0
- pyrogram/types/messages_and_media/message.py +2101 -0
- pyrogram/types/messages_and_media/message_entity.py +85 -0
- pyrogram/types/messages_and_media/message_reaction_count_updated.py +53 -0
- pyrogram/types/messages_and_media/message_reaction_updated.py +76 -0
- pyrogram/types/messages_and_media/message_reactions.py +33 -0
- pyrogram/types/messages_and_media/photo.py +83 -0
- pyrogram/types/messages_and_media/reaction.py +51 -0
- pyrogram/types/messages_and_media/reaction_count.py +30 -0
- pyrogram/types/messages_and_media/reaction_type.py +44 -0
- pyrogram/types/messages_and_media/sticker.py +148 -0
- pyrogram/types/messages_and_media/stickerset.py +40 -0
- pyrogram/types/messages_and_media/story.py +682 -0
- pyrogram/types/messages_and_media/stripped_thumbnail.py +22 -0
- pyrogram/types/messages_and_media/thumbnail.py +73 -0
- pyrogram/types/messages_and_media/video.py +75 -0
- pyrogram/types/messages_and_media/video_note.py +61 -0
- pyrogram/types/messages_and_media/voice.py +52 -0
- pyrogram/types/messages_and_media/web_app_data.py +22 -0
- pyrogram/types/messages_and_media/web_page.py +108 -0
- pyrogram/types/messages_and_media/web_page_empty.py +23 -0
- pyrogram/types/messages_and_media/web_page_preview.py +41 -0
- pyrogram/types/object.py +99 -0
- pyrogram/types/update.py +11 -0
- pyrogram/types/user_and_chats/__init__.py +75 -0
- pyrogram/types/user_and_chats/birthday.py +31 -0
- pyrogram/types/user_and_chats/chat.py +487 -0
- pyrogram/types/user_and_chats/chat_admin_with_invite_links.py +31 -0
- pyrogram/types/user_and_chats/chat_color.py +35 -0
- pyrogram/types/user_and_chats/chat_event.py +396 -0
- pyrogram/types/user_and_chats/chat_event_filter.py +107 -0
- pyrogram/types/user_and_chats/chat_invite_link.py +69 -0
- pyrogram/types/user_and_chats/chat_join_request.py +57 -0
- pyrogram/types/user_and_chats/chat_joined_by_request.py +6 -0
- pyrogram/types/user_and_chats/chat_joiner.py +45 -0
- pyrogram/types/user_and_chats/chat_member.py +160 -0
- pyrogram/types/user_and_chats/chat_member_updated.py +97 -0
- pyrogram/types/user_and_chats/chat_permissions.py +145 -0
- pyrogram/types/user_and_chats/chat_photo.py +79 -0
- pyrogram/types/user_and_chats/chat_preview.py +38 -0
- pyrogram/types/user_and_chats/chat_privileges.py +61 -0
- pyrogram/types/user_and_chats/chat_reactions.py +43 -0
- pyrogram/types/user_and_chats/dialog.py +38 -0
- pyrogram/types/user_and_chats/emoji_status.py +49 -0
- pyrogram/types/user_and_chats/forum_topic.py +71 -0
- pyrogram/types/user_and_chats/forum_topic_closed.py +6 -0
- pyrogram/types/user_and_chats/forum_topic_created.py +29 -0
- pyrogram/types/user_and_chats/forum_topic_edited.py +26 -0
- pyrogram/types/user_and_chats/forum_topic_reopened.py +6 -0
- pyrogram/types/user_and_chats/general_forum_topic_hidden.py +6 -0
- pyrogram/types/user_and_chats/general_forum_topic_unhidden.py +6 -0
- pyrogram/types/user_and_chats/invite_link_importer.py +32 -0
- pyrogram/types/user_and_chats/peer_channel.py +20 -0
- pyrogram/types/user_and_chats/peer_user.py +20 -0
- pyrogram/types/user_and_chats/restriction.py +19 -0
- pyrogram/types/user_and_chats/user.py +230 -0
- pyrogram/types/user_and_chats/username.py +26 -0
- pyrogram/types/user_and_chats/video_chat_ended.py +16 -0
- pyrogram/types/user_and_chats/video_chat_members_invited.py +24 -0
- pyrogram/types/user_and_chats/video_chat_scheduled.py +18 -0
- pyrogram/types/user_and_chats/video_chat_started.py +6 -0
- pyrogram/utils.py +442 -0
|
@@ -0,0 +1,2101 @@
|
|
|
1
|
+
import logging
|
|
2
|
+
from datetime import datetime
|
|
3
|
+
from functools import partial
|
|
4
|
+
from typing import List, Match, Union, BinaryIO, Optional, Callable
|
|
5
|
+
|
|
6
|
+
import pyrogram
|
|
7
|
+
from pyrogram import raw, enums
|
|
8
|
+
from pyrogram import types
|
|
9
|
+
from pyrogram import utils
|
|
10
|
+
from pyrogram.errors import ChannelPrivate, MessageIdsEmpty, PeerIdInvalid
|
|
11
|
+
from pyrogram.parser import utils as parser_utils, Parser
|
|
12
|
+
from ..object import Object
|
|
13
|
+
from ..update import Update
|
|
14
|
+
|
|
15
|
+
log = logging.getLogger(__name__)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class Str(str):
|
|
19
|
+
def __init__(self, *args):
|
|
20
|
+
super().__init__()
|
|
21
|
+
|
|
22
|
+
self.entities = None
|
|
23
|
+
|
|
24
|
+
def init(self, entities):
|
|
25
|
+
self.entities = entities
|
|
26
|
+
|
|
27
|
+
return self
|
|
28
|
+
|
|
29
|
+
@property
|
|
30
|
+
def markdown(self):
|
|
31
|
+
return Parser.unparse(self, self.entities, False)
|
|
32
|
+
|
|
33
|
+
@property
|
|
34
|
+
def html(self):
|
|
35
|
+
return Parser.unparse(self, self.entities, True)
|
|
36
|
+
|
|
37
|
+
def __getitem__(self, item):
|
|
38
|
+
return parser_utils.remove_surrogates(parser_utils.add_surrogates(self)[item])
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class Message(Object, Update):
|
|
42
|
+
def __init__(
|
|
43
|
+
self,
|
|
44
|
+
*,
|
|
45
|
+
client: "pyrogram.Client" = None,
|
|
46
|
+
id: int,
|
|
47
|
+
message_thread_id: int = None,
|
|
48
|
+
from_user: "types.User" = None,
|
|
49
|
+
sender_chat: "types.Chat" = None,
|
|
50
|
+
date: datetime = None,
|
|
51
|
+
chat: "types.Chat" = None,
|
|
52
|
+
topics: "types.ForumTopic" = None,
|
|
53
|
+
forward_from: "types.User" = None,
|
|
54
|
+
forward_sender_name: str = None,
|
|
55
|
+
forward_from_chat: "types.Chat" = None,
|
|
56
|
+
forward_from_message_id: int = None,
|
|
57
|
+
forward_signature: str = None,
|
|
58
|
+
forward_date: datetime = None,
|
|
59
|
+
is_topic_message: bool = None,
|
|
60
|
+
reply_to_message_id: int = None,
|
|
61
|
+
reply_to_story_id: int = None,
|
|
62
|
+
reply_to_story_user_id: int = None,
|
|
63
|
+
reply_to_story_chat_id: int = None,
|
|
64
|
+
reply_to_top_message_id: int = None,
|
|
65
|
+
reply_to_message: "Message" = None,
|
|
66
|
+
reply_to_story: "types.Story" = None,
|
|
67
|
+
mentioned: bool = None,
|
|
68
|
+
empty: bool = None,
|
|
69
|
+
service: "enums.MessageServiceType" = None,
|
|
70
|
+
scheduled: bool = None,
|
|
71
|
+
from_scheduled: bool = None,
|
|
72
|
+
edit_hide: bool = None,
|
|
73
|
+
media: "enums.MessageMediaType" = None,
|
|
74
|
+
edit_date: datetime = None,
|
|
75
|
+
media_group_id: str = None,
|
|
76
|
+
author_signature: str = None,
|
|
77
|
+
has_protected_content: bool = None,
|
|
78
|
+
has_media_spoiler: bool = None,
|
|
79
|
+
text: Str = None,
|
|
80
|
+
entities: List["types.MessageEntity"] = None,
|
|
81
|
+
caption_entities: List["types.MessageEntity"] = None,
|
|
82
|
+
quote_text: str = None,
|
|
83
|
+
quote_entities: List["types.MessageEntity"] = None,
|
|
84
|
+
effect_id: str = None,
|
|
85
|
+
invert_media: bool = None,
|
|
86
|
+
audio: "types.Audio" = None,
|
|
87
|
+
document: "types.Document" = None,
|
|
88
|
+
photo: "types.Photo" = None,
|
|
89
|
+
sticker: "types.Sticker" = None,
|
|
90
|
+
animation: "types.Animation" = None,
|
|
91
|
+
game: "types.Game" = None,
|
|
92
|
+
giveaway: "types.Giveaway" = None,
|
|
93
|
+
giveaway_result: "types.GiveawayResult" = None,
|
|
94
|
+
boosts_applied: int = None,
|
|
95
|
+
story: Union["types.MessageStory", "types.Story"] = None,
|
|
96
|
+
video: "types.Video" = None,
|
|
97
|
+
voice: "types.Voice" = None,
|
|
98
|
+
video_note: "types.VideoNote" = None,
|
|
99
|
+
web_page_preview: "types.WebPagePreview" = None,
|
|
100
|
+
caption: Str = None,
|
|
101
|
+
contact: "types.Contact" = None,
|
|
102
|
+
location: "types.Location" = None,
|
|
103
|
+
venue: "types.Venue" = None,
|
|
104
|
+
dice: "types.Dice" = None,
|
|
105
|
+
new_chat_members: List["types.User"] = None,
|
|
106
|
+
chat_joined_by_request: "types.ChatJoinedByRequest" = None,
|
|
107
|
+
left_chat_member: "types.User" = None,
|
|
108
|
+
new_chat_title: str = None,
|
|
109
|
+
new_chat_photo: "types.Photo" = None,
|
|
110
|
+
delete_chat_photo: bool = None,
|
|
111
|
+
group_chat_created: bool = None,
|
|
112
|
+
supergroup_chat_created: bool = None,
|
|
113
|
+
channel_chat_created: bool = None,
|
|
114
|
+
migrate_to_chat_id: int = None,
|
|
115
|
+
migrate_from_chat_id: int = None,
|
|
116
|
+
pinned_message: "Message" = None,
|
|
117
|
+
game_high_score: int = None,
|
|
118
|
+
views: int = None,
|
|
119
|
+
forwards: int = None,
|
|
120
|
+
via_bot: "types.User" = None,
|
|
121
|
+
outgoing: bool = None,
|
|
122
|
+
matches: List[Match] = None,
|
|
123
|
+
command: List[str] = None,
|
|
124
|
+
chat_shared: List[int] = None,
|
|
125
|
+
user_shared: List[int] = None,
|
|
126
|
+
forum_topic_created: "types.ForumTopicCreated" = None,
|
|
127
|
+
forum_topic_closed: "types.ForumTopicClosed" = None,
|
|
128
|
+
forum_topic_reopened: "types.ForumTopicReopened" = None,
|
|
129
|
+
forum_topic_edited: "types.ForumTopicEdited" = None,
|
|
130
|
+
general_topic_hidden: "types.GeneralTopicHidden" = None,
|
|
131
|
+
general_topic_unhidden: "types.GeneralTopicUnhidden" = None,
|
|
132
|
+
giveaway_launched: "types.GiveawayLaunched" = None,
|
|
133
|
+
video_chat_scheduled: "types.VideoChatScheduled" = None,
|
|
134
|
+
video_chat_started: "types.VideoChatStarted" = None,
|
|
135
|
+
video_chat_ended: "types.VideoChatEnded" = None,
|
|
136
|
+
video_chat_members_invited: "types.VideoChatMembersInvited" = None,
|
|
137
|
+
web_app_data: "types.WebAppData" = None,
|
|
138
|
+
reply_markup: Union[
|
|
139
|
+
"types.InlineKeyboardMarkup",
|
|
140
|
+
"types.ReplyKeyboardMarkup",
|
|
141
|
+
"types.ReplyKeyboardRemove",
|
|
142
|
+
"types.ForceReply"
|
|
143
|
+
] = None,
|
|
144
|
+
reactions: List["types.Reaction"] = None,
|
|
145
|
+
raw: "raw.types.Message" = None
|
|
146
|
+
):
|
|
147
|
+
super().__init__(client)
|
|
148
|
+
|
|
149
|
+
self.id = id
|
|
150
|
+
self.message_thread_id = message_thread_id
|
|
151
|
+
self.from_user = from_user
|
|
152
|
+
self.sender_chat = sender_chat
|
|
153
|
+
self.date = date
|
|
154
|
+
self.chat = chat
|
|
155
|
+
self.topics = topics
|
|
156
|
+
self.forward_from = forward_from
|
|
157
|
+
self.forward_sender_name = forward_sender_name
|
|
158
|
+
self.forward_from_chat = forward_from_chat
|
|
159
|
+
self.forward_from_message_id = forward_from_message_id
|
|
160
|
+
self.forward_signature = forward_signature
|
|
161
|
+
self.forward_date = forward_date
|
|
162
|
+
self.is_topic_message = is_topic_message
|
|
163
|
+
self.reply_to_message_id = reply_to_message_id
|
|
164
|
+
self.reply_to_story_id = reply_to_story_id
|
|
165
|
+
self.reply_to_story_user_id = reply_to_story_user_id
|
|
166
|
+
self.reply_to_story_chat_id = reply_to_story_chat_id
|
|
167
|
+
self.reply_to_top_message_id = reply_to_top_message_id
|
|
168
|
+
self.reply_to_message = reply_to_message
|
|
169
|
+
self.reply_to_story = reply_to_story
|
|
170
|
+
self.mentioned = mentioned
|
|
171
|
+
self.empty = empty
|
|
172
|
+
self.service = service
|
|
173
|
+
self.scheduled = scheduled
|
|
174
|
+
self.from_scheduled = from_scheduled
|
|
175
|
+
self.media = media
|
|
176
|
+
self.edit_date = edit_date
|
|
177
|
+
self.edit_hide = edit_hide
|
|
178
|
+
self.media_group_id = media_group_id
|
|
179
|
+
self.author_signature = author_signature
|
|
180
|
+
self.has_protected_content = has_protected_content
|
|
181
|
+
self.has_media_spoiler = has_media_spoiler
|
|
182
|
+
self.text = text
|
|
183
|
+
self.entities = entities
|
|
184
|
+
self.caption_entities = caption_entities
|
|
185
|
+
self.quote_text = quote_text
|
|
186
|
+
self.quote_entities = quote_entities
|
|
187
|
+
self.effect_id = effect_id
|
|
188
|
+
self.invert_media = invert_media
|
|
189
|
+
self.audio = audio
|
|
190
|
+
self.document = document
|
|
191
|
+
self.photo = photo
|
|
192
|
+
self.sticker = sticker
|
|
193
|
+
self.animation = animation
|
|
194
|
+
self.game = game
|
|
195
|
+
self.giveaway = giveaway
|
|
196
|
+
self.giveaway_result = giveaway_result
|
|
197
|
+
self.boosts_applied = boosts_applied
|
|
198
|
+
self.story = story
|
|
199
|
+
self.video = video
|
|
200
|
+
self.voice = voice
|
|
201
|
+
self.video_note = video_note
|
|
202
|
+
self.web_page_preview = web_page_preview
|
|
203
|
+
self.caption = caption
|
|
204
|
+
self.contact = contact
|
|
205
|
+
self.location = location
|
|
206
|
+
self.venue = venue
|
|
207
|
+
self.dice = dice
|
|
208
|
+
self.new_chat_members = new_chat_members
|
|
209
|
+
self.chat_joined_by_request = chat_joined_by_request
|
|
210
|
+
self.left_chat_member = left_chat_member
|
|
211
|
+
self.new_chat_title = new_chat_title
|
|
212
|
+
self.new_chat_photo = new_chat_photo
|
|
213
|
+
self.delete_chat_photo = delete_chat_photo
|
|
214
|
+
self.group_chat_created = group_chat_created
|
|
215
|
+
self.supergroup_chat_created = supergroup_chat_created
|
|
216
|
+
self.channel_chat_created = channel_chat_created
|
|
217
|
+
self.migrate_to_chat_id = migrate_to_chat_id
|
|
218
|
+
self.migrate_from_chat_id = migrate_from_chat_id
|
|
219
|
+
self.pinned_message = pinned_message
|
|
220
|
+
self.game_high_score = game_high_score
|
|
221
|
+
self.views = views
|
|
222
|
+
self.forwards = forwards
|
|
223
|
+
self.via_bot = via_bot
|
|
224
|
+
self.outgoing = outgoing
|
|
225
|
+
self.matches = matches
|
|
226
|
+
self.command = command
|
|
227
|
+
self.reply_markup = reply_markup
|
|
228
|
+
self.chat_shared = chat_shared
|
|
229
|
+
self.user_shared = user_shared
|
|
230
|
+
self.forum_topic_created = forum_topic_created
|
|
231
|
+
self.forum_topic_closed = forum_topic_closed
|
|
232
|
+
self.forum_topic_reopened = forum_topic_reopened
|
|
233
|
+
self.forum_topic_edited = forum_topic_edited
|
|
234
|
+
self.general_topic_hidden = general_topic_hidden
|
|
235
|
+
self.general_topic_unhidden = general_topic_unhidden
|
|
236
|
+
self.giveaway_launched = giveaway_launched
|
|
237
|
+
self.video_chat_scheduled = video_chat_scheduled
|
|
238
|
+
self.video_chat_started = video_chat_started
|
|
239
|
+
self.video_chat_ended = video_chat_ended
|
|
240
|
+
self.video_chat_members_invited = video_chat_members_invited
|
|
241
|
+
self.web_app_data = web_app_data
|
|
242
|
+
self.reactions = reactions
|
|
243
|
+
self.raw = raw
|
|
244
|
+
|
|
245
|
+
async def wait_for_click(
|
|
246
|
+
self,
|
|
247
|
+
from_user_id: Optional[Union[Union[int, str], List[Union[int, str]]]] = None,
|
|
248
|
+
timeout: Optional[int] = None,
|
|
249
|
+
filters=None,
|
|
250
|
+
alert: Union[str, bool] = True,
|
|
251
|
+
):
|
|
252
|
+
message_id = getattr(self, "id", getattr(self, "message_id", None))
|
|
253
|
+
|
|
254
|
+
return await self._client.listen(
|
|
255
|
+
filters=filters,
|
|
256
|
+
timeout=timeout,
|
|
257
|
+
listener_type=pyrogram.enums.ListenerTypes.CALLBACK_QUERY,
|
|
258
|
+
unallowed_click_alert=alert,
|
|
259
|
+
chat_id=self.chat.id,
|
|
260
|
+
user_id=from_user_id,
|
|
261
|
+
message_id=message_id,
|
|
262
|
+
)
|
|
263
|
+
|
|
264
|
+
@staticmethod
|
|
265
|
+
async def _parse(
|
|
266
|
+
client: "pyrogram.Client",
|
|
267
|
+
message: raw.base.Message,
|
|
268
|
+
users: dict,
|
|
269
|
+
chats: dict,
|
|
270
|
+
topics: dict = None,
|
|
271
|
+
is_scheduled: bool = False,
|
|
272
|
+
replies: int = 1
|
|
273
|
+
):
|
|
274
|
+
if isinstance(message, raw.types.MessageEmpty):
|
|
275
|
+
return Message(id=message.id, empty=True, client=client, raw=message)
|
|
276
|
+
|
|
277
|
+
from_id = utils.get_raw_peer_id(message.from_id)
|
|
278
|
+
peer_id = utils.get_raw_peer_id(message.peer_id)
|
|
279
|
+
user_id = from_id or peer_id
|
|
280
|
+
|
|
281
|
+
if isinstance(message.from_id, raw.types.PeerUser) and isinstance(message.peer_id, raw.types.PeerUser):
|
|
282
|
+
if from_id not in users or peer_id not in users:
|
|
283
|
+
try:
|
|
284
|
+
r = await client.invoke(
|
|
285
|
+
raw.functions.users.GetUsers(
|
|
286
|
+
id=[
|
|
287
|
+
await client.resolve_peer(from_id),
|
|
288
|
+
await client.resolve_peer(peer_id)
|
|
289
|
+
]
|
|
290
|
+
)
|
|
291
|
+
)
|
|
292
|
+
except PeerIdInvalid:
|
|
293
|
+
pass
|
|
294
|
+
else:
|
|
295
|
+
users.update({i.id: i for i in r})
|
|
296
|
+
|
|
297
|
+
if isinstance(message, raw.types.MessageService):
|
|
298
|
+
message_thread_id = None
|
|
299
|
+
action = message.action
|
|
300
|
+
|
|
301
|
+
new_chat_members = None
|
|
302
|
+
chat_joined_by_request = None
|
|
303
|
+
left_chat_member = None
|
|
304
|
+
new_chat_title = None
|
|
305
|
+
delete_chat_photo = None
|
|
306
|
+
migrate_to_chat_id = None
|
|
307
|
+
migrate_from_chat_id = None
|
|
308
|
+
group_chat_created = None
|
|
309
|
+
channel_chat_created = None
|
|
310
|
+
new_chat_photo = None
|
|
311
|
+
chat_shared = None
|
|
312
|
+
user_shared = None
|
|
313
|
+
is_topic_message = None
|
|
314
|
+
forum_topic_created = None
|
|
315
|
+
forum_topic_closed = None
|
|
316
|
+
forum_topic_reopened = None
|
|
317
|
+
forum_topic_edited = None
|
|
318
|
+
general_topic_hidden = None
|
|
319
|
+
general_topic_unhidden = None
|
|
320
|
+
video_chat_scheduled = None
|
|
321
|
+
video_chat_started = None
|
|
322
|
+
video_chat_ended = None
|
|
323
|
+
video_chat_members_invited = None
|
|
324
|
+
web_app_data = None
|
|
325
|
+
giveaway_launched = None
|
|
326
|
+
giveaway_result = None
|
|
327
|
+
boosts_applied = None
|
|
328
|
+
|
|
329
|
+
service_type = None
|
|
330
|
+
|
|
331
|
+
if isinstance(action, raw.types.MessageActionChatAddUser):
|
|
332
|
+
new_chat_members = [types.User._parse(client, users[i]) for i in action.users]
|
|
333
|
+
service_type = enums.MessageServiceType.NEW_CHAT_MEMBERS
|
|
334
|
+
elif isinstance(action, raw.types.MessageActionChatJoinedByLink):
|
|
335
|
+
new_chat_members = [types.User._parse(client, users[utils.get_raw_peer_id(message.from_id)])]
|
|
336
|
+
service_type = enums.MessageServiceType.NEW_CHAT_MEMBERS
|
|
337
|
+
elif isinstance(action, raw.types.MessageActionChatJoinedByRequest):
|
|
338
|
+
chat_joined_by_request = types.ChatJoinedByRequest()
|
|
339
|
+
service_type = enums.MessageServiceType.CHAT_JOINED_BY_REQUEST
|
|
340
|
+
elif isinstance(action, raw.types.MessageActionChatDeleteUser):
|
|
341
|
+
left_chat_member = types.User._parse(client, users[action.user_id])
|
|
342
|
+
service_type = enums.MessageServiceType.LEFT_CHAT_MEMBERS
|
|
343
|
+
elif isinstance(action, raw.types.MessageActionChatEditTitle):
|
|
344
|
+
new_chat_title = action.title
|
|
345
|
+
service_type = enums.MessageServiceType.NEW_CHAT_TITLE
|
|
346
|
+
elif isinstance(action, raw.types.MessageActionChatDeletePhoto):
|
|
347
|
+
delete_chat_photo = True
|
|
348
|
+
service_type = enums.MessageServiceType.DELETE_CHAT_PHOTO
|
|
349
|
+
elif isinstance(action, raw.types.MessageActionChatMigrateTo):
|
|
350
|
+
migrate_to_chat_id = action.channel_id
|
|
351
|
+
service_type = enums.MessageServiceType.MIGRATE_TO_CHAT_ID
|
|
352
|
+
elif isinstance(action, raw.types.MessageActionChannelMigrateFrom):
|
|
353
|
+
migrate_from_chat_id = action.chat_id
|
|
354
|
+
service_type = enums.MessageServiceType.MIGRATE_FROM_CHAT_ID
|
|
355
|
+
elif isinstance(action, raw.types.MessageActionChatCreate):
|
|
356
|
+
group_chat_created = True
|
|
357
|
+
service_type = enums.MessageServiceType.GROUP_CHAT_CREATED
|
|
358
|
+
elif isinstance(action, raw.types.MessageActionChannelCreate):
|
|
359
|
+
channel_chat_created = True
|
|
360
|
+
service_type = enums.MessageServiceType.CHANNEL_CHAT_CREATED
|
|
361
|
+
elif isinstance(action, raw.types.MessageActionChatEditPhoto):
|
|
362
|
+
new_chat_photo = types.Photo._parse(client, action.photo)
|
|
363
|
+
service_type = enums.MessageServiceType.NEW_CHAT_PHOTO
|
|
364
|
+
elif isinstance(action, raw.types.MessageActionRequestedPeer):
|
|
365
|
+
chat_shared = []
|
|
366
|
+
user_shared = []
|
|
367
|
+
for peer in action.peers:
|
|
368
|
+
if isinstance(peer, raw.types.PeerChannel):
|
|
369
|
+
chat_shared.append(utils.get_channel_id(utils.get_raw_peer_id(peer)))
|
|
370
|
+
service_type = enums.MessageServiceType.ChannelShared
|
|
371
|
+
elif isinstance(peer, raw.types.PeerChat):
|
|
372
|
+
chat_shared.append(utils.get_channel_id(utils.get_raw_peer_id(peer)))
|
|
373
|
+
service_type = enums.MessageServiceType.ChannelShared
|
|
374
|
+
elif isinstance(peer, raw.types.PeerUser):
|
|
375
|
+
user_shared.append(peer.user_id)
|
|
376
|
+
service_type = enums.MessageServiceType.UserShared
|
|
377
|
+
elif isinstance(action, raw.types.MessageActionTopicCreate):
|
|
378
|
+
forum_topic_created = types.ForumTopicCreated._parse(message)
|
|
379
|
+
service_type = enums.MessageServiceType.FORUM_TOPIC_CREATED
|
|
380
|
+
elif isinstance(action, raw.types.MessageActionTopicEdit):
|
|
381
|
+
if action.title:
|
|
382
|
+
forum_topic_edited = types.ForumTopicEdited._parse(action)
|
|
383
|
+
service_type = enums.MessageServiceType.FORUM_TOPIC_EDITED
|
|
384
|
+
elif action.hidden:
|
|
385
|
+
general_topic_hidden = types.GeneralTopicHidden()
|
|
386
|
+
service_type = enums.MessageServiceType.GENERAL_TOPIC_HIDDEN
|
|
387
|
+
elif action.closed:
|
|
388
|
+
forum_topic_closed = types.ForumTopicClosed()
|
|
389
|
+
service_type = enums.MessageServiceType.FORUM_TOPIC_CLOSED
|
|
390
|
+
else:
|
|
391
|
+
if hasattr(action, "hidden") and action.hidden is not None:
|
|
392
|
+
general_topic_unhidden = types.GeneralTopicUnhidden()
|
|
393
|
+
service_type = enums.MessageServiceType.GENERAL_TOPIC_UNHIDDEN
|
|
394
|
+
else:
|
|
395
|
+
forum_topic_reopened = types.ForumTopicReopened()
|
|
396
|
+
service_type = enums.MessageServiceType.FORUM_TOPIC_REOPENED
|
|
397
|
+
elif isinstance(action, raw.types.MessageActionGroupCallScheduled):
|
|
398
|
+
video_chat_scheduled = types.VideoChatScheduled._parse(action)
|
|
399
|
+
service_type = enums.MessageServiceType.VIDEO_CHAT_SCHEDULED
|
|
400
|
+
elif isinstance(action, raw.types.MessageActionGroupCall):
|
|
401
|
+
if action.duration:
|
|
402
|
+
video_chat_ended = types.VideoChatEnded._parse(action)
|
|
403
|
+
service_type = enums.MessageServiceType.VIDEO_CHAT_ENDED
|
|
404
|
+
else:
|
|
405
|
+
video_chat_started = types.VideoChatStarted()
|
|
406
|
+
service_type = enums.MessageServiceType.VIDEO_CHAT_STARTED
|
|
407
|
+
elif isinstance(action, raw.types.MessageActionInviteToGroupCall):
|
|
408
|
+
video_chat_members_invited = types.VideoChatMembersInvited._parse(client, action, users)
|
|
409
|
+
service_type = enums.MessageServiceType.VIDEO_CHAT_MEMBERS_INVITED
|
|
410
|
+
elif isinstance(action, raw.types.MessageActionWebViewDataSentMe):
|
|
411
|
+
web_app_data = types.WebAppData._parse(action)
|
|
412
|
+
service_type = enums.MessageServiceType.WEB_APP_DATA
|
|
413
|
+
elif isinstance(action, raw.types.MessageActionGiveawayLaunch):
|
|
414
|
+
giveaway_launched = types.GiveawayLaunched()
|
|
415
|
+
service_type = enums.MessageServiceType.GIVEAWAY_LAUNCHED
|
|
416
|
+
elif isinstance(action, raw.types.MessageActionGiveawayResults):
|
|
417
|
+
giveaway_result = await types.GiveawayResult._parse(client, action, True)
|
|
418
|
+
service_type = enums.MessageServiceType.GIVEAWAY_RESULT
|
|
419
|
+
elif isinstance(action, raw.types.MessageActionBoostApply):
|
|
420
|
+
boosts_applied = action.boosts
|
|
421
|
+
service_type = enums.MessageServiceType.BOOST_APPLY
|
|
422
|
+
from_user = types.User._parse(client, users.get(user_id, None))
|
|
423
|
+
sender_chat = types.Chat._parse(client, message, users, chats, is_chat=False) if not from_user else None
|
|
424
|
+
|
|
425
|
+
parsed_message = Message(
|
|
426
|
+
id=message.id,
|
|
427
|
+
message_thread_id=message_thread_id,
|
|
428
|
+
date=utils.timestamp_to_datetime(message.date),
|
|
429
|
+
chat=types.Chat._parse(client, message, users, chats, is_chat=True),
|
|
430
|
+
topics=None,
|
|
431
|
+
from_user=from_user,
|
|
432
|
+
sender_chat=sender_chat,
|
|
433
|
+
service=service_type,
|
|
434
|
+
new_chat_members=new_chat_members,
|
|
435
|
+
chat_joined_by_request=chat_joined_by_request,
|
|
436
|
+
left_chat_member=left_chat_member,
|
|
437
|
+
new_chat_title=new_chat_title,
|
|
438
|
+
new_chat_photo=new_chat_photo,
|
|
439
|
+
delete_chat_photo=delete_chat_photo,
|
|
440
|
+
migrate_to_chat_id=utils.get_channel_id(migrate_to_chat_id) if migrate_to_chat_id else None,
|
|
441
|
+
migrate_from_chat_id=-migrate_from_chat_id if migrate_from_chat_id else None,
|
|
442
|
+
group_chat_created=group_chat_created,
|
|
443
|
+
channel_chat_created=channel_chat_created,
|
|
444
|
+
chat_shared=chat_shared if chat_shared is not None and len(chat_shared) > 0 else None,
|
|
445
|
+
user_shared=user_shared if user_shared is not None and len(user_shared) > 0 else None,
|
|
446
|
+
is_topic_message=is_topic_message,
|
|
447
|
+
forum_topic_created=forum_topic_created,
|
|
448
|
+
forum_topic_closed=forum_topic_closed,
|
|
449
|
+
forum_topic_reopened=forum_topic_reopened,
|
|
450
|
+
forum_topic_edited=forum_topic_edited,
|
|
451
|
+
general_topic_hidden=general_topic_hidden,
|
|
452
|
+
general_topic_unhidden=general_topic_unhidden,
|
|
453
|
+
video_chat_scheduled=video_chat_scheduled,
|
|
454
|
+
video_chat_started=video_chat_started,
|
|
455
|
+
video_chat_ended=video_chat_ended,
|
|
456
|
+
video_chat_members_invited=video_chat_members_invited,
|
|
457
|
+
web_app_data=web_app_data,
|
|
458
|
+
giveaway_launched=giveaway_launched,
|
|
459
|
+
giveaway_result=giveaway_result,
|
|
460
|
+
boosts_applied=boosts_applied,
|
|
461
|
+
raw=message,
|
|
462
|
+
client=client
|
|
463
|
+
)
|
|
464
|
+
|
|
465
|
+
if isinstance(action, raw.types.MessageActionPinMessage):
|
|
466
|
+
try:
|
|
467
|
+
parsed_message.pinned_message = await client.get_messages(
|
|
468
|
+
parsed_message.chat.id,
|
|
469
|
+
reply_to_message_ids=message.id,
|
|
470
|
+
replies=0
|
|
471
|
+
)
|
|
472
|
+
|
|
473
|
+
parsed_message.service = enums.MessageServiceType.PINNED_MESSAGE
|
|
474
|
+
except MessageIdsEmpty:
|
|
475
|
+
pass
|
|
476
|
+
|
|
477
|
+
if isinstance(action, raw.types.MessageActionGameScore):
|
|
478
|
+
parsed_message.game_high_score = types.GameHighScore._parse_action(client, message, users)
|
|
479
|
+
|
|
480
|
+
if message.reply_to and replies:
|
|
481
|
+
try:
|
|
482
|
+
parsed_message.reply_to_message = await client.get_messages(
|
|
483
|
+
parsed_message.chat.id,
|
|
484
|
+
reply_to_message_ids=message.id,
|
|
485
|
+
replies=0
|
|
486
|
+
)
|
|
487
|
+
|
|
488
|
+
parsed_message.service = enums.MessageServiceType.GAME_HIGH_SCORE
|
|
489
|
+
except MessageIdsEmpty:
|
|
490
|
+
pass
|
|
491
|
+
|
|
492
|
+
client.message_cache[(parsed_message.chat.id, parsed_message.id)] = parsed_message
|
|
493
|
+
|
|
494
|
+
if message.reply_to:
|
|
495
|
+
if message.reply_to.forum_topic:
|
|
496
|
+
if message.reply_to.reply_to_top_id:
|
|
497
|
+
parsed_message.message_thread_id = message.reply_to.reply_to_top_id
|
|
498
|
+
else:
|
|
499
|
+
parsed_message.message_thread_id = message.reply_to.reply_to_msg_id
|
|
500
|
+
parsed_message.is_topic_message = True
|
|
501
|
+
|
|
502
|
+
return parsed_message
|
|
503
|
+
|
|
504
|
+
if isinstance(message, raw.types.Message):
|
|
505
|
+
message_thread_id = None
|
|
506
|
+
entities = [types.MessageEntity._parse(client, entity, users) for entity in message.entities]
|
|
507
|
+
entities = types.List(filter(lambda x: x is not None, entities))
|
|
508
|
+
|
|
509
|
+
forward_from = None
|
|
510
|
+
forward_sender_name = None
|
|
511
|
+
forward_from_chat = None
|
|
512
|
+
forward_from_message_id = None
|
|
513
|
+
forward_signature = None
|
|
514
|
+
forward_date = None
|
|
515
|
+
is_topic_message = None
|
|
516
|
+
|
|
517
|
+
forward_header = message.fwd_from
|
|
518
|
+
|
|
519
|
+
if forward_header:
|
|
520
|
+
forward_date = utils.timestamp_to_datetime(forward_header.date)
|
|
521
|
+
|
|
522
|
+
if forward_header.from_id:
|
|
523
|
+
raw_peer_id = utils.get_raw_peer_id(forward_header.from_id)
|
|
524
|
+
peer_id = utils.get_peer_id(forward_header.from_id)
|
|
525
|
+
|
|
526
|
+
if peer_id > 0:
|
|
527
|
+
forward_from = types.User._parse(client, users[raw_peer_id])
|
|
528
|
+
else:
|
|
529
|
+
forward_from_chat = types.Chat._parse_channel_chat(client, chats[raw_peer_id])
|
|
530
|
+
forward_from_message_id = forward_header.channel_post
|
|
531
|
+
forward_signature = forward_header.post_author
|
|
532
|
+
elif forward_header.from_name:
|
|
533
|
+
forward_sender_name = forward_header.from_name
|
|
534
|
+
|
|
535
|
+
photo = None
|
|
536
|
+
location = None
|
|
537
|
+
contact = None
|
|
538
|
+
venue = None
|
|
539
|
+
game = None
|
|
540
|
+
giveaway = None
|
|
541
|
+
giveaway_result = None
|
|
542
|
+
story = None
|
|
543
|
+
audio = None
|
|
544
|
+
voice = None
|
|
545
|
+
animation = None
|
|
546
|
+
video = None
|
|
547
|
+
video_note = None
|
|
548
|
+
web_page_preview = None
|
|
549
|
+
sticker = None
|
|
550
|
+
document = None
|
|
551
|
+
dice = None
|
|
552
|
+
|
|
553
|
+
media = message.media
|
|
554
|
+
media_type = None
|
|
555
|
+
has_media_spoiler = None
|
|
556
|
+
|
|
557
|
+
if media:
|
|
558
|
+
if isinstance(media, raw.types.MessageMediaPhoto):
|
|
559
|
+
photo = types.Photo._parse(client, media.photo, media.ttl_seconds)
|
|
560
|
+
media_type = enums.MessageMediaType.PHOTO
|
|
561
|
+
has_media_spoiler = media.spoiler
|
|
562
|
+
elif isinstance(media, raw.types.MessageMediaGeo):
|
|
563
|
+
location = types.Location._parse(client, media.geo)
|
|
564
|
+
media_type = enums.MessageMediaType.LOCATION
|
|
565
|
+
elif isinstance(media, raw.types.MessageMediaContact):
|
|
566
|
+
contact = types.Contact._parse(client, media)
|
|
567
|
+
media_type = enums.MessageMediaType.CONTACT
|
|
568
|
+
elif isinstance(media, raw.types.MessageMediaVenue):
|
|
569
|
+
venue = types.Venue._parse(client, media)
|
|
570
|
+
media_type = enums.MessageMediaType.VENUE
|
|
571
|
+
elif isinstance(media, raw.types.MessageMediaGame):
|
|
572
|
+
game = types.Game._parse(client, message)
|
|
573
|
+
media_type = enums.MessageMediaType.GAME
|
|
574
|
+
elif isinstance(media, raw.types.MessageMediaGiveaway):
|
|
575
|
+
giveaway = await types.Giveaway._parse(client, message)
|
|
576
|
+
media_type = enums.MessageMediaType.GIVEAWAY
|
|
577
|
+
elif isinstance(media, raw.types.MessageMediaGiveawayResults):
|
|
578
|
+
giveaway_result = await types.GiveawayResult._parse(client, message.media)
|
|
579
|
+
media_type = enums.MessageMediaType.GIVEAWAY_RESULT
|
|
580
|
+
elif isinstance(media, raw.types.MessageMediaStory):
|
|
581
|
+
story = await types.MessageStory._parse(client, media)
|
|
582
|
+
media_type = enums.MessageMediaType.STORY
|
|
583
|
+
elif isinstance(media, raw.types.MessageMediaDocument):
|
|
584
|
+
doc = media.document
|
|
585
|
+
|
|
586
|
+
if isinstance(doc, raw.types.Document):
|
|
587
|
+
attributes = {type(i): i for i in doc.attributes}
|
|
588
|
+
|
|
589
|
+
file_name = getattr(
|
|
590
|
+
attributes.get(
|
|
591
|
+
raw.types.DocumentAttributeFilename, None
|
|
592
|
+
), "file_name", None
|
|
593
|
+
)
|
|
594
|
+
|
|
595
|
+
if raw.types.DocumentAttributeAnimated in attributes:
|
|
596
|
+
video_attributes = attributes.get(raw.types.DocumentAttributeVideo, None)
|
|
597
|
+
animation = types.Animation._parse(client, doc, video_attributes, file_name)
|
|
598
|
+
media_type = enums.MessageMediaType.ANIMATION
|
|
599
|
+
has_media_spoiler = media.spoiler
|
|
600
|
+
elif raw.types.DocumentAttributeSticker in attributes:
|
|
601
|
+
sticker = await types.Sticker._parse(client, doc, attributes)
|
|
602
|
+
media_type = enums.MessageMediaType.STICKER
|
|
603
|
+
elif raw.types.DocumentAttributeVideo in attributes:
|
|
604
|
+
video_attributes = attributes[raw.types.DocumentAttributeVideo]
|
|
605
|
+
|
|
606
|
+
if video_attributes.round_message:
|
|
607
|
+
video_note = types.VideoNote._parse(client, doc, video_attributes)
|
|
608
|
+
media_type = enums.MessageMediaType.VIDEO_NOTE
|
|
609
|
+
else:
|
|
610
|
+
video = types.Video._parse(client, doc, video_attributes, file_name, media.ttl_seconds)
|
|
611
|
+
media_type = enums.MessageMediaType.VIDEO
|
|
612
|
+
has_media_spoiler = media.spoiler
|
|
613
|
+
elif raw.types.DocumentAttributeAudio in attributes:
|
|
614
|
+
audio_attributes = attributes[raw.types.DocumentAttributeAudio]
|
|
615
|
+
|
|
616
|
+
if audio_attributes.voice:
|
|
617
|
+
voice = types.Voice._parse(client, doc, audio_attributes)
|
|
618
|
+
media_type = enums.MessageMediaType.VOICE
|
|
619
|
+
else:
|
|
620
|
+
audio = types.Audio._parse(client, doc, audio_attributes, file_name)
|
|
621
|
+
media_type = enums.MessageMediaType.AUDIO
|
|
622
|
+
else:
|
|
623
|
+
document = types.Document._parse(client, doc, file_name)
|
|
624
|
+
media_type = enums.MessageMediaType.DOCUMENT
|
|
625
|
+
elif isinstance(media, raw.types.MessageMediaDice):
|
|
626
|
+
dice = types.Dice._parse(client, media)
|
|
627
|
+
media_type = enums.MessageMediaType.DICE
|
|
628
|
+
else:
|
|
629
|
+
media = None
|
|
630
|
+
|
|
631
|
+
reply_markup = message.reply_markup
|
|
632
|
+
|
|
633
|
+
if reply_markup:
|
|
634
|
+
if isinstance(reply_markup, raw.types.ReplyKeyboardForceReply):
|
|
635
|
+
reply_markup = types.ForceReply.read(reply_markup)
|
|
636
|
+
elif isinstance(reply_markup, raw.types.ReplyKeyboardMarkup):
|
|
637
|
+
reply_markup = types.ReplyKeyboardMarkup.read(reply_markup)
|
|
638
|
+
elif isinstance(reply_markup, raw.types.ReplyInlineMarkup):
|
|
639
|
+
reply_markup = types.InlineKeyboardMarkup.read(reply_markup)
|
|
640
|
+
elif isinstance(reply_markup, raw.types.ReplyKeyboardHide):
|
|
641
|
+
reply_markup = types.ReplyKeyboardRemove.read(reply_markup)
|
|
642
|
+
else:
|
|
643
|
+
reply_markup = None
|
|
644
|
+
|
|
645
|
+
from_user = types.User._parse(client, users.get(user_id, None))
|
|
646
|
+
sender_chat = types.Chat._parse(client, message, users, chats, is_chat=False) if not from_user else None
|
|
647
|
+
|
|
648
|
+
reactions = types.MessageReactions._parse(client, message.reactions)
|
|
649
|
+
|
|
650
|
+
parsed_message = Message(
|
|
651
|
+
id=message.id,
|
|
652
|
+
message_thread_id=message_thread_id,
|
|
653
|
+
date=utils.timestamp_to_datetime(message.date),
|
|
654
|
+
chat=types.Chat._parse(client, message, users, chats, is_chat=True),
|
|
655
|
+
topics=None,
|
|
656
|
+
from_user=from_user,
|
|
657
|
+
sender_chat=sender_chat,
|
|
658
|
+
text=(
|
|
659
|
+
Str(message.message).init(entities) or None
|
|
660
|
+
if media is None or web_page_preview is not None
|
|
661
|
+
else None
|
|
662
|
+
),
|
|
663
|
+
caption=(
|
|
664
|
+
Str(message.message).init(entities) or None
|
|
665
|
+
if media is not None and web_page_preview is None
|
|
666
|
+
else None
|
|
667
|
+
),
|
|
668
|
+
entities=(
|
|
669
|
+
entities or None
|
|
670
|
+
if media is None or web_page_preview is not None
|
|
671
|
+
else None
|
|
672
|
+
),
|
|
673
|
+
caption_entities=(
|
|
674
|
+
entities or None
|
|
675
|
+
if media is not None and web_page_preview is None
|
|
676
|
+
else None
|
|
677
|
+
),
|
|
678
|
+
author_signature=message.post_author,
|
|
679
|
+
has_protected_content=message.noforwards,
|
|
680
|
+
has_media_spoiler=has_media_spoiler,
|
|
681
|
+
forward_from=forward_from,
|
|
682
|
+
forward_sender_name=forward_sender_name,
|
|
683
|
+
forward_from_chat=forward_from_chat,
|
|
684
|
+
forward_from_message_id=forward_from_message_id,
|
|
685
|
+
forward_signature=forward_signature,
|
|
686
|
+
forward_date=forward_date,
|
|
687
|
+
is_topic_message=is_topic_message,
|
|
688
|
+
mentioned=message.mentioned,
|
|
689
|
+
scheduled=is_scheduled,
|
|
690
|
+
from_scheduled=message.from_scheduled,
|
|
691
|
+
media=media_type,
|
|
692
|
+
edit_hide=message.edit_hide,
|
|
693
|
+
edit_date=utils.timestamp_to_datetime(message.edit_date),
|
|
694
|
+
media_group_id=message.grouped_id,
|
|
695
|
+
invert_media=message.invert_media,
|
|
696
|
+
photo=photo,
|
|
697
|
+
location=location,
|
|
698
|
+
contact=contact,
|
|
699
|
+
venue=venue,
|
|
700
|
+
audio=audio,
|
|
701
|
+
voice=voice,
|
|
702
|
+
animation=animation,
|
|
703
|
+
game=game,
|
|
704
|
+
giveaway=giveaway,
|
|
705
|
+
giveaway_result=giveaway_result,
|
|
706
|
+
story=story,
|
|
707
|
+
video=video,
|
|
708
|
+
video_note=video_note,
|
|
709
|
+
web_page_preview=web_page_preview,
|
|
710
|
+
sticker=sticker,
|
|
711
|
+
document=document,
|
|
712
|
+
dice=dice,
|
|
713
|
+
views=message.views,
|
|
714
|
+
forwards=message.forwards,
|
|
715
|
+
via_bot=types.User._parse(client, users.get(message.via_bot_id, None)),
|
|
716
|
+
outgoing=message.out,
|
|
717
|
+
reply_markup=reply_markup,
|
|
718
|
+
reactions=reactions,
|
|
719
|
+
effect_id=getattr(message, "effect", None),
|
|
720
|
+
raw=message,
|
|
721
|
+
client=client
|
|
722
|
+
)
|
|
723
|
+
|
|
724
|
+
if message.reply_to:
|
|
725
|
+
if isinstance(message.reply_to, raw.types.MessageReplyHeader):
|
|
726
|
+
parsed_message.quote_text = message.reply_to.quote_text
|
|
727
|
+
if len(message.reply_to.quote_entities) > 0:
|
|
728
|
+
quote_entities = [types.MessageEntity._parse(client, entity, users) for entity in message.reply_to.quote_entities]
|
|
729
|
+
parsed_message.quote_entities = types.List(filter(lambda x: x is not None, quote_entities))
|
|
730
|
+
if message.reply_to.forum_topic:
|
|
731
|
+
if message.reply_to.reply_to_top_id:
|
|
732
|
+
thread_id = message.reply_to.reply_to_top_id
|
|
733
|
+
parsed_message.reply_to_message_id = message.reply_to.reply_to_msg_id
|
|
734
|
+
else:
|
|
735
|
+
thread_id = message.reply_to.reply_to_msg_id
|
|
736
|
+
parsed_message.message_thread_id = thread_id
|
|
737
|
+
parsed_message.is_topic_message = True
|
|
738
|
+
if topics:
|
|
739
|
+
parsed_message.topics = types.ForumTopic._parse(topics[thread_id])
|
|
740
|
+
else:
|
|
741
|
+
try:
|
|
742
|
+
msg = await client.get_messages(parsed_message.chat.id,message.id)
|
|
743
|
+
if getattr(msg, "topics"):
|
|
744
|
+
parsed_message.topics = msg.topics
|
|
745
|
+
except Exception:
|
|
746
|
+
pass
|
|
747
|
+
else:
|
|
748
|
+
parsed_message.reply_to_message_id = message.reply_to.reply_to_msg_id
|
|
749
|
+
parsed_message.reply_to_top_message_id = message.reply_to.reply_to_top_id
|
|
750
|
+
else:
|
|
751
|
+
parsed_message.reply_to_story_id = message.reply_to.story_id
|
|
752
|
+
if isinstance(message.reply_to.peer, raw.types.PeerUser):
|
|
753
|
+
parsed_message.reply_to_story_user_id = message.reply_to.peer.user_id
|
|
754
|
+
elif isinstance(message.reply_to.peer, raw.types.PeerChat):
|
|
755
|
+
parsed_message.reply_to_story_chat_id = utils.get_channel_id(message.reply_to.peer.chat_id)
|
|
756
|
+
else:
|
|
757
|
+
parsed_message.reply_to_story_chat_id = utils.get_channel_id(message.reply_to.peer.channel_id)
|
|
758
|
+
|
|
759
|
+
if replies:
|
|
760
|
+
if parsed_message.reply_to_message_id:
|
|
761
|
+
is_cross_chat = getattr(message.reply_to, "reply_to_peer_id", None) and getattr(message.reply_to.reply_to_peer_id, "channel_id", None)
|
|
762
|
+
|
|
763
|
+
if is_cross_chat:
|
|
764
|
+
key = (utils.get_channel_id(message.reply_to.reply_to_peer_id.channel_id), message.reply_to.reply_to_msg_id)
|
|
765
|
+
reply_to_params = {"chat_id": key[0], 'message_ids': key[1]}
|
|
766
|
+
else:
|
|
767
|
+
key = (parsed_message.chat.id, parsed_message.reply_to_message_id)
|
|
768
|
+
reply_to_params = {'chat_id': key[0], 'reply_to_message_ids': message.id}
|
|
769
|
+
|
|
770
|
+
try:
|
|
771
|
+
reply_to_message = client.message_cache[key]
|
|
772
|
+
|
|
773
|
+
if not reply_to_message:
|
|
774
|
+
reply_to_message = await client.get_messages(
|
|
775
|
+
replies=replies - 1,
|
|
776
|
+
**reply_to_params
|
|
777
|
+
)
|
|
778
|
+
if reply_to_message and not reply_to_message.forum_topic_created:
|
|
779
|
+
parsed_message.reply_to_message = reply_to_message
|
|
780
|
+
except MessageIdsEmpty:
|
|
781
|
+
pass
|
|
782
|
+
except ChannelPrivate:
|
|
783
|
+
pass
|
|
784
|
+
elif parsed_message.reply_to_story_id:
|
|
785
|
+
try:
|
|
786
|
+
reply_to_story = await client.get_stories(
|
|
787
|
+
parsed_message.reply_to_story_user_id or parsed_message.reply_to_story_chat_id,
|
|
788
|
+
parsed_message.reply_to_story_id
|
|
789
|
+
)
|
|
790
|
+
except Exception:
|
|
791
|
+
pass
|
|
792
|
+
else:
|
|
793
|
+
parsed_message.reply_to_story = reply_to_story
|
|
794
|
+
|
|
795
|
+
return parsed_message
|
|
796
|
+
|
|
797
|
+
@property
|
|
798
|
+
def link(self) -> str:
|
|
799
|
+
if (
|
|
800
|
+
self.chat.type in (enums.ChatType.GROUP, enums.ChatType.SUPERGROUP, enums.ChatType.CHANNEL)
|
|
801
|
+
and self.chat.username
|
|
802
|
+
):
|
|
803
|
+
return f"https://t.me/{self.chat.username}/{self.id}"
|
|
804
|
+
else:
|
|
805
|
+
return f"https://t.me/c/{utils.get_channel_id(self.chat.id)}/{self.id}"
|
|
806
|
+
|
|
807
|
+
async def get_media_group(self) -> List["types.Message"]:
|
|
808
|
+
return await self._client.get_media_group(
|
|
809
|
+
chat_id=self.chat.id,
|
|
810
|
+
message_id=self.id
|
|
811
|
+
)
|
|
812
|
+
|
|
813
|
+
async def reply_text(
|
|
814
|
+
self,
|
|
815
|
+
text: str,
|
|
816
|
+
quote: bool = None,
|
|
817
|
+
parse_mode: Optional["enums.ParseMode"] = None,
|
|
818
|
+
entities: List["types.MessageEntity"] = None,
|
|
819
|
+
disable_web_page_preview: bool = None,
|
|
820
|
+
disable_notification: bool = None,
|
|
821
|
+
reply_to_message_id: int = None,
|
|
822
|
+
reply_in_chat_id: Union[int, str] = None,
|
|
823
|
+
quote_text: str = None,
|
|
824
|
+
quote_entities: List["types.MessageEntity"] = None,
|
|
825
|
+
schedule_date: datetime = None,
|
|
826
|
+
protect_content: bool = None,
|
|
827
|
+
message_effect_id: int = None,
|
|
828
|
+
invert_media: bool = None,
|
|
829
|
+
reply_markup=None
|
|
830
|
+
) -> "Message":
|
|
831
|
+
if quote is None:
|
|
832
|
+
quote = self.chat.type != enums.ChatType.PRIVATE
|
|
833
|
+
|
|
834
|
+
if reply_to_message_id is None and quote:
|
|
835
|
+
reply_to_message_id = self.id
|
|
836
|
+
|
|
837
|
+
message_thread_id = None
|
|
838
|
+
if self.message_thread_id:
|
|
839
|
+
message_thread_id = self.message_thread_id
|
|
840
|
+
|
|
841
|
+
chat_id = self.chat.id
|
|
842
|
+
reply_to_chat_id = None
|
|
843
|
+
if reply_in_chat_id is not None:
|
|
844
|
+
chat_id = reply_in_chat_id
|
|
845
|
+
reply_to_chat_id = self.chat.id
|
|
846
|
+
|
|
847
|
+
return await self._client.send_message(
|
|
848
|
+
chat_id=chat_id,
|
|
849
|
+
text=text,
|
|
850
|
+
parse_mode=parse_mode,
|
|
851
|
+
entities=entities,
|
|
852
|
+
disable_web_page_preview=disable_web_page_preview,
|
|
853
|
+
disable_notification=disable_notification,
|
|
854
|
+
message_thread_id=message_thread_id,
|
|
855
|
+
reply_to_message_id=reply_to_message_id,
|
|
856
|
+
reply_to_chat_id=reply_to_chat_id,
|
|
857
|
+
quote_text=quote_text,
|
|
858
|
+
quote_entities=quote_entities,
|
|
859
|
+
schedule_date=schedule_date,
|
|
860
|
+
protect_content=protect_content,
|
|
861
|
+
message_effect_id=message_effect_id,
|
|
862
|
+
invert_media=invert_media,
|
|
863
|
+
reply_markup=reply_markup
|
|
864
|
+
)
|
|
865
|
+
|
|
866
|
+
reply = reply_text
|
|
867
|
+
|
|
868
|
+
async def reply_animation(
|
|
869
|
+
self,
|
|
870
|
+
animation: Union[str, BinaryIO],
|
|
871
|
+
quote: bool = None,
|
|
872
|
+
caption: str = "",
|
|
873
|
+
parse_mode: Optional["enums.ParseMode"] = None,
|
|
874
|
+
caption_entities: List["types.MessageEntity"] = None,
|
|
875
|
+
has_spoiler: bool = None,
|
|
876
|
+
duration: int = 0,
|
|
877
|
+
width: int = 0,
|
|
878
|
+
height: int = 0,
|
|
879
|
+
thumb: Union[str, BinaryIO] = None,
|
|
880
|
+
file_name: str = None,
|
|
881
|
+
disable_notification: bool = None,
|
|
882
|
+
invert_media: bool = None,
|
|
883
|
+
reply_markup: Union[
|
|
884
|
+
"types.InlineKeyboardMarkup",
|
|
885
|
+
"types.ReplyKeyboardMarkup",
|
|
886
|
+
"types.ReplyKeyboardRemove",
|
|
887
|
+
"types.ForceReply"
|
|
888
|
+
] = None,
|
|
889
|
+
reply_to_message_id: int = None,
|
|
890
|
+
reply_in_chat_id: Union[int, str] = None,
|
|
891
|
+
quote_text: str = None,
|
|
892
|
+
quote_entities: List["types.MessageEntity"] = None,
|
|
893
|
+
progress: Callable = None,
|
|
894
|
+
progress_args: tuple = ()
|
|
895
|
+
) -> "Message":
|
|
896
|
+
if quote is None:
|
|
897
|
+
quote = self.chat.type != enums.ChatType.PRIVATE
|
|
898
|
+
|
|
899
|
+
if reply_to_message_id is None and quote:
|
|
900
|
+
reply_to_message_id = self.id
|
|
901
|
+
|
|
902
|
+
message_thread_id = None
|
|
903
|
+
if self.message_thread_id:
|
|
904
|
+
message_thread_id = self.message_thread_id
|
|
905
|
+
|
|
906
|
+
chat_id = self.chat.id
|
|
907
|
+
reply_to_chat_id = None
|
|
908
|
+
if reply_in_chat_id is not None:
|
|
909
|
+
chat_id = reply_in_chat_id
|
|
910
|
+
reply_to_chat_id = self.chat.id
|
|
911
|
+
|
|
912
|
+
return await self._client.send_animation(
|
|
913
|
+
chat_id=chat_id,
|
|
914
|
+
animation=animation,
|
|
915
|
+
caption=caption,
|
|
916
|
+
parse_mode=parse_mode,
|
|
917
|
+
caption_entities=caption_entities,
|
|
918
|
+
has_spoiler=has_spoiler,
|
|
919
|
+
duration=duration,
|
|
920
|
+
width=width,
|
|
921
|
+
height=height,
|
|
922
|
+
thumb=thumb,
|
|
923
|
+
file_name=file_name,
|
|
924
|
+
disable_notification=disable_notification,
|
|
925
|
+
message_thread_id=message_thread_id,
|
|
926
|
+
reply_to_message_id=reply_to_message_id,
|
|
927
|
+
reply_to_chat_id=reply_to_chat_id,
|
|
928
|
+
quote_text=quote_text,
|
|
929
|
+
quote_entities=quote_entities,
|
|
930
|
+
invert_media=invert_media,
|
|
931
|
+
reply_markup=reply_markup,
|
|
932
|
+
progress=progress,
|
|
933
|
+
progress_args=progress_args
|
|
934
|
+
)
|
|
935
|
+
|
|
936
|
+
async def reply_audio(
|
|
937
|
+
self,
|
|
938
|
+
audio: Union[str, BinaryIO],
|
|
939
|
+
quote: bool = None,
|
|
940
|
+
caption: str = "",
|
|
941
|
+
parse_mode: Optional["enums.ParseMode"] = None,
|
|
942
|
+
caption_entities: List["types.MessageEntity"] = None,
|
|
943
|
+
duration: int = 0,
|
|
944
|
+
performer: str = None,
|
|
945
|
+
title: str = None,
|
|
946
|
+
thumb: Union[str, BinaryIO] = None,
|
|
947
|
+
file_name: str = None,
|
|
948
|
+
disable_notification: bool = None,
|
|
949
|
+
reply_to_message_id: int = None,
|
|
950
|
+
reply_in_chat_id: Union[int, str] = None,
|
|
951
|
+
quote_text: str = None,
|
|
952
|
+
quote_entities: List["types.MessageEntity"] = None,
|
|
953
|
+
reply_markup: Union[
|
|
954
|
+
"types.InlineKeyboardMarkup",
|
|
955
|
+
"types.ReplyKeyboardMarkup",
|
|
956
|
+
"types.ReplyKeyboardRemove",
|
|
957
|
+
"types.ForceReply"
|
|
958
|
+
] = None,
|
|
959
|
+
progress: Callable = None,
|
|
960
|
+
progress_args: tuple = ()
|
|
961
|
+
) -> "Message":
|
|
962
|
+
if quote is None:
|
|
963
|
+
quote = self.chat.type != enums.ChatType.PRIVATE
|
|
964
|
+
|
|
965
|
+
if reply_to_message_id is None and quote:
|
|
966
|
+
reply_to_message_id = self.id
|
|
967
|
+
|
|
968
|
+
message_thread_id = None
|
|
969
|
+
if self.message_thread_id:
|
|
970
|
+
message_thread_id = self.message_thread_id
|
|
971
|
+
|
|
972
|
+
chat_id = self.chat.id
|
|
973
|
+
reply_to_chat_id = None
|
|
974
|
+
if reply_in_chat_id is not None:
|
|
975
|
+
chat_id = reply_in_chat_id
|
|
976
|
+
reply_to_chat_id = self.chat.id
|
|
977
|
+
|
|
978
|
+
return await self._client.send_audio(
|
|
979
|
+
chat_id=chat_id,
|
|
980
|
+
audio=audio,
|
|
981
|
+
caption=caption,
|
|
982
|
+
parse_mode=parse_mode,
|
|
983
|
+
caption_entities=caption_entities,
|
|
984
|
+
duration=duration,
|
|
985
|
+
performer=performer,
|
|
986
|
+
title=title,
|
|
987
|
+
thumb=thumb,
|
|
988
|
+
file_name=file_name,
|
|
989
|
+
disable_notification=disable_notification,
|
|
990
|
+
message_thread_id=message_thread_id,
|
|
991
|
+
reply_to_message_id=reply_to_message_id,
|
|
992
|
+
reply_to_chat_id=reply_to_chat_id,
|
|
993
|
+
quote_text=quote_text,
|
|
994
|
+
quote_entities=quote_entities,
|
|
995
|
+
reply_markup=reply_markup,
|
|
996
|
+
progress=progress,
|
|
997
|
+
progress_args=progress_args
|
|
998
|
+
)
|
|
999
|
+
|
|
1000
|
+
async def reply_cached_media(
|
|
1001
|
+
self,
|
|
1002
|
+
file_id: str,
|
|
1003
|
+
quote: bool = None,
|
|
1004
|
+
caption: str = "",
|
|
1005
|
+
parse_mode: Optional["enums.ParseMode"] = None,
|
|
1006
|
+
caption_entities: List["types.MessageEntity"] = None,
|
|
1007
|
+
disable_notification: bool = None,
|
|
1008
|
+
reply_to_message_id: int = None,
|
|
1009
|
+
reply_in_chat_id: Union[int, str] = None,
|
|
1010
|
+
quote_text: str = None,
|
|
1011
|
+
quote_entities: List["types.MessageEntity"] = None,
|
|
1012
|
+
reply_markup: Union[
|
|
1013
|
+
"types.InlineKeyboardMarkup",
|
|
1014
|
+
"types.ReplyKeyboardMarkup",
|
|
1015
|
+
"types.ReplyKeyboardRemove",
|
|
1016
|
+
"types.ForceReply"
|
|
1017
|
+
] = None
|
|
1018
|
+
) -> "Message":
|
|
1019
|
+
if quote is None:
|
|
1020
|
+
quote = self.chat.type != enums.ChatType.PRIVATE
|
|
1021
|
+
|
|
1022
|
+
if reply_to_message_id is None and quote:
|
|
1023
|
+
reply_to_message_id = self.id
|
|
1024
|
+
|
|
1025
|
+
message_thread_id = None
|
|
1026
|
+
if self.message_thread_id:
|
|
1027
|
+
message_thread_id = self.message_thread_id
|
|
1028
|
+
|
|
1029
|
+
chat_id = self.chat.id
|
|
1030
|
+
reply_to_chat_id = None
|
|
1031
|
+
if reply_in_chat_id is not None:
|
|
1032
|
+
chat_id = reply_in_chat_id
|
|
1033
|
+
reply_to_chat_id = self.chat.id
|
|
1034
|
+
|
|
1035
|
+
return await self._client.send_cached_media(
|
|
1036
|
+
chat_id=chat_id,
|
|
1037
|
+
file_id=file_id,
|
|
1038
|
+
caption=caption,
|
|
1039
|
+
parse_mode=parse_mode,
|
|
1040
|
+
caption_entities=caption_entities,
|
|
1041
|
+
disable_notification=disable_notification,
|
|
1042
|
+
message_thread_id=message_thread_id,
|
|
1043
|
+
reply_to_message_id=reply_to_message_id,
|
|
1044
|
+
reply_to_chat_id=reply_to_chat_id,
|
|
1045
|
+
quote_text=quote_text,
|
|
1046
|
+
quote_entities=quote_entities,
|
|
1047
|
+
reply_markup=reply_markup
|
|
1048
|
+
)
|
|
1049
|
+
|
|
1050
|
+
async def reply_chat_action(
|
|
1051
|
+
self,
|
|
1052
|
+
action: "enums.ChatAction",
|
|
1053
|
+
emoji: str = None,
|
|
1054
|
+
emoji_message_id: int = None,
|
|
1055
|
+
emoji_message_interaction: "raw.types.DataJSON" = None
|
|
1056
|
+
) -> bool:
|
|
1057
|
+
return await self._client.send_chat_action(
|
|
1058
|
+
chat_id=self.chat.id,
|
|
1059
|
+
action=action,
|
|
1060
|
+
emoji=emoji,
|
|
1061
|
+
emoji_message_id=emoji_message_id,
|
|
1062
|
+
emoji_message_interaction=emoji_message_interaction
|
|
1063
|
+
)
|
|
1064
|
+
|
|
1065
|
+
async def reply_contact(
|
|
1066
|
+
self,
|
|
1067
|
+
phone_number: str,
|
|
1068
|
+
first_name: str,
|
|
1069
|
+
quote: bool = None,
|
|
1070
|
+
last_name: str = "",
|
|
1071
|
+
vcard: str = "",
|
|
1072
|
+
disable_notification: bool = None,
|
|
1073
|
+
reply_to_message_id: int = None,
|
|
1074
|
+
reply_in_chat_id: Union[int, str] = None,
|
|
1075
|
+
quote_text: str = None,
|
|
1076
|
+
quote_entities: List["types.MessageEntity"] = None,
|
|
1077
|
+
parse_mode: Optional["enums.ParseMode"] = None,
|
|
1078
|
+
reply_markup: Union[
|
|
1079
|
+
"types.InlineKeyboardMarkup",
|
|
1080
|
+
"types.ReplyKeyboardMarkup",
|
|
1081
|
+
"types.ReplyKeyboardRemove",
|
|
1082
|
+
"types.ForceReply"
|
|
1083
|
+
] = None
|
|
1084
|
+
) -> "Message":
|
|
1085
|
+
if quote is None:
|
|
1086
|
+
quote = self.chat.type != enums.ChatType.PRIVATE
|
|
1087
|
+
|
|
1088
|
+
if reply_to_message_id is None and quote:
|
|
1089
|
+
reply_to_message_id = self.id
|
|
1090
|
+
|
|
1091
|
+
message_thread_id = None
|
|
1092
|
+
if self.message_thread_id:
|
|
1093
|
+
message_thread_id = self.message_thread_id
|
|
1094
|
+
|
|
1095
|
+
chat_id = self.chat.id
|
|
1096
|
+
reply_to_chat_id = None
|
|
1097
|
+
if reply_in_chat_id is not None:
|
|
1098
|
+
chat_id = reply_in_chat_id
|
|
1099
|
+
reply_to_chat_id = self.chat.id
|
|
1100
|
+
|
|
1101
|
+
return await self._client.send_contact(
|
|
1102
|
+
chat_id=chat_id,
|
|
1103
|
+
phone_number=phone_number,
|
|
1104
|
+
first_name=first_name,
|
|
1105
|
+
last_name=last_name,
|
|
1106
|
+
vcard=vcard,
|
|
1107
|
+
disable_notification=disable_notification,
|
|
1108
|
+
message_thread_id=message_thread_id,
|
|
1109
|
+
reply_to_message_id=reply_to_message_id,
|
|
1110
|
+
reply_to_chat_id=reply_to_chat_id,
|
|
1111
|
+
quote_text=quote_text,
|
|
1112
|
+
quote_entities=quote_entities,
|
|
1113
|
+
parse_mode=parse_mode,
|
|
1114
|
+
reply_markup=reply_markup
|
|
1115
|
+
)
|
|
1116
|
+
|
|
1117
|
+
async def reply_document(
|
|
1118
|
+
self,
|
|
1119
|
+
document: Union[str, BinaryIO],
|
|
1120
|
+
quote: bool = None,
|
|
1121
|
+
thumb: Union[str, BinaryIO] = None,
|
|
1122
|
+
caption: str = "",
|
|
1123
|
+
parse_mode: Optional["enums.ParseMode"] = None,
|
|
1124
|
+
caption_entities: List["types.MessageEntity"] = None,
|
|
1125
|
+
file_name: str = None,
|
|
1126
|
+
force_document: bool = None,
|
|
1127
|
+
disable_notification: bool = None,
|
|
1128
|
+
reply_to_message_id: int = None,
|
|
1129
|
+
reply_in_chat_id: Union[int, str] = None,
|
|
1130
|
+
quote_text: str = None,
|
|
1131
|
+
quote_entities: List["types.MessageEntity"] = None,
|
|
1132
|
+
schedule_date: datetime = None,
|
|
1133
|
+
reply_markup: Union[
|
|
1134
|
+
"types.InlineKeyboardMarkup",
|
|
1135
|
+
"types.ReplyKeyboardMarkup",
|
|
1136
|
+
"types.ReplyKeyboardRemove",
|
|
1137
|
+
"types.ForceReply"
|
|
1138
|
+
] = None,
|
|
1139
|
+
progress: Callable = None,
|
|
1140
|
+
progress_args: tuple = ()
|
|
1141
|
+
) -> "Message":
|
|
1142
|
+
if quote is None:
|
|
1143
|
+
quote = self.chat.type != enums.ChatType.PRIVATE
|
|
1144
|
+
|
|
1145
|
+
if reply_to_message_id is None and quote:
|
|
1146
|
+
reply_to_message_id = self.id
|
|
1147
|
+
|
|
1148
|
+
message_thread_id = None
|
|
1149
|
+
if self.message_thread_id:
|
|
1150
|
+
message_thread_id = self.message_thread_id
|
|
1151
|
+
|
|
1152
|
+
chat_id = self.chat.id
|
|
1153
|
+
reply_to_chat_id = None
|
|
1154
|
+
if reply_in_chat_id is not None:
|
|
1155
|
+
chat_id = reply_in_chat_id
|
|
1156
|
+
reply_to_chat_id = self.chat.id
|
|
1157
|
+
|
|
1158
|
+
return await self._client.send_document(
|
|
1159
|
+
chat_id=chat_id,
|
|
1160
|
+
document=document,
|
|
1161
|
+
thumb=thumb,
|
|
1162
|
+
caption=caption,
|
|
1163
|
+
parse_mode=parse_mode,
|
|
1164
|
+
caption_entities=caption_entities,
|
|
1165
|
+
file_name=file_name,
|
|
1166
|
+
force_document=force_document,
|
|
1167
|
+
disable_notification=disable_notification,
|
|
1168
|
+
message_thread_id=message_thread_id,
|
|
1169
|
+
reply_to_message_id=reply_to_message_id,
|
|
1170
|
+
reply_to_chat_id=reply_to_chat_id,
|
|
1171
|
+
quote_text=quote_text,
|
|
1172
|
+
quote_entities=quote_entities,
|
|
1173
|
+
schedule_date=schedule_date,
|
|
1174
|
+
reply_markup=reply_markup,
|
|
1175
|
+
progress=progress,
|
|
1176
|
+
progress_args=progress_args
|
|
1177
|
+
)
|
|
1178
|
+
|
|
1179
|
+
async def reply_game(
|
|
1180
|
+
self,
|
|
1181
|
+
game_short_name: str,
|
|
1182
|
+
quote: bool = None,
|
|
1183
|
+
disable_notification: bool = None,
|
|
1184
|
+
reply_to_message_id: int = None,
|
|
1185
|
+
reply_markup: Union[
|
|
1186
|
+
"types.InlineKeyboardMarkup",
|
|
1187
|
+
"types.ReplyKeyboardMarkup",
|
|
1188
|
+
"types.ReplyKeyboardRemove",
|
|
1189
|
+
"types.ForceReply"
|
|
1190
|
+
] = None
|
|
1191
|
+
) -> "Message":
|
|
1192
|
+
if quote is None:
|
|
1193
|
+
quote = self.chat.type != enums.ChatType.PRIVATE
|
|
1194
|
+
|
|
1195
|
+
if reply_to_message_id is None and quote:
|
|
1196
|
+
reply_to_message_id = self.id
|
|
1197
|
+
|
|
1198
|
+
message_thread_id = None
|
|
1199
|
+
if self.message_thread_id:
|
|
1200
|
+
message_thread_id = self.message_thread_id
|
|
1201
|
+
|
|
1202
|
+
return await self._client.send_game(
|
|
1203
|
+
chat_id=self.chat.id,
|
|
1204
|
+
game_short_name=game_short_name,
|
|
1205
|
+
disable_notification=disable_notification,
|
|
1206
|
+
message_thread_id=message_thread_id,
|
|
1207
|
+
reply_to_message_id=reply_to_message_id,
|
|
1208
|
+
reply_markup=reply_markup
|
|
1209
|
+
)
|
|
1210
|
+
|
|
1211
|
+
async def reply_inline_bot_result(
|
|
1212
|
+
self,
|
|
1213
|
+
query_id: int,
|
|
1214
|
+
result_id: str,
|
|
1215
|
+
quote: bool = None,
|
|
1216
|
+
disable_notification: bool = None,
|
|
1217
|
+
reply_to_message_id: int = None,
|
|
1218
|
+
quote_text: str = None,
|
|
1219
|
+
quote_entities: List["types.MessageEntity"] = None,
|
|
1220
|
+
parse_mode: Optional["enums.ParseMode"] = None
|
|
1221
|
+
) -> "Message":
|
|
1222
|
+
if quote is None:
|
|
1223
|
+
quote = self.chat.type != enums.ChatType.PRIVATE
|
|
1224
|
+
|
|
1225
|
+
if reply_to_message_id is None and quote:
|
|
1226
|
+
reply_to_message_id = self.id
|
|
1227
|
+
|
|
1228
|
+
message_thread_id = None
|
|
1229
|
+
if self.message_thread_id:
|
|
1230
|
+
message_thread_id = self.message_thread_id
|
|
1231
|
+
|
|
1232
|
+
return await self._client.send_inline_bot_result(
|
|
1233
|
+
chat_id=self.chat.id,
|
|
1234
|
+
query_id=query_id,
|
|
1235
|
+
result_id=result_id,
|
|
1236
|
+
disable_notification=disable_notification,
|
|
1237
|
+
message_thread_id=message_thread_id,
|
|
1238
|
+
reply_to_message_id=reply_to_message_id,
|
|
1239
|
+
quote_text=quote_text
|
|
1240
|
+
)
|
|
1241
|
+
|
|
1242
|
+
async def reply_location(
|
|
1243
|
+
self,
|
|
1244
|
+
latitude: float,
|
|
1245
|
+
longitude: float,
|
|
1246
|
+
quote: bool = None,
|
|
1247
|
+
disable_notification: bool = None,
|
|
1248
|
+
reply_to_message_id: int = None,
|
|
1249
|
+
reply_in_chat_id: Union[int, str] = None,
|
|
1250
|
+
quote_text: str = None,
|
|
1251
|
+
quote_entities: List["types.MessageEntity"] = None,
|
|
1252
|
+
parse_mode: Optional["enums.ParseMode"] = None,
|
|
1253
|
+
reply_markup: Union[
|
|
1254
|
+
"types.InlineKeyboardMarkup",
|
|
1255
|
+
"types.ReplyKeyboardMarkup",
|
|
1256
|
+
"types.ReplyKeyboardRemove",
|
|
1257
|
+
"types.ForceReply"
|
|
1258
|
+
] = None
|
|
1259
|
+
) -> "Message":
|
|
1260
|
+
if quote is None:
|
|
1261
|
+
quote = self.chat.type != enums.ChatType.PRIVATE
|
|
1262
|
+
|
|
1263
|
+
if reply_to_message_id is None and quote:
|
|
1264
|
+
reply_to_message_id = self.id
|
|
1265
|
+
|
|
1266
|
+
message_thread_id = None
|
|
1267
|
+
if self.message_thread_id:
|
|
1268
|
+
message_thread_id = self.message_thread_id
|
|
1269
|
+
|
|
1270
|
+
chat_id = self.chat.id
|
|
1271
|
+
reply_to_chat_id = None
|
|
1272
|
+
if reply_in_chat_id is not None:
|
|
1273
|
+
chat_id = reply_in_chat_id
|
|
1274
|
+
reply_to_chat_id = self.chat.id
|
|
1275
|
+
|
|
1276
|
+
return await self._client.send_location(
|
|
1277
|
+
chat_id=chat_id,
|
|
1278
|
+
latitude=latitude,
|
|
1279
|
+
longitude=longitude,
|
|
1280
|
+
disable_notification=disable_notification,
|
|
1281
|
+
message_thread_id=message_thread_id,
|
|
1282
|
+
reply_to_message_id=reply_to_message_id,
|
|
1283
|
+
reply_to_chat_id=reply_to_chat_id,
|
|
1284
|
+
quote_text=quote_text,
|
|
1285
|
+
quote_entities=quote_entities,
|
|
1286
|
+
parse_mode=parse_mode,
|
|
1287
|
+
reply_markup=reply_markup
|
|
1288
|
+
)
|
|
1289
|
+
|
|
1290
|
+
async def reply_media_group(
|
|
1291
|
+
self,
|
|
1292
|
+
media: List[Union[
|
|
1293
|
+
"types.InputMediaPhoto",
|
|
1294
|
+
"types.InputMediaVideo",
|
|
1295
|
+
"types.InputMediaAudio",
|
|
1296
|
+
"types.InputMediaDocument"
|
|
1297
|
+
]],
|
|
1298
|
+
quote: bool = None,
|
|
1299
|
+
disable_notification: bool = None,
|
|
1300
|
+
reply_to_message_id: int = None,
|
|
1301
|
+
reply_in_chat_id: Union[int, str] = None,
|
|
1302
|
+
quote_text: str = None,
|
|
1303
|
+
quote_entities: List["types.MessageEntity"] = None,
|
|
1304
|
+
parse_mode: Optional["enums.ParseMode"] = None,
|
|
1305
|
+
invert_media: bool = None
|
|
1306
|
+
) -> List["types.Message"]:
|
|
1307
|
+
if quote is None:
|
|
1308
|
+
quote = self.chat.type != enums.ChatType.PRIVATE
|
|
1309
|
+
|
|
1310
|
+
if reply_to_message_id is None and quote:
|
|
1311
|
+
reply_to_message_id = self.id
|
|
1312
|
+
|
|
1313
|
+
message_thread_id = None
|
|
1314
|
+
if self.message_thread_id:
|
|
1315
|
+
message_thread_id = self.message_thread_id
|
|
1316
|
+
|
|
1317
|
+
chat_id = self.chat.id
|
|
1318
|
+
reply_to_chat_id = None
|
|
1319
|
+
if reply_in_chat_id is not None:
|
|
1320
|
+
chat_id = reply_in_chat_id
|
|
1321
|
+
reply_to_chat_id = self.chat.id
|
|
1322
|
+
|
|
1323
|
+
return await self._client.send_media_group(
|
|
1324
|
+
chat_id=chat_id,
|
|
1325
|
+
media=media,
|
|
1326
|
+
disable_notification=disable_notification,
|
|
1327
|
+
message_thread_id=message_thread_id,
|
|
1328
|
+
reply_to_message_id=reply_to_message_id,
|
|
1329
|
+
reply_to_chat_id=reply_to_chat_id,
|
|
1330
|
+
quote_text=quote_text,
|
|
1331
|
+
invert_media=invert_media
|
|
1332
|
+
)
|
|
1333
|
+
|
|
1334
|
+
async def reply_photo(
|
|
1335
|
+
self,
|
|
1336
|
+
photo: Union[str, BinaryIO],
|
|
1337
|
+
quote: bool = None,
|
|
1338
|
+
caption: str = "",
|
|
1339
|
+
parse_mode: Optional["enums.ParseMode"] = None,
|
|
1340
|
+
caption_entities: List["types.MessageEntity"] = None,
|
|
1341
|
+
has_spoiler: bool = None,
|
|
1342
|
+
ttl_seconds: int = None,
|
|
1343
|
+
disable_notification: bool = None,
|
|
1344
|
+
reply_to_message_id: int = None,
|
|
1345
|
+
reply_in_chat_id: Union[int, str] = None,
|
|
1346
|
+
quote_text: str = None,
|
|
1347
|
+
quote_entities: List["types.MessageEntity"] = None,
|
|
1348
|
+
view_once: bool = None,
|
|
1349
|
+
invert_media: bool = None,
|
|
1350
|
+
reply_markup: Union[
|
|
1351
|
+
"types.InlineKeyboardMarkup",
|
|
1352
|
+
"types.ReplyKeyboardMarkup",
|
|
1353
|
+
"types.ReplyKeyboardRemove",
|
|
1354
|
+
"types.ForceReply"
|
|
1355
|
+
] = None,
|
|
1356
|
+
progress: Callable = None,
|
|
1357
|
+
progress_args: tuple = ()
|
|
1358
|
+
) -> "Message":
|
|
1359
|
+
if quote is None:
|
|
1360
|
+
quote = self.chat.type != enums.ChatType.PRIVATE
|
|
1361
|
+
|
|
1362
|
+
if reply_to_message_id is None and quote:
|
|
1363
|
+
reply_to_message_id = self.id
|
|
1364
|
+
|
|
1365
|
+
message_thread_id = None
|
|
1366
|
+
if self.message_thread_id:
|
|
1367
|
+
message_thread_id = self.message_thread_id
|
|
1368
|
+
|
|
1369
|
+
chat_id = self.chat.id
|
|
1370
|
+
reply_to_chat_id = None
|
|
1371
|
+
if reply_in_chat_id is not None:
|
|
1372
|
+
chat_id = reply_in_chat_id
|
|
1373
|
+
reply_to_chat_id = self.chat.id
|
|
1374
|
+
|
|
1375
|
+
return await self._client.send_photo(
|
|
1376
|
+
chat_id=chat_id,
|
|
1377
|
+
photo=photo,
|
|
1378
|
+
caption=caption,
|
|
1379
|
+
parse_mode=parse_mode,
|
|
1380
|
+
caption_entities=caption_entities,
|
|
1381
|
+
has_spoiler=has_spoiler,
|
|
1382
|
+
ttl_seconds=ttl_seconds,
|
|
1383
|
+
disable_notification=disable_notification,
|
|
1384
|
+
message_thread_id=message_thread_id,
|
|
1385
|
+
reply_to_message_id=reply_to_message_id,
|
|
1386
|
+
reply_to_chat_id=reply_to_chat_id,
|
|
1387
|
+
quote_text=quote_text,
|
|
1388
|
+
quote_entities=quote_entities,
|
|
1389
|
+
view_once=view_once,
|
|
1390
|
+
invert_media=invert_media,
|
|
1391
|
+
reply_markup=reply_markup,
|
|
1392
|
+
progress=progress,
|
|
1393
|
+
progress_args=progress_args
|
|
1394
|
+
)
|
|
1395
|
+
|
|
1396
|
+
async def reply_sticker(
|
|
1397
|
+
self,
|
|
1398
|
+
sticker: Union[str, BinaryIO],
|
|
1399
|
+
quote: bool = None,
|
|
1400
|
+
disable_notification: bool = None,
|
|
1401
|
+
reply_to_message_id: int = None,
|
|
1402
|
+
reply_in_chat_id: Union[int, str] = None,
|
|
1403
|
+
quote_text: str = None,
|
|
1404
|
+
quote_entities: List["types.MessageEntity"] = None,
|
|
1405
|
+
parse_mode: Optional["enums.ParseMode"] = None,
|
|
1406
|
+
reply_markup: Union[
|
|
1407
|
+
"types.InlineKeyboardMarkup",
|
|
1408
|
+
"types.ReplyKeyboardMarkup",
|
|
1409
|
+
"types.ReplyKeyboardRemove",
|
|
1410
|
+
"types.ForceReply"
|
|
1411
|
+
] = None,
|
|
1412
|
+
progress: Callable = None,
|
|
1413
|
+
progress_args: tuple = ()
|
|
1414
|
+
) -> "Message":
|
|
1415
|
+
if quote is None:
|
|
1416
|
+
quote = self.chat.type != enums.ChatType.PRIVATE
|
|
1417
|
+
|
|
1418
|
+
if reply_to_message_id is None and quote:
|
|
1419
|
+
reply_to_message_id = self.id
|
|
1420
|
+
|
|
1421
|
+
message_thread_id = None
|
|
1422
|
+
if self.message_thread_id:
|
|
1423
|
+
message_thread_id = self.message_thread_id
|
|
1424
|
+
|
|
1425
|
+
chat_id = self.chat.id
|
|
1426
|
+
reply_to_chat_id = None
|
|
1427
|
+
if reply_in_chat_id is not None:
|
|
1428
|
+
chat_id = reply_in_chat_id
|
|
1429
|
+
reply_to_chat_id = self.chat.id
|
|
1430
|
+
|
|
1431
|
+
return await self._client.send_sticker(
|
|
1432
|
+
chat_id=chat_id,
|
|
1433
|
+
sticker=sticker,
|
|
1434
|
+
disable_notification=disable_notification,
|
|
1435
|
+
message_thread_id=message_thread_id,
|
|
1436
|
+
reply_to_message_id=reply_to_message_id,
|
|
1437
|
+
reply_to_chat_id=reply_to_chat_id,
|
|
1438
|
+
quote_text=quote_text,
|
|
1439
|
+
quote_entities=quote_entities,
|
|
1440
|
+
parse_mode=parse_mode,
|
|
1441
|
+
reply_markup=reply_markup,
|
|
1442
|
+
progress=progress,
|
|
1443
|
+
progress_args=progress_args
|
|
1444
|
+
)
|
|
1445
|
+
|
|
1446
|
+
async def reply_video(
|
|
1447
|
+
self,
|
|
1448
|
+
video: Union[str, BinaryIO],
|
|
1449
|
+
quote: bool = None,
|
|
1450
|
+
caption: str = "",
|
|
1451
|
+
parse_mode: Optional["enums.ParseMode"] = None,
|
|
1452
|
+
caption_entities: List["types.MessageEntity"] = None,
|
|
1453
|
+
has_spoiler: bool = None,
|
|
1454
|
+
ttl_seconds: int = None,
|
|
1455
|
+
duration: int = 0,
|
|
1456
|
+
width: int = 0,
|
|
1457
|
+
height: int = 0,
|
|
1458
|
+
thumb: Union[str, BinaryIO] = None,
|
|
1459
|
+
file_name: str = None,
|
|
1460
|
+
supports_streaming: bool = True,
|
|
1461
|
+
disable_notification: bool = None,
|
|
1462
|
+
reply_to_message_id: int = None,
|
|
1463
|
+
reply_in_chat_id: Union[int, str] = None,
|
|
1464
|
+
quote_text: str = None,
|
|
1465
|
+
quote_entities: List["types.MessageEntity"] = None,
|
|
1466
|
+
invert_media: bool = None,
|
|
1467
|
+
reply_markup: Union[
|
|
1468
|
+
"types.InlineKeyboardMarkup",
|
|
1469
|
+
"types.ReplyKeyboardMarkup",
|
|
1470
|
+
"types.ReplyKeyboardRemove",
|
|
1471
|
+
"types.ForceReply"
|
|
1472
|
+
] = None,
|
|
1473
|
+
progress: Callable = None,
|
|
1474
|
+
progress_args: tuple = ()
|
|
1475
|
+
) -> "Message":
|
|
1476
|
+
if quote is None:
|
|
1477
|
+
quote = self.chat.type != enums.ChatType.PRIVATE
|
|
1478
|
+
|
|
1479
|
+
if reply_to_message_id is None and quote:
|
|
1480
|
+
reply_to_message_id = self.id
|
|
1481
|
+
|
|
1482
|
+
message_thread_id = None
|
|
1483
|
+
if self.message_thread_id:
|
|
1484
|
+
message_thread_id = self.message_thread_id
|
|
1485
|
+
|
|
1486
|
+
chat_id = self.chat.id
|
|
1487
|
+
reply_to_chat_id = None
|
|
1488
|
+
if reply_in_chat_id is not None:
|
|
1489
|
+
chat_id = reply_in_chat_id
|
|
1490
|
+
reply_to_chat_id = self.chat.id
|
|
1491
|
+
|
|
1492
|
+
return await self._client.send_video(
|
|
1493
|
+
chat_id=chat_id,
|
|
1494
|
+
video=video,
|
|
1495
|
+
caption=caption,
|
|
1496
|
+
parse_mode=parse_mode,
|
|
1497
|
+
caption_entities=caption_entities,
|
|
1498
|
+
has_spoiler=has_spoiler,
|
|
1499
|
+
ttl_seconds=ttl_seconds,
|
|
1500
|
+
duration=duration,
|
|
1501
|
+
width=width,
|
|
1502
|
+
height=height,
|
|
1503
|
+
thumb=thumb,
|
|
1504
|
+
file_name=file_name,
|
|
1505
|
+
supports_streaming=supports_streaming,
|
|
1506
|
+
disable_notification=disable_notification,
|
|
1507
|
+
message_thread_id=message_thread_id,
|
|
1508
|
+
reply_to_message_id=reply_to_message_id,
|
|
1509
|
+
reply_to_chat_id=reply_to_chat_id,
|
|
1510
|
+
quote_text=quote_text,
|
|
1511
|
+
quote_entities=quote_entities,
|
|
1512
|
+
invert_media=invert_media,
|
|
1513
|
+
reply_markup=reply_markup,
|
|
1514
|
+
progress=progress,
|
|
1515
|
+
progress_args=progress_args
|
|
1516
|
+
)
|
|
1517
|
+
|
|
1518
|
+
async def reply_video_note(
|
|
1519
|
+
self,
|
|
1520
|
+
video_note: Union[str, BinaryIO],
|
|
1521
|
+
quote: bool = None,
|
|
1522
|
+
duration: int = 0,
|
|
1523
|
+
length: int = 1,
|
|
1524
|
+
thumb: Union[str, BinaryIO] = None,
|
|
1525
|
+
disable_notification: bool = None,
|
|
1526
|
+
reply_to_message_id: int = None,
|
|
1527
|
+
reply_in_chat_id: Union[int, str] = None,
|
|
1528
|
+
quote_text: str = None,
|
|
1529
|
+
quote_entities: List["types.MessageEntity"] = None,
|
|
1530
|
+
parse_mode: Optional["enums.ParseMode"] = None,
|
|
1531
|
+
protect_content: bool = None,
|
|
1532
|
+
ttl_seconds: int = None,
|
|
1533
|
+
reply_markup: Union[
|
|
1534
|
+
"types.InlineKeyboardMarkup",
|
|
1535
|
+
"types.ReplyKeyboardMarkup",
|
|
1536
|
+
"types.ReplyKeyboardRemove",
|
|
1537
|
+
"types.ForceReply"
|
|
1538
|
+
] = None,
|
|
1539
|
+
progress: Callable = None,
|
|
1540
|
+
progress_args: tuple = ()
|
|
1541
|
+
) -> "Message":
|
|
1542
|
+
if quote is None:
|
|
1543
|
+
quote = self.chat.type != enums.ChatType.PRIVATE
|
|
1544
|
+
|
|
1545
|
+
if reply_to_message_id is None and quote:
|
|
1546
|
+
reply_to_message_id = self.id
|
|
1547
|
+
|
|
1548
|
+
message_thread_id = None
|
|
1549
|
+
if self.message_thread_id:
|
|
1550
|
+
message_thread_id = self.message_thread_id
|
|
1551
|
+
|
|
1552
|
+
chat_id = self.chat.id
|
|
1553
|
+
reply_to_chat_id = None
|
|
1554
|
+
if reply_in_chat_id is not None:
|
|
1555
|
+
chat_id = reply_in_chat_id
|
|
1556
|
+
reply_to_chat_id = self.chat.id
|
|
1557
|
+
|
|
1558
|
+
return await self._client.send_video_note(
|
|
1559
|
+
chat_id=chat_id,
|
|
1560
|
+
video_note=video_note,
|
|
1561
|
+
duration=duration,
|
|
1562
|
+
length=length,
|
|
1563
|
+
thumb=thumb,
|
|
1564
|
+
disable_notification=disable_notification,
|
|
1565
|
+
message_thread_id=message_thread_id,
|
|
1566
|
+
reply_to_message_id=reply_to_message_id,
|
|
1567
|
+
reply_to_chat_id=reply_to_chat_id,
|
|
1568
|
+
quote_text=quote_text,
|
|
1569
|
+
quote_entities=quote_entities,
|
|
1570
|
+
protect_content=protect_content,
|
|
1571
|
+
ttl_seconds=ttl_seconds,
|
|
1572
|
+
parse_mode=parse_mode,
|
|
1573
|
+
reply_markup=reply_markup,
|
|
1574
|
+
progress=progress,
|
|
1575
|
+
progress_args=progress_args
|
|
1576
|
+
)
|
|
1577
|
+
|
|
1578
|
+
async def reply_voice(
|
|
1579
|
+
self,
|
|
1580
|
+
voice: Union[str, BinaryIO],
|
|
1581
|
+
quote: bool = None,
|
|
1582
|
+
caption: str = "",
|
|
1583
|
+
parse_mode: Optional["enums.ParseMode"] = None,
|
|
1584
|
+
caption_entities: List["types.MessageEntity"] = None,
|
|
1585
|
+
duration: int = 0,
|
|
1586
|
+
disable_notification: bool = None,
|
|
1587
|
+
reply_to_message_id: int = None,
|
|
1588
|
+
reply_in_chat_id: Union[int, str] = None,
|
|
1589
|
+
quote_text: str = None,
|
|
1590
|
+
quote_entities: List["types.MessageEntity"] = None,
|
|
1591
|
+
reply_markup: Union[
|
|
1592
|
+
"types.InlineKeyboardMarkup",
|
|
1593
|
+
"types.ReplyKeyboardMarkup",
|
|
1594
|
+
"types.ReplyKeyboardRemove",
|
|
1595
|
+
"types.ForceReply"
|
|
1596
|
+
] = None,
|
|
1597
|
+
progress: Callable = None,
|
|
1598
|
+
progress_args: tuple = ()
|
|
1599
|
+
) -> "Message":
|
|
1600
|
+
if quote is None:
|
|
1601
|
+
quote = self.chat.type != enums.ChatType.PRIVATE
|
|
1602
|
+
|
|
1603
|
+
if reply_to_message_id is None and quote:
|
|
1604
|
+
reply_to_message_id = self.id
|
|
1605
|
+
|
|
1606
|
+
message_thread_id = None
|
|
1607
|
+
if self.message_thread_id:
|
|
1608
|
+
message_thread_id = self.message_thread_id
|
|
1609
|
+
|
|
1610
|
+
chat_id = self.chat.id
|
|
1611
|
+
reply_to_chat_id = None
|
|
1612
|
+
if reply_in_chat_id is not None:
|
|
1613
|
+
chat_id = reply_in_chat_id
|
|
1614
|
+
reply_to_chat_id = self.chat.id
|
|
1615
|
+
|
|
1616
|
+
return await self._client.send_voice(
|
|
1617
|
+
chat_id=chat_id,
|
|
1618
|
+
voice=voice,
|
|
1619
|
+
caption=caption,
|
|
1620
|
+
parse_mode=parse_mode,
|
|
1621
|
+
caption_entities=caption_entities,
|
|
1622
|
+
duration=duration,
|
|
1623
|
+
disable_notification=disable_notification,
|
|
1624
|
+
message_thread_id=message_thread_id,
|
|
1625
|
+
reply_to_message_id=reply_to_message_id,
|
|
1626
|
+
reply_to_chat_id=reply_to_chat_id,
|
|
1627
|
+
quote_text=quote_text,
|
|
1628
|
+
quote_entities=quote_entities,
|
|
1629
|
+
reply_markup=reply_markup,
|
|
1630
|
+
progress=progress,
|
|
1631
|
+
progress_args=progress_args
|
|
1632
|
+
)
|
|
1633
|
+
async def reply_web_page(
|
|
1634
|
+
self,
|
|
1635
|
+
url: str,
|
|
1636
|
+
text: str = "",
|
|
1637
|
+
quote: bool = None,
|
|
1638
|
+
parse_mode: Optional["enums.ParseMode"] = None,
|
|
1639
|
+
entities: List["types.MessageEntity"] = None,
|
|
1640
|
+
large_media: bool = None,
|
|
1641
|
+
invert_media: bool = None,
|
|
1642
|
+
disable_notification: bool = None,
|
|
1643
|
+
reply_to_message_id: int = None,
|
|
1644
|
+
reply_in_chat_id: Union[int, str] = None,
|
|
1645
|
+
quote_text: str = None,
|
|
1646
|
+
quote_entities: List["types.MessageEntity"] = None,
|
|
1647
|
+
schedule_date: datetime = None,
|
|
1648
|
+
protect_content: bool = None,
|
|
1649
|
+
reply_markup=None
|
|
1650
|
+
) -> "Message":
|
|
1651
|
+
if quote is None:
|
|
1652
|
+
quote = self.chat.type != enums.ChatType.PRIVATE
|
|
1653
|
+
|
|
1654
|
+
if reply_to_message_id is None and quote:
|
|
1655
|
+
reply_to_message_id = self.id
|
|
1656
|
+
|
|
1657
|
+
message_thread_id = None
|
|
1658
|
+
if self.message_thread_id:
|
|
1659
|
+
message_thread_id = self.message_thread_id
|
|
1660
|
+
|
|
1661
|
+
chat_id = self.chat.id
|
|
1662
|
+
reply_to_chat_id = None
|
|
1663
|
+
if reply_in_chat_id is not None:
|
|
1664
|
+
chat_id = reply_in_chat_id
|
|
1665
|
+
reply_to_chat_id = self.chat.id
|
|
1666
|
+
|
|
1667
|
+
return await self._client.send_web_page(
|
|
1668
|
+
chat_id=chat_id,
|
|
1669
|
+
url=url,
|
|
1670
|
+
text=text,
|
|
1671
|
+
parse_mode=parse_mode,
|
|
1672
|
+
entities=entities,
|
|
1673
|
+
large_media=large_media,
|
|
1674
|
+
invert_media=invert_media,
|
|
1675
|
+
disable_notification=disable_notification,
|
|
1676
|
+
message_thread_id=message_thread_id,
|
|
1677
|
+
reply_to_message_id=reply_to_message_id,
|
|
1678
|
+
reply_to_chat_id=reply_to_chat_id,
|
|
1679
|
+
quote_text=quote_text,
|
|
1680
|
+
quote_entities=quote_entities,
|
|
1681
|
+
schedule_date=schedule_date,
|
|
1682
|
+
protect_content=protect_content,
|
|
1683
|
+
reply_markup=reply_markup
|
|
1684
|
+
)
|
|
1685
|
+
|
|
1686
|
+
async def edit_text(
|
|
1687
|
+
self,
|
|
1688
|
+
text: str,
|
|
1689
|
+
parse_mode: Optional["enums.ParseMode"] = None,
|
|
1690
|
+
entities: List["types.MessageEntity"] = None,
|
|
1691
|
+
disable_web_page_preview: bool = None,
|
|
1692
|
+
invert_media: bool = None,
|
|
1693
|
+
reply_markup: "types.InlineKeyboardMarkup" = None
|
|
1694
|
+
) -> "Message":
|
|
1695
|
+
return await self._client.edit_message_text(
|
|
1696
|
+
chat_id=self.chat.id,
|
|
1697
|
+
message_id=self.id,
|
|
1698
|
+
text=text,
|
|
1699
|
+
parse_mode=parse_mode,
|
|
1700
|
+
entities=entities,
|
|
1701
|
+
disable_web_page_preview=disable_web_page_preview,
|
|
1702
|
+
invert_media=invert_media,
|
|
1703
|
+
reply_markup=reply_markup
|
|
1704
|
+
)
|
|
1705
|
+
|
|
1706
|
+
edit = edit_text
|
|
1707
|
+
|
|
1708
|
+
async def edit_caption(
|
|
1709
|
+
self,
|
|
1710
|
+
caption: str,
|
|
1711
|
+
parse_mode: Optional["enums.ParseMode"] = None,
|
|
1712
|
+
caption_entities: List["types.MessageEntity"] = None,
|
|
1713
|
+
invert_media: bool = None,
|
|
1714
|
+
reply_markup: "types.InlineKeyboardMarkup" = None
|
|
1715
|
+
) -> "Message":
|
|
1716
|
+
return await self._client.edit_message_caption(
|
|
1717
|
+
chat_id=self.chat.id,
|
|
1718
|
+
message_id=self.id,
|
|
1719
|
+
caption=caption,
|
|
1720
|
+
parse_mode=parse_mode,
|
|
1721
|
+
caption_entities=caption_entities,
|
|
1722
|
+
invert_media=invert_media,
|
|
1723
|
+
reply_markup=reply_markup
|
|
1724
|
+
)
|
|
1725
|
+
|
|
1726
|
+
async def edit_media(
|
|
1727
|
+
self,
|
|
1728
|
+
media: "types.InputMedia",
|
|
1729
|
+
parse_mode: Optional["enums.ParseMode"] = None,
|
|
1730
|
+
invert_media: bool = None,
|
|
1731
|
+
reply_markup: "types.InlineKeyboardMarkup" = None
|
|
1732
|
+
) -> "Message":
|
|
1733
|
+
return await self._client.edit_message_media(
|
|
1734
|
+
chat_id=self.chat.id,
|
|
1735
|
+
message_id=self.id,
|
|
1736
|
+
media=media,
|
|
1737
|
+
parse_mode=parse_mode,
|
|
1738
|
+
invert_media=invert_media,
|
|
1739
|
+
reply_markup=reply_markup
|
|
1740
|
+
)
|
|
1741
|
+
|
|
1742
|
+
async def edit_reply_markup(self, reply_markup: "types.InlineKeyboardMarkup" = None) -> "Message":
|
|
1743
|
+
return await self._client.edit_message_reply_markup(
|
|
1744
|
+
chat_id=self.chat.id,
|
|
1745
|
+
message_id=self.id,
|
|
1746
|
+
reply_markup=reply_markup
|
|
1747
|
+
)
|
|
1748
|
+
|
|
1749
|
+
async def forward(
|
|
1750
|
+
self,
|
|
1751
|
+
chat_id: Union[int, str],
|
|
1752
|
+
message_thread_id: int = None,
|
|
1753
|
+
disable_notification: bool = None,
|
|
1754
|
+
schedule_date: datetime = None,
|
|
1755
|
+
protect_content: bool = None,
|
|
1756
|
+
drop_author: bool = None
|
|
1757
|
+
) -> Union["types.Message", List["types.Message"]]:
|
|
1758
|
+
return await self._client.forward_messages(
|
|
1759
|
+
chat_id=chat_id,
|
|
1760
|
+
from_chat_id=self.chat.id,
|
|
1761
|
+
message_ids=self.id,
|
|
1762
|
+
message_thread_id=message_thread_id,
|
|
1763
|
+
disable_notification=disable_notification,
|
|
1764
|
+
schedule_date=schedule_date,
|
|
1765
|
+
protect_content=protect_content,
|
|
1766
|
+
drop_author=drop_author
|
|
1767
|
+
)
|
|
1768
|
+
|
|
1769
|
+
async def copy(
|
|
1770
|
+
self,
|
|
1771
|
+
chat_id: Union[int, str],
|
|
1772
|
+
caption: str = None,
|
|
1773
|
+
parse_mode: Optional["enums.ParseMode"] = None,
|
|
1774
|
+
caption_entities: List["types.MessageEntity"] = None,
|
|
1775
|
+
has_spoiler: bool = None,
|
|
1776
|
+
disable_notification: bool = None,
|
|
1777
|
+
message_thread_id: int = None,
|
|
1778
|
+
quote_text: str = None,
|
|
1779
|
+
quote_entities: List["types.MessageEntity"] = None,
|
|
1780
|
+
reply_to_message_id: int = None,
|
|
1781
|
+
schedule_date: datetime = None,
|
|
1782
|
+
protect_content: bool = None,
|
|
1783
|
+
invert_media: bool = None,
|
|
1784
|
+
reply_markup: Union[
|
|
1785
|
+
"types.InlineKeyboardMarkup",
|
|
1786
|
+
"types.ReplyKeyboardMarkup",
|
|
1787
|
+
"types.ReplyKeyboardRemove",
|
|
1788
|
+
"types.ForceReply"
|
|
1789
|
+
] = object
|
|
1790
|
+
) -> Union["types.Message", List["types.Message"]]:
|
|
1791
|
+
if self.service:
|
|
1792
|
+
log.warning("Service messages cannot be copied. chat_id: %s, message_id: %s",
|
|
1793
|
+
self.chat.id, self.id)
|
|
1794
|
+
elif self.game and not await self._client.storage.is_bot():
|
|
1795
|
+
log.warning("Users cannot send messages with Game media type. chat_id: %s, message_id: %s",
|
|
1796
|
+
self.chat.id, self.id)
|
|
1797
|
+
elif self.empty:
|
|
1798
|
+
log.warning("Empty messages cannot be copied.")
|
|
1799
|
+
elif self.text:
|
|
1800
|
+
return await self._client.send_message(
|
|
1801
|
+
chat_id,
|
|
1802
|
+
text=self.text,
|
|
1803
|
+
entities=self.entities,
|
|
1804
|
+
parse_mode=enums.ParseMode.DISABLED,
|
|
1805
|
+
disable_web_page_preview=not self.web_page_preview,
|
|
1806
|
+
disable_notification=disable_notification,
|
|
1807
|
+
message_thread_id=message_thread_id,
|
|
1808
|
+
reply_to_message_id=reply_to_message_id,
|
|
1809
|
+
quote_text=quote_text,
|
|
1810
|
+
quote_entities=quote_entities,
|
|
1811
|
+
schedule_date=schedule_date,
|
|
1812
|
+
protect_content=protect_content,
|
|
1813
|
+
reply_markup=self.reply_markup if reply_markup is object else reply_markup
|
|
1814
|
+
)
|
|
1815
|
+
elif self.media:
|
|
1816
|
+
send_media = partial(
|
|
1817
|
+
self._client.send_cached_media,
|
|
1818
|
+
chat_id=chat_id,
|
|
1819
|
+
disable_notification=disable_notification,
|
|
1820
|
+
message_thread_id=message_thread_id,
|
|
1821
|
+
reply_to_message_id=reply_to_message_id,
|
|
1822
|
+
schedule_date=schedule_date,
|
|
1823
|
+
has_spoiler=has_spoiler,
|
|
1824
|
+
protect_content=protect_content,
|
|
1825
|
+
invert_media=invert_media,
|
|
1826
|
+
reply_markup=self.reply_markup if reply_markup is object else reply_markup
|
|
1827
|
+
)
|
|
1828
|
+
|
|
1829
|
+
if self.photo:
|
|
1830
|
+
file_id = self.photo.file_id
|
|
1831
|
+
elif self.audio:
|
|
1832
|
+
file_id = self.audio.file_id
|
|
1833
|
+
elif self.document:
|
|
1834
|
+
file_id = self.document.file_id
|
|
1835
|
+
elif self.video:
|
|
1836
|
+
file_id = self.video.file_id
|
|
1837
|
+
elif self.animation:
|
|
1838
|
+
file_id = self.animation.file_id
|
|
1839
|
+
elif self.voice:
|
|
1840
|
+
file_id = self.voice.file_id
|
|
1841
|
+
elif self.sticker:
|
|
1842
|
+
file_id = self.sticker.file_id
|
|
1843
|
+
elif self.video_note:
|
|
1844
|
+
file_id = self.video_note.file_id
|
|
1845
|
+
elif self.contact:
|
|
1846
|
+
return await self._client.send_contact(
|
|
1847
|
+
chat_id,
|
|
1848
|
+
phone_number=self.contact.phone_number,
|
|
1849
|
+
first_name=self.contact.first_name,
|
|
1850
|
+
last_name=self.contact.last_name,
|
|
1851
|
+
vcard=self.contact.vcard,
|
|
1852
|
+
disable_notification=disable_notification,
|
|
1853
|
+
message_thread_id=message_thread_id,
|
|
1854
|
+
schedule_date=schedule_date
|
|
1855
|
+
)
|
|
1856
|
+
elif self.location:
|
|
1857
|
+
return await self._client.send_location(
|
|
1858
|
+
chat_id,
|
|
1859
|
+
latitude=self.location.latitude,
|
|
1860
|
+
longitude=self.location.longitude,
|
|
1861
|
+
disable_notification=disable_notification,
|
|
1862
|
+
message_thread_id=message_thread_id,
|
|
1863
|
+
schedule_date=schedule_date
|
|
1864
|
+
)
|
|
1865
|
+
elif self.web_page_preview:
|
|
1866
|
+
return await self._client.send_web_page(
|
|
1867
|
+
chat_id,
|
|
1868
|
+
url=self.web_page_preview.webpage.url,
|
|
1869
|
+
text=self.text,
|
|
1870
|
+
entities=self.entities,
|
|
1871
|
+
parse_mode=enums.ParseMode.DISABLED,
|
|
1872
|
+
large_media=self.web_page_preview.force_large_media,
|
|
1873
|
+
invert_media=self.web_page_preview.invert_media,
|
|
1874
|
+
disable_notification=disable_notification,
|
|
1875
|
+
message_thread_id=message_thread_id,
|
|
1876
|
+
reply_to_message_id=reply_to_message_id,
|
|
1877
|
+
quote_text=quote_text,
|
|
1878
|
+
quote_entities=quote_entities,
|
|
1879
|
+
schedule_date=schedule_date,
|
|
1880
|
+
protect_content=protect_content,
|
|
1881
|
+
reply_markup=self.reply_markup if reply_markup is object else reply_markup
|
|
1882
|
+
)
|
|
1883
|
+
else:
|
|
1884
|
+
raise ValueError("Unknown media type")
|
|
1885
|
+
|
|
1886
|
+
if self.sticker or self.video_note:
|
|
1887
|
+
return await send_media(
|
|
1888
|
+
file_id=file_id,
|
|
1889
|
+
message_thread_id=message_thread_id
|
|
1890
|
+
)
|
|
1891
|
+
else:
|
|
1892
|
+
if caption is None:
|
|
1893
|
+
caption = self.caption or ""
|
|
1894
|
+
caption_entities = self.caption_entities
|
|
1895
|
+
|
|
1896
|
+
return await send_media(
|
|
1897
|
+
file_id=file_id,
|
|
1898
|
+
caption=caption,
|
|
1899
|
+
parse_mode=parse_mode,
|
|
1900
|
+
caption_entities=caption_entities,
|
|
1901
|
+
has_spoiler=has_spoiler,
|
|
1902
|
+
message_thread_id=message_thread_id
|
|
1903
|
+
)
|
|
1904
|
+
else:
|
|
1905
|
+
raise ValueError("Can't copy this message")
|
|
1906
|
+
|
|
1907
|
+
async def delete(self, revoke: bool = True):
|
|
1908
|
+
return await self._client.delete_messages(
|
|
1909
|
+
chat_id=self.chat.id,
|
|
1910
|
+
message_ids=self.id,
|
|
1911
|
+
revoke=revoke
|
|
1912
|
+
)
|
|
1913
|
+
|
|
1914
|
+
async def click(
|
|
1915
|
+
self,
|
|
1916
|
+
x: Union[int, str] = 0,
|
|
1917
|
+
y: int = None,
|
|
1918
|
+
quote: bool = None,
|
|
1919
|
+
timeout: int = 10,
|
|
1920
|
+
request_write_access: bool = True,
|
|
1921
|
+
password: str = None
|
|
1922
|
+
):
|
|
1923
|
+
if isinstance(self.reply_markup, types.ReplyKeyboardMarkup):
|
|
1924
|
+
keyboard = self.reply_markup.keyboard
|
|
1925
|
+
is_inline = False
|
|
1926
|
+
elif isinstance(self.reply_markup, types.InlineKeyboardMarkup):
|
|
1927
|
+
keyboard = self.reply_markup.inline_keyboard
|
|
1928
|
+
is_inline = True
|
|
1929
|
+
else:
|
|
1930
|
+
raise ValueError("The message doesn't contain any keyboard")
|
|
1931
|
+
|
|
1932
|
+
if isinstance(x, int) and y is None:
|
|
1933
|
+
try:
|
|
1934
|
+
button = [
|
|
1935
|
+
button
|
|
1936
|
+
for row in keyboard
|
|
1937
|
+
for button in row
|
|
1938
|
+
][x]
|
|
1939
|
+
except IndexError:
|
|
1940
|
+
raise ValueError(f"The button at index {x} doesn't exist")
|
|
1941
|
+
elif isinstance(x, int) and isinstance(y, int):
|
|
1942
|
+
try:
|
|
1943
|
+
button = keyboard[y][x]
|
|
1944
|
+
except IndexError:
|
|
1945
|
+
raise ValueError(f"The button at position ({x}, {y}) doesn't exist")
|
|
1946
|
+
elif isinstance(x, str) and y is None:
|
|
1947
|
+
label = x.encode("utf-16", "surrogatepass").decode("utf-16")
|
|
1948
|
+
|
|
1949
|
+
try:
|
|
1950
|
+
button = [
|
|
1951
|
+
button
|
|
1952
|
+
for row in keyboard
|
|
1953
|
+
for button in row
|
|
1954
|
+
if label == button.text
|
|
1955
|
+
][0]
|
|
1956
|
+
except IndexError:
|
|
1957
|
+
raise ValueError(f"The button with label '{x}' doesn't exists")
|
|
1958
|
+
else:
|
|
1959
|
+
raise ValueError("Invalid arguments")
|
|
1960
|
+
|
|
1961
|
+
if is_inline:
|
|
1962
|
+
if button.callback_data:
|
|
1963
|
+
return await self._client.request_callback_answer(
|
|
1964
|
+
chat_id=self.chat.id,
|
|
1965
|
+
message_id=self.id,
|
|
1966
|
+
callback_data=button.callback_data,
|
|
1967
|
+
timeout=timeout
|
|
1968
|
+
)
|
|
1969
|
+
elif button.requires_password:
|
|
1970
|
+
if password is None:
|
|
1971
|
+
raise ValueError(
|
|
1972
|
+
"This button requires a password"
|
|
1973
|
+
)
|
|
1974
|
+
|
|
1975
|
+
return await self._client.request_callback_answer(
|
|
1976
|
+
chat_id=self.chat.id,
|
|
1977
|
+
message_id=self.id,
|
|
1978
|
+
callback_data=button.callback_data,
|
|
1979
|
+
password=password,
|
|
1980
|
+
timeout=timeout
|
|
1981
|
+
)
|
|
1982
|
+
elif button.url:
|
|
1983
|
+
return button.url
|
|
1984
|
+
elif button.web_app:
|
|
1985
|
+
web_app = button.web_app
|
|
1986
|
+
|
|
1987
|
+
bot_peer_id = (
|
|
1988
|
+
self.via_bot and
|
|
1989
|
+
self.via_bot.id
|
|
1990
|
+
) or (
|
|
1991
|
+
self.from_user and
|
|
1992
|
+
self.from_user.is_bot and
|
|
1993
|
+
self.from_user.id
|
|
1994
|
+
) or None
|
|
1995
|
+
|
|
1996
|
+
if not bot_peer_id:
|
|
1997
|
+
raise ValueError(
|
|
1998
|
+
"This button requires a bot as the sender"
|
|
1999
|
+
)
|
|
2000
|
+
|
|
2001
|
+
r = await self._client.invoke(
|
|
2002
|
+
raw.functions.messages.RequestWebView(
|
|
2003
|
+
peer=await self._client.resolve_peer(self.chat.id),
|
|
2004
|
+
bot=await self._client.resolve_peer(bot_peer_id),
|
|
2005
|
+
url=web_app.url,
|
|
2006
|
+
platform=self._client.client_platform.value,
|
|
2007
|
+
# TODO
|
|
2008
|
+
)
|
|
2009
|
+
)
|
|
2010
|
+
return r.url
|
|
2011
|
+
elif button.user_id:
|
|
2012
|
+
return await self._client.get_chat(
|
|
2013
|
+
button.user_id,
|
|
2014
|
+
force_full=False
|
|
2015
|
+
)
|
|
2016
|
+
elif button.switch_inline_query:
|
|
2017
|
+
return button.switch_inline_query
|
|
2018
|
+
elif button.switch_inline_query_current_chat:
|
|
2019
|
+
return button.switch_inline_query_current_chat
|
|
2020
|
+
else:
|
|
2021
|
+
raise ValueError("This button is not supported yet")
|
|
2022
|
+
else:
|
|
2023
|
+
await self.reply(text=button, quote=quote)
|
|
2024
|
+
|
|
2025
|
+
async def react(self, emoji: str = "", big: bool = False, add_to_recent: bool = True) -> "types.MessageReactions":
|
|
2026
|
+
return await self._client.send_reaction(
|
|
2027
|
+
chat_id=self.chat.id,
|
|
2028
|
+
message_id=self.id,
|
|
2029
|
+
emoji=emoji,
|
|
2030
|
+
big=big
|
|
2031
|
+
)
|
|
2032
|
+
|
|
2033
|
+
async def download(
|
|
2034
|
+
self,
|
|
2035
|
+
file_name: str = "",
|
|
2036
|
+
in_memory: bool = False,
|
|
2037
|
+
block: bool = True,
|
|
2038
|
+
progress: Callable = None,
|
|
2039
|
+
progress_args: tuple = ()
|
|
2040
|
+
) -> str:
|
|
2041
|
+
return await self._client.download_media(
|
|
2042
|
+
message=self,
|
|
2043
|
+
file_name=file_name,
|
|
2044
|
+
in_memory=in_memory,
|
|
2045
|
+
block=block,
|
|
2046
|
+
progress=progress,
|
|
2047
|
+
progress_args=progress_args,
|
|
2048
|
+
)
|
|
2049
|
+
|
|
2050
|
+
async def pin(self, disable_notification: bool = False, both_sides: bool = False) -> "types.Message":
|
|
2051
|
+
return await self._client.pin_chat_message(
|
|
2052
|
+
chat_id=self.chat.id,
|
|
2053
|
+
message_id=self.id,
|
|
2054
|
+
disable_notification=disable_notification,
|
|
2055
|
+
both_sides=both_sides
|
|
2056
|
+
)
|
|
2057
|
+
|
|
2058
|
+
async def unpin(self) -> bool:
|
|
2059
|
+
return await self._client.unpin_chat_message(
|
|
2060
|
+
chat_id=self.chat.id,
|
|
2061
|
+
message_id=self.id
|
|
2062
|
+
)
|
|
2063
|
+
|
|
2064
|
+
async def ask(
|
|
2065
|
+
self,
|
|
2066
|
+
text: str,
|
|
2067
|
+
quote: bool = None,
|
|
2068
|
+
parse_mode: Optional["enums.ParseMode"] = None,
|
|
2069
|
+
entities: List["types.MessageEntity"] = None,
|
|
2070
|
+
disable_web_page_preview: bool = None,
|
|
2071
|
+
disable_notification: bool = None,
|
|
2072
|
+
reply_to_message_id: int = None,
|
|
2073
|
+
reply_markup=None,
|
|
2074
|
+
filters=None,
|
|
2075
|
+
timeout: int = None
|
|
2076
|
+
) -> "Message":
|
|
2077
|
+
if quote is None:
|
|
2078
|
+
quote = self.chat.type != "private"
|
|
2079
|
+
|
|
2080
|
+
if reply_to_message_id is None and quote:
|
|
2081
|
+
reply_to_message_id = self.id
|
|
2082
|
+
|
|
2083
|
+
request = await self._client.send_message(
|
|
2084
|
+
chat_id=self.chat.id,
|
|
2085
|
+
text=text,
|
|
2086
|
+
parse_mode=parse_mode,
|
|
2087
|
+
entities=entities,
|
|
2088
|
+
disable_web_page_preview=disable_web_page_preview,
|
|
2089
|
+
disable_notification=disable_notification,
|
|
2090
|
+
reply_to_message_id=reply_to_message_id,
|
|
2091
|
+
reply_markup=reply_markup
|
|
2092
|
+
)
|
|
2093
|
+
|
|
2094
|
+
reply_message = await self._client.wait_for_message(
|
|
2095
|
+
self.chat.id,
|
|
2096
|
+
filters=filters,
|
|
2097
|
+
timeout=timeout
|
|
2098
|
+
)
|
|
2099
|
+
|
|
2100
|
+
reply_message.request = request
|
|
2101
|
+
return reply_message
|