pixlib 1.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.
- pixlib/Pix/__init__.py +33 -0
- pixlib/Pix/_wrappers.py +82 -0
- pixlib/Pix/assistant/__init__.py +0 -0
- pixlib/Pix/assistant/callback.py +147 -0
- pixlib/Pix/assistant/host.py +29 -0
- pixlib/Pix/autobot.py +131 -0
- pixlib/Pix/database/__init__.py +783 -0
- pixlib/Pix/database/fitersdb.py +76 -0
- pixlib/Pix/database/gbandb.py +23 -0
- pixlib/Pix/database/global.py +42 -0
- pixlib/Pix/database/gmutedb.py +16 -0
- pixlib/Pix/database/notesdb.py +73 -0
- pixlib/Pix/database/pm_permit.py +23 -0
- pixlib/Pix/database/pmpermit.py +82 -0
- pixlib/Pix/database/slr.py +24 -0
- pixlib/Pix/database/sudodb.py +27 -0
- pixlib/Pix/filter.py +57 -0
- pixlib/Pix/helper/PyroHelpers.py +65 -0
- pixlib/Pix/helper/__init__.py +20 -0
- pixlib/Pix/helper/adminHelpers.py +68 -0
- pixlib/Pix/helper/aiohttp_helper.py +36 -0
- pixlib/Pix/helper/basic.py +55 -0
- pixlib/Pix/helper/constants.py +429 -0
- pixlib/Pix/helper/data.py +8 -0
- pixlib/Pix/helper/inline.py +98 -0
- pixlib/Pix/helper/inline2.py +97 -0
- pixlib/Pix/helper/interval.py +37 -0
- pixlib/Pix/helper/parser.py +22 -0
- pixlib/Pix/helper/pluginhelper.py +169 -0
- pixlib/Pix/helper/utility.py +81 -0
- pixlib/Pix/helper/what.py +84 -0
- pixlib/Pix/utils/__init__.py +4 -0
- pixlib/Pix/utils/extra.py +134 -0
- pixlib/Pix/utils/kang_copas.py +290 -0
- pixlib/Pix/utils/misc.py +142 -0
- pixlib/Pix/utils/pixlogs.py +39 -0
- pixlib/Pix/utils/tools.py +364 -0
- pixlib/__init__.py +65 -0
- pixlib/assistant.py +208 -0
- pixlib/client.py +1024 -0
- pixlib/connection/__init__.py +1 -0
- pixlib/connection/connection.py +68 -0
- pixlib/connection/transport/__init__.py +1 -0
- pixlib/connection/transport/tcp/__init__.py +6 -0
- pixlib/connection/transport/tcp/tcp.py +107 -0
- pixlib/connection/transport/tcp/tcp_abridged.py +39 -0
- pixlib/connection/transport/tcp/tcp_abridged_o.py +68 -0
- pixlib/connection/transport/tcp/tcp_full.py +46 -0
- pixlib/connection/transport/tcp/tcp_intermediate.py +27 -0
- pixlib/connection/transport/tcp/tcp_intermediate_o.py +61 -0
- pixlib/crypto/__init__.py +1 -0
- pixlib/crypto/aes.py +112 -0
- pixlib/crypto/mtproto.py +109 -0
- pixlib/crypto/prime.py +64 -0
- pixlib/crypto/rsa.py +193 -0
- pixlib/dispatcher.py +245 -0
- pixlib/emoji.py +4001 -0
- pixlib/enums/__init__.py +31 -0
- pixlib/enums/auto_name.py +9 -0
- pixlib/enums/chat_action.py +54 -0
- pixlib/enums/chat_event_action.py +109 -0
- pixlib/enums/chat_member_status.py +25 -0
- pixlib/enums/chat_members_filter.py +24 -0
- pixlib/enums/chat_type.py +22 -0
- pixlib/enums/message_entity_type.py +66 -0
- pixlib/enums/message_media_type.py +52 -0
- pixlib/enums/message_service_type.py +55 -0
- pixlib/enums/messages_filter.py +57 -0
- pixlib/enums/msg_types.py +239 -0
- pixlib/enums/next_code_type.py +18 -0
- pixlib/enums/parse_mode.py +19 -0
- pixlib/enums/poll_type.py +13 -0
- pixlib/enums/sent_code_type.py +21 -0
- pixlib/enums/user_status.py +25 -0
- pixlib/errors/__init__.py +52 -0
- pixlib/errors/exceptions/__init__.py +26 -0
- pixlib/errors/exceptions/all.py +505 -0
- pixlib/errors/exceptions/bad_request_400.py +2513 -0
- pixlib/errors/exceptions/flood_420.py +63 -0
- pixlib/errors/exceptions/forbidden_403.py +217 -0
- pixlib/errors/exceptions/internal_server_error_500.py +336 -0
- pixlib/errors/exceptions/not_acceptable_406.py +112 -0
- pixlib/errors/exceptions/see_other_303.py +63 -0
- pixlib/errors/exceptions/service_unavailable_503.py +42 -0
- pixlib/errors/exceptions/unauthorized_401.py +91 -0
- pixlib/errors/rpc_error.py +85 -0
- pixlib/file_id.py +463 -0
- pixlib/filters.py +899 -0
- pixlib/handlers/__init__.py +13 -0
- pixlib/handlers/callback_query_handler.py +31 -0
- pixlib/handlers/chat_join_request_handler.py +31 -0
- pixlib/handlers/chat_member_updated_handler.py +31 -0
- pixlib/handlers/chosen_inline_result_handler.py +32 -0
- pixlib/handlers/conversation_handler.py +50 -0
- pixlib/handlers/deleted_messages_handler.py +43 -0
- pixlib/handlers/disconnect_handler.py +25 -0
- pixlib/handlers/edited_message_handler.py +31 -0
- pixlib/handlers/handler.py +25 -0
- pixlib/handlers/inline_query_handler.py +31 -0
- pixlib/handlers/message_handler.py +46 -0
- pixlib/handlers/poll_handler.py +32 -0
- pixlib/handlers/raw_update_handler.py +49 -0
- pixlib/handlers/user_status_handler.py +29 -0
- pixlib/methods/__init__.py +27 -0
- pixlib/methods/advanced/__init__.py +11 -0
- pixlib/methods/advanced/invoke.py +71 -0
- pixlib/methods/advanced/resolve_peer.py +107 -0
- pixlib/methods/advanced/save_file.py +212 -0
- pixlib/methods/auth/__init__.py +35 -0
- pixlib/methods/auth/accept_terms_of_service.py +26 -0
- pixlib/methods/auth/check_password.py +42 -0
- pixlib/methods/auth/connect.py +33 -0
- pixlib/methods/auth/disconnect.py +22 -0
- pixlib/methods/auth/get_password_hint.py +20 -0
- pixlib/methods/auth/initialize.py +31 -0
- pixlib/methods/auth/log_out.py +33 -0
- pixlib/methods/auth/recover_password.py +39 -0
- pixlib/methods/auth/resend_code.py +46 -0
- pixlib/methods/auth/send_code.py +61 -0
- pixlib/methods/auth/send_recovery_code.py +25 -0
- pixlib/methods/auth/sign_in.py +62 -0
- pixlib/methods/auth/sign_in_bot.py +61 -0
- pixlib/methods/auth/sign_up.py +55 -0
- pixlib/methods/auth/terminate.py +36 -0
- pixlib/methods/bots/__init__.py +37 -0
- pixlib/methods/bots/answer_callback_query.py +63 -0
- pixlib/methods/bots/answer_inline_query.py +94 -0
- pixlib/methods/bots/answer_web_app_query.py +35 -0
- pixlib/methods/bots/delete_bot_commands.py +44 -0
- pixlib/methods/bots/get_bot_commands.py +49 -0
- pixlib/methods/bots/get_bot_default_privileges.py +41 -0
- pixlib/methods/bots/get_chat_menu_button.py +48 -0
- pixlib/methods/bots/get_game_high_scores.py +54 -0
- pixlib/methods/bots/get_inline_bot_results.py +74 -0
- pixlib/methods/bots/request_callback_answer.py +59 -0
- pixlib/methods/bots/send_game.py +82 -0
- pixlib/methods/bots/send_inline_bot_result.py +57 -0
- pixlib/methods/bots/set_bot_commands.py +55 -0
- pixlib/methods/bots/set_bot_default_privileges.py +63 -0
- pixlib/methods/bots/set_chat_menu_button.py +38 -0
- pixlib/methods/bots/set_game_score.py +82 -0
- pixlib/methods/chats/__init__.py +83 -0
- pixlib/methods/chats/add_chat_members.py +72 -0
- pixlib/methods/chats/archive_chats.py +53 -0
- pixlib/methods/chats/ban_chat_member.py +93 -0
- pixlib/methods/chats/create_channel.py +40 -0
- pixlib/methods/chats/create_group.py +49 -0
- pixlib/methods/chats/create_supergroup.py +44 -0
- pixlib/methods/chats/delete_channel.py +34 -0
- pixlib/methods/chats/delete_chat_photo.py +52 -0
- pixlib/methods/chats/delete_supergroup.py +34 -0
- pixlib/methods/chats/delete_user_history.py +37 -0
- pixlib/methods/chats/get_chat.py +69 -0
- pixlib/methods/chats/get_chat_event_log.py +91 -0
- pixlib/methods/chats/get_chat_member.py +74 -0
- pixlib/methods/chats/get_chat_members.py +140 -0
- pixlib/methods/chats/get_chat_members_count.py +51 -0
- pixlib/methods/chats/get_chat_online_count.py +33 -0
- pixlib/methods/chats/get_dialogs.py +86 -0
- pixlib/methods/chats/get_dialogs_count.py +45 -0
- pixlib/methods/chats/get_nearby_chats.py +60 -0
- pixlib/methods/chats/get_send_as_chats.py +47 -0
- pixlib/methods/chats/join_chat.py +56 -0
- pixlib/methods/chats/leave_chat.py +59 -0
- pixlib/methods/chats/mark_chat_unread.py +29 -0
- pixlib/methods/chats/pin_chat_message.py +63 -0
- pixlib/methods/chats/promote_chat_member.py +83 -0
- pixlib/methods/chats/restrict_chat_member.py +81 -0
- pixlib/methods/chats/set_administrator_title.py +67 -0
- pixlib/methods/chats/set_chat_description.py +48 -0
- pixlib/methods/chats/set_chat_permissions.py +69 -0
- pixlib/methods/chats/set_chat_photo.py +103 -0
- pixlib/methods/chats/set_chat_protected_content.py +35 -0
- pixlib/methods/chats/set_chat_title.py +60 -0
- pixlib/methods/chats/set_chat_username.py +50 -0
- pixlib/methods/chats/set_send_as_chat.py +39 -0
- pixlib/methods/chats/set_slow_mode.py +45 -0
- pixlib/methods/chats/unarchive_chats.py +53 -0
- pixlib/methods/chats/unban_chat_member.py +46 -0
- pixlib/methods/chats/unpin_all_chat_messages.py +37 -0
- pixlib/methods/chats/unpin_chat_message.py +43 -0
- pixlib/methods/contacts/__init__.py +15 -0
- pixlib/methods/contacts/add_contact.py +60 -0
- pixlib/methods/contacts/delete_contacts.py +48 -0
- pixlib/methods/contacts/get_contacts.py +29 -0
- pixlib/methods/contacts/get_contacts_count.py +23 -0
- pixlib/methods/contacts/import_contacts.py +40 -0
- pixlib/methods/decorators/__init__.py +29 -0
- pixlib/methods/decorators/on_callback_query.py +43 -0
- pixlib/methods/decorators/on_chat_join_request.py +42 -0
- pixlib/methods/decorators/on_chat_member_updated.py +42 -0
- pixlib/methods/decorators/on_chosen_inline_result.py +43 -0
- pixlib/methods/decorators/on_deleted_messages.py +43 -0
- pixlib/methods/decorators/on_disconnect.py +25 -0
- pixlib/methods/decorators/on_edited_message.py +43 -0
- pixlib/methods/decorators/on_inline_query.py +43 -0
- pixlib/methods/decorators/on_message.py +43 -0
- pixlib/methods/decorators/on_poll.py +43 -0
- pixlib/methods/decorators/on_raw_update.py +37 -0
- pixlib/methods/decorators/on_user_status.py +41 -0
- pixlib/methods/invite_links/__init__.py +40 -0
- pixlib/methods/invite_links/approve_all_chat_join_requests.py +37 -0
- pixlib/methods/invite_links/approve_chat_join_request.py +39 -0
- pixlib/methods/invite_links/create_chat_invite_link.py +69 -0
- pixlib/methods/invite_links/decline_all_chat_join_requests.py +37 -0
- pixlib/methods/invite_links/decline_chat_join_request.py +39 -0
- pixlib/methods/invite_links/delete_chat_admin_invite_links.py +36 -0
- pixlib/methods/invite_links/delete_chat_invite_link.py +34 -0
- pixlib/methods/invite_links/edit_chat_invite_link.py +74 -0
- pixlib/methods/invite_links/export_chat_invite_link.py +47 -0
- pixlib/methods/invite_links/get_chat_admin_invite_links.py +82 -0
- pixlib/methods/invite_links/get_chat_admin_invite_links_count.py +44 -0
- pixlib/methods/invite_links/get_chat_admins_with_invite_links.py +38 -0
- pixlib/methods/invite_links/get_chat_invite_link.py +38 -0
- pixlib/methods/invite_links/get_chat_invite_link_joiners.py +69 -0
- pixlib/methods/invite_links/get_chat_invite_link_joiners_count.py +38 -0
- pixlib/methods/invite_links/get_chat_join_requests.py +70 -0
- pixlib/methods/invite_links/revoke_chat_invite_link.py +50 -0
- pixlib/methods/messages/__init__.py +105 -0
- pixlib/methods/messages/copy_media_group.py +122 -0
- pixlib/methods/messages/copy_message.py +103 -0
- pixlib/methods/messages/delete_messages.py +66 -0
- pixlib/methods/messages/download_media.py +169 -0
- pixlib/methods/messages/edit_inline_caption.py +47 -0
- pixlib/methods/messages/edit_inline_media.py +223 -0
- pixlib/methods/messages/edit_inline_reply_markup.py +51 -0
- pixlib/methods/messages/edit_inline_text.py +70 -0
- pixlib/methods/messages/edit_message_caption.py +58 -0
- pixlib/methods/messages/edit_message_media.py +260 -0
- pixlib/methods/messages/edit_message_reply_markup.py +59 -0
- pixlib/methods/messages/edit_message_text.py +80 -0
- pixlib/methods/messages/forward_messages.py +92 -0
- pixlib/methods/messages/get_chat_history.py +103 -0
- pixlib/methods/messages/get_chat_history_count.py +54 -0
- pixlib/methods/messages/get_custom_emoji_stickers.py +37 -0
- pixlib/methods/messages/get_discussion_message.py +47 -0
- pixlib/methods/messages/get_discussion_replies.py +68 -0
- pixlib/methods/messages/get_discussion_replies_count.py +44 -0
- pixlib/methods/messages/get_media_group.py +55 -0
- pixlib/methods/messages/get_messages.py +101 -0
- pixlib/methods/messages/inline_session.py +46 -0
- pixlib/methods/messages/read_chat_history.py +55 -0
- pixlib/methods/messages/retract_vote.py +43 -0
- pixlib/methods/messages/search_global.py +99 -0
- pixlib/methods/messages/search_global_count.py +44 -0
- pixlib/methods/messages/search_messages.py +133 -0
- pixlib/methods/messages/search_messages_count.py +66 -0
- pixlib/methods/messages/send_animation.py +246 -0
- pixlib/methods/messages/send_audio.py +224 -0
- pixlib/methods/messages/send_cached_media.py +106 -0
- pixlib/methods/messages/send_chat_action.py +62 -0
- pixlib/methods/messages/send_contact.py +103 -0
- pixlib/methods/messages/send_dice.py +98 -0
- pixlib/methods/messages/send_document.py +202 -0
- pixlib/methods/messages/send_location.py +95 -0
- pixlib/methods/messages/send_media_group.py +387 -0
- pixlib/methods/messages/send_message.py +159 -0
- pixlib/methods/messages/send_photo.py +179 -0
- pixlib/methods/messages/send_poll.py +163 -0
- pixlib/methods/messages/send_reaction.py +55 -0
- pixlib/methods/messages/send_sticker.py +161 -0
- pixlib/methods/messages/send_venue.py +119 -0
- pixlib/methods/messages/send_video.py +236 -0
- pixlib/methods/messages/send_video_note.py +185 -0
- pixlib/methods/messages/send_voice.py +186 -0
- pixlib/methods/messages/stop_poll.py +59 -0
- pixlib/methods/messages/stream_media.py +88 -0
- pixlib/methods/messages/vote_poll.py +51 -0
- pixlib/methods/messages/wait_for_callback_query.py +53 -0
- pixlib/methods/messages/wait_for_message.py +53 -0
- pixlib/methods/password/__init__.py +11 -0
- pixlib/methods/password/change_cloud_password.py +64 -0
- pixlib/methods/password/enable_cloud_password.py +70 -0
- pixlib/methods/password/remove_cloud_password.py +46 -0
- pixlib/methods/users/__init__.py +31 -0
- pixlib/methods/users/block_user.py +36 -0
- pixlib/methods/users/delete_profile_photos.py +45 -0
- pixlib/methods/users/get_chat_photos.py +117 -0
- pixlib/methods/users/get_chat_photos_count.py +56 -0
- pixlib/methods/users/get_common_chats.py +49 -0
- pixlib/methods/users/get_default_emoji_statuses.py +29 -0
- pixlib/methods/users/get_me.py +31 -0
- pixlib/methods/users/get_users.py +53 -0
- pixlib/methods/users/set_emoji_status.py +40 -0
- pixlib/methods/users/set_profile_photo.py +57 -0
- pixlib/methods/users/set_username.py +39 -0
- pixlib/methods/users/unblock_user.py +36 -0
- pixlib/methods/users/update_profile.py +54 -0
- pixlib/methods/utilities/__init__.py +21 -0
- pixlib/methods/utilities/add_handler.py +49 -0
- pixlib/methods/utilities/compose.py +60 -0
- pixlib/methods/utilities/export_session_string.py +22 -0
- pixlib/methods/utilities/idle.py +69 -0
- pixlib/methods/utilities/remove_handler.py +45 -0
- pixlib/methods/utilities/restart.py +54 -0
- pixlib/methods/utilities/run.py +68 -0
- pixlib/methods/utilities/start.py +58 -0
- pixlib/methods/utilities/stop.py +51 -0
- pixlib/methods/utilities/stop_transmission.py +25 -0
- pixlib/mime_types.py +1863 -0
- pixlib/parser/__init__.py +1 -0
- pixlib/parser/html.py +201 -0
- pixlib/parser/markdown.py +155 -0
- pixlib/parser/parser.py +43 -0
- pixlib/parser/utils.py +23 -0
- pixlib/pixy/__init__.py +24 -0
- pixlib/pixy/helpers/PyroHelpers.py +71 -0
- pixlib/pixy/helpers/SQL/__init__.py +44 -0
- pixlib/pixy/helpers/SQL/afk_db.py +54 -0
- pixlib/pixy/helpers/SQL/cloner_db.py +38 -0
- pixlib/pixy/helpers/SQL/filters_sql.py +70 -0
- pixlib/pixy/helpers/SQL/gban_sql.py +49 -0
- pixlib/pixy/helpers/SQL/globals.py +51 -0
- pixlib/pixy/helpers/SQL/gmute_sql.py +49 -0
- pixlib/pixy/helpers/SQL/no_log_pms_sql.py +39 -0
- pixlib/pixy/helpers/SQL/notes_sql.py +60 -0
- pixlib/pixy/helpers/SQL/pm_db.py +91 -0
- pixlib/pixy/helpers/SQL/pm_permit_sql.py +39 -0
- pixlib/pixy/helpers/SQL/pmstuff.py +106 -0
- pixlib/pixy/helpers/__init__.py +11 -0
- pixlib/pixy/helpers/adminHelpers.py +79 -0
- pixlib/pixy/helpers/basic.py +55 -0
- pixlib/pixy/helpers/constants.py +471 -0
- pixlib/pixy/helpers/data.py +12 -0
- pixlib/pixy/helpers/expand.py +9 -0
- pixlib/pixy/helpers/inline.py +97 -0
- pixlib/pixy/helpers/interval.py +37 -0
- pixlib/pixy/helpers/misc.py +133 -0
- pixlib/pixy/helpers/msg_types.py +239 -0
- pixlib/pixy/helpers/parser.py +22 -0
- pixlib/pixy/helpers/queue.py +32 -0
- pixlib/pixy/helpers/shorten.py +32 -0
- pixlib/pixy/helpers/tools.py +364 -0
- pixlib/pixy/helpers/utility.py +121 -0
- pixlib/pixy/helpers/what.py +65 -0
- pixlib/pixy/resources/__init__.py +1 -0
- pixlib/pixy/utils/__init__.py +6 -0
- pixlib/pixy/utils/aiorequests.py +63 -0
- pixlib/pixy/utils/extra.py +134 -0
- pixlib/pixy/utils/kang_copas.py +290 -0
- pixlib/pixy/utils/misc.py +115 -0
- pixlib/pixy/utils/pastebin.py +49 -0
- pixlib/pixy/utils/sections.py +23 -0
- pixlib/pixy/utils/tools.py +125 -0
- pixlib/py.typed +0 -0
- pixlib/raw/__init__.py +9 -0
- pixlib/raw/all.py +1614 -0
- pixlib/raw/base/__init__.py +295 -0
- pixlib/raw/base/access_point_rule.py +53 -0
- pixlib/raw/base/account/__init__.py +43 -0
- pixlib/raw/base/account/authorization_form.py +63 -0
- pixlib/raw/base/account/authorizations.py +63 -0
- pixlib/raw/base/account/auto_download_settings.py +63 -0
- pixlib/raw/base/account/content_settings.py +63 -0
- pixlib/raw/base/account/email_verified.py +64 -0
- pixlib/raw/base/account/emoji_statuses.py +65 -0
- pixlib/raw/base/account/password.py +63 -0
- pixlib/raw/base/account/password_input_settings.py +53 -0
- pixlib/raw/base/account/password_settings.py +63 -0
- pixlib/raw/base/account/privacy_rules.py +64 -0
- pixlib/raw/base/account/reset_password_result.py +65 -0
- pixlib/raw/base/account/saved_ringtone.py +64 -0
- pixlib/raw/base/account/saved_ringtones.py +64 -0
- pixlib/raw/base/account/sent_email_code.py +63 -0
- pixlib/raw/base/account/takeout.py +63 -0
- pixlib/raw/base/account/themes.py +65 -0
- pixlib/raw/base/account/tmp_password.py +63 -0
- pixlib/raw/base/account/wall_papers.py +64 -0
- pixlib/raw/base/account/web_authorizations.py +63 -0
- pixlib/raw/base/account_days_ttl.py +63 -0
- pixlib/raw/base/attach_menu_bot.py +53 -0
- pixlib/raw/base/attach_menu_bot_icon.py +53 -0
- pixlib/raw/base/attach_menu_bot_icon_color.py +53 -0
- pixlib/raw/base/attach_menu_bots.py +64 -0
- pixlib/raw/base/attach_menu_bots_bot.py +63 -0
- pixlib/raw/base/attach_menu_peer_type.py +57 -0
- pixlib/raw/base/auth/__init__.py +32 -0
- pixlib/raw/base/auth/authorization.py +69 -0
- pixlib/raw/base/auth/code_type.py +56 -0
- pixlib/raw/base/auth/exported_authorization.py +63 -0
- pixlib/raw/base/auth/logged_out.py +63 -0
- pixlib/raw/base/auth/login_token.py +66 -0
- pixlib/raw/base/auth/password_recovery.py +63 -0
- pixlib/raw/base/auth/sent_code.py +67 -0
- pixlib/raw/base/auth/sent_code_type.py +59 -0
- pixlib/raw/base/authorization.py +63 -0
- pixlib/raw/base/auto_download_settings.py +53 -0
- pixlib/raw/base/available_reaction.py +53 -0
- pixlib/raw/base/bad_msg_notification.py +54 -0
- pixlib/raw/base/bank_card_open_url.py +53 -0
- pixlib/raw/base/base_theme.py +57 -0
- pixlib/raw/base/bind_auth_key_inner.py +53 -0
- pixlib/raw/base/bot_command.py +63 -0
- pixlib/raw/base/bot_command_scope.py +59 -0
- pixlib/raw/base/bot_info.py +53 -0
- pixlib/raw/base/bot_inline_message.py +58 -0
- pixlib/raw/base/bot_inline_result.py +54 -0
- pixlib/raw/base/bot_menu_button.py +65 -0
- pixlib/raw/base/cdn_config.py +63 -0
- pixlib/raw/base/cdn_public_key.py +53 -0
- pixlib/raw/base/channel_admin_log_event.py +53 -0
- pixlib/raw/base/channel_admin_log_event_action.py +94 -0
- pixlib/raw/base/channel_admin_log_events_filter.py +53 -0
- pixlib/raw/base/channel_location.py +54 -0
- pixlib/raw/base/channel_messages_filter.py +54 -0
- pixlib/raw/base/channel_participant.py +58 -0
- pixlib/raw/base/channel_participants_filter.py +60 -0
- pixlib/raw/base/channels/__init__.py +28 -0
- pixlib/raw/base/channels/admin_log_results.py +63 -0
- pixlib/raw/base/channels/channel_participant.py +63 -0
- pixlib/raw/base/channels/channel_participants.py +64 -0
- pixlib/raw/base/channels/send_as_peers.py +63 -0
- pixlib/raw/base/chat.py +57 -0
- pixlib/raw/base/chat_admin_rights.py +53 -0
- pixlib/raw/base/chat_admin_with_invites.py +53 -0
- pixlib/raw/base/chat_banned_rights.py +53 -0
- pixlib/raw/base/chat_full.py +54 -0
- pixlib/raw/base/chat_invite.py +65 -0
- pixlib/raw/base/chat_invite_importer.py +53 -0
- pixlib/raw/base/chat_onlines.py +63 -0
- pixlib/raw/base/chat_participant.py +55 -0
- pixlib/raw/base/chat_participants.py +54 -0
- pixlib/raw/base/chat_photo.py +54 -0
- pixlib/raw/base/chat_reactions.py +55 -0
- pixlib/raw/base/client_dh_inner_data.py +53 -0
- pixlib/raw/base/code_settings.py +53 -0
- pixlib/raw/base/config.py +63 -0
- pixlib/raw/base/contact.py +53 -0
- pixlib/raw/base/contact_status.py +63 -0
- pixlib/raw/base/contacts/__init__.py +30 -0
- pixlib/raw/base/contacts/blocked.py +64 -0
- pixlib/raw/base/contacts/contacts.py +64 -0
- pixlib/raw/base/contacts/found.py +63 -0
- pixlib/raw/base/contacts/imported_contacts.py +63 -0
- pixlib/raw/base/contacts/resolved_peer.py +64 -0
- pixlib/raw/base/contacts/top_peers.py +65 -0
- pixlib/raw/base/data_json.py +64 -0
- pixlib/raw/base/dc_option.py +53 -0
- pixlib/raw/base/destroy_auth_key_res.py +65 -0
- pixlib/raw/base/destroy_session_res.py +64 -0
- pixlib/raw/base/dialog.py +54 -0
- pixlib/raw/base/dialog_filter.py +64 -0
- pixlib/raw/base/dialog_filter_suggested.py +63 -0
- pixlib/raw/base/dialog_peer.py +64 -0
- pixlib/raw/base/document.py +67 -0
- pixlib/raw/base/document_attribute.py +60 -0
- pixlib/raw/base/draft_message.py +54 -0
- pixlib/raw/base/email_verification.py +55 -0
- pixlib/raw/base/email_verify_purpose.py +55 -0
- pixlib/raw/base/emoji_keyword.py +54 -0
- pixlib/raw/base/emoji_keywords_difference.py +64 -0
- pixlib/raw/base/emoji_language.py +63 -0
- pixlib/raw/base/emoji_status.py +55 -0
- pixlib/raw/base/emoji_url.py +63 -0
- pixlib/raw/base/encrypted_chat.py +68 -0
- pixlib/raw/base/encrypted_file.py +64 -0
- pixlib/raw/base/encrypted_message.py +54 -0
- pixlib/raw/base/exported_chat_invite.py +64 -0
- pixlib/raw/base/exported_message_link.py +63 -0
- pixlib/raw/base/file_hash.py +65 -0
- pixlib/raw/base/folder.py +53 -0
- pixlib/raw/base/folder_peer.py +53 -0
- pixlib/raw/base/forum_topic.py +54 -0
- pixlib/raw/base/game.py +53 -0
- pixlib/raw/base/geo_point.py +54 -0
- pixlib/raw/base/global_privacy_settings.py +64 -0
- pixlib/raw/base/group_call.py +54 -0
- pixlib/raw/base/group_call_participant.py +53 -0
- pixlib/raw/base/group_call_participant_video.py +53 -0
- pixlib/raw/base/group_call_participant_video_source_group.py +53 -0
- pixlib/raw/base/group_call_stream_channel.py +53 -0
- pixlib/raw/base/help/__init__.py +40 -0
- pixlib/raw/base/help/app_update.py +64 -0
- pixlib/raw/base/help/config_simple.py +53 -0
- pixlib/raw/base/help/countries_list.py +64 -0
- pixlib/raw/base/help/country.py +53 -0
- pixlib/raw/base/help/country_code.py +53 -0
- pixlib/raw/base/help/deep_link_info.py +64 -0
- pixlib/raw/base/help/invite_text.py +63 -0
- pixlib/raw/base/help/passport_config.py +64 -0
- pixlib/raw/base/help/premium_promo.py +63 -0
- pixlib/raw/base/help/promo_data.py +64 -0
- pixlib/raw/base/help/recent_me_urls.py +63 -0
- pixlib/raw/base/help/support.py +63 -0
- pixlib/raw/base/help/support_name.py +63 -0
- pixlib/raw/base/help/terms_of_service.py +53 -0
- pixlib/raw/base/help/terms_of_service_update.py +64 -0
- pixlib/raw/base/help/user_info.py +65 -0
- pixlib/raw/base/high_score.py +53 -0
- pixlib/raw/base/http_wait.py +53 -0
- pixlib/raw/base/imported_contact.py +53 -0
- pixlib/raw/base/inline_bot_switch_pm.py +53 -0
- pixlib/raw/base/inline_query_peer_type.py +57 -0
- pixlib/raw/base/input_app_event.py +53 -0
- pixlib/raw/base/input_bot_inline_message.py +59 -0
- pixlib/raw/base/input_bot_inline_message_id.py +54 -0
- pixlib/raw/base/input_bot_inline_result.py +56 -0
- pixlib/raw/base/input_channel.py +55 -0
- pixlib/raw/base/input_chat_photo.py +55 -0
- pixlib/raw/base/input_check_password_srp.py +54 -0
- pixlib/raw/base/input_client_proxy.py +53 -0
- pixlib/raw/base/input_contact.py +53 -0
- pixlib/raw/base/input_dialog_peer.py +54 -0
- pixlib/raw/base/input_document.py +54 -0
- pixlib/raw/base/input_encrypted_chat.py +53 -0
- pixlib/raw/base/input_encrypted_file.py +56 -0
- pixlib/raw/base/input_file.py +54 -0
- pixlib/raw/base/input_file_location.py +62 -0
- pixlib/raw/base/input_folder_peer.py +53 -0
- pixlib/raw/base/input_game.py +54 -0
- pixlib/raw/base/input_geo_point.py +54 -0
- pixlib/raw/base/input_group_call.py +53 -0
- pixlib/raw/base/input_invoice.py +54 -0
- pixlib/raw/base/input_media.py +67 -0
- pixlib/raw/base/input_message.py +56 -0
- pixlib/raw/base/input_notify_peer.py +57 -0
- pixlib/raw/base/input_payment_credentials.py +56 -0
- pixlib/raw/base/input_peer.py +59 -0
- pixlib/raw/base/input_peer_notify_settings.py +53 -0
- pixlib/raw/base/input_phone_call.py +53 -0
- pixlib/raw/base/input_photo.py +54 -0
- pixlib/raw/base/input_privacy_key.py +61 -0
- pixlib/raw/base/input_privacy_rule.py +60 -0
- pixlib/raw/base/input_secure_file.py +54 -0
- pixlib/raw/base/input_secure_value.py +53 -0
- pixlib/raw/base/input_single_media.py +53 -0
- pixlib/raw/base/input_sticker_set.py +62 -0
- pixlib/raw/base/input_sticker_set_item.py +53 -0
- pixlib/raw/base/input_stickered_media.py +54 -0
- pixlib/raw/base/input_store_payment_purpose.py +54 -0
- pixlib/raw/base/input_theme.py +54 -0
- pixlib/raw/base/input_theme_settings.py +53 -0
- pixlib/raw/base/input_user.py +56 -0
- pixlib/raw/base/input_wall_paper.py +55 -0
- pixlib/raw/base/input_web_document.py +53 -0
- pixlib/raw/base/input_web_file_location.py +55 -0
- pixlib/raw/base/invoice.py +53 -0
- pixlib/raw/base/ip_port.py +54 -0
- pixlib/raw/base/json_object_value.py +53 -0
- pixlib/raw/base/json_value.py +68 -0
- pixlib/raw/base/keyboard_button.py +67 -0
- pixlib/raw/base/keyboard_button_row.py +53 -0
- pixlib/raw/base/labeled_price.py +53 -0
- pixlib/raw/base/lang_pack_difference.py +64 -0
- pixlib/raw/base/lang_pack_language.py +64 -0
- pixlib/raw/base/lang_pack_string.py +65 -0
- pixlib/raw/base/mask_coords.py +53 -0
- pixlib/raw/base/message.py +55 -0
- pixlib/raw/base/message_action.py +87 -0
- pixlib/raw/base/message_entity.py +73 -0
- pixlib/raw/base/message_extended_media.py +54 -0
- pixlib/raw/base/message_fwd_header.py +53 -0
- pixlib/raw/base/message_interaction_counters.py +53 -0
- pixlib/raw/base/message_media.py +77 -0
- pixlib/raw/base/message_peer_reaction.py +53 -0
- pixlib/raw/base/message_range.py +63 -0
- pixlib/raw/base/message_reactions.py +53 -0
- pixlib/raw/base/message_replies.py +53 -0
- pixlib/raw/base/message_reply_header.py +53 -0
- pixlib/raw/base/message_user_vote.py +55 -0
- pixlib/raw/base/message_views.py +53 -0
- pixlib/raw/base/messages/__init__.py +70 -0
- pixlib/raw/base/messages/affected_found_messages.py +63 -0
- pixlib/raw/base/messages/affected_history.py +68 -0
- pixlib/raw/base/messages/affected_messages.py +66 -0
- pixlib/raw/base/messages/all_stickers.py +66 -0
- pixlib/raw/base/messages/archived_stickers.py +63 -0
- pixlib/raw/base/messages/available_reactions.py +64 -0
- pixlib/raw/base/messages/bot_callback_answer.py +63 -0
- pixlib/raw/base/messages/bot_results.py +63 -0
- pixlib/raw/base/messages/chat_admins_with_invites.py +63 -0
- pixlib/raw/base/messages/chat_full.py +64 -0
- pixlib/raw/base/messages/chat_invite_importers.py +63 -0
- pixlib/raw/base/messages/chats.py +70 -0
- pixlib/raw/base/messages/checked_history_import_peer.py +63 -0
- pixlib/raw/base/messages/dh_config.py +64 -0
- pixlib/raw/base/messages/dialogs.py +65 -0
- pixlib/raw/base/messages/discussion_message.py +63 -0
- pixlib/raw/base/messages/exported_chat_invite.py +65 -0
- pixlib/raw/base/messages/exported_chat_invites.py +63 -0
- pixlib/raw/base/messages/faved_stickers.py +64 -0
- pixlib/raw/base/messages/featured_stickers.py +66 -0
- pixlib/raw/base/messages/forum_topics.py +64 -0
- pixlib/raw/base/messages/found_sticker_sets.py +64 -0
- pixlib/raw/base/messages/high_scores.py +64 -0
- pixlib/raw/base/messages/history_import.py +63 -0
- pixlib/raw/base/messages/history_import_parsed.py +63 -0
- pixlib/raw/base/messages/inactive_chats.py +63 -0
- pixlib/raw/base/messages/message_edit_data.py +63 -0
- pixlib/raw/base/messages/message_reactions_list.py +63 -0
- pixlib/raw/base/messages/message_views.py +63 -0
- pixlib/raw/base/messages/messages.py +78 -0
- pixlib/raw/base/messages/peer_dialogs.py +64 -0
- pixlib/raw/base/messages/peer_settings.py +63 -0
- pixlib/raw/base/messages/reactions.py +65 -0
- pixlib/raw/base/messages/recent_stickers.py +64 -0
- pixlib/raw/base/messages/saved_gifs.py +64 -0
- pixlib/raw/base/messages/search_counter.py +63 -0
- pixlib/raw/base/messages/search_results_calendar.py +63 -0
- pixlib/raw/base/messages/search_results_positions.py +63 -0
- pixlib/raw/base/messages/sent_encrypted_message.py +66 -0
- pixlib/raw/base/messages/sponsored_messages.py +64 -0
- pixlib/raw/base/messages/sticker_set.py +69 -0
- pixlib/raw/base/messages/sticker_set_install_result.py +64 -0
- pixlib/raw/base/messages/stickers.py +64 -0
- pixlib/raw/base/messages/transcribed_audio.py +63 -0
- pixlib/raw/base/messages/translated_text.py +64 -0
- pixlib/raw/base/messages/votes_list.py +63 -0
- pixlib/raw/base/messages_filter.py +69 -0
- pixlib/raw/base/msg_detailed_info.py +54 -0
- pixlib/raw/base/msg_resend_req.py +54 -0
- pixlib/raw/base/msgs_ack.py +53 -0
- pixlib/raw/base/msgs_all_info.py +53 -0
- pixlib/raw/base/msgs_state_info.py +53 -0
- pixlib/raw/base/msgs_state_req.py +53 -0
- pixlib/raw/base/nearest_dc.py +63 -0
- pixlib/raw/base/new_session.py +53 -0
- pixlib/raw/base/notification_sound.py +56 -0
- pixlib/raw/base/notify_peer.py +57 -0
- pixlib/raw/base/page.py +53 -0
- pixlib/raw/base/page_block.py +81 -0
- pixlib/raw/base/page_caption.py +53 -0
- pixlib/raw/base/page_list_item.py +54 -0
- pixlib/raw/base/page_list_ordered_item.py +54 -0
- pixlib/raw/base/page_related_article.py +53 -0
- pixlib/raw/base/page_table_cell.py +53 -0
- pixlib/raw/base/page_table_row.py +53 -0
- pixlib/raw/base/password_kdf_algo.py +54 -0
- pixlib/raw/base/payment_charge.py +53 -0
- pixlib/raw/base/payment_form_method.py +53 -0
- pixlib/raw/base/payment_requested_info.py +53 -0
- pixlib/raw/base/payment_saved_credentials.py +53 -0
- pixlib/raw/base/payments/__init__.py +31 -0
- pixlib/raw/base/payments/bank_card_data.py +63 -0
- pixlib/raw/base/payments/exported_invoice.py +63 -0
- pixlib/raw/base/payments/payment_form.py +63 -0
- pixlib/raw/base/payments/payment_receipt.py +63 -0
- pixlib/raw/base/payments/payment_result.py +64 -0
- pixlib/raw/base/payments/saved_info.py +63 -0
- pixlib/raw/base/payments/validated_requested_info.py +63 -0
- pixlib/raw/base/peer.py +55 -0
- pixlib/raw/base/peer_blocked.py +53 -0
- pixlib/raw/base/peer_located.py +54 -0
- pixlib/raw/base/peer_notify_settings.py +63 -0
- pixlib/raw/base/peer_settings.py +53 -0
- pixlib/raw/base/phone/__init__.py +31 -0
- pixlib/raw/base/phone/exported_group_call_invite.py +63 -0
- pixlib/raw/base/phone/group_call.py +63 -0
- pixlib/raw/base/phone/group_call_stream_channels.py +63 -0
- pixlib/raw/base/phone/group_call_stream_rtmp_url.py +63 -0
- pixlib/raw/base/phone/group_participants.py +63 -0
- pixlib/raw/base/phone/join_as_peers.py +63 -0
- pixlib/raw/base/phone/phone_call.py +65 -0
- pixlib/raw/base/phone_call.py +58 -0
- pixlib/raw/base/phone_call_discard_reason.py +56 -0
- pixlib/raw/base/phone_call_protocol.py +53 -0
- pixlib/raw/base/phone_connection.py +54 -0
- pixlib/raw/base/photo.py +54 -0
- pixlib/raw/base/photo_size.py +58 -0
- pixlib/raw/base/photos/__init__.py +26 -0
- pixlib/raw/base/photos/photo.py +64 -0
- pixlib/raw/base/photos/photos.py +64 -0
- pixlib/raw/base/poll.py +53 -0
- pixlib/raw/base/poll_answer.py +53 -0
- pixlib/raw/base/poll_answer_voters.py +53 -0
- pixlib/raw/base/poll_results.py +53 -0
- pixlib/raw/base/pong.py +64 -0
- pixlib/raw/base/popular_contact.py +53 -0
- pixlib/raw/base/post_address.py +53 -0
- pixlib/raw/base/pq_inner_data.py +56 -0
- pixlib/raw/base/premium_gift_option.py +53 -0
- pixlib/raw/base/premium_subscription_option.py +53 -0
- pixlib/raw/base/privacy_key.py +61 -0
- pixlib/raw/base/privacy_rule.py +60 -0
- pixlib/raw/base/reaction.py +55 -0
- pixlib/raw/base/reaction_count.py +53 -0
- pixlib/raw/base/received_notify_message.py +63 -0
- pixlib/raw/base/recent_me_url.py +57 -0
- pixlib/raw/base/reply_markup.py +56 -0
- pixlib/raw/base/report_reason.py +62 -0
- pixlib/raw/base/res_pq.py +64 -0
- pixlib/raw/base/restriction_reason.py +53 -0
- pixlib/raw/base/rich_text.py +68 -0
- pixlib/raw/base/rpc_drop_answer.py +65 -0
- pixlib/raw/base/rpc_error.py +53 -0
- pixlib/raw/base/rpc_result.py +53 -0
- pixlib/raw/base/saved_contact.py +63 -0
- pixlib/raw/base/search_results_calendar_period.py +53 -0
- pixlib/raw/base/search_results_position.py +53 -0
- pixlib/raw/base/secure_credentials_encrypted.py +53 -0
- pixlib/raw/base/secure_data.py +53 -0
- pixlib/raw/base/secure_file.py +54 -0
- pixlib/raw/base/secure_password_kdf_algo.py +55 -0
- pixlib/raw/base/secure_plain_data.py +54 -0
- pixlib/raw/base/secure_required_type.py +54 -0
- pixlib/raw/base/secure_secret_settings.py +53 -0
- pixlib/raw/base/secure_value.py +65 -0
- pixlib/raw/base/secure_value_error.py +61 -0
- pixlib/raw/base/secure_value_hash.py +53 -0
- pixlib/raw/base/secure_value_type.py +65 -0
- pixlib/raw/base/send_as_peer.py +53 -0
- pixlib/raw/base/send_message_action.py +70 -0
- pixlib/raw/base/server_dh_inner_data.py +53 -0
- pixlib/raw/base/server_dh_params.py +64 -0
- pixlib/raw/base/set_client_dh_params_answer.py +65 -0
- pixlib/raw/base/shipping_option.py +53 -0
- pixlib/raw/base/simple_web_view_result.py +63 -0
- pixlib/raw/base/sponsored_message.py +53 -0
- pixlib/raw/base/stats/__init__.py +27 -0
- pixlib/raw/base/stats/broadcast_stats.py +63 -0
- pixlib/raw/base/stats/megagroup_stats.py +63 -0
- pixlib/raw/base/stats/message_stats.py +63 -0
- pixlib/raw/base/stats_abs_value_and_prev.py +53 -0
- pixlib/raw/base/stats_date_range_days.py +53 -0
- pixlib/raw/base/stats_graph.py +65 -0
- pixlib/raw/base/stats_group_top_admin.py +53 -0
- pixlib/raw/base/stats_group_top_inviter.py +53 -0
- pixlib/raw/base/stats_group_top_poster.py +53 -0
- pixlib/raw/base/stats_percent_value.py +53 -0
- pixlib/raw/base/stats_url.py +53 -0
- pixlib/raw/base/sticker_keyword.py +53 -0
- pixlib/raw/base/sticker_pack.py +53 -0
- pixlib/raw/base/sticker_set.py +53 -0
- pixlib/raw/base/sticker_set_covered.py +65 -0
- pixlib/raw/base/stickers/__init__.py +25 -0
- pixlib/raw/base/stickers/suggested_short_name.py +63 -0
- pixlib/raw/base/storage/__init__.py +25 -0
- pixlib/raw/base/storage/file_type.py +62 -0
- pixlib/raw/base/theme.py +65 -0
- pixlib/raw/base/theme_settings.py +53 -0
- pixlib/raw/base/top_peer.py +53 -0
- pixlib/raw/base/top_peer_category.py +60 -0
- pixlib/raw/base/top_peer_category_peers.py +53 -0
- pixlib/raw/base/update.py +160 -0
- pixlib/raw/base/updates/__init__.py +27 -0
- pixlib/raw/base/updates/channel_difference.py +65 -0
- pixlib/raw/base/updates/difference.py +66 -0
- pixlib/raw/base/updates/state.py +63 -0
- pixlib/raw/base/updates_t.py +148 -0
- pixlib/raw/base/upload/__init__.py +27 -0
- pixlib/raw/base/upload/cdn_file.py +64 -0
- pixlib/raw/base/upload/file.py +64 -0
- pixlib/raw/base/upload/web_file.py +63 -0
- pixlib/raw/base/url_auth_result.py +66 -0
- pixlib/raw/base/user.py +67 -0
- pixlib/raw/base/user_full.py +53 -0
- pixlib/raw/base/user_profile_photo.py +54 -0
- pixlib/raw/base/user_status.py +58 -0
- pixlib/raw/base/username.py +53 -0
- pixlib/raw/base/users/__init__.py +25 -0
- pixlib/raw/base/users/user_full.py +63 -0
- pixlib/raw/base/video_size.py +53 -0
- pixlib/raw/base/wall_paper.py +66 -0
- pixlib/raw/base/wall_paper_settings.py +53 -0
- pixlib/raw/base/web_authorization.py +53 -0
- pixlib/raw/base/web_document.py +54 -0
- pixlib/raw/base/web_page.py +66 -0
- pixlib/raw/base/web_page_attribute.py +53 -0
- pixlib/raw/base/web_view_message_sent.py +63 -0
- pixlib/raw/base/web_view_result.py +63 -0
- pixlib/raw/core/__init__.py +13 -0
- pixlib/raw/core/future_salt.py +35 -0
- pixlib/raw/core/future_salts.py +45 -0
- pixlib/raw/core/list.py +8 -0
- pixlib/raw/core/message.py +38 -0
- pixlib/raw/core/msg_container.py +35 -0
- pixlib/raw/core/primitives/__init__.py +6 -0
- pixlib/raw/core/primitives/bool.py +30 -0
- pixlib/raw/core/primitives/bytes.py +37 -0
- pixlib/raw/core/primitives/double.py +14 -0
- pixlib/raw/core/primitives/int.py +27 -0
- pixlib/raw/core/primitives/string.py +13 -0
- pixlib/raw/core/primitives/vector.py +39 -0
- pixlib/raw/core/pzip_packed.py +44 -0
- pixlib/raw/core/tl_object.py +64 -0
- pixlib/raw/functions/__init__.py +42 -0
- pixlib/raw/functions/account/__init__.py +106 -0
- pixlib/raw/functions/account/accept_authorization.py +104 -0
- pixlib/raw/functions/account/cancel_password_email.py +67 -0
- pixlib/raw/functions/account/change_authorization_settings.py +92 -0
- pixlib/raw/functions/account/change_phone.py +88 -0
- pixlib/raw/functions/account/check_username.py +72 -0
- pixlib/raw/functions/account/clear_recent_emoji_statuses.py +67 -0
- pixlib/raw/functions/account/confirm_password_email.py +72 -0
- pixlib/raw/functions/account/confirm_phone.py +80 -0
- pixlib/raw/functions/account/create_theme.py +102 -0
- pixlib/raw/functions/account/decline_password_reset.py +67 -0
- pixlib/raw/functions/account/delete_account.py +84 -0
- pixlib/raw/functions/account/delete_secure_value.py +72 -0
- pixlib/raw/functions/account/finish_takeout_session.py +72 -0
- pixlib/raw/functions/account/get_account_ttl.py +67 -0
- pixlib/raw/functions/account/get_all_secure_values.py +67 -0
- pixlib/raw/functions/account/get_authorization_form.py +88 -0
- pixlib/raw/functions/account/get_authorizations.py +67 -0
- pixlib/raw/functions/account/get_auto_download_settings.py +67 -0
- pixlib/raw/functions/account/get_chat_themes.py +72 -0
- pixlib/raw/functions/account/get_contact_sign_up_notification.py +67 -0
- pixlib/raw/functions/account/get_content_settings.py +67 -0
- pixlib/raw/functions/account/get_default_emoji_statuses.py +72 -0
- pixlib/raw/functions/account/get_global_privacy_settings.py +67 -0
- pixlib/raw/functions/account/get_multi_wall_papers.py +72 -0
- pixlib/raw/functions/account/get_notify_exceptions.py +82 -0
- pixlib/raw/functions/account/get_notify_settings.py +72 -0
- pixlib/raw/functions/account/get_password.py +67 -0
- pixlib/raw/functions/account/get_password_settings.py +72 -0
- pixlib/raw/functions/account/get_privacy.py +72 -0
- pixlib/raw/functions/account/get_recent_emoji_statuses.py +72 -0
- pixlib/raw/functions/account/get_saved_ringtones.py +72 -0
- pixlib/raw/functions/account/get_secure_value.py +72 -0
- pixlib/raw/functions/account/get_theme.py +80 -0
- pixlib/raw/functions/account/get_themes.py +80 -0
- pixlib/raw/functions/account/get_tmp_password.py +80 -0
- pixlib/raw/functions/account/get_wall_paper.py +72 -0
- pixlib/raw/functions/account/get_wall_papers.py +72 -0
- pixlib/raw/functions/account/get_web_authorizations.py +67 -0
- pixlib/raw/functions/account/init_takeout_session.py +111 -0
- pixlib/raw/functions/account/install_theme.py +101 -0
- pixlib/raw/functions/account/install_wall_paper.py +80 -0
- pixlib/raw/functions/account/register_device.py +112 -0
- pixlib/raw/functions/account/reorder_usernames.py +72 -0
- pixlib/raw/functions/account/report_peer.py +88 -0
- pixlib/raw/functions/account/report_profile_photo.py +96 -0
- pixlib/raw/functions/account/resend_password_email.py +67 -0
- pixlib/raw/functions/account/reset_authorization.py +72 -0
- pixlib/raw/functions/account/reset_notify_settings.py +67 -0
- pixlib/raw/functions/account/reset_password.py +67 -0
- pixlib/raw/functions/account/reset_wall_papers.py +67 -0
- pixlib/raw/functions/account/reset_web_authorization.py +72 -0
- pixlib/raw/functions/account/reset_web_authorizations.py +67 -0
- pixlib/raw/functions/account/save_auto_download_settings.py +86 -0
- pixlib/raw/functions/account/save_ringtone.py +80 -0
- pixlib/raw/functions/account/save_secure_value.py +80 -0
- pixlib/raw/functions/account/save_theme.py +80 -0
- pixlib/raw/functions/account/save_wall_paper.py +88 -0
- pixlib/raw/functions/account/send_change_phone_code.py +80 -0
- pixlib/raw/functions/account/send_confirm_phone_code.py +80 -0
- pixlib/raw/functions/account/send_verify_email_code.py +80 -0
- pixlib/raw/functions/account/send_verify_phone_code.py +80 -0
- pixlib/raw/functions/account/set_account_ttl.py +72 -0
- pixlib/raw/functions/account/set_authorization_ttl.py +72 -0
- pixlib/raw/functions/account/set_contact_sign_up_notification.py +72 -0
- pixlib/raw/functions/account/set_content_settings.py +72 -0
- pixlib/raw/functions/account/set_global_privacy_settings.py +72 -0
- pixlib/raw/functions/account/set_privacy.py +80 -0
- pixlib/raw/functions/account/toggle_username.py +80 -0
- pixlib/raw/functions/account/unregister_device.py +88 -0
- pixlib/raw/functions/account/update_device_locked.py +72 -0
- pixlib/raw/functions/account/update_emoji_status.py +72 -0
- pixlib/raw/functions/account/update_notify_settings.py +80 -0
- pixlib/raw/functions/account/update_password_settings.py +80 -0
- pixlib/raw/functions/account/update_profile.py +93 -0
- pixlib/raw/functions/account/update_status.py +72 -0
- pixlib/raw/functions/account/update_theme.py +120 -0
- pixlib/raw/functions/account/update_username.py +72 -0
- pixlib/raw/functions/account/upload_ringtone.py +88 -0
- pixlib/raw/functions/account/upload_theme.py +100 -0
- pixlib/raw/functions/account/upload_wall_paper.py +88 -0
- pixlib/raw/functions/account/verify_email.py +80 -0
- pixlib/raw/functions/account/verify_phone.py +88 -0
- pixlib/raw/functions/auth/__init__.py +43 -0
- pixlib/raw/functions/auth/accept_login_token.py +72 -0
- pixlib/raw/functions/auth/bind_temp_auth_key.py +96 -0
- pixlib/raw/functions/auth/cancel_code.py +80 -0
- pixlib/raw/functions/auth/check_password.py +72 -0
- pixlib/raw/functions/auth/check_recovery_password.py +72 -0
- pixlib/raw/functions/auth/drop_temp_auth_keys.py +72 -0
- pixlib/raw/functions/auth/export_authorization.py +72 -0
- pixlib/raw/functions/auth/export_login_token.py +88 -0
- pixlib/raw/functions/auth/import_authorization.py +80 -0
- pixlib/raw/functions/auth/import_bot_authorization.py +96 -0
- pixlib/raw/functions/auth/import_login_token.py +72 -0
- pixlib/raw/functions/auth/log_out.py +67 -0
- pixlib/raw/functions/auth/recover_password.py +84 -0
- pixlib/raw/functions/auth/request_password_recovery.py +67 -0
- pixlib/raw/functions/auth/resend_code.py +80 -0
- pixlib/raw/functions/auth/reset_authorizations.py +67 -0
- pixlib/raw/functions/auth/send_code.py +96 -0
- pixlib/raw/functions/auth/sign_in.py +101 -0
- pixlib/raw/functions/auth/sign_up.py +96 -0
- pixlib/raw/functions/bots/__init__.py +33 -0
- pixlib/raw/functions/bots/answer_webhook_json_query.py +80 -0
- pixlib/raw/functions/bots/get_bot_commands.py +80 -0
- pixlib/raw/functions/bots/get_bot_menu_button.py +72 -0
- pixlib/raw/functions/bots/reset_bot_commands.py +80 -0
- pixlib/raw/functions/bots/send_custom_request.py +80 -0
- pixlib/raw/functions/bots/set_bot_broadcast_default_admin_rights.py +72 -0
- pixlib/raw/functions/bots/set_bot_commands.py +88 -0
- pixlib/raw/functions/bots/set_bot_group_default_admin_rights.py +72 -0
- pixlib/raw/functions/bots/set_bot_menu_button.py +80 -0
- pixlib/raw/functions/channels/__init__.py +75 -0
- pixlib/raw/functions/channels/check_username.py +80 -0
- pixlib/raw/functions/channels/convert_to_gigagroup.py +72 -0
- pixlib/raw/functions/channels/create_channel.py +119 -0
- pixlib/raw/functions/channels/create_forum_topic.py +118 -0
- pixlib/raw/functions/channels/deactivate_all_usernames.py +72 -0
- pixlib/raw/functions/channels/delete_channel.py +72 -0
- pixlib/raw/functions/channels/delete_history.py +88 -0
- pixlib/raw/functions/channels/delete_messages.py +80 -0
- pixlib/raw/functions/channels/delete_participant_history.py +80 -0
- pixlib/raw/functions/channels/delete_topic_history.py +80 -0
- pixlib/raw/functions/channels/edit_admin.py +96 -0
- pixlib/raw/functions/channels/edit_banned.py +88 -0
- pixlib/raw/functions/channels/edit_creator.py +88 -0
- pixlib/raw/functions/channels/edit_forum_topic.py +109 -0
- pixlib/raw/functions/channels/edit_location.py +88 -0
- pixlib/raw/functions/channels/edit_photo.py +80 -0
- pixlib/raw/functions/channels/edit_title.py +80 -0
- pixlib/raw/functions/channels/export_message_link.py +94 -0
- pixlib/raw/functions/channels/get_admin_log.py +126 -0
- pixlib/raw/functions/channels/get_admined_public_channels.py +78 -0
- pixlib/raw/functions/channels/get_channels.py +72 -0
- pixlib/raw/functions/channels/get_forum_topics.py +115 -0
- pixlib/raw/functions/channels/get_forum_topics_by_id.py +80 -0
- pixlib/raw/functions/channels/get_full_channel.py +72 -0
- pixlib/raw/functions/channels/get_groups_for_discussion.py +67 -0
- pixlib/raw/functions/channels/get_inactive_channels.py +67 -0
- pixlib/raw/functions/channels/get_left_channels.py +72 -0
- pixlib/raw/functions/channels/get_messages.py +80 -0
- pixlib/raw/functions/channels/get_participant.py +80 -0
- pixlib/raw/functions/channels/get_participants.py +104 -0
- pixlib/raw/functions/channels/get_send_as.py +72 -0
- pixlib/raw/functions/channels/get_sponsored_messages.py +72 -0
- pixlib/raw/functions/channels/invite_to_channel.py +80 -0
- pixlib/raw/functions/channels/join_channel.py +72 -0
- pixlib/raw/functions/channels/leave_channel.py +72 -0
- pixlib/raw/functions/channels/read_history.py +80 -0
- pixlib/raw/functions/channels/read_message_contents.py +80 -0
- pixlib/raw/functions/channels/reorder_usernames.py +80 -0
- pixlib/raw/functions/channels/report_spam.py +88 -0
- pixlib/raw/functions/channels/set_discussion_group.py +80 -0
- pixlib/raw/functions/channels/set_stickers.py +80 -0
- pixlib/raw/functions/channels/toggle_forum.py +80 -0
- pixlib/raw/functions/channels/toggle_join_request.py +80 -0
- pixlib/raw/functions/channels/toggle_join_to_send.py +80 -0
- pixlib/raw/functions/channels/toggle_pre_history_hidden.py +80 -0
- pixlib/raw/functions/channels/toggle_signatures.py +80 -0
- pixlib/raw/functions/channels/toggle_slow_mode.py +80 -0
- pixlib/raw/functions/channels/toggle_username.py +88 -0
- pixlib/raw/functions/channels/update_pinned_forum_topic.py +88 -0
- pixlib/raw/functions/channels/update_username.py +80 -0
- pixlib/raw/functions/channels/view_sponsored_message.py +80 -0
- pixlib/raw/functions/contacts/__init__.py +45 -0
- pixlib/raw/functions/contacts/accept_contact.py +72 -0
- pixlib/raw/functions/contacts/add_contact.py +104 -0
- pixlib/raw/functions/contacts/block.py +72 -0
- pixlib/raw/functions/contacts/block_from_replies.py +92 -0
- pixlib/raw/functions/contacts/delete_by_phones.py +72 -0
- pixlib/raw/functions/contacts/delete_contacts.py +72 -0
- pixlib/raw/functions/contacts/get_blocked.py +80 -0
- pixlib/raw/functions/contacts/get_contact_i_ds.py +72 -0
- pixlib/raw/functions/contacts/get_contacts.py +72 -0
- pixlib/raw/functions/contacts/get_located.py +89 -0
- pixlib/raw/functions/contacts/get_saved.py +67 -0
- pixlib/raw/functions/contacts/get_statuses.py +67 -0
- pixlib/raw/functions/contacts/get_top_peers.py +138 -0
- pixlib/raw/functions/contacts/import_contacts.py +72 -0
- pixlib/raw/functions/contacts/reset_saved.py +67 -0
- pixlib/raw/functions/contacts/reset_top_peer_rating.py +80 -0
- pixlib/raw/functions/contacts/resolve_phone.py +72 -0
- pixlib/raw/functions/contacts/resolve_username.py +72 -0
- pixlib/raw/functions/contacts/search.py +80 -0
- pixlib/raw/functions/contacts/toggle_top_peers.py +72 -0
- pixlib/raw/functions/contacts/unblock.py +72 -0
- pixlib/raw/functions/contest/__init__.py +25 -0
- pixlib/raw/functions/contest/save_developer_info.py +104 -0
- pixlib/raw/functions/destroy_auth_key.py +67 -0
- pixlib/raw/functions/destroy_session.py +72 -0
- pixlib/raw/functions/folders/__init__.py +26 -0
- pixlib/raw/functions/folders/delete_folder.py +72 -0
- pixlib/raw/functions/folders/edit_peer_folders.py +72 -0
- pixlib/raw/functions/get_future_salts.py +72 -0
- pixlib/raw/functions/help/__init__.py +47 -0
- pixlib/raw/functions/help/accept_terms_of_service.py +72 -0
- pixlib/raw/functions/help/dismiss_suggestion.py +80 -0
- pixlib/raw/functions/help/edit_user_info.py +88 -0
- pixlib/raw/functions/help/get_app_changelog.py +72 -0
- pixlib/raw/functions/help/get_app_config.py +67 -0
- pixlib/raw/functions/help/get_app_update.py +72 -0
- pixlib/raw/functions/help/get_cdn_config.py +67 -0
- pixlib/raw/functions/help/get_config.py +67 -0
- pixlib/raw/functions/help/get_countries_list.py +80 -0
- pixlib/raw/functions/help/get_deep_link_info.py +72 -0
- pixlib/raw/functions/help/get_invite_text.py +67 -0
- pixlib/raw/functions/help/get_nearest_dc.py +67 -0
- pixlib/raw/functions/help/get_passport_config.py +72 -0
- pixlib/raw/functions/help/get_premium_promo.py +67 -0
- pixlib/raw/functions/help/get_promo_data.py +67 -0
- pixlib/raw/functions/help/get_recent_me_urls.py +72 -0
- pixlib/raw/functions/help/get_support.py +67 -0
- pixlib/raw/functions/help/get_support_name.py +67 -0
- pixlib/raw/functions/help/get_terms_of_service_update.py +67 -0
- pixlib/raw/functions/help/get_user_info.py +72 -0
- pixlib/raw/functions/help/hide_promo_data.py +72 -0
- pixlib/raw/functions/help/save_app_log.py +72 -0
- pixlib/raw/functions/help/set_bot_updates_status.py +80 -0
- pixlib/raw/functions/init_connection.py +150 -0
- pixlib/raw/functions/invoke_after_msg.py +80 -0
- pixlib/raw/functions/invoke_after_msgs.py +80 -0
- pixlib/raw/functions/invoke_with_layer.py +80 -0
- pixlib/raw/functions/invoke_with_messages_range.py +80 -0
- pixlib/raw/functions/invoke_with_takeout.py +80 -0
- pixlib/raw/functions/invoke_without_updates.py +72 -0
- pixlib/raw/functions/langpack/__init__.py +29 -0
- pixlib/raw/functions/langpack/get_difference.py +88 -0
- pixlib/raw/functions/langpack/get_lang_pack.py +80 -0
- pixlib/raw/functions/langpack/get_language.py +80 -0
- pixlib/raw/functions/langpack/get_languages.py +72 -0
- pixlib/raw/functions/langpack/get_strings.py +88 -0
- pixlib/raw/functions/messages/__init__.py +201 -0
- pixlib/raw/functions/messages/accept_encryption.py +88 -0
- pixlib/raw/functions/messages/accept_url_auth.py +109 -0
- pixlib/raw/functions/messages/add_chat_user.py +88 -0
- pixlib/raw/functions/messages/check_chat_invite.py +72 -0
- pixlib/raw/functions/messages/check_history_import.py +72 -0
- pixlib/raw/functions/messages/check_history_import_peer.py +72 -0
- pixlib/raw/functions/messages/clear_all_drafts.py +67 -0
- pixlib/raw/functions/messages/clear_recent_reactions.py +67 -0
- pixlib/raw/functions/messages/clear_recent_stickers.py +72 -0
- pixlib/raw/functions/messages/create_chat.py +80 -0
- pixlib/raw/functions/messages/delete_chat.py +72 -0
- pixlib/raw/functions/messages/delete_chat_user.py +88 -0
- pixlib/raw/functions/messages/delete_exported_chat_invite.py +80 -0
- pixlib/raw/functions/messages/delete_history.py +112 -0
- pixlib/raw/functions/messages/delete_messages.py +80 -0
- pixlib/raw/functions/messages/delete_phone_call_history.py +72 -0
- pixlib/raw/functions/messages/delete_revoked_exported_chat_invites.py +80 -0
- pixlib/raw/functions/messages/delete_scheduled_messages.py +80 -0
- pixlib/raw/functions/messages/discard_encryption.py +80 -0
- pixlib/raw/functions/messages/edit_chat_about.py +80 -0
- pixlib/raw/functions/messages/edit_chat_admin.py +88 -0
- pixlib/raw/functions/messages/edit_chat_default_banned_rights.py +80 -0
- pixlib/raw/functions/messages/edit_chat_photo.py +80 -0
- pixlib/raw/functions/messages/edit_chat_title.py +80 -0
- pixlib/raw/functions/messages/edit_exported_chat_invite.py +124 -0
- pixlib/raw/functions/messages/edit_inline_bot_message.py +119 -0
- pixlib/raw/functions/messages/edit_message.py +136 -0
- pixlib/raw/functions/messages/export_chat_invite.py +113 -0
- pixlib/raw/functions/messages/fave_sticker.py +80 -0
- pixlib/raw/functions/messages/forward_messages.py +162 -0
- pixlib/raw/functions/messages/get_admins_with_invites.py +72 -0
- pixlib/raw/functions/messages/get_all_chats.py +72 -0
- pixlib/raw/functions/messages/get_all_drafts.py +67 -0
- pixlib/raw/functions/messages/get_all_stickers.py +72 -0
- pixlib/raw/functions/messages/get_archived_stickers.py +94 -0
- pixlib/raw/functions/messages/get_attach_menu_bot.py +72 -0
- pixlib/raw/functions/messages/get_attach_menu_bots.py +72 -0
- pixlib/raw/functions/messages/get_attached_stickers.py +72 -0
- pixlib/raw/functions/messages/get_available_reactions.py +72 -0
- pixlib/raw/functions/messages/get_bot_callback_answer.py +107 -0
- pixlib/raw/functions/messages/get_chat_invite_importers.py +122 -0
- pixlib/raw/functions/messages/get_chats.py +72 -0
- pixlib/raw/functions/messages/get_common_chats.py +88 -0
- pixlib/raw/functions/messages/get_custom_emoji_documents.py +72 -0
- pixlib/raw/functions/messages/get_dh_config.py +80 -0
- pixlib/raw/functions/messages/get_dialog_filters.py +67 -0
- pixlib/raw/functions/messages/get_dialog_unread_marks.py +67 -0
- pixlib/raw/functions/messages/get_dialogs.py +121 -0
- pixlib/raw/functions/messages/get_discussion_message.py +80 -0
- pixlib/raw/functions/messages/get_document_by_hash.py +88 -0
- pixlib/raw/functions/messages/get_emoji_keywords.py +72 -0
- pixlib/raw/functions/messages/get_emoji_keywords_difference.py +80 -0
- pixlib/raw/functions/messages/get_emoji_keywords_languages.py +72 -0
- pixlib/raw/functions/messages/get_emoji_stickers.py +72 -0
- pixlib/raw/functions/messages/get_emoji_url.py +72 -0
- pixlib/raw/functions/messages/get_exported_chat_invite.py +80 -0
- pixlib/raw/functions/messages/get_exported_chat_invites.py +114 -0
- pixlib/raw/functions/messages/get_extended_media.py +80 -0
- pixlib/raw/functions/messages/get_faved_stickers.py +72 -0
- pixlib/raw/functions/messages/get_featured_emoji_stickers.py +72 -0
- pixlib/raw/functions/messages/get_featured_stickers.py +72 -0
- pixlib/raw/functions/messages/get_full_chat.py +72 -0
- pixlib/raw/functions/messages/get_game_high_scores.py +88 -0
- pixlib/raw/functions/messages/get_history.py +128 -0
- pixlib/raw/functions/messages/get_inline_bot_results.py +108 -0
- pixlib/raw/functions/messages/get_inline_game_high_scores.py +80 -0
- pixlib/raw/functions/messages/get_mask_stickers.py +72 -0
- pixlib/raw/functions/messages/get_message_edit_data.py +80 -0
- pixlib/raw/functions/messages/get_message_reactions_list.py +109 -0
- pixlib/raw/functions/messages/get_message_read_participants.py +80 -0
- pixlib/raw/functions/messages/get_messages.py +72 -0
- pixlib/raw/functions/messages/get_messages_reactions.py +80 -0
- pixlib/raw/functions/messages/get_messages_views.py +88 -0
- pixlib/raw/functions/messages/get_old_featured_stickers.py +88 -0
- pixlib/raw/functions/messages/get_onlines.py +72 -0
- pixlib/raw/functions/messages/get_peer_dialogs.py +72 -0
- pixlib/raw/functions/messages/get_peer_settings.py +72 -0
- pixlib/raw/functions/messages/get_pinned_dialogs.py +72 -0
- pixlib/raw/functions/messages/get_poll_results.py +80 -0
- pixlib/raw/functions/messages/get_poll_votes.py +108 -0
- pixlib/raw/functions/messages/get_recent_locations.py +88 -0
- pixlib/raw/functions/messages/get_recent_reactions.py +80 -0
- pixlib/raw/functions/messages/get_recent_stickers.py +80 -0
- pixlib/raw/functions/messages/get_replies.py +136 -0
- pixlib/raw/functions/messages/get_saved_gifs.py +72 -0
- pixlib/raw/functions/messages/get_scheduled_history.py +80 -0
- pixlib/raw/functions/messages/get_scheduled_messages.py +80 -0
- pixlib/raw/functions/messages/get_search_counters.py +91 -0
- pixlib/raw/functions/messages/get_search_results_calendar.py +96 -0
- pixlib/raw/functions/messages/get_search_results_positions.py +96 -0
- pixlib/raw/functions/messages/get_split_ranges.py +67 -0
- pixlib/raw/functions/messages/get_sticker_set.py +80 -0
- pixlib/raw/functions/messages/get_stickers.py +80 -0
- pixlib/raw/functions/messages/get_suggested_dialog_filters.py +67 -0
- pixlib/raw/functions/messages/get_top_reactions.py +80 -0
- pixlib/raw/functions/messages/get_unread_mentions.py +123 -0
- pixlib/raw/functions/messages/get_unread_reactions.py +123 -0
- pixlib/raw/functions/messages/get_web_page.py +80 -0
- pixlib/raw/functions/messages/get_web_page_preview.py +84 -0
- pixlib/raw/functions/messages/hide_all_chat_join_requests.py +89 -0
- pixlib/raw/functions/messages/hide_chat_join_request.py +88 -0
- pixlib/raw/functions/messages/hide_peer_settings_bar.py +72 -0
- pixlib/raw/functions/messages/import_chat_invite.py +72 -0
- pixlib/raw/functions/messages/init_history_import.py +88 -0
- pixlib/raw/functions/messages/install_sticker_set.py +80 -0
- pixlib/raw/functions/messages/mark_dialog_unread.py +80 -0
- pixlib/raw/functions/messages/migrate_chat.py +72 -0
- pixlib/raw/functions/messages/prolong_web_view.py +124 -0
- pixlib/raw/functions/messages/rate_transcribed_audio.py +96 -0
- pixlib/raw/functions/messages/read_discussion.py +88 -0
- pixlib/raw/functions/messages/read_encrypted_history.py +80 -0
- pixlib/raw/functions/messages/read_featured_stickers.py +72 -0
- pixlib/raw/functions/messages/read_history.py +80 -0
- pixlib/raw/functions/messages/read_mentions.py +83 -0
- pixlib/raw/functions/messages/read_message_contents.py +72 -0
- pixlib/raw/functions/messages/read_reactions.py +83 -0
- pixlib/raw/functions/messages/received_messages.py +72 -0
- pixlib/raw/functions/messages/received_queue.py +72 -0
- pixlib/raw/functions/messages/reorder_pinned_dialogs.py +88 -0
- pixlib/raw/functions/messages/reorder_sticker_sets.py +86 -0
- pixlib/raw/functions/messages/report.py +96 -0
- pixlib/raw/functions/messages/report_encrypted_spam.py +72 -0
- pixlib/raw/functions/messages/report_reaction.py +88 -0
- pixlib/raw/functions/messages/report_spam.py +72 -0
- pixlib/raw/functions/messages/request_encryption.py +88 -0
- pixlib/raw/functions/messages/request_simple_web_view.py +100 -0
- pixlib/raw/functions/messages/request_url_auth.py +103 -0
- pixlib/raw/functions/messages/request_web_view.py +158 -0
- pixlib/raw/functions/messages/save_default_send_as.py +80 -0
- pixlib/raw/functions/messages/save_draft.py +116 -0
- pixlib/raw/functions/messages/save_gif.py +80 -0
- pixlib/raw/functions/messages/save_recent_sticker.py +88 -0
- pixlib/raw/functions/messages/search.py +173 -0
- pixlib/raw/functions/messages/search_global.py +139 -0
- pixlib/raw/functions/messages/search_sent_media.py +88 -0
- pixlib/raw/functions/messages/search_sticker_sets.py +88 -0
- pixlib/raw/functions/messages/send_encrypted.py +96 -0
- pixlib/raw/functions/messages/send_encrypted_file.py +104 -0
- pixlib/raw/functions/messages/send_encrypted_service.py +88 -0
- pixlib/raw/functions/messages/send_inline_bot_result.py +159 -0
- pixlib/raw/functions/messages/send_media.py +185 -0
- pixlib/raw/functions/messages/send_message.py +183 -0
- pixlib/raw/functions/messages/send_multi_media.py +149 -0
- pixlib/raw/functions/messages/send_reaction.py +104 -0
- pixlib/raw/functions/messages/send_scheduled_messages.py +80 -0
- pixlib/raw/functions/messages/send_screenshot_notification.py +88 -0
- pixlib/raw/functions/messages/send_vote.py +88 -0
- pixlib/raw/functions/messages/send_web_view_data.py +96 -0
- pixlib/raw/functions/messages/send_web_view_result_message.py +80 -0
- pixlib/raw/functions/messages/set_bot_callback_answer.py +106 -0
- pixlib/raw/functions/messages/set_bot_precheckout_results.py +89 -0
- pixlib/raw/functions/messages/set_bot_shipping_results.py +93 -0
- pixlib/raw/functions/messages/set_chat_available_reactions.py +80 -0
- pixlib/raw/functions/messages/set_chat_theme.py +80 -0
- pixlib/raw/functions/messages/set_default_reaction.py +72 -0
- pixlib/raw/functions/messages/set_encrypted_typing.py +80 -0
- pixlib/raw/functions/messages/set_game_score.py +110 -0
- pixlib/raw/functions/messages/set_history_ttl.py +80 -0
- pixlib/raw/functions/messages/set_inline_bot_results.py +121 -0
- pixlib/raw/functions/messages/set_inline_game_score.py +102 -0
- pixlib/raw/functions/messages/set_typing.py +91 -0
- pixlib/raw/functions/messages/start_bot.py +96 -0
- pixlib/raw/functions/messages/start_history_import.py +80 -0
- pixlib/raw/functions/messages/toggle_bot_in_attach_menu.py +80 -0
- pixlib/raw/functions/messages/toggle_dialog_pin.py +80 -0
- pixlib/raw/functions/messages/toggle_no_forwards.py +80 -0
- pixlib/raw/functions/messages/toggle_sticker_sets.py +92 -0
- pixlib/raw/functions/messages/transcribe_audio.py +80 -0
- pixlib/raw/functions/messages/translate_text.py +111 -0
- pixlib/raw/functions/messages/uninstall_sticker_set.py +72 -0
- pixlib/raw/functions/messages/unpin_all_messages.py +83 -0
- pixlib/raw/functions/messages/update_dialog_filter.py +84 -0
- pixlib/raw/functions/messages/update_dialog_filters_order.py +72 -0
- pixlib/raw/functions/messages/update_pinned_message.py +100 -0
- pixlib/raw/functions/messages/upload_encrypted_file.py +80 -0
- pixlib/raw/functions/messages/upload_imported_media.py +96 -0
- pixlib/raw/functions/messages/upload_media.py +80 -0
- pixlib/raw/functions/payments/__init__.py +35 -0
- pixlib/raw/functions/payments/assign_app_store_transaction.py +80 -0
- pixlib/raw/functions/payments/assign_play_market_transaction.py +80 -0
- pixlib/raw/functions/payments/can_purchase_premium.py +72 -0
- pixlib/raw/functions/payments/clear_saved_info.py +78 -0
- pixlib/raw/functions/payments/export_invoice.py +72 -0
- pixlib/raw/functions/payments/get_bank_card_data.py +72 -0
- pixlib/raw/functions/payments/get_payment_form.py +84 -0
- pixlib/raw/functions/payments/get_payment_receipt.py +80 -0
- pixlib/raw/functions/payments/get_saved_info.py +67 -0
- pixlib/raw/functions/payments/send_payment_form.py +117 -0
- pixlib/raw/functions/payments/validate_requested_info.py +88 -0
- pixlib/raw/functions/phone/__init__.py +55 -0
- pixlib/raw/functions/phone/accept_call.py +88 -0
- pixlib/raw/functions/phone/check_group_call.py +80 -0
- pixlib/raw/functions/phone/confirm_call.py +96 -0
- pixlib/raw/functions/phone/create_group_call.py +106 -0
- pixlib/raw/functions/phone/discard_call.py +104 -0
- pixlib/raw/functions/phone/discard_group_call.py +72 -0
- pixlib/raw/functions/phone/edit_group_call_participant.py +136 -0
- pixlib/raw/functions/phone/edit_group_call_title.py +80 -0
- pixlib/raw/functions/phone/export_group_call_invite.py +80 -0
- pixlib/raw/functions/phone/get_call_config.py +67 -0
- pixlib/raw/functions/phone/get_group_call.py +80 -0
- pixlib/raw/functions/phone/get_group_call_join_as.py +72 -0
- pixlib/raw/functions/phone/get_group_call_stream_channels.py +72 -0
- pixlib/raw/functions/phone/get_group_call_stream_rtmp_url.py +80 -0
- pixlib/raw/functions/phone/get_group_participants.py +104 -0
- pixlib/raw/functions/phone/invite_to_group_call.py +80 -0
- pixlib/raw/functions/phone/join_group_call.py +111 -0
- pixlib/raw/functions/phone/join_group_call_presentation.py +80 -0
- pixlib/raw/functions/phone/leave_group_call.py +80 -0
- pixlib/raw/functions/phone/leave_group_call_presentation.py +72 -0
- pixlib/raw/functions/phone/received_call.py +72 -0
- pixlib/raw/functions/phone/request_call.py +104 -0
- pixlib/raw/functions/phone/save_call_debug.py +80 -0
- pixlib/raw/functions/phone/save_call_log.py +80 -0
- pixlib/raw/functions/phone/save_default_group_call_join_as.py +80 -0
- pixlib/raw/functions/phone/send_signaling_data.py +80 -0
- pixlib/raw/functions/phone/set_call_rating.py +96 -0
- pixlib/raw/functions/phone/start_scheduled_group_call.py +72 -0
- pixlib/raw/functions/phone/toggle_group_call_record.py +104 -0
- pixlib/raw/functions/phone/toggle_group_call_settings.py +89 -0
- pixlib/raw/functions/phone/toggle_group_call_start_subscription.py +80 -0
- pixlib/raw/functions/photos/__init__.py +28 -0
- pixlib/raw/functions/photos/delete_photos.py +72 -0
- pixlib/raw/functions/photos/get_user_photos.py +96 -0
- pixlib/raw/functions/photos/update_profile_photo.py +72 -0
- pixlib/raw/functions/photos/upload_profile_photo.py +95 -0
- pixlib/raw/functions/ping.py +72 -0
- pixlib/raw/functions/ping_delay_disconnect.py +80 -0
- pixlib/raw/functions/req_dh_params.py +112 -0
- pixlib/raw/functions/req_pq.py +72 -0
- pixlib/raw/functions/req_pq_multi.py +72 -0
- pixlib/raw/functions/rpc_drop_answer.py +72 -0
- pixlib/raw/functions/set_client_dh_params.py +88 -0
- pixlib/raw/functions/stats/__init__.py +29 -0
- pixlib/raw/functions/stats/get_broadcast_stats.py +80 -0
- pixlib/raw/functions/stats/get_megagroup_stats.py +80 -0
- pixlib/raw/functions/stats/get_message_public_forwards.py +112 -0
- pixlib/raw/functions/stats/get_message_stats.py +88 -0
- pixlib/raw/functions/stats/load_async_graph.py +83 -0
- pixlib/raw/functions/stickers/__init__.py +31 -0
- pixlib/raw/functions/stickers/add_sticker_to_set.py +80 -0
- pixlib/raw/functions/stickers/change_sticker_position.py +80 -0
- pixlib/raw/functions/stickers/check_short_name.py +72 -0
- pixlib/raw/functions/stickers/create_sticker_set.py +135 -0
- pixlib/raw/functions/stickers/remove_sticker_from_set.py +72 -0
- pixlib/raw/functions/stickers/set_sticker_set_thumb.py +80 -0
- pixlib/raw/functions/stickers/suggest_short_name.py +72 -0
- pixlib/raw/functions/updates/__init__.py +27 -0
- pixlib/raw/functions/updates/get_channel_difference.py +104 -0
- pixlib/raw/functions/updates/get_difference.py +99 -0
- pixlib/raw/functions/updates/get_state.py +67 -0
- pixlib/raw/functions/upload/__init__.py +32 -0
- pixlib/raw/functions/upload/get_cdn_file.py +88 -0
- pixlib/raw/functions/upload/get_cdn_file_hashes.py +80 -0
- pixlib/raw/functions/upload/get_file.py +102 -0
- pixlib/raw/functions/upload/get_file_hashes.py +80 -0
- pixlib/raw/functions/upload/get_web_file.py +88 -0
- pixlib/raw/functions/upload/reupload_cdn_file.py +80 -0
- pixlib/raw/functions/upload/save_big_file_part.py +96 -0
- pixlib/raw/functions/upload/save_file_part.py +88 -0
- pixlib/raw/functions/users/__init__.py +27 -0
- pixlib/raw/functions/users/get_full_user.py +72 -0
- pixlib/raw/functions/users/get_users.py +72 -0
- pixlib/raw/functions/users/set_secure_value_errors.py +80 -0
- pixlib/raw/types/__init__.py +925 -0
- pixlib/raw/types/access_point_rule.py +88 -0
- pixlib/raw/types/account/__init__.py +51 -0
- pixlib/raw/types/account/authorization_form.py +116 -0
- pixlib/raw/types/account/authorizations.py +89 -0
- pixlib/raw/types/account/auto_download_settings.py +97 -0
- pixlib/raw/types/account/content_settings.py +87 -0
- pixlib/raw/types/account/email_verified.py +81 -0
- pixlib/raw/types/account/email_verified_login.py +89 -0
- pixlib/raw/types/account/emoji_statuses.py +90 -0
- pixlib/raw/types/account/emoji_statuses_not_modified.py +77 -0
- pixlib/raw/types/account/password.py +181 -0
- pixlib/raw/types/account/password_input_settings.py +113 -0
- pixlib/raw/types/account/password_settings.py +94 -0
- pixlib/raw/types/account/privacy_rules.py +98 -0
- pixlib/raw/types/account/reset_password_failed_wait.py +81 -0
- pixlib/raw/types/account/reset_password_ok.py +76 -0
- pixlib/raw/types/account/reset_password_requested_wait.py +81 -0
- pixlib/raw/types/account/saved_ringtone.py +76 -0
- pixlib/raw/types/account/saved_ringtone_converted.py +81 -0
- pixlib/raw/types/account/saved_ringtones.py +89 -0
- pixlib/raw/types/account/saved_ringtones_not_modified.py +76 -0
- pixlib/raw/types/account/sent_email_code.py +89 -0
- pixlib/raw/types/account/takeout.py +81 -0
- pixlib/raw/types/account/themes.py +90 -0
- pixlib/raw/types/account/themes_not_modified.py +77 -0
- pixlib/raw/types/account/tmp_password.py +89 -0
- pixlib/raw/types/account/wall_papers.py +89 -0
- pixlib/raw/types/account/wall_papers_not_modified.py +76 -0
- pixlib/raw/types/account/web_authorizations.py +89 -0
- pixlib/raw/types/account_days_ttl.py +81 -0
- pixlib/raw/types/attach_menu_bot.py +110 -0
- pixlib/raw/types/attach_menu_bot_icon.py +92 -0
- pixlib/raw/types/attach_menu_bot_icon_color.py +80 -0
- pixlib/raw/types/attach_menu_bots.py +97 -0
- pixlib/raw/types/attach_menu_bots_bot.py +89 -0
- pixlib/raw/types/attach_menu_bots_not_modified.py +76 -0
- pixlib/raw/types/attach_menu_peer_type_bot_pm.py +67 -0
- pixlib/raw/types/attach_menu_peer_type_broadcast.py +67 -0
- pixlib/raw/types/attach_menu_peer_type_chat.py +67 -0
- pixlib/raw/types/attach_menu_peer_type_pm.py +67 -0
- pixlib/raw/types/attach_menu_peer_type_same_bot_pm.py +67 -0
- pixlib/raw/types/auth/__init__.py +44 -0
- pixlib/raw/types/auth/authorization.py +112 -0
- pixlib/raw/types/auth/authorization_sign_up_required.py +90 -0
- pixlib/raw/types/auth/code_type_call.py +67 -0
- pixlib/raw/types/auth/code_type_flash_call.py +67 -0
- pixlib/raw/types/auth/code_type_missed_call.py +67 -0
- pixlib/raw/types/auth/code_type_sms.py +67 -0
- pixlib/raw/types/auth/exported_authorization.py +89 -0
- pixlib/raw/types/auth/logged_out.py +84 -0
- pixlib/raw/types/auth/login_token.py +90 -0
- pixlib/raw/types/auth/login_token_migrate_to.py +90 -0
- pixlib/raw/types/auth/login_token_success.py +82 -0
- pixlib/raw/types/auth/password_recovery.py +81 -0
- pixlib/raw/types/auth/sent_code.py +114 -0
- pixlib/raw/types/auth/sent_code_type_app.py +72 -0
- pixlib/raw/types/auth/sent_code_type_call.py +72 -0
- pixlib/raw/types/auth/sent_code_type_email_code.py +103 -0
- pixlib/raw/types/auth/sent_code_type_flash_call.py +72 -0
- pixlib/raw/types/auth/sent_code_type_missed_call.py +80 -0
- pixlib/raw/types/auth/sent_code_type_set_up_email_required.py +78 -0
- pixlib/raw/types/auth/sent_code_type_sms.py +72 -0
- pixlib/raw/types/authorization.py +201 -0
- pixlib/raw/types/auto_download_settings.py +122 -0
- pixlib/raw/types/available_reaction.py +154 -0
- pixlib/raw/types/bad_msg_notification.py +88 -0
- pixlib/raw/types/bad_server_salt.py +96 -0
- pixlib/raw/types/bank_card_open_url.py +80 -0
- pixlib/raw/types/base_theme_arctic.py +67 -0
- pixlib/raw/types/base_theme_classic.py +67 -0
- pixlib/raw/types/base_theme_day.py +67 -0
- pixlib/raw/types/base_theme_night.py +67 -0
- pixlib/raw/types/base_theme_tinted.py +67 -0
- pixlib/raw/types/bind_auth_key_inner.py +104 -0
- pixlib/raw/types/bot_command.py +89 -0
- pixlib/raw/types/bot_command_scope_chat_admins.py +67 -0
- pixlib/raw/types/bot_command_scope_chats.py +67 -0
- pixlib/raw/types/bot_command_scope_default.py +67 -0
- pixlib/raw/types/bot_command_scope_peer.py +72 -0
- pixlib/raw/types/bot_command_scope_peer_admins.py +72 -0
- pixlib/raw/types/bot_command_scope_peer_user.py +80 -0
- pixlib/raw/types/bot_command_scope_users.py +67 -0
- pixlib/raw/types/bot_info.py +124 -0
- pixlib/raw/types/bot_inline_media_result.py +128 -0
- pixlib/raw/types/bot_inline_message_media_auto.py +94 -0
- pixlib/raw/types/bot_inline_message_media_contact.py +108 -0
- pixlib/raw/types/bot_inline_message_media_geo.py +111 -0
- pixlib/raw/types/bot_inline_message_media_invoice.py +130 -0
- pixlib/raw/types/bot_inline_message_media_venue.py +124 -0
- pixlib/raw/types/bot_inline_message_text.py +100 -0
- pixlib/raw/types/bot_inline_result.py +137 -0
- pixlib/raw/types/bot_menu_button.py +89 -0
- pixlib/raw/types/bot_menu_button_commands.py +76 -0
- pixlib/raw/types/bot_menu_button_default.py +76 -0
- pixlib/raw/types/cdn_config.py +81 -0
- pixlib/raw/types/cdn_public_key.py +80 -0
- pixlib/raw/types/channel.py +299 -0
- pixlib/raw/types/channel_admin_log_event.py +96 -0
- pixlib/raw/types/channel_admin_log_event_action_change_about.py +80 -0
- pixlib/raw/types/channel_admin_log_event_action_change_available_reactions.py +80 -0
- pixlib/raw/types/channel_admin_log_event_action_change_history_ttl.py +80 -0
- pixlib/raw/types/channel_admin_log_event_action_change_linked_chat.py +80 -0
- pixlib/raw/types/channel_admin_log_event_action_change_location.py +80 -0
- pixlib/raw/types/channel_admin_log_event_action_change_photo.py +80 -0
- pixlib/raw/types/channel_admin_log_event_action_change_sticker_set.py +80 -0
- pixlib/raw/types/channel_admin_log_event_action_change_title.py +80 -0
- pixlib/raw/types/channel_admin_log_event_action_change_username.py +80 -0
- pixlib/raw/types/channel_admin_log_event_action_change_usernames.py +80 -0
- pixlib/raw/types/channel_admin_log_event_action_create_topic.py +72 -0
- pixlib/raw/types/channel_admin_log_event_action_default_banned_rights.py +80 -0
- pixlib/raw/types/channel_admin_log_event_action_delete_message.py +72 -0
- pixlib/raw/types/channel_admin_log_event_action_delete_topic.py +72 -0
- pixlib/raw/types/channel_admin_log_event_action_discard_group_call.py +72 -0
- pixlib/raw/types/channel_admin_log_event_action_edit_message.py +80 -0
- pixlib/raw/types/channel_admin_log_event_action_edit_topic.py +80 -0
- pixlib/raw/types/channel_admin_log_event_action_exported_invite_delete.py +72 -0
- pixlib/raw/types/channel_admin_log_event_action_exported_invite_edit.py +80 -0
- pixlib/raw/types/channel_admin_log_event_action_exported_invite_revoke.py +72 -0
- pixlib/raw/types/channel_admin_log_event_action_participant_invite.py +72 -0
- pixlib/raw/types/channel_admin_log_event_action_participant_join.py +67 -0
- pixlib/raw/types/channel_admin_log_event_action_participant_join_by_invite.py +72 -0
- pixlib/raw/types/channel_admin_log_event_action_participant_join_by_request.py +80 -0
- pixlib/raw/types/channel_admin_log_event_action_participant_leave.py +67 -0
- pixlib/raw/types/channel_admin_log_event_action_participant_mute.py +72 -0
- pixlib/raw/types/channel_admin_log_event_action_participant_toggle_admin.py +80 -0
- pixlib/raw/types/channel_admin_log_event_action_participant_toggle_ban.py +80 -0
- pixlib/raw/types/channel_admin_log_event_action_participant_unmute.py +72 -0
- pixlib/raw/types/channel_admin_log_event_action_participant_volume.py +72 -0
- pixlib/raw/types/channel_admin_log_event_action_pin_topic.py +86 -0
- pixlib/raw/types/channel_admin_log_event_action_send_message.py +72 -0
- pixlib/raw/types/channel_admin_log_event_action_start_group_call.py +72 -0
- pixlib/raw/types/channel_admin_log_event_action_stop_poll.py +72 -0
- pixlib/raw/types/channel_admin_log_event_action_toggle_forum.py +72 -0
- pixlib/raw/types/channel_admin_log_event_action_toggle_group_call_setting.py +72 -0
- pixlib/raw/types/channel_admin_log_event_action_toggle_invites.py +72 -0
- pixlib/raw/types/channel_admin_log_event_action_toggle_no_forwards.py +72 -0
- pixlib/raw/types/channel_admin_log_event_action_toggle_pre_history_hidden.py +72 -0
- pixlib/raw/types/channel_admin_log_event_action_toggle_signatures.py +72 -0
- pixlib/raw/types/channel_admin_log_event_action_toggle_slow_mode.py +80 -0
- pixlib/raw/types/channel_admin_log_event_action_update_pinned.py +72 -0
- pixlib/raw/types/channel_admin_log_events_filter.py +174 -0
- pixlib/raw/types/channel_forbidden.py +111 -0
- pixlib/raw/types/channel_full.py +439 -0
- pixlib/raw/types/channel_location.py +80 -0
- pixlib/raw/types/channel_location_empty.py +67 -0
- pixlib/raw/types/channel_messages_filter.py +80 -0
- pixlib/raw/types/channel_messages_filter_empty.py +67 -0
- pixlib/raw/types/channel_participant.py +80 -0
- pixlib/raw/types/channel_participant_admin.py +128 -0
- pixlib/raw/types/channel_participant_banned.py +104 -0
- pixlib/raw/types/channel_participant_creator.py +91 -0
- pixlib/raw/types/channel_participant_left.py +72 -0
- pixlib/raw/types/channel_participant_self.py +96 -0
- pixlib/raw/types/channel_participants_admins.py +67 -0
- pixlib/raw/types/channel_participants_banned.py +72 -0
- pixlib/raw/types/channel_participants_bots.py +67 -0
- pixlib/raw/types/channel_participants_contacts.py +72 -0
- pixlib/raw/types/channel_participants_kicked.py +72 -0
- pixlib/raw/types/channel_participants_mentions.py +84 -0
- pixlib/raw/types/channel_participants_recent.py +67 -0
- pixlib/raw/types/channel_participants_search.py +72 -0
- pixlib/raw/types/channels/__init__.py +29 -0
- pixlib/raw/types/channels/admin_log_results.py +97 -0
- pixlib/raw/types/channels/channel_participant.py +97 -0
- pixlib/raw/types/channels/channel_participants.py +105 -0
- pixlib/raw/types/channels/channel_participants_not_modified.py +76 -0
- pixlib/raw/types/channels/send_as_peers.py +97 -0
- pixlib/raw/types/chat.py +180 -0
- pixlib/raw/types/chat_admin_rights.py +138 -0
- pixlib/raw/types/chat_admin_with_invites.py +88 -0
- pixlib/raw/types/chat_banned_rights.py +152 -0
- pixlib/raw/types/chat_empty.py +72 -0
- pixlib/raw/types/chat_forbidden.py +80 -0
- pixlib/raw/types/chat_full.py +225 -0
- pixlib/raw/types/chat_invite.py +148 -0
- pixlib/raw/types/chat_invite_already.py +81 -0
- pixlib/raw/types/chat_invite_exported.py +171 -0
- pixlib/raw/types/chat_invite_importer.py +106 -0
- pixlib/raw/types/chat_invite_peek.py +89 -0
- pixlib/raw/types/chat_invite_public_join_requests.py +76 -0
- pixlib/raw/types/chat_onlines.py +81 -0
- pixlib/raw/types/chat_participant.py +88 -0
- pixlib/raw/types/chat_participant_admin.py +88 -0
- pixlib/raw/types/chat_participant_creator.py +72 -0
- pixlib/raw/types/chat_participants.py +88 -0
- pixlib/raw/types/chat_participants_forbidden.py +84 -0
- pixlib/raw/types/chat_photo.py +97 -0
- pixlib/raw/types/chat_photo_empty.py +67 -0
- pixlib/raw/types/chat_reactions_all.py +72 -0
- pixlib/raw/types/chat_reactions_none.py +67 -0
- pixlib/raw/types/chat_reactions_some.py +72 -0
- pixlib/raw/types/client_dh_inner_data.py +96 -0
- pixlib/raw/types/code_settings.py +100 -0
- pixlib/raw/types/config.py +494 -0
- pixlib/raw/types/contact.py +80 -0
- pixlib/raw/types/contact_status.py +89 -0
- pixlib/raw/types/contacts/__init__.py +34 -0
- pixlib/raw/types/contacts/blocked.py +97 -0
- pixlib/raw/types/contacts/blocked_slice.py +105 -0
- pixlib/raw/types/contacts/contacts.py +97 -0
- pixlib/raw/types/contacts/contacts_not_modified.py +76 -0
- pixlib/raw/types/contacts/found.py +105 -0
- pixlib/raw/types/contacts/imported_contacts.py +105 -0
- pixlib/raw/types/contacts/resolved_peer.py +98 -0
- pixlib/raw/types/contacts/top_peers.py +97 -0
- pixlib/raw/types/contacts/top_peers_disabled.py +76 -0
- pixlib/raw/types/contacts/top_peers_not_modified.py +76 -0
- pixlib/raw/types/data_json.py +82 -0
- pixlib/raw/types/dc_option.py +135 -0
- pixlib/raw/types/destroy_auth_key_fail.py +76 -0
- pixlib/raw/types/destroy_auth_key_none.py +76 -0
- pixlib/raw/types/destroy_auth_key_ok.py +76 -0
- pixlib/raw/types/destroy_session_none.py +81 -0
- pixlib/raw/types/destroy_session_ok.py +81 -0
- pixlib/raw/types/dh_gen_fail.py +97 -0
- pixlib/raw/types/dh_gen_ok.py +97 -0
- pixlib/raw/types/dh_gen_retry.py +97 -0
- pixlib/raw/types/dialog.py +170 -0
- pixlib/raw/types/dialog_filter.py +172 -0
- pixlib/raw/types/dialog_filter_default.py +76 -0
- pixlib/raw/types/dialog_filter_suggested.py +89 -0
- pixlib/raw/types/dialog_folder.py +128 -0
- pixlib/raw/types/dialog_peer.py +81 -0
- pixlib/raw/types/dialog_peer_folder.py +81 -0
- pixlib/raw/types/document.py +162 -0
- pixlib/raw/types/document_attribute_animated.py +67 -0
- pixlib/raw/types/document_attribute_audio.py +107 -0
- pixlib/raw/types/document_attribute_custom_emoji.py +88 -0
- pixlib/raw/types/document_attribute_filename.py +72 -0
- pixlib/raw/types/document_attribute_has_stickers.py +67 -0
- pixlib/raw/types/document_attribute_image_size.py +80 -0
- pixlib/raw/types/document_attribute_sticker.py +98 -0
- pixlib/raw/types/document_attribute_video.py +102 -0
- pixlib/raw/types/document_empty.py +84 -0
- pixlib/raw/types/draft_message.py +107 -0
- pixlib/raw/types/draft_message_empty.py +75 -0
- pixlib/raw/types/email_verification_apple.py +72 -0
- pixlib/raw/types/email_verification_code.py +72 -0
- pixlib/raw/types/email_verification_google.py +72 -0
- pixlib/raw/types/email_verify_purpose_login_change.py +67 -0
- pixlib/raw/types/email_verify_purpose_login_setup.py +80 -0
- pixlib/raw/types/email_verify_purpose_passport.py +67 -0
- pixlib/raw/types/emoji_keyword.py +80 -0
- pixlib/raw/types/emoji_keyword_deleted.py +80 -0
- pixlib/raw/types/emoji_keywords_difference.py +106 -0
- pixlib/raw/types/emoji_language.py +81 -0
- pixlib/raw/types/emoji_status.py +72 -0
- pixlib/raw/types/emoji_status_empty.py +67 -0
- pixlib/raw/types/emoji_status_until.py +80 -0
- pixlib/raw/types/emoji_url.py +81 -0
- pixlib/raw/types/encrypted_chat.py +130 -0
- pixlib/raw/types/encrypted_chat_discarded.py +90 -0
- pixlib/raw/types/encrypted_chat_empty.py +82 -0
- pixlib/raw/types/encrypted_chat_requested.py +133 -0
- pixlib/raw/types/encrypted_chat_waiting.py +114 -0
- pixlib/raw/types/encrypted_file.py +113 -0
- pixlib/raw/types/encrypted_file_empty.py +76 -0
- pixlib/raw/types/encrypted_message.py +104 -0
- pixlib/raw/types/encrypted_message_service.py +96 -0
- pixlib/raw/types/exported_message_link.py +89 -0
- pixlib/raw/types/file_hash.py +99 -0
- pixlib/raw/types/folder.py +110 -0
- pixlib/raw/types/folder_peer.py +80 -0
- pixlib/raw/types/forum_topic.py +199 -0
- pixlib/raw/types/forum_topic_deleted.py +72 -0
- pixlib/raw/types/game.py +124 -0
- pixlib/raw/types/geo_point.py +99 -0
- pixlib/raw/types/geo_point_empty.py +67 -0
- pixlib/raw/types/global_privacy_settings.py +85 -0
- pixlib/raw/types/group_call.py +199 -0
- pixlib/raw/types/group_call_discarded.py +88 -0
- pixlib/raw/types/group_call_participant.py +206 -0
- pixlib/raw/types/group_call_participant_video.py +97 -0
- pixlib/raw/types/group_call_participant_video_source_group.py +80 -0
- pixlib/raw/types/group_call_stream_channel.py +88 -0
- pixlib/raw/types/help/__init__.py +47 -0
- pixlib/raw/types/help/app_update.py +142 -0
- pixlib/raw/types/help/config_simple.py +88 -0
- pixlib/raw/types/help/countries_list.py +89 -0
- pixlib/raw/types/help/countries_list_not_modified.py +76 -0
- pixlib/raw/types/help/country.py +105 -0
- pixlib/raw/types/help/country_code.py +94 -0
- pixlib/raw/types/help/deep_link_info.py +99 -0
- pixlib/raw/types/help/deep_link_info_empty.py +76 -0
- pixlib/raw/types/help/invite_text.py +81 -0
- pixlib/raw/types/help/no_app_update.py +76 -0
- pixlib/raw/types/help/passport_config.py +89 -0
- pixlib/raw/types/help/passport_config_not_modified.py +76 -0
- pixlib/raw/types/help/premium_promo.py +121 -0
- pixlib/raw/types/help/promo_data.py +131 -0
- pixlib/raw/types/help/promo_data_empty.py +81 -0
- pixlib/raw/types/help/recent_me_urls.py +97 -0
- pixlib/raw/types/help/support.py +89 -0
- pixlib/raw/types/help/support_name.py +81 -0
- pixlib/raw/types/help/terms_of_service.py +105 -0
- pixlib/raw/types/help/terms_of_service_update.py +89 -0
- pixlib/raw/types/help/terms_of_service_update_empty.py +81 -0
- pixlib/raw/types/help/user_info.py +106 -0
- pixlib/raw/types/help/user_info_empty.py +77 -0
- pixlib/raw/types/high_score.py +88 -0
- pixlib/raw/types/http_wait.py +88 -0
- pixlib/raw/types/imported_contact.py +80 -0
- pixlib/raw/types/inline_bot_switch_pm.py +80 -0
- pixlib/raw/types/inline_query_peer_type_broadcast.py +67 -0
- pixlib/raw/types/inline_query_peer_type_chat.py +67 -0
- pixlib/raw/types/inline_query_peer_type_megagroup.py +67 -0
- pixlib/raw/types/inline_query_peer_type_pm.py +67 -0
- pixlib/raw/types/inline_query_peer_type_same_bot_pm.py +67 -0
- pixlib/raw/types/input_app_event.py +96 -0
- pixlib/raw/types/input_bot_inline_message_game.py +76 -0
- pixlib/raw/types/input_bot_inline_message_id.py +88 -0
- pixlib/raw/types/input_bot_inline_message_id64.py +96 -0
- pixlib/raw/types/input_bot_inline_message_media_auto.py +94 -0
- pixlib/raw/types/input_bot_inline_message_media_contact.py +108 -0
- pixlib/raw/types/input_bot_inline_message_media_geo.py +111 -0
- pixlib/raw/types/input_bot_inline_message_media_invoice.py +134 -0
- pixlib/raw/types/input_bot_inline_message_media_venue.py +124 -0
- pixlib/raw/types/input_bot_inline_message_text.py +100 -0
- pixlib/raw/types/input_bot_inline_result.py +137 -0
- pixlib/raw/types/input_bot_inline_result_document.py +116 -0
- pixlib/raw/types/input_bot_inline_result_game.py +88 -0
- pixlib/raw/types/input_bot_inline_result_photo.py +96 -0
- pixlib/raw/types/input_channel.py +80 -0
- pixlib/raw/types/input_channel_empty.py +67 -0
- pixlib/raw/types/input_channel_from_message.py +88 -0
- pixlib/raw/types/input_chat_photo.py +72 -0
- pixlib/raw/types/input_chat_photo_empty.py +67 -0
- pixlib/raw/types/input_chat_uploaded_photo.py +95 -0
- pixlib/raw/types/input_check_password_empty.py +67 -0
- pixlib/raw/types/input_check_password_srp.py +88 -0
- pixlib/raw/types/input_client_proxy.py +80 -0
- pixlib/raw/types/input_dialog_peer.py +72 -0
- pixlib/raw/types/input_dialog_peer_folder.py +72 -0
- pixlib/raw/types/input_document.py +88 -0
- pixlib/raw/types/input_document_empty.py +67 -0
- pixlib/raw/types/input_document_file_location.py +96 -0
- pixlib/raw/types/input_encrypted_chat.py +80 -0
- pixlib/raw/types/input_encrypted_file.py +80 -0
- pixlib/raw/types/input_encrypted_file_big_uploaded.py +88 -0
- pixlib/raw/types/input_encrypted_file_empty.py +67 -0
- pixlib/raw/types/input_encrypted_file_location.py +80 -0
- pixlib/raw/types/input_encrypted_file_uploaded.py +96 -0
- pixlib/raw/types/input_file.py +96 -0
- pixlib/raw/types/input_file_big.py +88 -0
- pixlib/raw/types/input_file_location.py +96 -0
- pixlib/raw/types/input_folder_peer.py +80 -0
- pixlib/raw/types/input_game_id.py +80 -0
- pixlib/raw/types/input_game_short_name.py +80 -0
- pixlib/raw/types/input_geo_point.py +91 -0
- pixlib/raw/types/input_geo_point_empty.py +67 -0
- pixlib/raw/types/input_group_call.py +80 -0
- pixlib/raw/types/input_group_call_stream.py +108 -0
- pixlib/raw/types/input_invoice_message.py +80 -0
- pixlib/raw/types/input_invoice_slug.py +72 -0
- pixlib/raw/types/input_keyboard_button_url_auth.py +105 -0
- pixlib/raw/types/input_keyboard_button_user_profile.py +80 -0
- pixlib/raw/types/input_media_contact.py +96 -0
- pixlib/raw/types/input_media_dice.py +72 -0
- pixlib/raw/types/input_media_document.py +92 -0
- pixlib/raw/types/input_media_document_external.py +83 -0
- pixlib/raw/types/input_media_empty.py +67 -0
- pixlib/raw/types/input_media_game.py +72 -0
- pixlib/raw/types/input_media_geo_live.py +107 -0
- pixlib/raw/types/input_media_geo_point.py +72 -0
- pixlib/raw/types/input_media_invoice.py +143 -0
- pixlib/raw/types/input_media_photo.py +83 -0
- pixlib/raw/types/input_media_photo_external.py +83 -0
- pixlib/raw/types/input_media_poll.py +103 -0
- pixlib/raw/types/input_media_uploaded_document.py +131 -0
- pixlib/raw/types/input_media_uploaded_photo.py +93 -0
- pixlib/raw/types/input_media_venue.py +112 -0
- pixlib/raw/types/input_message_callback_query.py +80 -0
- pixlib/raw/types/input_message_entity_mention_name.py +88 -0
- pixlib/raw/types/input_message_id.py +72 -0
- pixlib/raw/types/input_message_pinned.py +67 -0
- pixlib/raw/types/input_message_reply_to.py +72 -0
- pixlib/raw/types/input_messages_filter_chat_photos.py +67 -0
- pixlib/raw/types/input_messages_filter_contacts.py +67 -0
- pixlib/raw/types/input_messages_filter_document.py +67 -0
- pixlib/raw/types/input_messages_filter_empty.py +67 -0
- pixlib/raw/types/input_messages_filter_geo.py +67 -0
- pixlib/raw/types/input_messages_filter_gif.py +67 -0
- pixlib/raw/types/input_messages_filter_music.py +67 -0
- pixlib/raw/types/input_messages_filter_my_mentions.py +67 -0
- pixlib/raw/types/input_messages_filter_phone_calls.py +72 -0
- pixlib/raw/types/input_messages_filter_photo_video.py +67 -0
- pixlib/raw/types/input_messages_filter_photos.py +67 -0
- pixlib/raw/types/input_messages_filter_pinned.py +67 -0
- pixlib/raw/types/input_messages_filter_round_video.py +67 -0
- pixlib/raw/types/input_messages_filter_round_voice.py +67 -0
- pixlib/raw/types/input_messages_filter_url.py +67 -0
- pixlib/raw/types/input_messages_filter_video.py +67 -0
- pixlib/raw/types/input_messages_filter_voice.py +67 -0
- pixlib/raw/types/input_notify_broadcasts.py +67 -0
- pixlib/raw/types/input_notify_chats.py +67 -0
- pixlib/raw/types/input_notify_forum_topic.py +80 -0
- pixlib/raw/types/input_notify_peer.py +72 -0
- pixlib/raw/types/input_notify_users.py +67 -0
- pixlib/raw/types/input_payment_credentials.py +80 -0
- pixlib/raw/types/input_payment_credentials_apple_pay.py +72 -0
- pixlib/raw/types/input_payment_credentials_google_pay.py +72 -0
- pixlib/raw/types/input_payment_credentials_saved.py +80 -0
- pixlib/raw/types/input_peer_channel.py +80 -0
- pixlib/raw/types/input_peer_channel_from_message.py +88 -0
- pixlib/raw/types/input_peer_chat.py +72 -0
- pixlib/raw/types/input_peer_empty.py +67 -0
- pixlib/raw/types/input_peer_notify_settings.py +103 -0
- pixlib/raw/types/input_peer_photo_file_location.py +88 -0
- pixlib/raw/types/input_peer_self.py +67 -0
- pixlib/raw/types/input_peer_user.py +80 -0
- pixlib/raw/types/input_peer_user_from_message.py +88 -0
- pixlib/raw/types/input_phone_call.py +80 -0
- pixlib/raw/types/input_phone_contact.py +96 -0
- pixlib/raw/types/input_photo.py +88 -0
- pixlib/raw/types/input_photo_empty.py +67 -0
- pixlib/raw/types/input_photo_file_location.py +96 -0
- pixlib/raw/types/input_photo_legacy_file_location.py +112 -0
- pixlib/raw/types/input_privacy_key_added_by_phone.py +67 -0
- pixlib/raw/types/input_privacy_key_chat_invite.py +67 -0
- pixlib/raw/types/input_privacy_key_forwards.py +67 -0
- pixlib/raw/types/input_privacy_key_phone_call.py +67 -0
- pixlib/raw/types/input_privacy_key_phone_number.py +67 -0
- pixlib/raw/types/input_privacy_key_phone_p2_p.py +67 -0
- pixlib/raw/types/input_privacy_key_profile_photo.py +67 -0
- pixlib/raw/types/input_privacy_key_status_timestamp.py +67 -0
- pixlib/raw/types/input_privacy_key_voice_messages.py +67 -0
- pixlib/raw/types/input_privacy_value_allow_all.py +67 -0
- pixlib/raw/types/input_privacy_value_allow_chat_participants.py +72 -0
- pixlib/raw/types/input_privacy_value_allow_contacts.py +67 -0
- pixlib/raw/types/input_privacy_value_allow_users.py +72 -0
- pixlib/raw/types/input_privacy_value_disallow_all.py +67 -0
- pixlib/raw/types/input_privacy_value_disallow_chat_participants.py +72 -0
- pixlib/raw/types/input_privacy_value_disallow_contacts.py +67 -0
- pixlib/raw/types/input_privacy_value_disallow_users.py +72 -0
- pixlib/raw/types/input_report_reason_child_abuse.py +67 -0
- pixlib/raw/types/input_report_reason_copyright.py +67 -0
- pixlib/raw/types/input_report_reason_fake.py +67 -0
- pixlib/raw/types/input_report_reason_geo_irrelevant.py +67 -0
- pixlib/raw/types/input_report_reason_illegal_drugs.py +67 -0
- pixlib/raw/types/input_report_reason_other.py +67 -0
- pixlib/raw/types/input_report_reason_personal_details.py +67 -0
- pixlib/raw/types/input_report_reason_pornography.py +67 -0
- pixlib/raw/types/input_report_reason_spam.py +67 -0
- pixlib/raw/types/input_report_reason_violence.py +67 -0
- pixlib/raw/types/input_secure_file.py +80 -0
- pixlib/raw/types/input_secure_file_location.py +80 -0
- pixlib/raw/types/input_secure_file_uploaded.py +104 -0
- pixlib/raw/types/input_secure_value.py +144 -0
- pixlib/raw/types/input_single_media.py +100 -0
- pixlib/raw/types/input_sticker_set_animated_emoji.py +67 -0
- pixlib/raw/types/input_sticker_set_animated_emoji_animations.py +67 -0
- pixlib/raw/types/input_sticker_set_dice.py +72 -0
- pixlib/raw/types/input_sticker_set_emoji_default_statuses.py +67 -0
- pixlib/raw/types/input_sticker_set_emoji_default_topic_icons.py +67 -0
- pixlib/raw/types/input_sticker_set_emoji_generic_animations.py +67 -0
- pixlib/raw/types/input_sticker_set_empty.py +67 -0
- pixlib/raw/types/input_sticker_set_id.py +80 -0
- pixlib/raw/types/input_sticker_set_item.py +92 -0
- pixlib/raw/types/input_sticker_set_premium_gifts.py +67 -0
- pixlib/raw/types/input_sticker_set_short_name.py +72 -0
- pixlib/raw/types/input_sticker_set_thumb.py +80 -0
- pixlib/raw/types/input_stickered_media_document.py +72 -0
- pixlib/raw/types/input_stickered_media_photo.py +72 -0
- pixlib/raw/types/input_store_payment_gift_premium.py +88 -0
- pixlib/raw/types/input_store_payment_premium_subscription.py +72 -0
- pixlib/raw/types/input_takeout_file_location.py +67 -0
- pixlib/raw/types/input_theme.py +80 -0
- pixlib/raw/types/input_theme_settings.py +127 -0
- pixlib/raw/types/input_theme_slug.py +72 -0
- pixlib/raw/types/input_user.py +80 -0
- pixlib/raw/types/input_user_empty.py +67 -0
- pixlib/raw/types/input_user_from_message.py +88 -0
- pixlib/raw/types/input_user_self.py +67 -0
- pixlib/raw/types/input_wall_paper.py +80 -0
- pixlib/raw/types/input_wall_paper_no_file.py +72 -0
- pixlib/raw/types/input_wall_paper_slug.py +72 -0
- pixlib/raw/types/input_web_document.py +96 -0
- pixlib/raw/types/input_web_file_audio_album_thumb_location.py +100 -0
- pixlib/raw/types/input_web_file_geo_point_location.py +112 -0
- pixlib/raw/types/input_web_file_location.py +80 -0
- pixlib/raw/types/invoice.py +164 -0
- pixlib/raw/types/ip_port.py +80 -0
- pixlib/raw/types/ip_port_secret.py +88 -0
- pixlib/raw/types/json_array.py +81 -0
- pixlib/raw/types/json_bool.py +81 -0
- pixlib/raw/types/json_null.py +76 -0
- pixlib/raw/types/json_number.py +81 -0
- pixlib/raw/types/json_object.py +81 -0
- pixlib/raw/types/json_object_value.py +80 -0
- pixlib/raw/types/json_string.py +81 -0
- pixlib/raw/types/keyboard_button.py +72 -0
- pixlib/raw/types/keyboard_button_buy.py +72 -0
- pixlib/raw/types/keyboard_button_callback.py +88 -0
- pixlib/raw/types/keyboard_button_game.py +72 -0
- pixlib/raw/types/keyboard_button_request_geo_location.py +72 -0
- pixlib/raw/types/keyboard_button_request_phone.py +72 -0
- pixlib/raw/types/keyboard_button_request_poll.py +83 -0
- pixlib/raw/types/keyboard_button_row.py +72 -0
- pixlib/raw/types/keyboard_button_simple_web_view.py +80 -0
- pixlib/raw/types/keyboard_button_switch_inline.py +88 -0
- pixlib/raw/types/keyboard_button_url.py +80 -0
- pixlib/raw/types/keyboard_button_url_auth.py +99 -0
- pixlib/raw/types/keyboard_button_user_profile.py +80 -0
- pixlib/raw/types/keyboard_button_web_view.py +80 -0
- pixlib/raw/types/labeled_price.py +80 -0
- pixlib/raw/types/lang_pack_difference.py +106 -0
- pixlib/raw/types/lang_pack_language.py +159 -0
- pixlib/raw/types/lang_pack_string.py +89 -0
- pixlib/raw/types/lang_pack_string_deleted.py +81 -0
- pixlib/raw/types/lang_pack_string_pluralized.py +136 -0
- pixlib/raw/types/mask_coords.py +96 -0
- pixlib/raw/types/message.py +311 -0
- pixlib/raw/types/message_action_bot_allowed.py +72 -0
- pixlib/raw/types/message_action_channel_create.py +72 -0
- pixlib/raw/types/message_action_channel_migrate_from.py +80 -0
- pixlib/raw/types/message_action_chat_add_user.py +72 -0
- pixlib/raw/types/message_action_chat_create.py +80 -0
- pixlib/raw/types/message_action_chat_delete_photo.py +67 -0
- pixlib/raw/types/message_action_chat_delete_user.py +72 -0
- pixlib/raw/types/message_action_chat_edit_photo.py +72 -0
- pixlib/raw/types/message_action_chat_edit_title.py +72 -0
- pixlib/raw/types/message_action_chat_joined_by_link.py +72 -0
- pixlib/raw/types/message_action_chat_joined_by_request.py +67 -0
- pixlib/raw/types/message_action_chat_migrate_to.py +72 -0
- pixlib/raw/types/message_action_contact_sign_up.py +67 -0
- pixlib/raw/types/message_action_custom_action.py +72 -0
- pixlib/raw/types/message_action_empty.py +67 -0
- pixlib/raw/types/message_action_game_score.py +80 -0
- pixlib/raw/types/message_action_geo_proximity_reached.py +88 -0
- pixlib/raw/types/message_action_gift_premium.py +88 -0
- pixlib/raw/types/message_action_group_call.py +83 -0
- pixlib/raw/types/message_action_group_call_scheduled.py +80 -0
- pixlib/raw/types/message_action_history_clear.py +67 -0
- pixlib/raw/types/message_action_invite_to_group_call.py +80 -0
- pixlib/raw/types/message_action_payment_sent.py +103 -0
- pixlib/raw/types/message_action_payment_sent_me.py +129 -0
- pixlib/raw/types/message_action_phone_call.py +99 -0
- pixlib/raw/types/message_action_pin_message.py +67 -0
- pixlib/raw/types/message_action_screenshot_taken.py +67 -0
- pixlib/raw/types/message_action_secure_values_sent.py +72 -0
- pixlib/raw/types/message_action_secure_values_sent_me.py +80 -0
- pixlib/raw/types/message_action_set_chat_theme.py +72 -0
- pixlib/raw/types/message_action_set_messages_ttl.py +72 -0
- pixlib/raw/types/message_action_topic_create.py +91 -0
- pixlib/raw/types/message_action_topic_edit.py +93 -0
- pixlib/raw/types/message_action_web_view_data_sent.py +72 -0
- pixlib/raw/types/message_action_web_view_data_sent_me.py +80 -0
- pixlib/raw/types/message_empty.py +84 -0
- pixlib/raw/types/message_entity_bank_card.py +80 -0
- pixlib/raw/types/message_entity_blockquote.py +80 -0
- pixlib/raw/types/message_entity_bold.py +80 -0
- pixlib/raw/types/message_entity_bot_command.py +80 -0
- pixlib/raw/types/message_entity_cashtag.py +80 -0
- pixlib/raw/types/message_entity_code.py +80 -0
- pixlib/raw/types/message_entity_custom_emoji.py +88 -0
- pixlib/raw/types/message_entity_email.py +80 -0
- pixlib/raw/types/message_entity_hashtag.py +80 -0
- pixlib/raw/types/message_entity_italic.py +80 -0
- pixlib/raw/types/message_entity_mention.py +80 -0
- pixlib/raw/types/message_entity_mention_name.py +88 -0
- pixlib/raw/types/message_entity_phone.py +80 -0
- pixlib/raw/types/message_entity_pre.py +88 -0
- pixlib/raw/types/message_entity_spoiler.py +80 -0
- pixlib/raw/types/message_entity_strike.py +80 -0
- pixlib/raw/types/message_entity_text_url.py +88 -0
- pixlib/raw/types/message_entity_underline.py +80 -0
- pixlib/raw/types/message_entity_unknown.py +80 -0
- pixlib/raw/types/message_entity_url.py +80 -0
- pixlib/raw/types/message_extended_media.py +72 -0
- pixlib/raw/types/message_extended_media_preview.py +103 -0
- pixlib/raw/types/message_fwd_header.py +145 -0
- pixlib/raw/types/message_interaction_counters.py +88 -0
- pixlib/raw/types/message_media_contact.py +115 -0
- pixlib/raw/types/message_media_dice.py +91 -0
- pixlib/raw/types/message_media_document.py +102 -0
- pixlib/raw/types/message_media_empty.py +78 -0
- pixlib/raw/types/message_media_game.py +83 -0
- pixlib/raw/types/message_media_geo.py +83 -0
- pixlib/raw/types/message_media_geo_live.py +111 -0
- pixlib/raw/types/message_media_invoice.py +158 -0
- pixlib/raw/types/message_media_photo.py +96 -0
- pixlib/raw/types/message_media_poll.py +91 -0
- pixlib/raw/types/message_media_unsupported.py +78 -0
- pixlib/raw/types/message_media_venue.py +123 -0
- pixlib/raw/types/message_media_web_page.py +83 -0
- pixlib/raw/types/message_peer_reaction.py +94 -0
- pixlib/raw/types/message_range.py +89 -0
- pixlib/raw/types/message_reactions.py +96 -0
- pixlib/raw/types/message_replies.py +125 -0
- pixlib/raw/types/message_reply_header.py +105 -0
- pixlib/raw/types/message_service.py +163 -0
- pixlib/raw/types/message_user_vote.py +88 -0
- pixlib/raw/types/message_user_vote_input_option.py +80 -0
- pixlib/raw/types/message_user_vote_multiple.py +88 -0
- pixlib/raw/types/message_views.py +94 -0
- pixlib/raw/types/messages/__init__.py +92 -0
- pixlib/raw/types/messages/affected_found_messages.py +105 -0
- pixlib/raw/types/messages/affected_history.py +102 -0
- pixlib/raw/types/messages/affected_messages.py +92 -0
- pixlib/raw/types/messages/all_stickers.py +91 -0
- pixlib/raw/types/messages/all_stickers_not_modified.py +78 -0
- pixlib/raw/types/messages/archived_stickers.py +89 -0
- pixlib/raw/types/messages/available_reactions.py +89 -0
- pixlib/raw/types/messages/available_reactions_not_modified.py +76 -0
- pixlib/raw/types/messages/bot_callback_answer.py +119 -0
- pixlib/raw/types/messages/bot_results.py +132 -0
- pixlib/raw/types/messages/channel_messages.py +142 -0
- pixlib/raw/types/messages/chat_admins_with_invites.py +89 -0
- pixlib/raw/types/messages/chat_full.py +98 -0
- pixlib/raw/types/messages/chat_invite_importers.py +97 -0
- pixlib/raw/types/messages/chats.py +87 -0
- pixlib/raw/types/messages/chats_slice.py +95 -0
- pixlib/raw/types/messages/checked_history_import_peer.py +81 -0
- pixlib/raw/types/messages/dh_config.py +105 -0
- pixlib/raw/types/messages/dh_config_not_modified.py +81 -0
- pixlib/raw/types/messages/dialogs.py +105 -0
- pixlib/raw/types/messages/dialogs_not_modified.py +81 -0
- pixlib/raw/types/messages/dialogs_slice.py +113 -0
- pixlib/raw/types/messages/discussion_message.py +134 -0
- pixlib/raw/types/messages/exported_chat_invite.py +90 -0
- pixlib/raw/types/messages/exported_chat_invite_replaced.py +98 -0
- pixlib/raw/types/messages/exported_chat_invites.py +97 -0
- pixlib/raw/types/messages/faved_stickers.py +97 -0
- pixlib/raw/types/messages/faved_stickers_not_modified.py +76 -0
- pixlib/raw/types/messages/featured_stickers.py +115 -0
- pixlib/raw/types/messages/featured_stickers_not_modified.py +83 -0
- pixlib/raw/types/messages/forum_topics.py +130 -0
- pixlib/raw/types/messages/found_sticker_sets.py +89 -0
- pixlib/raw/types/messages/found_sticker_sets_not_modified.py +76 -0
- pixlib/raw/types/messages/high_scores.py +90 -0
- pixlib/raw/types/messages/history_import.py +81 -0
- pixlib/raw/types/messages/history_import_parsed.py +96 -0
- pixlib/raw/types/messages/inactive_chats.py +97 -0
- pixlib/raw/types/messages/message_edit_data.py +81 -0
- pixlib/raw/types/messages/message_reactions_list.py +116 -0
- pixlib/raw/types/messages/message_views.py +97 -0
- pixlib/raw/types/messages/messages.py +109 -0
- pixlib/raw/types/messages/messages_not_modified.py +93 -0
- pixlib/raw/types/messages/messages_slice.py +143 -0
- pixlib/raw/types/messages/peer_dialogs.py +114 -0
- pixlib/raw/types/messages/peer_settings.py +97 -0
- pixlib/raw/types/messages/reactions.py +90 -0
- pixlib/raw/types/messages/reactions_not_modified.py +77 -0
- pixlib/raw/types/messages/recent_stickers.py +105 -0
- pixlib/raw/types/messages/recent_stickers_not_modified.py +76 -0
- pixlib/raw/types/messages/saved_gifs.py +89 -0
- pixlib/raw/types/messages/saved_gifs_not_modified.py +76 -0
- pixlib/raw/types/messages/search_counter.py +97 -0
- pixlib/raw/types/messages/search_results_calendar.py +146 -0
- pixlib/raw/types/messages/search_results_positions.py +89 -0
- pixlib/raw/types/messages/sent_encrypted_file.py +91 -0
- pixlib/raw/types/messages/sent_encrypted_message.py +83 -0
- pixlib/raw/types/messages/sponsored_messages.py +108 -0
- pixlib/raw/types/messages/sponsored_messages_empty.py +76 -0
- pixlib/raw/types/messages/sticker_set.py +110 -0
- pixlib/raw/types/messages/sticker_set_install_result_archive.py +81 -0
- pixlib/raw/types/messages/sticker_set_install_result_success.py +76 -0
- pixlib/raw/types/messages/sticker_set_not_modified.py +81 -0
- pixlib/raw/types/messages/stickers.py +89 -0
- pixlib/raw/types/messages/stickers_not_modified.py +76 -0
- pixlib/raw/types/messages/transcribed_audio.py +97 -0
- pixlib/raw/types/messages/translate_no_result.py +76 -0
- pixlib/raw/types/messages/translate_result_text.py +81 -0
- pixlib/raw/types/messages/votes_list.py +108 -0
- pixlib/raw/types/msg_detailed_info.py +96 -0
- pixlib/raw/types/msg_new_detailed_info.py +88 -0
- pixlib/raw/types/msg_resend_ans_req.py +72 -0
- pixlib/raw/types/msg_resend_req.py +72 -0
- pixlib/raw/types/msgs_ack.py +72 -0
- pixlib/raw/types/msgs_all_info.py +80 -0
- pixlib/raw/types/msgs_state_info.py +80 -0
- pixlib/raw/types/msgs_state_req.py +72 -0
- pixlib/raw/types/nearest_dc.py +97 -0
- pixlib/raw/types/new_session_created.py +88 -0
- pixlib/raw/types/notification_sound_default.py +67 -0
- pixlib/raw/types/notification_sound_local.py +80 -0
- pixlib/raw/types/notification_sound_none.py +67 -0
- pixlib/raw/types/notification_sound_ringtone.py +72 -0
- pixlib/raw/types/notify_broadcasts.py +67 -0
- pixlib/raw/types/notify_chats.py +67 -0
- pixlib/raw/types/notify_forum_topic.py +80 -0
- pixlib/raw/types/notify_peer.py +72 -0
- pixlib/raw/types/notify_users.py +67 -0
- pixlib/raw/types/page.py +125 -0
- pixlib/raw/types/page_block_anchor.py +72 -0
- pixlib/raw/types/page_block_audio.py +80 -0
- pixlib/raw/types/page_block_author_date.py +80 -0
- pixlib/raw/types/page_block_blockquote.py +80 -0
- pixlib/raw/types/page_block_channel.py +72 -0
- pixlib/raw/types/page_block_collage.py +80 -0
- pixlib/raw/types/page_block_cover.py +72 -0
- pixlib/raw/types/page_block_details.py +88 -0
- pixlib/raw/types/page_block_divider.py +67 -0
- pixlib/raw/types/page_block_embed.py +131 -0
- pixlib/raw/types/page_block_embed_post.py +120 -0
- pixlib/raw/types/page_block_footer.py +72 -0
- pixlib/raw/types/page_block_header.py +72 -0
- pixlib/raw/types/page_block_kicker.py +72 -0
- pixlib/raw/types/page_block_list.py +72 -0
- pixlib/raw/types/page_block_map.py +104 -0
- pixlib/raw/types/page_block_ordered_list.py +72 -0
- pixlib/raw/types/page_block_paragraph.py +72 -0
- pixlib/raw/types/page_block_photo.py +100 -0
- pixlib/raw/types/page_block_preformatted.py +80 -0
- pixlib/raw/types/page_block_pullquote.py +80 -0
- pixlib/raw/types/page_block_related_articles.py +80 -0
- pixlib/raw/types/page_block_slideshow.py +80 -0
- pixlib/raw/types/page_block_subheader.py +72 -0
- pixlib/raw/types/page_block_subtitle.py +72 -0
- pixlib/raw/types/page_block_table.py +94 -0
- pixlib/raw/types/page_block_title.py +72 -0
- pixlib/raw/types/page_block_unsupported.py +67 -0
- pixlib/raw/types/page_block_video.py +94 -0
- pixlib/raw/types/page_caption.py +80 -0
- pixlib/raw/types/page_list_item_blocks.py +72 -0
- pixlib/raw/types/page_list_item_text.py +72 -0
- pixlib/raw/types/page_list_ordered_item_blocks.py +80 -0
- pixlib/raw/types/page_list_ordered_item_text.py +80 -0
- pixlib/raw/types/page_related_article.py +127 -0
- pixlib/raw/types/page_table_cell.py +124 -0
- pixlib/raw/types/page_table_row.py +72 -0
- pixlib/raw/types/password_kdf_algo_sha256_sha256_pbkdf2_hmacsha512iter100000_sha256_mod_pow.py +96 -0
- pixlib/raw/types/password_kdf_algo_unknown.py +67 -0
- pixlib/raw/types/payment_charge.py +80 -0
- pixlib/raw/types/payment_form_method.py +80 -0
- pixlib/raw/types/payment_requested_info.py +103 -0
- pixlib/raw/types/payment_saved_credentials_card.py +80 -0
- pixlib/raw/types/payments/__init__.py +32 -0
- pixlib/raw/types/payments/bank_card_data.py +89 -0
- pixlib/raw/types/payments/exported_invoice.py +81 -0
- pixlib/raw/types/payments/payment_form.py +210 -0
- pixlib/raw/types/payments/payment_receipt.py +194 -0
- pixlib/raw/types/payments/payment_result.py +81 -0
- pixlib/raw/types/payments/payment_verification_needed.py +81 -0
- pixlib/raw/types/payments/saved_info.py +91 -0
- pixlib/raw/types/payments/validated_requested_info.py +94 -0
- pixlib/raw/types/peer_blocked.py +80 -0
- pixlib/raw/types/peer_channel.py +72 -0
- pixlib/raw/types/peer_chat.py +72 -0
- pixlib/raw/types/peer_located.py +88 -0
- pixlib/raw/types/peer_notify_settings.py +132 -0
- pixlib/raw/types/peer_self_located.py +72 -0
- pixlib/raw/types/peer_settings.py +147 -0
- pixlib/raw/types/peer_user.py +72 -0
- pixlib/raw/types/phone/__init__.py +31 -0
- pixlib/raw/types/phone/exported_group_call_invite.py +81 -0
- pixlib/raw/types/phone/group_call.py +113 -0
- pixlib/raw/types/phone/group_call_stream_channels.py +81 -0
- pixlib/raw/types/phone/group_call_stream_rtmp_url.py +89 -0
- pixlib/raw/types/phone/group_participants.py +121 -0
- pixlib/raw/types/phone/join_as_peers.py +97 -0
- pixlib/raw/types/phone/phone_call.py +91 -0
- pixlib/raw/types/phone_call.py +158 -0
- pixlib/raw/types/phone_call_accepted.py +128 -0
- pixlib/raw/types/phone_call_discard_reason_busy.py +67 -0
- pixlib/raw/types/phone_call_discard_reason_disconnect.py +67 -0
- pixlib/raw/types/phone_call_discard_reason_hangup.py +67 -0
- pixlib/raw/types/phone_call_discard_reason_missed.py +67 -0
- pixlib/raw/types/phone_call_discarded.py +111 -0
- pixlib/raw/types/phone_call_empty.py +72 -0
- pixlib/raw/types/phone_call_protocol.py +102 -0
- pixlib/raw/types/phone_call_requested.py +128 -0
- pixlib/raw/types/phone_call_waiting.py +129 -0
- pixlib/raw/types/phone_connection.py +112 -0
- pixlib/raw/types/phone_connection_webrtc.py +126 -0
- pixlib/raw/types/photo.py +130 -0
- pixlib/raw/types/photo_cached_size.py +96 -0
- pixlib/raw/types/photo_empty.py +72 -0
- pixlib/raw/types/photo_path_size.py +80 -0
- pixlib/raw/types/photo_size.py +96 -0
- pixlib/raw/types/photo_size_empty.py +72 -0
- pixlib/raw/types/photo_size_progressive.py +96 -0
- pixlib/raw/types/photo_stripped_size.py +80 -0
- pixlib/raw/types/photos/__init__.py +27 -0
- pixlib/raw/types/photos/photo.py +90 -0
- pixlib/raw/types/photos/photos.py +89 -0
- pixlib/raw/types/photos/photos_slice.py +97 -0
- pixlib/raw/types/poll.py +132 -0
- pixlib/raw/types/poll_answer.py +80 -0
- pixlib/raw/types/poll_answer_voters.py +94 -0
- pixlib/raw/types/poll_results.py +120 -0
- pixlib/raw/types/pong.py +90 -0
- pixlib/raw/types/popular_contact.py +80 -0
- pixlib/raw/types/post_address.py +112 -0
- pixlib/raw/types/pq_inner_data.py +112 -0
- pixlib/raw/types/pq_inner_data_dc.py +120 -0
- pixlib/raw/types/pq_inner_data_temp.py +120 -0
- pixlib/raw/types/pq_inner_data_temp_dc.py +128 -0
- pixlib/raw/types/premium_gift_option.py +107 -0
- pixlib/raw/types/premium_subscription_option.py +119 -0
- pixlib/raw/types/privacy_key_added_by_phone.py +67 -0
- pixlib/raw/types/privacy_key_chat_invite.py +67 -0
- pixlib/raw/types/privacy_key_forwards.py +67 -0
- pixlib/raw/types/privacy_key_phone_call.py +67 -0
- pixlib/raw/types/privacy_key_phone_number.py +67 -0
- pixlib/raw/types/privacy_key_phone_p2_p.py +67 -0
- pixlib/raw/types/privacy_key_profile_photo.py +67 -0
- pixlib/raw/types/privacy_key_status_timestamp.py +67 -0
- pixlib/raw/types/privacy_key_voice_messages.py +67 -0
- pixlib/raw/types/privacy_value_allow_all.py +67 -0
- pixlib/raw/types/privacy_value_allow_chat_participants.py +72 -0
- pixlib/raw/types/privacy_value_allow_contacts.py +67 -0
- pixlib/raw/types/privacy_value_allow_users.py +72 -0
- pixlib/raw/types/privacy_value_disallow_all.py +67 -0
- pixlib/raw/types/privacy_value_disallow_chat_participants.py +72 -0
- pixlib/raw/types/privacy_value_disallow_contacts.py +67 -0
- pixlib/raw/types/privacy_value_disallow_users.py +72 -0
- pixlib/raw/types/reaction_count.py +91 -0
- pixlib/raw/types/reaction_custom_emoji.py +72 -0
- pixlib/raw/types/reaction_emoji.py +72 -0
- pixlib/raw/types/reaction_empty.py +67 -0
- pixlib/raw/types/received_notify_message.py +89 -0
- pixlib/raw/types/recent_me_url_chat.py +80 -0
- pixlib/raw/types/recent_me_url_chat_invite.py +80 -0
- pixlib/raw/types/recent_me_url_sticker_set.py +80 -0
- pixlib/raw/types/recent_me_url_unknown.py +72 -0
- pixlib/raw/types/recent_me_url_user.py +80 -0
- pixlib/raw/types/reply_inline_markup.py +72 -0
- pixlib/raw/types/reply_keyboard_force_reply.py +87 -0
- pixlib/raw/types/reply_keyboard_hide.py +72 -0
- pixlib/raw/types/reply_keyboard_markup.py +101 -0
- pixlib/raw/types/res_pq.py +106 -0
- pixlib/raw/types/restriction_reason.py +88 -0
- pixlib/raw/types/rpc_answer_dropped.py +97 -0
- pixlib/raw/types/rpc_answer_dropped_running.py +76 -0
- pixlib/raw/types/rpc_answer_unknown.py +76 -0
- pixlib/raw/types/rpc_error.py +80 -0
- pixlib/raw/types/rpc_result.py +80 -0
- pixlib/raw/types/saved_phone_contact.py +105 -0
- pixlib/raw/types/search_result_position.py +88 -0
- pixlib/raw/types/search_results_calendar_period.py +96 -0
- pixlib/raw/types/secure_credentials_encrypted.py +88 -0
- pixlib/raw/types/secure_data.py +88 -0
- pixlib/raw/types/secure_file.py +120 -0
- pixlib/raw/types/secure_file_empty.py +67 -0
- pixlib/raw/types/secure_password_kdf_algo_pbkdf2_hmacsha512iter100000.py +72 -0
- pixlib/raw/types/secure_password_kdf_algo_sha512.py +72 -0
- pixlib/raw/types/secure_password_kdf_algo_unknown.py +67 -0
- pixlib/raw/types/secure_plain_email.py +72 -0
- pixlib/raw/types/secure_plain_phone.py +72 -0
- pixlib/raw/types/secure_required_type.py +92 -0
- pixlib/raw/types/secure_required_type_one_of.py +72 -0
- pixlib/raw/types/secure_secret_settings.py +88 -0
- pixlib/raw/types/secure_value.py +163 -0
- pixlib/raw/types/secure_value_error.py +88 -0
- pixlib/raw/types/secure_value_error_data.py +96 -0
- pixlib/raw/types/secure_value_error_file.py +88 -0
- pixlib/raw/types/secure_value_error_files.py +88 -0
- pixlib/raw/types/secure_value_error_front_side.py +88 -0
- pixlib/raw/types/secure_value_error_reverse_side.py +88 -0
- pixlib/raw/types/secure_value_error_selfie.py +88 -0
- pixlib/raw/types/secure_value_error_translation_file.py +88 -0
- pixlib/raw/types/secure_value_error_translation_files.py +88 -0
- pixlib/raw/types/secure_value_hash.py +80 -0
- pixlib/raw/types/secure_value_type_address.py +67 -0
- pixlib/raw/types/secure_value_type_bank_statement.py +67 -0
- pixlib/raw/types/secure_value_type_driver_license.py +67 -0
- pixlib/raw/types/secure_value_type_email.py +67 -0
- pixlib/raw/types/secure_value_type_identity_card.py +67 -0
- pixlib/raw/types/secure_value_type_internal_passport.py +67 -0
- pixlib/raw/types/secure_value_type_passport.py +67 -0
- pixlib/raw/types/secure_value_type_passport_registration.py +67 -0
- pixlib/raw/types/secure_value_type_personal_details.py +67 -0
- pixlib/raw/types/secure_value_type_phone.py +67 -0
- pixlib/raw/types/secure_value_type_rental_agreement.py +67 -0
- pixlib/raw/types/secure_value_type_temporary_registration.py +67 -0
- pixlib/raw/types/secure_value_type_utility_bill.py +67 -0
- pixlib/raw/types/send_as_peer.py +80 -0
- pixlib/raw/types/send_message_cancel_action.py +67 -0
- pixlib/raw/types/send_message_choose_contact_action.py +67 -0
- pixlib/raw/types/send_message_choose_sticker_action.py +67 -0
- pixlib/raw/types/send_message_emoji_interaction.py +88 -0
- pixlib/raw/types/send_message_emoji_interaction_seen.py +72 -0
- pixlib/raw/types/send_message_game_play_action.py +67 -0
- pixlib/raw/types/send_message_geo_location_action.py +67 -0
- pixlib/raw/types/send_message_history_import_action.py +72 -0
- pixlib/raw/types/send_message_record_audio_action.py +67 -0
- pixlib/raw/types/send_message_record_round_action.py +67 -0
- pixlib/raw/types/send_message_record_video_action.py +67 -0
- pixlib/raw/types/send_message_typing_action.py +67 -0
- pixlib/raw/types/send_message_upload_audio_action.py +72 -0
- pixlib/raw/types/send_message_upload_document_action.py +72 -0
- pixlib/raw/types/send_message_upload_photo_action.py +72 -0
- pixlib/raw/types/send_message_upload_round_action.py +72 -0
- pixlib/raw/types/send_message_upload_video_action.py +72 -0
- pixlib/raw/types/server_dh_inner_data.py +112 -0
- pixlib/raw/types/server_dh_params_fail.py +97 -0
- pixlib/raw/types/server_dh_params_ok.py +97 -0
- pixlib/raw/types/shipping_option.py +88 -0
- pixlib/raw/types/simple_web_view_result_url.py +81 -0
- pixlib/raw/types/speaking_in_group_call_action.py +67 -0
- pixlib/raw/types/sponsored_message.py +151 -0
- pixlib/raw/types/stats/__init__.py +27 -0
- pixlib/raw/types/stats/broadcast_stats.py +193 -0
- pixlib/raw/types/stats/megagroup_stats.py +209 -0
- pixlib/raw/types/stats/message_stats.py +81 -0
- pixlib/raw/types/stats_abs_value_and_prev.py +80 -0
- pixlib/raw/types/stats_date_range_days.py +80 -0
- pixlib/raw/types/stats_graph.py +92 -0
- pixlib/raw/types/stats_graph_async.py +81 -0
- pixlib/raw/types/stats_graph_error.py +81 -0
- pixlib/raw/types/stats_group_top_admin.py +96 -0
- pixlib/raw/types/stats_group_top_inviter.py +80 -0
- pixlib/raw/types/stats_group_top_poster.py +88 -0
- pixlib/raw/types/stats_percent_value.py +80 -0
- pixlib/raw/types/stats_url.py +72 -0
- pixlib/raw/types/sticker_keyword.py +80 -0
- pixlib/raw/types/sticker_pack.py +80 -0
- pixlib/raw/types/sticker_set.py +196 -0
- pixlib/raw/types/sticker_set_covered.py +89 -0
- pixlib/raw/types/sticker_set_full_covered.py +105 -0
- pixlib/raw/types/sticker_set_multi_covered.py +89 -0
- pixlib/raw/types/stickers/__init__.py +25 -0
- pixlib/raw/types/stickers/suggested_short_name.py +81 -0
- pixlib/raw/types/storage/__init__.py +34 -0
- pixlib/raw/types/storage/file_gif.py +67 -0
- pixlib/raw/types/storage/file_jpeg.py +67 -0
- pixlib/raw/types/storage/file_mov.py +67 -0
- pixlib/raw/types/storage/file_mp3.py +67 -0
- pixlib/raw/types/storage/file_mp4.py +67 -0
- pixlib/raw/types/storage/file_partial.py +67 -0
- pixlib/raw/types/storage/file_pdf.py +67 -0
- pixlib/raw/types/storage/file_png.py +67 -0
- pixlib/raw/types/storage/file_unknown.py +67 -0
- pixlib/raw/types/storage/file_webp.py +67 -0
- pixlib/raw/types/text_anchor.py +80 -0
- pixlib/raw/types/text_bold.py +72 -0
- pixlib/raw/types/text_concat.py +72 -0
- pixlib/raw/types/text_email.py +80 -0
- pixlib/raw/types/text_empty.py +67 -0
- pixlib/raw/types/text_fixed.py +72 -0
- pixlib/raw/types/text_image.py +88 -0
- pixlib/raw/types/text_italic.py +72 -0
- pixlib/raw/types/text_marked.py +72 -0
- pixlib/raw/types/text_phone.py +80 -0
- pixlib/raw/types/text_plain.py +72 -0
- pixlib/raw/types/text_strike.py +72 -0
- pixlib/raw/types/text_subscript.py +72 -0
- pixlib/raw/types/text_superscript.py +72 -0
- pixlib/raw/types/text_underline.py +72 -0
- pixlib/raw/types/text_url.py +88 -0
- pixlib/raw/types/theme.py +165 -0
- pixlib/raw/types/theme_settings.py +117 -0
- pixlib/raw/types/top_peer.py +80 -0
- pixlib/raw/types/top_peer_category_bots_inline.py +67 -0
- pixlib/raw/types/top_peer_category_bots_pm.py +67 -0
- pixlib/raw/types/top_peer_category_channels.py +67 -0
- pixlib/raw/types/top_peer_category_correspondents.py +67 -0
- pixlib/raw/types/top_peer_category_forward_chats.py +67 -0
- pixlib/raw/types/top_peer_category_forward_users.py +67 -0
- pixlib/raw/types/top_peer_category_groups.py +67 -0
- pixlib/raw/types/top_peer_category_peers.py +88 -0
- pixlib/raw/types/top_peer_category_phone_calls.py +67 -0
- pixlib/raw/types/update_attach_menu_bots.py +67 -0
- pixlib/raw/types/update_bot_callback_query.py +124 -0
- pixlib/raw/types/update_bot_chat_invite_requester.py +112 -0
- pixlib/raw/types/update_bot_commands.py +88 -0
- pixlib/raw/types/update_bot_inline_query.py +118 -0
- pixlib/raw/types/update_bot_inline_send.py +110 -0
- pixlib/raw/types/update_bot_menu_button.py +80 -0
- pixlib/raw/types/update_bot_precheckout_query.py +125 -0
- pixlib/raw/types/update_bot_shipping_query.py +96 -0
- pixlib/raw/types/update_bot_stopped.py +96 -0
- pixlib/raw/types/update_bot_webhook_json.py +72 -0
- pixlib/raw/types/update_bot_webhook_json_query.py +88 -0
- pixlib/raw/types/update_channel.py +72 -0
- pixlib/raw/types/update_channel_available_messages.py +80 -0
- pixlib/raw/types/update_channel_message_forwards.py +88 -0
- pixlib/raw/types/update_channel_message_views.py +88 -0
- pixlib/raw/types/update_channel_participant.py +136 -0
- pixlib/raw/types/update_channel_pinned_topic.py +83 -0
- pixlib/raw/types/update_channel_read_messages_contents.py +91 -0
- pixlib/raw/types/update_channel_too_long.py +83 -0
- pixlib/raw/types/update_channel_user_typing.py +99 -0
- pixlib/raw/types/update_channel_web_page.py +96 -0
- pixlib/raw/types/update_chat.py +72 -0
- pixlib/raw/types/update_chat_default_banned_rights.py +88 -0
- pixlib/raw/types/update_chat_participant.py +136 -0
- pixlib/raw/types/update_chat_participant_add.py +104 -0
- pixlib/raw/types/update_chat_participant_admin.py +96 -0
- pixlib/raw/types/update_chat_participant_delete.py +88 -0
- pixlib/raw/types/update_chat_participants.py +72 -0
- pixlib/raw/types/update_chat_user_typing.py +88 -0
- pixlib/raw/types/update_config.py +67 -0
- pixlib/raw/types/update_contacts_reset.py +67 -0
- pixlib/raw/types/update_dc_options.py +72 -0
- pixlib/raw/types/update_delete_channel_messages.py +96 -0
- pixlib/raw/types/update_delete_messages.py +88 -0
- pixlib/raw/types/update_delete_scheduled_messages.py +80 -0
- pixlib/raw/types/update_dialog_filter.py +84 -0
- pixlib/raw/types/update_dialog_filter_order.py +72 -0
- pixlib/raw/types/update_dialog_filters.py +67 -0
- pixlib/raw/types/update_dialog_pinned.py +89 -0
- pixlib/raw/types/update_dialog_unread_mark.py +80 -0
- pixlib/raw/types/update_draft_message.py +91 -0
- pixlib/raw/types/update_edit_channel_message.py +88 -0
- pixlib/raw/types/update_edit_message.py +88 -0
- pixlib/raw/types/update_encrypted_chat_typing.py +72 -0
- pixlib/raw/types/update_encrypted_messages_read.py +88 -0
- pixlib/raw/types/update_encryption.py +80 -0
- pixlib/raw/types/update_faved_stickers.py +67 -0
- pixlib/raw/types/update_folder_peers.py +88 -0
- pixlib/raw/types/update_geo_live_viewed.py +80 -0
- pixlib/raw/types/update_group_call.py +80 -0
- pixlib/raw/types/update_group_call_connection.py +80 -0
- pixlib/raw/types/update_group_call_participants.py +88 -0
- pixlib/raw/types/update_inline_bot_callback_query.py +116 -0
- pixlib/raw/types/update_lang_pack.py +72 -0
- pixlib/raw/types/update_lang_pack_too_long.py +72 -0
- pixlib/raw/types/update_login_token.py +67 -0
- pixlib/raw/types/update_message_extended_media.py +88 -0
- pixlib/raw/types/update_message_id.py +80 -0
- pixlib/raw/types/update_message_poll.py +92 -0
- pixlib/raw/types/update_message_poll_vote.py +96 -0
- pixlib/raw/types/update_message_reactions.py +99 -0
- pixlib/raw/types/update_move_sticker_set_to_top.py +86 -0
- pixlib/raw/types/update_new_channel_message.py +88 -0
- pixlib/raw/types/update_new_encrypted_message.py +80 -0
- pixlib/raw/types/update_new_message.py +88 -0
- pixlib/raw/types/update_new_scheduled_message.py +72 -0
- pixlib/raw/types/update_new_sticker_set.py +72 -0
- pixlib/raw/types/update_notify_settings.py +80 -0
- pixlib/raw/types/update_peer_blocked.py +80 -0
- pixlib/raw/types/update_peer_history_ttl.py +83 -0
- pixlib/raw/types/update_peer_located.py +72 -0
- pixlib/raw/types/update_peer_settings.py +80 -0
- pixlib/raw/types/update_pending_join_requests.py +88 -0
- pixlib/raw/types/update_phone_call.py +72 -0
- pixlib/raw/types/update_phone_call_signaling_data.py +80 -0
- pixlib/raw/types/update_pinned_channel_messages.py +104 -0
- pixlib/raw/types/update_pinned_dialogs.py +85 -0
- pixlib/raw/types/update_pinned_messages.py +104 -0
- pixlib/raw/types/update_privacy.py +80 -0
- pixlib/raw/types/update_pts_changed.py +67 -0
- pixlib/raw/types/update_read_channel_discussion_inbox.py +108 -0
- pixlib/raw/types/update_read_channel_discussion_outbox.py +88 -0
- pixlib/raw/types/update_read_channel_inbox.py +107 -0
- pixlib/raw/types/update_read_channel_outbox.py +80 -0
- pixlib/raw/types/update_read_featured_emoji_stickers.py +67 -0
- pixlib/raw/types/update_read_featured_stickers.py +67 -0
- pixlib/raw/types/update_read_history_inbox.py +115 -0
- pixlib/raw/types/update_read_history_outbox.py +96 -0
- pixlib/raw/types/update_read_messages_contents.py +88 -0
- pixlib/raw/types/update_recent_emoji_statuses.py +67 -0
- pixlib/raw/types/update_recent_reactions.py +67 -0
- pixlib/raw/types/update_recent_stickers.py +67 -0
- pixlib/raw/types/update_saved_gifs.py +67 -0
- pixlib/raw/types/update_saved_ringtones.py +67 -0
- pixlib/raw/types/update_service_notification.py +113 -0
- pixlib/raw/types/update_short.py +168 -0
- pixlib/raw/types/update_short_chat_message.py +282 -0
- pixlib/raw/types/update_short_message.py +274 -0
- pixlib/raw/types/update_short_sent_message.py +221 -0
- pixlib/raw/types/update_sticker_sets.py +78 -0
- pixlib/raw/types/update_sticker_sets_order.py +86 -0
- pixlib/raw/types/update_theme.py +72 -0
- pixlib/raw/types/update_transcribed_audio.py +104 -0
- pixlib/raw/types/update_user_emoji_status.py +80 -0
- pixlib/raw/types/update_user_name.py +96 -0
- pixlib/raw/types/update_user_phone.py +80 -0
- pixlib/raw/types/update_user_photo.py +96 -0
- pixlib/raw/types/update_user_status.py +80 -0
- pixlib/raw/types/update_user_typing.py +80 -0
- pixlib/raw/types/update_web_page.py +88 -0
- pixlib/raw/types/update_web_view_result_sent.py +72 -0
- pixlib/raw/types/updates/__init__.py +32 -0
- pixlib/raw/types/updates/channel_difference.py +130 -0
- pixlib/raw/types/updates/channel_difference_empty.py +98 -0
- pixlib/raw/types/updates/channel_difference_too_long.py +122 -0
- pixlib/raw/types/updates/difference.py +121 -0
- pixlib/raw/types/updates/difference_empty.py +89 -0
- pixlib/raw/types/updates/difference_slice.py +121 -0
- pixlib/raw/types/updates/difference_too_long.py +81 -0
- pixlib/raw/types/updates/state.py +113 -0
- pixlib/raw/types/updates_combined.py +200 -0
- pixlib/raw/types/updates_t.py +192 -0
- pixlib/raw/types/updates_too_long.py +155 -0
- pixlib/raw/types/upload/__init__.py +29 -0
- pixlib/raw/types/upload/cdn_file.py +81 -0
- pixlib/raw/types/upload/cdn_file_reupload_needed.py +81 -0
- pixlib/raw/types/upload/file.py +97 -0
- pixlib/raw/types/upload/file_cdn_redirect.py +113 -0
- pixlib/raw/types/upload/web_file.py +113 -0
- pixlib/raw/types/url_auth_result_accepted.py +82 -0
- pixlib/raw/types/url_auth_result_default.py +77 -0
- pixlib/raw/types/url_auth_result_request.py +98 -0
- pixlib/raw/types/user.py +320 -0
- pixlib/raw/types/user_empty.py +84 -0
- pixlib/raw/types/user_full.py +244 -0
- pixlib/raw/types/user_profile_photo.py +97 -0
- pixlib/raw/types/user_profile_photo_empty.py +67 -0
- pixlib/raw/types/user_status_empty.py +67 -0
- pixlib/raw/types/user_status_last_month.py +67 -0
- pixlib/raw/types/user_status_last_week.py +67 -0
- pixlib/raw/types/user_status_offline.py +72 -0
- pixlib/raw/types/user_status_online.py +72 -0
- pixlib/raw/types/user_status_recently.py +67 -0
- pixlib/raw/types/username.py +86 -0
- pixlib/raw/types/users/__init__.py +25 -0
- pixlib/raw/types/users/user_full.py +97 -0
- pixlib/raw/types/video_size.py +107 -0
- pixlib/raw/types/wall_paper.py +143 -0
- pixlib/raw/types/wall_paper_no_file.py +107 -0
- pixlib/raw/types/wall_paper_settings.py +132 -0
- pixlib/raw/types/web_authorization.py +136 -0
- pixlib/raw/types/web_document.py +104 -0
- pixlib/raw/types/web_document_no_proxy.py +96 -0
- pixlib/raw/types/web_page.py +237 -0
- pixlib/raw/types/web_page_attribute_theme.py +86 -0
- pixlib/raw/types/web_page_empty.py +81 -0
- pixlib/raw/types/web_page_not_modified.py +84 -0
- pixlib/raw/types/web_page_pending.py +89 -0
- pixlib/raw/types/web_view_message_sent.py +85 -0
- pixlib/raw/types/web_view_result_url.py +89 -0
- pixlib/session/__init__.py +2 -0
- pixlib/session/auth.py +243 -0
- pixlib/session/internals/__init__.py +3 -0
- pixlib/session/internals/data_center.py +63 -0
- pixlib/session/internals/msg_factory.py +20 -0
- pixlib/session/internals/msg_id.py +27 -0
- pixlib/session/internals/seq_no.py +16 -0
- pixlib/session/session.py +363 -0
- pixlib/storage/__init__.py +3 -0
- pixlib/storage/file_storage.py +54 -0
- pixlib/storage/memory_storage.py +55 -0
- pixlib/storage/sqlite_storage.py +210 -0
- pixlib/storage/storage.py +73 -0
- pixlib/sync.py +95 -0
- pixlib/types/__init__.py +10 -0
- pixlib/types/authorization/__init__.py +4 -0
- pixlib/types/authorization/sent_code.py +44 -0
- pixlib/types/authorization/terms_of_service.py +38 -0
- pixlib/types/bots_and_keyboards/__init__.py +53 -0
- pixlib/types/bots_and_keyboards/bot_command.py +35 -0
- pixlib/types/bots_and_keyboards/bot_command_scope.py +55 -0
- pixlib/types/bots_and_keyboards/bot_command_scope_all_chat_administrators.py +14 -0
- pixlib/types/bots_and_keyboards/bot_command_scope_all_group_chats.py +14 -0
- pixlib/types/bots_and_keyboards/bot_command_scope_all_private_chats.py +14 -0
- pixlib/types/bots_and_keyboards/bot_command_scope_chat.py +25 -0
- pixlib/types/bots_and_keyboards/bot_command_scope_chat_administrators.py +25 -0
- pixlib/types/bots_and_keyboards/bot_command_scope_chat_member.py +30 -0
- pixlib/types/bots_and_keyboards/bot_command_scope_default.py +15 -0
- pixlib/types/bots_and_keyboards/callback_game.py +11 -0
- pixlib/types/bots_and_keyboards/callback_query.py +295 -0
- pixlib/types/bots_and_keyboards/force_reply.py +48 -0
- pixlib/types/bots_and_keyboards/game_high_score.py +52 -0
- pixlib/types/bots_and_keyboards/inline_keyboard_button.py +190 -0
- pixlib/types/bots_and_keyboards/inline_keyboard_markup.py +58 -0
- pixlib/types/bots_and_keyboards/keyboard_button.py +77 -0
- pixlib/types/bots_and_keyboards/login_url.py +72 -0
- pixlib/types/bots_and_keyboards/menu_button.py +26 -0
- pixlib/types/bots_and_keyboards/menu_button_commands.py +14 -0
- pixlib/types/bots_and_keyboards/menu_button_default.py +14 -0
- pixlib/types/bots_and_keyboards/menu_button_web_app.py +33 -0
- pixlib/types/bots_and_keyboards/reply_keyboard_markup.py +86 -0
- pixlib/types/bots_and_keyboards/reply_keyboard_remove.py +40 -0
- pixlib/types/bots_and_keyboards/sent_web_app_message.py +24 -0
- pixlib/types/bots_and_keyboards/web_app_info.py +19 -0
- pixlib/types/inline_mode/__init__.py +29 -0
- pixlib/types/inline_mode/chosen_inline_result.py +81 -0
- pixlib/types/inline_mode/inline_query.py +163 -0
- pixlib/types/inline_mode/inline_query_result.py +45 -0
- pixlib/types/inline_mode/inline_query_result_animation.py +137 -0
- pixlib/types/inline_mode/inline_query_result_article.py +81 -0
- pixlib/types/inline_mode/inline_query_result_audio.py +102 -0
- pixlib/types/inline_mode/inline_query_result_cached_animation.py +90 -0
- pixlib/types/inline_mode/inline_query_result_cached_audio.py +83 -0
- pixlib/types/inline_mode/inline_query_result_cached_document.py +95 -0
- pixlib/types/inline_mode/inline_query_result_cached_photo.py +93 -0
- pixlib/types/inline_mode/inline_query_result_cached_sticker.py +60 -0
- pixlib/types/inline_mode/inline_query_result_cached_video.py +96 -0
- pixlib/types/inline_mode/inline_query_result_cached_voice.py +90 -0
- pixlib/types/inline_mode/inline_query_result_contact.py +96 -0
- pixlib/types/inline_mode/inline_query_result_document.py +127 -0
- pixlib/types/inline_mode/inline_query_result_location.py +104 -0
- pixlib/types/inline_mode/inline_query_result_photo.py +129 -0
- pixlib/types/inline_mode/inline_query_result_venue.py +113 -0
- pixlib/types/inline_mode/inline_query_result_video.py +133 -0
- pixlib/types/inline_mode/inline_query_result_voice.py +96 -0
- pixlib/types/input_media/__init__.py +12 -0
- pixlib/types/input_media/input_media.py +31 -0
- pixlib/types/input_media/input_media_animation.py +62 -0
- pixlib/types/input_media/input_media_audio.py +64 -0
- pixlib/types/input_media/input_media_document.py +47 -0
- pixlib/types/input_media/input_media_photo.py +39 -0
- pixlib/types/input_media/input_media_video.py +68 -0
- pixlib/types/input_media/input_phone_contact.py +33 -0
- pixlib/types/input_message_content/__init__.py +6 -0
- pixlib/types/input_message_content/input_message_content.py +22 -0
- pixlib/types/input_message_content/input_text_message_content.py +50 -0
- pixlib/types/list.py +12 -0
- pixlib/types/messages_and_media/__init__.py +29 -0
- pixlib/types/messages_and_media/animation.py +103 -0
- pixlib/types/messages_and_media/audio.py +103 -0
- pixlib/types/messages_and_media/contact.py +53 -0
- pixlib/types/messages_and_media/dice.py +29 -0
- pixlib/types/messages_and_media/document.py +80 -0
- pixlib/types/messages_and_media/game.py +81 -0
- pixlib/types/messages_and_media/location.py +37 -0
- pixlib/types/messages_and_media/message.py +3629 -0
- pixlib/types/messages_and_media/message_entity.py +106 -0
- pixlib/types/messages_and_media/message_reactions.py +38 -0
- pixlib/types/messages_and_media/photo.py +112 -0
- pixlib/types/messages_and_media/poll.py +185 -0
- pixlib/types/messages_and_media/poll_option.py +32 -0
- pixlib/types/messages_and_media/reaction.py +68 -0
- pixlib/types/messages_and_media/sticker.py +188 -0
- pixlib/types/messages_and_media/stripped_thumbnail.py +29 -0
- pixlib/types/messages_and_media/thumbnail.py +93 -0
- pixlib/types/messages_and_media/venue.py +56 -0
- pixlib/types/messages_and_media/video.py +116 -0
- pixlib/types/messages_and_media/video_note.py +90 -0
- pixlib/types/messages_and_media/voice.py +78 -0
- pixlib/types/messages_and_media/web_app_data.py +33 -0
- pixlib/types/messages_and_media/web_page.py +169 -0
- pixlib/types/object.py +103 -0
- pixlib/types/update.py +9 -0
- pixlib/types/user_and_chats/__init__.py +49 -0
- pixlib/types/user_and_chats/chat.py +954 -0
- pixlib/types/user_and_chats/chat_admin_with_invite_links.py +45 -0
- pixlib/types/user_and_chats/chat_event.py +471 -0
- pixlib/types/user_and_chats/chat_event_filter.py +157 -0
- pixlib/types/user_and_chats/chat_invite_link.py +112 -0
- pixlib/types/user_and_chats/chat_join_request.py +121 -0
- pixlib/types/user_and_chats/chat_joiner.py +64 -0
- pixlib/types/user_and_chats/chat_member.py +209 -0
- pixlib/types/user_and_chats/chat_member_updated.py +84 -0
- pixlib/types/user_and_chats/chat_permissions.py +80 -0
- pixlib/types/user_and_chats/chat_photo.py +89 -0
- pixlib/types/user_and_chats/chat_preview.py +61 -0
- pixlib/types/user_and_chats/chat_privileges.py +94 -0
- pixlib/types/user_and_chats/chat_reactions.py +51 -0
- pixlib/types/user_and_chats/dialog.py +61 -0
- pixlib/types/user_and_chats/emoji_status.py +59 -0
- pixlib/types/user_and_chats/invite_link_importer.py +43 -0
- pixlib/types/user_and_chats/restriction.py +32 -0
- pixlib/types/user_and_chats/user.py +390 -0
- pixlib/types/user_and_chats/video_chat_ended.py +23 -0
- pixlib/types/user_and_chats/video_chat_members_invited.py +32 -0
- pixlib/types/user_and_chats/video_chat_scheduled.py +25 -0
- pixlib/types/user_and_chats/video_chat_started.py +11 -0
- pixlib/utils.py +353 -0
- pixlib-1.0.dist-info/LICENSE +661 -0
- pixlib-1.0.dist-info/METADATA +47 -0
- pixlib-1.0.dist-info/NOTICE +17 -0
- pixlib-1.0.dist-info/RECORD +2522 -0
- pixlib-1.0.dist-info/WHEEL +5 -0
- pixlib-1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import codecs
|
|
2
|
+
import pickle
|
|
3
|
+
from typing import Dict, List, Union
|
|
4
|
+
from pixlib.Pix.database import db_x
|
|
5
|
+
|
|
6
|
+
filtersdb = db_x["filters"]
|
|
7
|
+
|
|
8
|
+
def obj_to_str(obj):
|
|
9
|
+
if not obj:
|
|
10
|
+
return False
|
|
11
|
+
string = codecs.encode(pickle.dumps(obj), "base64").decode()
|
|
12
|
+
return string
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def str_to_obj(string: str):
|
|
16
|
+
obj = pickle.loads(codecs.decode(string.encode(), "base64"))
|
|
17
|
+
return obj
|
|
18
|
+
|
|
19
|
+
async def get_filters_count() -> dict:
|
|
20
|
+
chats_count = 0
|
|
21
|
+
filters_count = 0
|
|
22
|
+
async for chat in filtersdb.find({"chat_id": {"$lt": 0}}):
|
|
23
|
+
filters_name = await get_filters_names(chat["chat_id"])
|
|
24
|
+
filters_count += len(filters_name)
|
|
25
|
+
chats_count += 1
|
|
26
|
+
return {
|
|
27
|
+
"chats_count": chats_count,
|
|
28
|
+
"filters_count": filters_count,
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
async def _get_filters(chat_id: int) -> Dict[str, int]:
|
|
33
|
+
_filters = await filtersdb.find_one({"chat_id": chat_id})
|
|
34
|
+
if not _filters:
|
|
35
|
+
return {}
|
|
36
|
+
return _filters["filters"]
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
async def get_filters_names(chat_id: int) -> List[str]:
|
|
40
|
+
_filters = []
|
|
41
|
+
for _filter in await _get_filters(chat_id):
|
|
42
|
+
_filters.append(_filter)
|
|
43
|
+
return _filters
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
async def get_filter(chat_id: int, name: str) -> Union[bool, dict]:
|
|
47
|
+
name = name.lower().strip()
|
|
48
|
+
_filters = await _get_filters(chat_id)
|
|
49
|
+
if name in _filters:
|
|
50
|
+
return _filters[name]
|
|
51
|
+
return False
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
async def save_filter(chat_id: int, name: str, _filter: dict):
|
|
55
|
+
name = name.lower().strip()
|
|
56
|
+
_filters = await _get_filters(chat_id)
|
|
57
|
+
_filters[name] = _filter
|
|
58
|
+
await filtersdb.update_one(
|
|
59
|
+
{"chat_id": chat_id},
|
|
60
|
+
{"$set": {"filters": _filters}},
|
|
61
|
+
upsert=True,
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
async def delete_filter(chat_id: int, name: str) -> bool:
|
|
66
|
+
filtersd = await _get_filters(chat_id)
|
|
67
|
+
name = name.lower().strip()
|
|
68
|
+
if name in filtersd:
|
|
69
|
+
del filtersd[name]
|
|
70
|
+
await filtersdb.update_one(
|
|
71
|
+
{"chat_id": chat_id},
|
|
72
|
+
{"$set": {"filters": filtersd}},
|
|
73
|
+
upsert=True,
|
|
74
|
+
)
|
|
75
|
+
return True
|
|
76
|
+
return False
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from pixlib.Pix.database import db_x
|
|
2
|
+
|
|
3
|
+
gbun = db_x["GBAN"]
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
async def gban_user(user, reason="#GBanned"):
|
|
7
|
+
await gbun.insert_one({"user": user, "reason": reason})
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
async def ungban_user(user):
|
|
11
|
+
await gbun.delete_one({"user": user})
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
async def gban_list():
|
|
15
|
+
return [lo async for lo in gbun.find({})]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
async def gban_info(user):
|
|
19
|
+
kk = await gbun.find_one({"user": user})
|
|
20
|
+
if not kk:
|
|
21
|
+
return False
|
|
22
|
+
else:
|
|
23
|
+
return kk["reason"]
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
from pixlib.Pix.database import db_x
|
|
2
|
+
|
|
3
|
+
db = db_x
|
|
4
|
+
collection = db['globals']
|
|
5
|
+
|
|
6
|
+
class Globals:
|
|
7
|
+
def __init__(self, variable, value):
|
|
8
|
+
self.variable = variable
|
|
9
|
+
self.value = value
|
|
10
|
+
|
|
11
|
+
def to_dict(self):
|
|
12
|
+
return {'variable': self.variable, 'value': self.value}
|
|
13
|
+
|
|
14
|
+
@staticmethod
|
|
15
|
+
def from_dict(data):
|
|
16
|
+
return Globals(data['variable'], data['value'])
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def gvarstatus(variable):
|
|
20
|
+
try:
|
|
21
|
+
result = collection.find_one({'variable': variable})
|
|
22
|
+
if result:
|
|
23
|
+
return result['value']
|
|
24
|
+
else:
|
|
25
|
+
return None
|
|
26
|
+
except BaseException:
|
|
27
|
+
return None
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def addgvar(variable, value):
|
|
31
|
+
if collection.find_one({'variable': variable}):
|
|
32
|
+
delgvar(variable)
|
|
33
|
+
data = Globals(variable, value).to_dict()
|
|
34
|
+
collection.insert_one(data)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def delgvar(variable):
|
|
38
|
+
result = collection.delete_one({'variable': variable})
|
|
39
|
+
if result.deleted_count > 0:
|
|
40
|
+
return True
|
|
41
|
+
else:
|
|
42
|
+
return False
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from pixlib.Pix.database import db_x
|
|
2
|
+
|
|
3
|
+
gmuteh = db_x["GMUTE"]
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
async def is_gmuted(sender_id):
|
|
7
|
+
kk = await gmuteh.find_one({"sender_id": sender_id})
|
|
8
|
+
return bool(kk)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
async def gmute(sender_id, reason="#GMuted"):
|
|
12
|
+
await gmuteh.insert_one({"sender_id": sender_id, "reason": reason})
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
async def ungmute(sender_id):
|
|
16
|
+
await gmuteh.delete_one({"sender_id": sender_id})
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import codecs
|
|
2
|
+
import pickle
|
|
3
|
+
from pixlib.Pix.database import db_x
|
|
4
|
+
from typing import Dict, List, Union
|
|
5
|
+
|
|
6
|
+
notesdb = db_x["notes"]
|
|
7
|
+
|
|
8
|
+
def obj_to_str(obj):
|
|
9
|
+
if not obj:
|
|
10
|
+
return False
|
|
11
|
+
string = codecs.encode(pickle.dumps(obj), "base64").decode()
|
|
12
|
+
return string
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def str_to_obj(string: str):
|
|
16
|
+
obj = pickle.loads(codecs.decode(string.encode(), "base64"))
|
|
17
|
+
return obj
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
async def get_notes_count() -> dict:
|
|
21
|
+
chats_count = 0
|
|
22
|
+
notes_count = 0
|
|
23
|
+
async for chat in notesdb.find({"chat_id": {"$exists": 1}}):
|
|
24
|
+
notes_name = await get_note_names(chat["chat_id"])
|
|
25
|
+
notes_count += len(notes_name)
|
|
26
|
+
chats_count += 1
|
|
27
|
+
return {"chats_count": chats_count, "notes_count": notes_count}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
async def _get_notes(chat_id: int) -> Dict[str, int]:
|
|
31
|
+
_notes = await notesdb.find_one({"chat_id": chat_id})
|
|
32
|
+
if not _notes:
|
|
33
|
+
return {}
|
|
34
|
+
return _notes["notes"]
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
async def get_note_names(chat_id: int) -> List[str]:
|
|
38
|
+
_notes = []
|
|
39
|
+
for note in await _get_notes(chat_id):
|
|
40
|
+
_notes.append(note)
|
|
41
|
+
return _notes
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
async def get_note(chat_id: int, name: str) -> Union[bool, dict]:
|
|
45
|
+
name = name.lower().strip()
|
|
46
|
+
_notes = await _get_notes(chat_id)
|
|
47
|
+
if name in _notes:
|
|
48
|
+
return _notes[name]
|
|
49
|
+
return False
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
async def save_note(chat_id: int, name: str, note: dict):
|
|
53
|
+
name = name.lower().strip()
|
|
54
|
+
_notes = await _get_notes(chat_id)
|
|
55
|
+
_notes[name] = note
|
|
56
|
+
|
|
57
|
+
await notesdb.update_one(
|
|
58
|
+
{"chat_id": chat_id}, {"$set": {"notes": _notes}}, upsert=True
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
async def delete_note(chat_id: int, name: str) -> bool:
|
|
63
|
+
notesd = await _get_notes(chat_id)
|
|
64
|
+
name = name.lower().strip()
|
|
65
|
+
if name in notesd:
|
|
66
|
+
del notesd[name]
|
|
67
|
+
await notesdb.update_one(
|
|
68
|
+
{"chat_id": chat_id},
|
|
69
|
+
{"$set": {"notes": notesd}},
|
|
70
|
+
upsert=True,
|
|
71
|
+
)
|
|
72
|
+
return True
|
|
73
|
+
return False
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from pixlib.Pix.database import db_x
|
|
2
|
+
|
|
3
|
+
def get_approved():
|
|
4
|
+
return db_x.get_key("PMPERMIT") or []
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def approve_user(id):
|
|
8
|
+
ok = get_approved()
|
|
9
|
+
if id in ok:
|
|
10
|
+
return True
|
|
11
|
+
ok.append(id)
|
|
12
|
+
return db_x.set_key("PMPERMIT", ok)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def disapprove_user(id):
|
|
16
|
+
ok = get_approved()
|
|
17
|
+
if id in ok:
|
|
18
|
+
ok.remove(id)
|
|
19
|
+
return db_x.set_key("PMPERMIT", ok)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def is_approved(id):
|
|
23
|
+
return id in get_approved()
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
from pixlib.Pix.database import db_x
|
|
2
|
+
|
|
3
|
+
db_y = db_x["PMPERMIT"]
|
|
4
|
+
|
|
5
|
+
PMPERMIT_MESSAGE = (
|
|
6
|
+
"**warning! please read this message carefully..\n\n**"
|
|
7
|
+
"**I'm Pixsuvy I'm here to protect my master from spam**"
|
|
8
|
+
"**if you are not a spammer, please wait!.\n\n**"
|
|
9
|
+
"**don't spam or you will be blocked, so be careful when sending messages!**"
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
BLOCKED = "**Spammer, blocked!**"
|
|
13
|
+
|
|
14
|
+
LIMIT = 5
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
async def set_pm(value: bool):
|
|
18
|
+
doc = {"_id": 1, "pmpermit": value}
|
|
19
|
+
doc2 = {"_id": "Approved", "users": []}
|
|
20
|
+
r = await db_y.find_one({"_id": 1})
|
|
21
|
+
r2 = await db_y.find_one({"_id": "Approved"})
|
|
22
|
+
if r:
|
|
23
|
+
await db_y.update_one({"_id": 1}, {"$set": {"pmpermit": value}})
|
|
24
|
+
else:
|
|
25
|
+
await db_y.insert_one(doc)
|
|
26
|
+
if not r2:
|
|
27
|
+
await db_y.insert_one(doc2)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
async def set_permit_message(text):
|
|
31
|
+
await db_y.update_one({"_id": 1}, {"$set": {"pmpermit_message": text}})
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
async def set_block_message(text):
|
|
35
|
+
await db_y.update_one({"_id": 1}, {"$set": {"block_message": text}})
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
async def set_limit(limit):
|
|
39
|
+
await db_y.update_one({"_id": 1}, {"$set": {"limit": limit}})
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
async def get_pm_settings():
|
|
43
|
+
result = await db_y.find_one({"_id": 1})
|
|
44
|
+
if not result:
|
|
45
|
+
return False
|
|
46
|
+
pmpermit = result["pmpermit"]
|
|
47
|
+
pm_message = result.get("pmpermit_message", PMPERMIT_MESSAGE)
|
|
48
|
+
block_message = result.get("block_message", BLOCKED)
|
|
49
|
+
limit = result.get("limit", LIMIT)
|
|
50
|
+
return pmpermit, pm_message, limit, block_message
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
async def allow_user(chat):
|
|
54
|
+
doc = {"_id": "Approved", "users": [chat]}
|
|
55
|
+
r = await db_y.find_one({"_id": "Approved"})
|
|
56
|
+
if r:
|
|
57
|
+
await db_y.update_one({"_id": "Approved"}, {"$push": {"users": chat}})
|
|
58
|
+
else:
|
|
59
|
+
await db_y.insert_one(doc)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
async def get_approved_users():
|
|
63
|
+
results = await db_y.find_one({"_id": "Approved"})
|
|
64
|
+
if results:
|
|
65
|
+
return results["users"]
|
|
66
|
+
else:
|
|
67
|
+
return []
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
async def deny_user(chat):
|
|
71
|
+
await db_y.update_one({"_id": "Approved"}, {"$pull": {"users": chat}})
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
async def pm_guard():
|
|
75
|
+
result = await db_y.find_one({"_id": 1})
|
|
76
|
+
if not result:
|
|
77
|
+
return False
|
|
78
|
+
if not result["pmpermit"]:
|
|
79
|
+
return False
|
|
80
|
+
else:
|
|
81
|
+
return True
|
|
82
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from pixlib.Pix.database import db_x
|
|
2
|
+
|
|
3
|
+
db = db_x
|
|
4
|
+
|
|
5
|
+
collection = db['slr']
|
|
6
|
+
async def pix_user(chat):
|
|
7
|
+
doc = {"_id": "slr", "users": [chat]}
|
|
8
|
+
r = await collection.find_one({"_id": "slr"})
|
|
9
|
+
if r:
|
|
10
|
+
await collection.update_one({"_id": "slr"}, {"$push": {"users": chat}})
|
|
11
|
+
else:
|
|
12
|
+
await collection.insert_one(doc)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
async def get_pix_users():
|
|
16
|
+
results = await collection.find_one({"_id": "slr"})
|
|
17
|
+
if results:
|
|
18
|
+
return results["users"]
|
|
19
|
+
else:
|
|
20
|
+
return []
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
async def unpix_user(chat):
|
|
24
|
+
await collection.update_one({"_id": "slr"}, {"$pull": {"users": chat}})
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from pixlib.Pix.database import db_x
|
|
2
|
+
|
|
3
|
+
sudoersdb = db_x["sudo"]
|
|
4
|
+
|
|
5
|
+
async def get_sudoers() -> list:
|
|
6
|
+
sudoers = await sudoersdb.find_one({"sudo": "sudo"})
|
|
7
|
+
if not sudoers:
|
|
8
|
+
return []
|
|
9
|
+
return sudoers["sudoers"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
async def add_sudo(user_id: int) -> bool:
|
|
13
|
+
sudoers = await get_sudoers()
|
|
14
|
+
sudoers.append(user_id)
|
|
15
|
+
await sudoersdb.update_one(
|
|
16
|
+
{"sudo": "sudo"}, {"$set": {"sudoers": sudoers}}, upsert=True
|
|
17
|
+
)
|
|
18
|
+
return True
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
async def remove_sudo(user_id: int) -> bool:
|
|
22
|
+
sudoers = await get_sudoers()
|
|
23
|
+
sudoers.remove(user_id)
|
|
24
|
+
await sudoersdb.update_one(
|
|
25
|
+
{"sudo": "sudo"}, {"$set": {"sudoers": sudoers}}, upsert=True
|
|
26
|
+
)
|
|
27
|
+
return True
|
pixlib/Pix/filter.py
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import re
|
|
2
|
+
from re import findall
|
|
3
|
+
from re import sub as re_sub
|
|
4
|
+
from pykeyboard import InlineKeyboard
|
|
5
|
+
from pyrogram.types import InlineKeyboardButton as Ikb
|
|
6
|
+
|
|
7
|
+
def ikb(data: dict, row_width: int = 2):
|
|
8
|
+
return keyboard(data.items(), row_width=row_width)
|
|
9
|
+
|
|
10
|
+
def get_urls_from_text(text: str) -> bool:
|
|
11
|
+
regex = r"""(?i)\b((?:https?://|www\d{0,3}[.]|[a-z0-9.\-]
|
|
12
|
+
[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(
|
|
13
|
+
\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\
|
|
14
|
+
()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))""".strip()
|
|
15
|
+
return [x[0] for x in findall(regex, str(text))]
|
|
16
|
+
|
|
17
|
+
is_url = get_urls_from_text
|
|
18
|
+
|
|
19
|
+
chat_filters_group = 1
|
|
20
|
+
|
|
21
|
+
def keyboard(buttons_list, row_width: int = 2):
|
|
22
|
+
buttons = InlineKeyboard(row_width=row_width)
|
|
23
|
+
data = [
|
|
24
|
+
(
|
|
25
|
+
Ikb(text=str(i[0]), callback_data=str(i[1]))
|
|
26
|
+
if not is_url(i[1])
|
|
27
|
+
else Ikb(text=str(i[0]), url=str(i[1]))
|
|
28
|
+
)
|
|
29
|
+
for i in buttons_list
|
|
30
|
+
]
|
|
31
|
+
buttons.add(*data)
|
|
32
|
+
return buttons
|
|
33
|
+
|
|
34
|
+
def extract_text_and_keyb(ikb, text: str, row_width: int = 2):
|
|
35
|
+
keyboard = {}
|
|
36
|
+
try:
|
|
37
|
+
text = text.strip()
|
|
38
|
+
if text.startswith("`"):
|
|
39
|
+
text = text[1:]
|
|
40
|
+
if text.endswith("`"):
|
|
41
|
+
text = text[:-1]
|
|
42
|
+
|
|
43
|
+
text, keyb = text.split("~")
|
|
44
|
+
|
|
45
|
+
keyb = findall(r"\[.+\,.+\]", keyb)
|
|
46
|
+
for btn_str in keyb:
|
|
47
|
+
btn_str = re_sub(r"[\[\]]", "", btn_str)
|
|
48
|
+
btn_str = btn_str.split(",")
|
|
49
|
+
btn_txt, btn_url = btn_str[0], btn_str[1].strip()
|
|
50
|
+
|
|
51
|
+
if not get_urls_from_text(btn_url):
|
|
52
|
+
continue
|
|
53
|
+
keyboard[btn_txt] = btn_url
|
|
54
|
+
keyboard = ikb(keyboard, row_width)
|
|
55
|
+
except Exception:
|
|
56
|
+
return
|
|
57
|
+
return text, keyboard
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
from pyrogram.types import Message, User
|
|
2
|
+
from pyrogram import Client, enums
|
|
3
|
+
|
|
4
|
+
async def get_ub_chats(
|
|
5
|
+
client: Client,
|
|
6
|
+
chat_types: list = [
|
|
7
|
+
enums.ChatType.GROUP,
|
|
8
|
+
enums.ChatType.SUPERGROUP,
|
|
9
|
+
enums.ChatType.CHANNEL,
|
|
10
|
+
],
|
|
11
|
+
is_id_only=True,
|
|
12
|
+
):
|
|
13
|
+
ub_chats = []
|
|
14
|
+
async for dialog in client.get_dialogs():
|
|
15
|
+
if dialog.chat.type in chat_types:
|
|
16
|
+
if is_id_only:
|
|
17
|
+
ub_chats.append(dialog.chat.id)
|
|
18
|
+
else:
|
|
19
|
+
ub_chats.append(dialog.chat)
|
|
20
|
+
else:
|
|
21
|
+
continue
|
|
22
|
+
return ub_chats
|
|
23
|
+
|
|
24
|
+
def ReplyCheck(message: Message):
|
|
25
|
+
reply_id = None
|
|
26
|
+
|
|
27
|
+
if message.reply_to_message:
|
|
28
|
+
reply_id = message.reply_to_message.id
|
|
29
|
+
|
|
30
|
+
elif not message.from_user.is_self:
|
|
31
|
+
reply_id = message.id
|
|
32
|
+
|
|
33
|
+
return reply_id
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def SpeedConvert(size):
|
|
37
|
+
power = 2 ** 10
|
|
38
|
+
zero = 0
|
|
39
|
+
units = {0: "", 1: "Kbit/s", 2: "Mbit/s", 3: "Gbit/s", 4: "Tbit/s"}
|
|
40
|
+
while size > power:
|
|
41
|
+
size /= power
|
|
42
|
+
zero += 1
|
|
43
|
+
return f"{round(size, 2)} {units[zero]}"
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def GetFromUserID(message: Message):
|
|
47
|
+
return message.from_user.id
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def GetChatID(message: Message):
|
|
51
|
+
return message.chat.id
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def GetUserMentionable(user: User):
|
|
55
|
+
if user.username:
|
|
56
|
+
username = "@{}".format(user.username)
|
|
57
|
+
else:
|
|
58
|
+
if user.last_name:
|
|
59
|
+
name_string = "{} {}".format(user.first_name, user.last_name)
|
|
60
|
+
else:
|
|
61
|
+
name_string = "{}".format(user.first_name)
|
|
62
|
+
|
|
63
|
+
username = "<a href='tg://user?id={}'>{}</a>".format(user.id, name_string)
|
|
64
|
+
|
|
65
|
+
return username
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import sys
|
|
3
|
+
from pyrogram import Client
|
|
4
|
+
|
|
5
|
+
from pixlib.Pix.helper.adminHelpers import *
|
|
6
|
+
from pixlib.Pix.helper.aiohttp_helper import*
|
|
7
|
+
from pixlib.Pix.helper.basic import *
|
|
8
|
+
from pixlib.Pix.helper.constants import *
|
|
9
|
+
from pixlib.Pix.helper.data import *
|
|
10
|
+
from pixlib.Pix.helper.inline import *
|
|
11
|
+
from pixlib.Pix.helper.interval import *
|
|
12
|
+
from pixlib.Pix.helper.parser import *
|
|
13
|
+
from pixlib.Pix.helper.PyroHelpers import *
|
|
14
|
+
from pixlib.Pix.helper.utility import *
|
|
15
|
+
from pixlib.Pix.helper.what import *
|
|
16
|
+
from pixlib.Pix.helper.pluginhelper import *
|
|
17
|
+
|
|
18
|
+
def restart():
|
|
19
|
+
os.execvp(sys.executable, [sys.executable, "-m", "Pix"])
|
|
20
|
+
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import asyncio
|
|
2
|
+
from time import time
|
|
3
|
+
|
|
4
|
+
from pyrogram.types import Message
|
|
5
|
+
|
|
6
|
+
from pyrogram import Client
|
|
7
|
+
from pixlib.Pix.helper.interval import IntervalHelper
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
async def CheckAdmin(message: Message):
|
|
11
|
+
"""Check if we are an admin."""
|
|
12
|
+
admin = "administrator"
|
|
13
|
+
creator = "creator"
|
|
14
|
+
ranks = [admin, creator]
|
|
15
|
+
|
|
16
|
+
SELF = await Client.get_chat_member(
|
|
17
|
+
chat_id=message.chat.id, user_id=message.from_user.id
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
if SELF.status not in ranks:
|
|
21
|
+
await message.edit("__I'm not Admin!__")
|
|
22
|
+
await asyncio.sleep(2)
|
|
23
|
+
await message.delete()
|
|
24
|
+
|
|
25
|
+
else:
|
|
26
|
+
if SELF.status is not admin:
|
|
27
|
+
return True
|
|
28
|
+
elif SELF.can_restrict_members:
|
|
29
|
+
return True
|
|
30
|
+
else:
|
|
31
|
+
await message.edit("__No Permissions to restrict Members__")
|
|
32
|
+
await asyncio.sleep(2)
|
|
33
|
+
await message.delete()
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
async def CheckReplyAdmin(message: Message):
|
|
37
|
+
"""Check if the message is a reply to another user."""
|
|
38
|
+
if not message.reply_to_message:
|
|
39
|
+
await message.edit("The command needs to be a reply")
|
|
40
|
+
await asyncio.sleep(2)
|
|
41
|
+
await message.delete()
|
|
42
|
+
elif message.reply_to_message.from_user.is_self:
|
|
43
|
+
await message.edit(f"I can't {message.command[0]} myself.")
|
|
44
|
+
await asyncio.sleep(2)
|
|
45
|
+
await message.delete()
|
|
46
|
+
else:
|
|
47
|
+
return True
|
|
48
|
+
|
|
49
|
+
return False
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
async def Timer(message: Message):
|
|
53
|
+
if len(message.command) > 1:
|
|
54
|
+
secs = IntervalHelper(message.command[1])
|
|
55
|
+
return int(str(time()).split(".")[0] + secs.to_secs()[0])
|
|
56
|
+
else:
|
|
57
|
+
return 0
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
async def TimerString(message: Message):
|
|
61
|
+
secs = IntervalHelper(message.command[1])
|
|
62
|
+
return f"{secs.to_secs()[1]} {secs.to_secs()[2]}"
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
async def RestrictFailed(message: Message):
|
|
66
|
+
await message.edit(f"I can't {message.command} this user.")
|
|
67
|
+
await asyncio.sleep(2)
|
|
68
|
+
await message.delete()
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import json
|
|
2
|
+
|
|
3
|
+
import aiohttp
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AioHttp:
|
|
7
|
+
@staticmethod
|
|
8
|
+
async def get_json(link):
|
|
9
|
+
async with aiohttp.ClientSession() as session:
|
|
10
|
+
async with session.get(link) as resp:
|
|
11
|
+
return await resp.json()
|
|
12
|
+
|
|
13
|
+
@staticmethod
|
|
14
|
+
async def get_text(link):
|
|
15
|
+
async with aiohttp.ClientSession() as session:
|
|
16
|
+
async with session.get(link) as resp:
|
|
17
|
+
return await resp.text()
|
|
18
|
+
|
|
19
|
+
@staticmethod
|
|
20
|
+
async def get_json_from_text(link):
|
|
21
|
+
async with aiohttp.ClientSession() as session:
|
|
22
|
+
async with session.get(link) as resp:
|
|
23
|
+
text = await resp.text()
|
|
24
|
+
return json.loads(text)
|
|
25
|
+
|
|
26
|
+
@staticmethod
|
|
27
|
+
async def get_raw(link):
|
|
28
|
+
async with aiohttp.ClientSession() as session:
|
|
29
|
+
async with session.get(link) as resp:
|
|
30
|
+
return await resp.read()
|
|
31
|
+
|
|
32
|
+
@staticmethod
|
|
33
|
+
async def get_url(link):
|
|
34
|
+
async with aiohttp.ClientSession() as session:
|
|
35
|
+
async with session.get(link) as resp:
|
|
36
|
+
return resp.url
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
from pyrogram.types import Message
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def get_user(message: Message, text: str) -> [int, str, None]:
|
|
5
|
+
"""Get User From Message"""
|
|
6
|
+
if text is None:
|
|
7
|
+
asplit = None
|
|
8
|
+
else:
|
|
9
|
+
asplit = text.split(" ", 1)
|
|
10
|
+
user_s = None
|
|
11
|
+
reason_ = None
|
|
12
|
+
if message.reply_to_message:
|
|
13
|
+
user_s = message.reply_to_message.from_user.id
|
|
14
|
+
reason_ = text if text else None
|
|
15
|
+
elif asplit is None:
|
|
16
|
+
return None, None
|
|
17
|
+
elif len(asplit[0]) > 0:
|
|
18
|
+
if message.entities:
|
|
19
|
+
if len(message.entities) == 1:
|
|
20
|
+
required_entity = message.entities[0]
|
|
21
|
+
if required_entity.type == "text_mention":
|
|
22
|
+
user_s = int(required_entity.user.id)
|
|
23
|
+
else:
|
|
24
|
+
user_s = int(asplit[0]) if asplit[0].isdigit() else asplit[0]
|
|
25
|
+
else:
|
|
26
|
+
user_s = int(asplit[0]) if asplit[0].isdigit() else asplit[0]
|
|
27
|
+
if len(asplit) == 2:
|
|
28
|
+
reason_ = asplit[1]
|
|
29
|
+
return user_s, reason_
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def get_text(message: Message) -> [None, str]:
|
|
33
|
+
"""Extract Text From Commands"""
|
|
34
|
+
text_to_return = message.text
|
|
35
|
+
if message.text is None:
|
|
36
|
+
return None
|
|
37
|
+
if " " in text_to_return:
|
|
38
|
+
try:
|
|
39
|
+
return message.text.split(None, 1)[1]
|
|
40
|
+
except IndexError:
|
|
41
|
+
return None
|
|
42
|
+
else:
|
|
43
|
+
return None
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
async def edit_or_reply(message: Message, *args, **kwargs) -> Message:
|
|
47
|
+
apa = (
|
|
48
|
+
message.edit_text
|
|
49
|
+
if bool(message.from_user and message.from_user.is_self or message.outgoing)
|
|
50
|
+
else (message.reply_to_message or message).reply_text
|
|
51
|
+
)
|
|
52
|
+
return await apa(*args, **kwargs)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
eor = edit_or_reply
|