Conversation
Added a `generate_raw.py` script to automate the generation of Telegram API files and error exceptions. Updated the repository with the newly generated files in `pyrogram/raw/` and `pyrogram/errors/exceptions/`. Modified `.gitignore` to track these generated files. Co-authored-by: 5hojib <107526130+5hojib@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Summary of ChangesHello @5hojib, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly enhances the Pyrogram library by integrating an automated process for generating and tracking Telegram API definitions and RPC error exceptions. This ensures that the library's API interface is always current and robust, improving reliability and maintainability. The inclusion of these generated files directly into the repository streamlines development and reduces potential discrepancies with the official Telegram API. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a script to generate raw Telegram API files and includes the newly generated files in the repository. While this is a valuable addition for keeping the API layer up-to-date, the generated code contains some critical issues that will cause runtime errors. Specifically, there are class redefinitions due to incorrect mapping of error IDs in the exception files. Additionally, there are several areas where sorting would improve the maintainability of the generated code, such as in __init__.py files and large dictionaries. Addressing the critical issues in the generator is essential before merging.
| exceptions = { | ||
| 401: { | ||
| "_": "Unauthorized", | ||
| "ACTIVE_USER_REQUIRED": "ActiveUserRequired", | ||
| "AUTH_KEY_INVALID": "AuthKeyInvalid", | ||
| "AUTH_KEY_PERM_EMPTY": "AuthKeyPermEmpty", | ||
| "AUTH_KEY_UNREGISTERED": "AuthKeyUnregistered", | ||
| "SESSION_EXPIRED": "SessionExpired", | ||
| "SESSION_PASSWORD_NEEDED": "SessionPasswordNeeded", | ||
| "SESSION_REVOKED": "SessionRevoked", | ||
| "USER_DEACTIVATED": "UserDeactivated", | ||
| "USER_DEACTIVATED_BAN": "UserDeactivatedBan", | ||
| }, | ||
| 400: { | ||
| "_": "BadRequest", | ||
| "ABOUT_TOO_LONG": "AboutTooLong", | ||
| "ACCESS_TOKEN_EXPIRED": "AccessTokenExpired", | ||
| "ACCESS_TOKEN_INVALID": "AccessTokenInvalid", | ||
| "ADDRESS_INVALID": "AddressInvalid", | ||
| "ADMINS_TOO_MUCH": "AdminsTooMuch", | ||
| "ADMIN_ID_INVALID": "AdminIdInvalid", | ||
| "ADMIN_RANK_EMOJI_NOT_ALLOWED": "AdminRankEmojiNotAllowed", | ||
| "ADMIN_RANK_INVALID": "AdminRankInvalid", | ||
| "ADMIN_RIGHTS_EMPTY": "AdminRightsEmpty", | ||
| "AD_EXPIRED": "AdExpired", | ||
| "ALBUM_PHOTOS_TOO_MANY": "AlbumPhotosTooMany", | ||
| "API_ID_INVALID": "ApiIdInvalid", | ||
| "API_ID_PUBLISHED_FLOOD": "ApiIdPublishedFlood", | ||
| "ARTICLE_TITLE_EMPTY": "ArticleTitleEmpty", | ||
| "AUDIO_CONTENT_URL_EMPTY": "AudioContentUrlEmpty", | ||
| "AUDIO_TITLE_EMPTY": "AudioTitleEmpty", | ||
| "AUTH_BYTES_INVALID": "AuthBytesInvalid", | ||
| "AUTH_TOKEN_ALREADY_ACCEPTED": "AuthTokenAlreadyAccepted", | ||
| "AUTH_TOKEN_EXCEPTION": "AuthTokenException", | ||
| "AUTH_TOKEN_EXPIRED": "AuthTokenExpired", | ||
| "AUTH_TOKEN_INVALID": "AuthTokenInvalid", | ||
| "AUTH_TOKEN_INVALID2": "AuthTokenInvalid2", | ||
| "AUTH_TOKEN_INVALIDX": "AuthTokenInvalidx", | ||
| "AUTOARCHIVE_NOT_AVAILABLE": "AutoarchiveNotAvailable", | ||
| "BALANCE_TOO_LOW": "BalanceTooLow", | ||
| "BANK_CARD_NUMBER_INVALID": "BankCardNumberInvalid", | ||
| "BANNED_RIGHTS_INVALID": "BannedRightsInvalid", | ||
| "BASE_PORT_LOC_INVALID": "BasePortLocInvalid", | ||
| "BIRTHDAY_INVALID": "BirthdayInvalid", | ||
| "BOOSTS_EMPTY": "BoostsEmpty", | ||
| "BOOSTS_REQUIRED": "BoostsRequired", | ||
| "BOOST_NOT_MODIFIED": "BoostNotModified", | ||
| "BOOST_PEER_INVALID": "BoostPeerInvalid", | ||
| "BOTS_TOO_MUCH": "BotsTooMuch", | ||
| "BOT_ALREADY_DISABLED": "BotAlreadyDisabled", | ||
| "BOT_APP_BOT_INVALID": "BotAppBotInvalid", | ||
| "BOT_APP_INVALID": "BotAppInvalid", | ||
| "BOT_APP_SHORTNAME_INVALID": "BotAppShortnameInvalid", | ||
| "BOT_BUSINESS_MISSING": "BotBusinessMissing", | ||
| "BOT_CHANNELS_NA": "BotChannelsNa", | ||
| "BOT_COMMAND_DESCRIPTION_INVALID": "BotCommandDescriptionInvalid", | ||
| "BOT_COMMAND_INVALID": "BotCommandInvalid", | ||
| "BOT_DOMAIN_INVALID": "BotDomainInvalid", | ||
| "BOT_FALLBACK_UNSUPPORTED": "BotFallbackUnsupported", | ||
| "BOT_GAMES_DISABLED": "BotGamesDisabled", | ||
| "BOT_GROUPS_BLOCKED": "BotGroupsBlocked", | ||
| "BOT_INLINE_DISABLED": "BotInlineDisabled", | ||
| "BOT_INVALID": "BotInvalid", | ||
| "BOT_INVOICE_INVALID": "BotInvoiceInvalid", | ||
| "BOT_METHOD_INVALID": "BotMethodInvalid", | ||
| "BOT_MISSING": "BotMissing", | ||
| "BOT_NOT_CONNECTED_YET": "BotNotConnectedYet", | ||
| "BOT_ONESIDE_NOT_AVAIL": "BotOnesideNotAvail", | ||
| "BOT_PAYMENTS_DISABLED": "BotPaymentsDisabled", | ||
| "BOT_POLLS_DISABLED": "BotPollsDisabled", | ||
| "BOT_RESPONSE_TIMEOUT": "BotResponseTimeout", | ||
| "BOT_SCORE_NOT_MODIFIED": "BotScoreNotModified", | ||
| "BOT_WEBVIEW_DISABLED": "BotWebviewDisabled", | ||
| "BROADCAST_CALLS_DISABLED": "BroadcastCallsDisabled", | ||
| "BROADCAST_ID_INVALID": "BroadcastIdInvalid", | ||
| "BROADCAST_PUBLIC_VOTERS_FORBIDDEN": "BroadcastPublicVotersForbidden", | ||
| "BROADCAST_REQUIRED": "BroadcastRequired", | ||
| "BUSINESS_CONNECTION_INVALID": "BusinessConnectionInvalid", | ||
| "BUSINESS_CONNECTION_NOT_ALLOWED": "BusinessConnectionNotAllowed", | ||
| "BUSINESS_PEER_INVALID": "BusinessPeerInvalid", | ||
| "BUSINESS_PEER_USAGE_MISSING": "BusinessPeerUsageMissing", | ||
| "BUSINESS_RECIPIENTS_EMPTY": "BusinessRecipientsEmpty", | ||
| "BUSINESS_WORK_HOURS_EMPTY": "BusinessWorkHoursEmpty", | ||
| "BUSINESS_WORK_HOURS_PERIOD_INVALID": "BusinessWorkHoursPeriodInvalid", | ||
| "BUTTON_COPY_TEXT_INVALID": "ButtonCopyTextInvalid", | ||
| "BUTTON_DATA_INVALID": "ButtonDataInvalid", | ||
| "BUTTON_ID_INVALID": "ButtonIdInvalid", | ||
| "BUTTON_INVALID": "ButtonInvalid", | ||
| "BUTTON_POS_INVALID": "ButtonPosInvalid", | ||
| "BUTTON_TEXT_INVALID": "ButtonTextInvalid", | ||
| "BUTTON_TYPE_INVALID": "ButtonTypeInvalid", | ||
| "BUTTON_URL_INVALID": "ButtonUrlInvalid", | ||
| "BUTTON_USER_INVALID": "ButtonUserInvalid", | ||
| "BUTTON_USER_PRIVACY_RESTRICTED": "ButtonUserPrivacyRestricted", | ||
| "CALL_ALREADY_ACCEPTED": "CallAlreadyAccepted", | ||
| "CALL_ALREADY_DECLINED": "CallAlreadyDeclined", | ||
| "CALL_OCCUPY_FAILED": "CallOccupyFailed", | ||
| "CALL_PEER_INVALID": "CallPeerInvalid", | ||
| "CALL_PROTOCOL_FLAGS_INVALID": "CallProtocolFlagsInvalid", | ||
| "CALL_PROTOCOL_LAYER_INVALID": "CallProtocolLayerInvalid", | ||
| "CDN_METHOD_INVALID": "CdnMethodInvalid", | ||
| "CHANNELS_ADMIN_LOCATED_TOO_MUCH": "ChannelsAdminLocatedTooMuch", | ||
| "CHANNELS_ADMIN_PUBLIC_TOO_MUCH": "ChannelsAdminPublicTooMuch", | ||
| "CHANNELS_TOO_MUCH": "ChannelsTooMuch", | ||
| "CHANNEL_ADD_INVALID": "ChannelAddInvalid", | ||
| "CHANNEL_BANNED": "ChannelBanned", | ||
| "CHANNEL_FORUM_MISSING": "ChannelForumMissing", | ||
| "CHANNEL_ID_INVALID": "ChannelIdInvalid", | ||
| "CHANNEL_INVALID": "ChannelInvalid", | ||
| "CHANNEL_MONOFORUM_UNSUPPORTED": "ChannelMonoforumUnsupported", | ||
| "CHANNEL_PARICIPANT_MISSING": "ChannelParicipantMissing", | ||
| "CHANNEL_PRIVATE": "ChannelPrivate", | ||
| "CHANNEL_TOO_BIG": "ChannelTooBig", | ||
| "CHANNEL_TOO_LARGE": "ChannelTooLarge", | ||
| "CHARGE_ALREADY_REFUNDED": "ChargeAlreadyRefunded", | ||
| "CHARGE_ID_EMPTY": "ChargeIdEmpty", | ||
| "CHARGE_ID_INVALID": "ChargeIdInvalid", | ||
| "CHARGE_NOT_FOUND": "ChargeNotFound", | ||
| "CHATLINKS_TOO_MUCH": "ChatlinksTooMuch", | ||
| "CHATLINK_SLUG_EMPTY": "ChatlinkSlugEmpty", | ||
| "CHATLINK_SLUG_EXPIRED": "ChatlinkSlugExpired", | ||
| "CHATLISTS_TOO_MUCH": "ChatlistsTooMuch", | ||
| "CHATLIST_EXCLUDE_INVALID": "ChatlistExcludeInvalid", | ||
| "CHAT_ABOUT_NOT_MODIFIED": "ChatAboutNotModified", | ||
| "CHAT_ABOUT_TOO_LONG": "ChatAboutTooLong", | ||
| "CHAT_ADMIN_REQUIRED": "ChatAdminRequired", | ||
| "CHAT_DISCUSSION_UNALLOWED": "ChatDiscussionUnallowed", | ||
| "CHAT_FORWARDS_RESTRICTED": "ChatForwardsRestricted", | ||
| "CHAT_ID_EMPTY": "ChatIdEmpty", | ||
| "CHAT_ID_INVALID": "ChatIdInvalid", | ||
| "CHAT_INVALID": "ChatInvalid", | ||
| "CHAT_INVITE_PERMANENT": "ChatInvitePermanent", | ||
| "CHAT_LINK_EXISTS": "ChatLinkExists", | ||
| "CHAT_MEMBER_ADD_FAILED": "ChatMemberAddFailed", | ||
| "CHAT_NOT_MODIFIED": "ChatNotModified", | ||
| "CHAT_PUBLIC_REQUIRED": "ChatPublicRequired", | ||
| "CHAT_RESTRICTED": "ChatRestricted", | ||
| "CHAT_REVOKE_DATE_UNSUPPORTED": "ChatRevokeDateUnsupported", | ||
| "CHAT_SEND_INLINE_FORBIDDEN": "ChatSendInlineForbidden", | ||
| "CHAT_TITLE_EMPTY": "ChatTitleEmpty", | ||
| "CHAT_TOO_BIG": "ChatTooBig", | ||
| "CODE_EMPTY": "CodeEmpty", | ||
| "CODE_HASH_INVALID": "CodeHashInvalid", | ||
| "CODE_INVALID": "CodeInvalid", | ||
| "COLLECTIBLE_INVALID": "CollectibleInvalid", | ||
| "COLLECTIBLE_NOT_FOUND": "CollectibleNotFound", | ||
| "COLOR_INVALID": "ColorInvalid", | ||
| "CONNECTION_API_ID_INVALID": "ConnectionApiIdInvalid", | ||
| "CONNECTION_APP_VERSION_EMPTY": "ConnectionAppVersionEmpty", | ||
| "CONNECTION_DEVICE_MODEL_EMPTY": "ConnectionDeviceModelEmpty", | ||
| "CONNECTION_ID_INVALID": "ConnectionIdInvalid", | ||
| "CONNECTION_LANG_PACK_INVALID": "ConnectionLangPackInvalid", | ||
| "CONNECTION_LAYER_INVALID": "ConnectionLayerInvalid", | ||
| "CONNECTION_NOT_INITED": "ConnectionNotInited", | ||
| "CONNECTION_SYSTEM_EMPTY": "ConnectionSystemEmpty", | ||
| "CONNECTION_SYSTEM_LANG_CODE_EMPTY": "ConnectionSystemLangCodeEmpty", | ||
| "CONTACT_ADD_MISSING": "ContactAddMissing", | ||
| "CONTACT_ID_INVALID": "ContactIdInvalid", | ||
| "CONTACT_MISSING": "ContactMissing", | ||
| "CONTACT_NAME_EMPTY": "ContactNameEmpty", | ||
| "CONTACT_REQ_MISSING": "ContactReqMissing", | ||
| "CREATE_CALL_FAILED": "CreateCallFailed", | ||
| "CURRENCY_TOTAL_AMOUNT_INVALID": "CurrencyTotalAmountInvalid", | ||
| "CUSTOM_REACTIONS_TOO_MANY": "CustomReactionsTooMany", | ||
| "DATA_HASH_SIZE_INVALID": "DataHashSizeInvalid", | ||
| "DATA_INVALID": "DataInvalid", | ||
| "DATA_JSON_INVALID": "DataJsonInvalid", | ||
| "DATA_TOO_LONG": "DataTooLong", | ||
| "DATE_EMPTY": "DateEmpty", | ||
| "DC_ID_INVALID": "DcIdInvalid", | ||
| "DH_G_A_INVALID": "DhGAInvalid", | ||
| "DOCUMENT_INVALID": "DocumentInvalid", | ||
| "EFFECT_ID_INVALID": "EffectIdInvalid", | ||
| "EMAIL_HASH_EXPIRED": "EmailHashExpired", | ||
| "EMAIL_INVALID": "EmailInvalid", | ||
| "EMAIL_NOT_ALLOWED": "EmailNotAllowed", | ||
| "EMAIL_NOT_SETUP": "EmailNotSetup", | ||
| "EMAIL_UNCONFIRMED": "EmailUnconfirmed", | ||
| "EMAIL_UNCONFIRMED_X": "EmailUnconfirmed", | ||
| "EMAIL_VERIFY_EXPIRED": "EmailVerifyExpired", | ||
| "EMOJI_INVALID": "EmojiInvalid", | ||
| "EMOJI_MARKUP_INVALID": "EmojiMarkupInvalid", | ||
| "EMOJI_NOT_MODIFIED": "EmojiNotModified", | ||
| "EMOTICON_EMPTY": "EmoticonEmpty", | ||
| "EMOTICON_INVALID": "EmoticonInvalid", | ||
| "EMOTICON_STICKERPACK_MISSING": "EmoticonStickerpackMissing", | ||
| "ENCRYPTED_MESSAGE_INVALID": "EncryptedMessageInvalid", | ||
| "ENCRYPTION_ALREADY_ACCEPTED": "EncryptionAlreadyAccepted", | ||
| "ENCRYPTION_ALREADY_DECLINED": "EncryptionAlreadyDeclined", | ||
| "ENCRYPTION_DECLINED": "EncryptionDeclined", | ||
| "ENCRYPTION_ID_INVALID": "EncryptionIdInvalid", | ||
| "ENTITIES_TOO_LONG": "EntitiesTooLong", | ||
| "ENTITY_BOUNDS_INVALID": "EntityBoundsInvalid", | ||
| "ENTITY_MENTION_USER_INVALID": "EntityMentionUserInvalid", | ||
| "ERROR_TEXT_EMPTY": "ErrorTextEmpty", | ||
| "EXPIRES_AT_INVALID": "ExpiresAtInvalid", | ||
| "EXPIRE_DATE_INVALID": "ExpireDateInvalid", | ||
| "EXPIRE_FORBIDDEN": "ExpireForbidden", | ||
| "EXPORT_CARD_INVALID": "ExportCardInvalid", | ||
| "EXTENDED_MEDIA_AMOUNT_INVALID": "ExtendedMediaAmountInvalid", | ||
| "EXTENDED_MEDIA_INVALID": "ExtendedMediaInvalid", | ||
| "EXTERNAL_URL_INVALID": "ExternalUrlInvalid", | ||
| "FIELD_NAME_EMPTY": "FieldNameEmpty", | ||
| "FIELD_NAME_INVALID": "FieldNameInvalid", | ||
| "FILE_CONTENT_TYPE_INVALID": "FileContentTypeInvalid", | ||
| "FILE_EMTPY": "FileEmtpy", | ||
| "FILE_ID_INVALID": "FileIdInvalid", | ||
| "FILE_MIGRATE_X": "FileMigrate", | ||
| "FILE_PARTS_INVALID": "FilePartsInvalid", | ||
| "FILE_PART_0_MISSING": "FilePart0Missing", | ||
| "FILE_PART_EMPTY": "FilePartEmpty", | ||
| "FILE_PART_INVALID": "FilePartInvalid", | ||
| "FILE_PART_LENGTH_INVALID": "FilePartLengthInvalid", | ||
| "FILE_PART_SIZE_CHANGED": "FilePartSizeChanged", | ||
| "FILE_PART_SIZE_INVALID": "FilePartSizeInvalid", | ||
| "FILE_PART_TOO_BIG": "FilePartTooBig", | ||
| "FILE_PART_TOO_SMALL": "FilePartTooSmall", | ||
| "FILE_PART_X_MISSING": "FilePartMissing", | ||
| "FILE_REFERENCE_EMPTY": "FileReferenceEmpty", | ||
| "FILE_REFERENCE_EXPIRED": "FileReferenceExpired", | ||
| "FILE_REFERENCE_INVALID": "FileReferenceInvalid", | ||
| "FILE_REFERENCE_X_EXPIRED": "FileReferenceExpired", | ||
| "FILE_REFERENCE_X_INVALID": "FileReferenceInvalid", | ||
| "FILE_TITLE_EMPTY": "FileTitleEmpty", | ||
| "FILE_TOKEN_INVALID": "FileTokenInvalid", | ||
| "FILTER_ID_INVALID": "FilterIdInvalid", | ||
| "FILTER_INCLUDE_EMPTY": "FilterIncludeEmpty", | ||
| "FILTER_NOT_SUPPORTED": "FilterNotSupported", | ||
| "FILTER_TITLE_EMPTY": "FilterTitleEmpty", | ||
| "FIRSTNAME_INVALID": "FirstnameInvalid", | ||
| "FOLDER_ID_EMPTY": "FolderIdEmpty", | ||
| "FOLDER_ID_INVALID": "FolderIdInvalid", | ||
| "FORM_EXPIRED": "FormExpired", | ||
| "FORM_ID_EMPTY": "FormIdEmpty", | ||
| "FORM_ID_EXPIRED": "FormIdExpired", | ||
| "FORM_SUBMIT_DUPLICATE": "FormSubmitDuplicate", | ||
| "FORM_UNSUPPORTED": "FormUnsupported", | ||
| "FORUM_ENABLED": "ForumEnabled", | ||
| "FRESH_CHANGE_ADMINS_FORBIDDEN": "FreshChangeAdminsForbidden", | ||
| "FROM_MESSAGE_BOT_DISABLED": "FromMessageBotDisabled", | ||
| "FROM_PEER_INVALID": "FromPeerInvalid", | ||
| "FROZEN_PARTICIPANT_MISSING": "FrozenParticipantMissing", | ||
| "GAME_BOT_INVALID": "GameBotInvalid", | ||
| "GENERAL_MODIFY_ICON_FORBIDDEN": "GeneralModifyIconForbidden", | ||
| "GEO_POINT_INVALID": "GeoPointInvalid", | ||
| "GIFT_MONTHS_INVALID": "GiftMonthsInvalid", | ||
| "GIFT_SLUG_EXPIRED": "GiftSlugExpired", | ||
| "GIFT_SLUG_INVALID": "GiftSlugInvalid", | ||
| "GIFT_STARS_INVALID": "GiftStarsInvalid", | ||
| "GIF_CONTENT_TYPE_INVALID": "GifContentTypeInvalid", | ||
| "GIF_ID_INVALID": "GifIdInvalid", | ||
| "GRAPH_EXPIRED_RELOAD": "GraphExpiredReload", | ||
| "GRAPH_INVALID_RELOAD": "GraphInvalidReload", | ||
| "GRAPH_OUTDATED_RELOAD": "GraphOutdatedReload", | ||
| "GROUPCALL_ALREADY_DISCARDED": "GroupcallAlreadyDiscarded", | ||
| "GROUPCALL_FORBIDDEN": "GroupcallForbidden", | ||
| "GROUPCALL_INVALID": "GroupcallInvalid", | ||
| "GROUPCALL_JOIN_MISSING": "GroupcallJoinMissing", | ||
| "GROUPCALL_NOT_MODIFIED": "GroupcallNotModified", | ||
| "GROUPCALL_SSRC_DUPLICATE_MUCH": "GroupcallSsrcDuplicateMuch", | ||
| "GROUPED_MEDIA_INVALID": "GroupedMediaInvalid", | ||
| "GROUP_CALL_INVALID": "GroupCallInvalid", | ||
| "HASHTAG_INVALID": "HashtagInvalid", | ||
| "HASH_INVALID": "HashInvalid", | ||
| "HASH_SIZE_INVALID": "HashSizeInvalid", | ||
| "HIDE_REQUESTER_MISSING": "HideRequesterMissing", | ||
| "ID_EXPIRED": "IdExpired", | ||
| "ID_INVALID": "IdInvalid", | ||
| "IMAGE_PROCESS_FAILED": "ImageProcessFailed", | ||
| "IMPORT_FILE_INVALID": "ImportFileInvalid", | ||
| "IMPORT_FORMAT_DATE_INVALID": "ImportFormatDateInvalid", | ||
| "IMPORT_FORMAT_UNRECOGNIZED": "ImportFormatUnrecognized", | ||
| "IMPORT_ID_INVALID": "ImportIdInvalid", | ||
| "IMPORT_TOKEN_INVALID": "ImportTokenInvalid", | ||
| "INLINE_RESULT_EXPIRED": "InlineResultExpired", | ||
| "INPUT_CHATLIST_INVALID": "InputChatlistInvalid", | ||
| "INPUT_CONSTRUCTOR_INVALID": "InputConstructorInvalid", | ||
| "INPUT_FETCH_ERROR": "InputFetchError", | ||
| "INPUT_FETCH_FAIL": "InputFetchFail", | ||
| "INPUT_FILE_INVALID": "InputFileInvalid", | ||
| "INPUT_FILTER_INVALID": "InputFilterInvalid", | ||
| "INPUT_LAYER_INVALID": "InputLayerInvalid", | ||
| "INPUT_METHOD_INVALID": "InputMethodInvalid", | ||
| "INPUT_PEERS_EMPTY": "InputPeersEmpty", | ||
| "INPUT_PURPOSE_INVALID": "InputPurposeInvalid", | ||
| "INPUT_REQUEST_TOO_LONG": "InputRequestTooLong", | ||
| "INPUT_TEXT_EMPTY": "InputTextEmpty", | ||
| "INPUT_TEXT_TOO_LONG": "InputTextTooLong", | ||
| "INPUT_USER_DEACTIVATED": "InputUserDeactivated", | ||
| "INVITES_TOO_MUCH": "InvitesTooMuch", | ||
| "INVITE_FORBIDDEN_WITH_JOINAS": "InviteForbiddenWithJoinas", | ||
| "INVITE_HASH_EMPTY": "InviteHashEmpty", | ||
| "INVITE_HASH_EXPIRED": "InviteHashExpired", | ||
| "INVITE_HASH_INVALID": "InviteHashInvalid", | ||
| "INVITE_REQUEST_SENT": "InviteRequestSent", | ||
| "INVITE_REVOKED_MISSING": "InviteRevokedMissing", | ||
| "INVITE_SLUG_EMPTY": "InviteSlugEmpty", | ||
| "INVITE_SLUG_EXPIRED": "InviteSlugExpired", | ||
| "INVITE_SLUG_INVALID": "InviteSlugInvalid", | ||
| "INVOICE_INVALID": "InvoiceInvalid", | ||
| "INVOICE_PAYLOAD_INVALID": "InvoicePayloadInvalid", | ||
| "JOIN_AS_PEER_INVALID": "JoinAsPeerInvalid", | ||
| "LANGUAGE_INVALID": "LanguageInvalid", | ||
| "LANG_CODE_INVALID": "LangCodeInvalid", | ||
| "LANG_CODE_NOT_SUPPORTED": "LangCodeNotSupported", | ||
| "LANG_PACK_INVALID": "LangPackInvalid", | ||
| "LASTNAME_INVALID": "LastnameInvalid", | ||
| "LIMIT_INVALID": "LimitInvalid", | ||
| "LINK_NOT_MODIFIED": "LinkNotModified", | ||
| "LOCATION_INVALID": "LocationInvalid", | ||
| "MAX_DATE_INVALID": "MaxDateInvalid", | ||
| "MAX_ID_INVALID": "MaxIdInvalid", | ||
| "MAX_QTS_INVALID": "MaxQtsInvalid", | ||
| "MD5_CHECKSUM_INVALID": "Md5ChecksumInvalid", | ||
| "MEDIA_ALREADY_PAID": "MediaAlreadyPaid", | ||
| "MEDIA_CAPTION_TOO_LONG": "MediaCaptionTooLong", | ||
| "MEDIA_EMPTY": "MediaEmpty", | ||
| "MEDIA_FILE_INVALID": "MediaFileInvalid", | ||
| "MEDIA_GROUPED_INVALID": "MediaGroupedInvalid", | ||
| "MEDIA_INVALID": "MediaInvalid", | ||
| "MEDIA_NEW_INVALID": "MediaNewInvalid", | ||
| "MEDIA_PREV_INVALID": "MediaPrevInvalid", | ||
| "MEDIA_TTL_INVALID": "MediaTtlInvalid", | ||
| "MEDIA_TYPE_INVALID": "MediaTypeInvalid", | ||
| "MEDIA_VIDEO_STORY_MISSING": "MediaVideoStoryMissing", | ||
| "MEGAGROUP_GEO_REQUIRED": "MegagroupGeoRequired", | ||
| "MEGAGROUP_ID_INVALID": "MegagroupIdInvalid", | ||
| "MEGAGROUP_PREHISTORY_HIDDEN": "MegagroupPrehistoryHidden", | ||
| "MEGAGROUP_REQUIRED": "MegagroupRequired", | ||
| "MESSAGE_EDIT_TIME_EXPIRED": "MessageEditTimeExpired", | ||
| "MESSAGE_EMPTY": "MessageEmpty", | ||
| "MESSAGE_IDS_EMPTY": "MessageIdsEmpty", | ||
| "MESSAGE_ID_INVALID": "MessageIdInvalid", | ||
| "MESSAGE_NOT_MODIFIED": "MessageNotModified", | ||
| "MESSAGE_NOT_READ_YET": "MessageNotReadYet", | ||
| "MESSAGE_POLL_CLOSED": "MessagePollClosed", | ||
| "MESSAGE_TOO_LONG": "MessageTooLong", | ||
| "MESSAGE_TOO_OLD": "MessageTooOld", | ||
| "METHOD_INVALID": "MethodInvalid", | ||
| "MIN_DATE_INVALID": "MinDateInvalid", | ||
| "MONTH_INVALID": "MonthInvalid", | ||
| "MSG_ID_INVALID": "MsgIdInvalid", | ||
| "MSG_TOO_OLD": "MsgTooOld", | ||
| "MSG_VOICE_MISSING": "MsgVoiceMissing", | ||
| "MSG_WAIT_FAILED": "MsgWaitFailed", | ||
| "MULTI_MEDIA_TOO_LONG": "MultiMediaTooLong", | ||
| "NEW_SALT_INVALID": "NewSaltInvalid", | ||
| "NEW_SETTINGS_EMPTY": "NewSettingsEmpty", | ||
| "NEW_SETTINGS_INVALID": "NewSettingsInvalid", | ||
| "NEXT_OFFSET_INVALID": "NextOffsetInvalid", | ||
| "NOGENERAL_HIDE_FORBIDDEN": "NogeneralHideForbidden", | ||
| "NOT_ELIGIBLE": "NotEligible", | ||
| "NOT_JOINED": "NotJoined", | ||
| "NO_PAYMENT_NEEDED": "NoPaymentNeeded", | ||
| "OFFSET_INVALID": "OffsetInvalid", | ||
| "OFFSET_PEER_ID_INVALID": "OffsetPeerIdInvalid", | ||
| "OPTIONS_TOO_MUCH": "OptionsTooMuch", | ||
| "OPTION_INVALID": "OptionInvalid", | ||
| "ORDER_INVALID": "OrderInvalid", | ||
| "PACK_SHORT_NAME_INVALID": "PackShortNameInvalid", | ||
| "PACK_SHORT_NAME_OCCUPIED": "PackShortNameOccupied", | ||
| "PACK_TITLE_INVALID": "PackTitleInvalid", | ||
| "PACK_TYPE_INVALID": "PackTypeInvalid", | ||
| "PARENT_PEER_INVALID": "ParentPeerInvalid", | ||
| "PARTICIPANTS_TOO_FEW": "ParticipantsTooFew", | ||
| "PARTICIPANT_ID_INVALID": "ParticipantIdInvalid", | ||
| "PARTICIPANT_JOIN_MISSING": "ParticipantJoinMissing", | ||
| "PARTICIPANT_VERSION_OUTDATED": "ParticipantVersionOutdated", | ||
| "PASSWORD_EMPTY": "PasswordEmpty", | ||
| "PASSWORD_HASH_INVALID": "PasswordHashInvalid", | ||
| "PASSWORD_MISSING": "PasswordMissing", | ||
| "PASSWORD_RECOVERY_EXPIRED": "PasswordRecoveryExpired", | ||
| "PASSWORD_RECOVERY_NA": "PasswordRecoveryNa", | ||
| "PASSWORD_REQUIRED": "PasswordRequired", | ||
| "PASSWORD_TOO_FRESH_X": "PasswordTooFresh", | ||
| "PAYMENT_CREDENTIALS_INVALID": "PaymentCredentialsInvalid", | ||
| "PAYMENT_PROVIDER_INVALID": "PaymentProviderInvalid", | ||
| "PAYMENT_REQUIRED": "PaymentRequired", | ||
| "PEERS_LIST_EMPTY": "PeersListEmpty", | ||
| "PEER_FLOOD": "PeerFlood", | ||
| "PEER_HISTORY_EMPTY": "PeerHistoryEmpty", | ||
| "PEER_ID_INVALID": "PeerIdInvalid", | ||
| "PEER_ID_NOT_SUPPORTED": "PeerIdNotSupported", | ||
| "PEER_TYPES_INVALID": "PeerTypesInvalid", | ||
| "PERSISTENT_TIMESTAMP_EMPTY": "PersistentTimestampEmpty", | ||
| "PERSISTENT_TIMESTAMP_INVALID": "PersistentTimestampInvalid", | ||
| "PHONE_CODE_EMPTY": "PhoneCodeEmpty", | ||
| "PHONE_CODE_EXPIRED": "PhoneCodeExpired", | ||
| "PHONE_CODE_HASH_EMPTY": "PhoneCodeHashEmpty", | ||
| "PHONE_CODE_INVALID": "PhoneCodeInvalid", | ||
| "PHONE_HASH_EXPIRED": "PhoneHashExpired", | ||
| "PHONE_NOT_OCCUPIED": "PhoneNotOccupied", | ||
| "PHONE_NUMBER_APP_SIGNUP_FORBIDDEN": "PhoneNumberAppSignupForbidden", | ||
| "PHONE_NUMBER_BANNED": "PhoneNumberBanned", | ||
| "PHONE_NUMBER_FLOOD": "PhoneNumberFlood", | ||
| "PHONE_NUMBER_INVALID": "PhoneNumberInvalid", | ||
| "PHONE_NUMBER_OCCUPIED": "PhoneNumberOccupied", | ||
| "PHONE_NUMBER_UNOCCUPIED": "PhoneNumberUnoccupied", | ||
| "PHONE_PASSWORD_PROTECTED": "PhonePasswordProtected", | ||
| "PHOTO_CONTENT_TYPE_INVALID": "PhotoContentTypeInvalid", | ||
| "PHOTO_CONTENT_URL_EMPTY": "PhotoContentUrlEmpty", | ||
| "PHOTO_CROP_FILE_MISSING": "PhotoCropFileMissing", | ||
| "PHOTO_CROP_SIZE_SMALL": "PhotoCropSizeSmall", | ||
| "PHOTO_EXT_INVALID": "PhotoExtInvalid", | ||
| "PHOTO_FILE_MISSING": "PhotoFileMissing", | ||
| "PHOTO_ID_INVALID": "PhotoIdInvalid", | ||
| "PHOTO_INVALID": "PhotoInvalid", | ||
| "PHOTO_INVALID_DIMENSIONS": "PhotoInvalidDimensions", | ||
| "PHOTO_SAVE_FILE_INVALID": "PhotoSaveFileInvalid", | ||
| "PHOTO_THUMB_URL_EMPTY": "PhotoThumbUrlEmpty", | ||
| "PHOTO_THUMB_URL_INVALID": "PhotoThumbUrlInvalid", | ||
| "PINNED_DIALOGS_TOO_MUCH": "PinnedDialogsTooMuch", | ||
| "PINNED_TOO_MUCH": "PinnedTooMuch", | ||
| "PIN_RESTRICTED": "PinRestricted", | ||
| "POLL_ANSWERS_INVALID": "PollAnswersInvalid", | ||
| "POLL_ANSWER_INVALID": "PollAnswerInvalid", | ||
| "POLL_OPTION_DUPLICATE": "PollOptionDuplicate", | ||
| "POLL_OPTION_INVALID": "PollOptionInvalid", | ||
| "POLL_QUESTION_INVALID": "PollQuestionInvalid", | ||
| "POLL_UNSUPPORTED": "PollUnsupported", | ||
| "POLL_VOTE_REQUIRED": "PollVoteRequired", | ||
| "PREMIUM_ACCOUNT_REQUIRED": "PremiumAccountRequired", | ||
| "PRICING_CHAT_INVALID": "PricingChatInvalid", | ||
| "PRIVACY_KEY_INVALID": "PrivacyKeyInvalid", | ||
| "PRIVACY_TOO_LONG": "PrivacyTooLong", | ||
| "PRIVACY_VALUE_INVALID": "PrivacyValueInvalid", | ||
| "PUBLIC_KEY_REQUIRED": "PublicKeyRequired", | ||
| "PURPOSE_INVALID": "PurposeInvalid", | ||
| "QUERY_ID_EMPTY": "QueryIdEmpty", | ||
| "QUERY_ID_INVALID": "QueryIdInvalid", | ||
| "QUERY_TOO_SHORT": "QueryTooShort", | ||
| "QUICK_REPLIES_BOT_NOT_ALLOWED": "QuickRepliesBotNotAllowed", | ||
| "QUICK_REPLIES_TOO_MUCH": "QuickRepliesTooMuch", | ||
| "QUIZ_ANSWER_MISSING": "QuizAnswerMissing", | ||
| "QUIZ_CORRECT_ANSWERS_EMPTY": "QuizCorrectAnswersEmpty", | ||
| "QUIZ_CORRECT_ANSWERS_TOO_MUCH": "QuizCorrectAnswersTooMuch", | ||
| "QUIZ_CORRECT_ANSWER_INVALID": "QuizCorrectAnswerInvalid", | ||
| "QUIZ_MULTIPLE_INVALID": "QuizMultipleInvalid", | ||
| "QUOTE_TEXT_INVALID": "QuoteTextInvalid", | ||
| "RAISE_HAND_FORBIDDEN": "RaiseHandForbidden", | ||
| "RANDOM_ID_EMPTY": "RandomIdEmpty", | ||
| "RANDOM_ID_EXPIRED": "RandomIdExpired", | ||
| "RANDOM_ID_INVALID": "RandomIdInvalid", | ||
| "RANDOM_LENGTH_INVALID": "RandomLengthInvalid", | ||
| "RANGES_INVALID": "RangesInvalid", | ||
| "REACTIONS_COUNT_INVALID": "ReactionsCountInvalid", | ||
| "REACTIONS_TOO_MANY": "ReactionsTooMany", | ||
| "REACTION_EMPTY": "ReactionEmpty", | ||
| "REACTION_INVALID": "ReactionInvalid", | ||
| "RECEIPT_EMPTY": "ReceiptEmpty", | ||
| "REFLECTOR_NOT_AVAILABLE": "ReflectorNotAvailable", | ||
| "REPLY_MARKUP_BUY_EMPTY": "ReplyMarkupBuyEmpty", | ||
| "REPLY_MARKUP_GAME_EMPTY": "ReplyMarkupGameEmpty", | ||
| "REPLY_MARKUP_INVALID": "ReplyMarkupInvalid", | ||
| "REPLY_MARKUP_TOO_LONG": "ReplyMarkupTooLong", | ||
| "REPLY_MESSAGES_TOO_MUCH": "ReplyMessagesTooMuch", | ||
| "REPLY_MESSAGE_ID_INVALID": "ReplyMessageIdInvalid", | ||
| "REPLY_TO_INVALID": "ReplyToInvalid", | ||
| "REPLY_TO_MONOFORUM_PEER_INVALID": "ReplyToMonoforumPeerInvalid", | ||
| "REPLY_TO_USER_INVALID": "ReplyToUserInvalid", | ||
| "REQUEST_TOKEN_INVALID": "RequestTokenInvalid", | ||
| "RESET_REQUEST_MISSING": "ResetRequestMissing", | ||
| "RESULTS_TOO_MUCH": "ResultsTooMuch", | ||
| "RESULT_ID_DUPLICATE": "ResultIdDuplicate", | ||
| "RESULT_ID_EMPTY": "ResultIdEmpty", | ||
| "RESULT_ID_INVALID": "ResultIdInvalid", | ||
| "RESULT_TYPE_INVALID": "ResultTypeInvalid", | ||
| "REVOTE_NOT_ALLOWED": "RevoteNotAllowed", | ||
| "RIGHTS_NOT_MODIFIED": "RightsNotModified", | ||
| "RINGTONE_INVALID": "RingtoneInvalid", | ||
| "RINGTONE_MIME_INVALID": "RingtoneMimeInvalid", | ||
| "RSA_DECRYPT_FAILED": "RsaDecryptFailed", | ||
| "SAVED_ID_EMPTY": "SavedIdEmpty", | ||
| "SCHEDULE_BOT_NOT_ALLOWED": "ScheduleBotNotAllowed", | ||
| "SCHEDULE_DATE_INVALID": "ScheduleDateInvalid", | ||
| "SCHEDULE_DATE_TOO_LATE": "ScheduleDateTooLate", | ||
| "SCHEDULE_STATUS_PRIVATE": "ScheduleStatusPrivate", | ||
| "SCHEDULE_TOO_MUCH": "ScheduleTooMuch", | ||
| "SCORE_INVALID": "ScoreInvalid", | ||
| "SEARCH_QUERY_EMPTY": "SearchQueryEmpty", | ||
| "SEARCH_WITH_LINK_NOT_SUPPORTED": "SearchWithLinkNotSupported", | ||
| "SECONDS_INVALID": "SecondsInvalid", | ||
| "SECURE_SECRET_REQUIRED": "SecureSecretRequired", | ||
| "SELF_DELETE_RESTRICTED": "SelfDeleteRestricted", | ||
| "SEND_AS_PEER_INVALID": "SendAsPeerInvalid", | ||
| "SEND_MESSAGE_GAME_INVALID": "SendMessageGameInvalid", | ||
| "SEND_MESSAGE_MEDIA_INVALID": "SendMessageMediaInvalid", | ||
| "SEND_MESSAGE_TYPE_INVALID": "SendMessageTypeInvalid", | ||
| "SESSION_TOO_FRESH_X": "SessionTooFresh", | ||
| "SETTINGS_INVALID": "SettingsInvalid", | ||
| "SHA256_HASH_INVALID": "Sha256HashInvalid", | ||
| "SHORTCUT_INVALID": "ShortcutInvalid", | ||
| "SHORTNAME_OCCUPY_FAILED": "ShortnameOccupyFailed", | ||
| "SHORT_NAME_INVALID": "ShortNameInvalid", | ||
| "SHORT_NAME_OCCUPIED": "ShortNameOccupied", | ||
| "SLOTS_EMPTY": "SlotsEmpty", | ||
| "SLOWMODE_MULTI_MSGS_DISABLED": "SlowmodeMultiMsgsDisabled", | ||
| "SLUG_INVALID": "SlugInvalid", | ||
| "SMSJOB_ID_INVALID": "SmsjobIdInvalid", | ||
| "SMS_CODE_CREATE_FAILED": "SmsCodeCreateFailed", | ||
| "SRP_A_INVALID": "SrpAInvalid", | ||
| "SRP_ID_INVALID": "SrpIdInvalid", | ||
| "SRP_PASSWORD_CHANGED": "SrpPasswordChanged", | ||
| "STARGIFT_ALREADY_CONVERTED": "StargiftAlreadyConverted", | ||
| "STARGIFT_ALREADY_REFUNDED": "StargiftAlreadyRefunded", | ||
| "STARGIFT_ALREADY_UPGRADED": "StargiftAlreadyUpgraded", | ||
| "STARGIFT_INVALID": "StargiftInvalid", | ||
| "STARGIFT_NOT_FOUND": "StargiftNotFound", | ||
| "STARGIFT_OWNER_INVALID": "StargiftOwnerInvalid", | ||
| "STARGIFT_PEER_INVALID": "StargiftPeerInvalid", | ||
| "STARGIFT_RESELL_CURRENCY_NOT_ALLOWED": "StargiftResellCurrencyNotAllowed", | ||
| "STARGIFT_SLUG_INVALID": "StargiftSlugInvalid", | ||
| "STARGIFT_TRANSFER_TOO_EARLY_X": "StargiftTransferTooEarly", | ||
| "STARGIFT_UPGRADE_UNAVAILABLE": "StargiftUpgradeUnavailable", | ||
| "STARGIFT_USAGE_LIMITED": "StargiftUsageLimited", | ||
| "STARGIFT_USER_USAGE_LIMITED": "StargiftUserUsageLimited", | ||
| "STARREF_AWAITING_END": "StarrefAwaitingEnd", | ||
| "STARREF_EXPIRED": "StarrefExpired", | ||
| "STARREF_HASH_REVOKED": "StarrefHashRevoked", | ||
| "STARREF_PERMILLE_INVALID": "StarrefPermilleInvalid", | ||
| "STARREF_PERMILLE_TOO_LOW": "StarrefPermilleTooLow", | ||
| "STARS_AMOUNT_INVALID": "StarsAmountInvalid", | ||
| "STARS_INVOICE_INVALID": "StarsInvoiceInvalid", | ||
| "STARS_PAYMENT_REQUIRED": "StarsPaymentRequired", | ||
| "START_PARAM_EMPTY": "StartParamEmpty", | ||
| "START_PARAM_INVALID": "StartParamInvalid", | ||
| "START_PARAM_TOO_LONG": "StartParamTooLong", | ||
| "STICKERPACK_STICKERS_TOO_MUCH": "StickerpackStickersTooMuch", | ||
| "STICKERSET_INVALID": "StickersetInvalid", | ||
| "STICKERSET_NOT_MODIFIED": "StickersetNotModified", | ||
| "STICKERS_EMPTY": "StickersEmpty", | ||
| "STICKERS_TOO_MUCH": "StickersTooMuch", | ||
| "STICKER_DOCUMENT_INVALID": "StickerDocumentInvalid", | ||
| "STICKER_EMOJI_INVALID": "StickerEmojiInvalid", | ||
| "STICKER_FILE_INVALID": "StickerFileInvalid", | ||
| "STICKER_GIF_DIMENSIONS": "StickerGifDimensions", | ||
| "STICKER_ID_INVALID": "StickerIdInvalid", | ||
| "STICKER_INVALID": "StickerInvalid", | ||
| "STICKER_MIME_INVALID": "StickerMimeInvalid", | ||
| "STICKER_PNG_DIMENSIONS": "StickerPngDimensions", | ||
| "STICKER_PNG_NOPNG": "StickerPngNopng", | ||
| "STICKER_TGS_NODOC": "StickerTgsNodoc", | ||
| "STICKER_TGS_NOTGS": "StickerTgsNotgs", | ||
| "STICKER_THUMB_PNG_NOPNG": "StickerThumbPngNopng", | ||
| "STICKER_THUMB_TGS_NOTGS": "StickerThumbTgsNotgs", | ||
| "STICKER_VIDEO_BIG": "StickerVideoBig", | ||
| "STICKER_VIDEO_NODOC": "StickerVideoNodoc", | ||
| "STICKER_VIDEO_NOWEBM": "StickerVideoNowebm", | ||
| "STORIES_NEVER_CREATED": "StoriesNeverCreated", | ||
| "STORIES_TOO_MUCH": "StoriesTooMuch", | ||
| "STORY_ID_EMPTY": "StoryIdEmpty", | ||
| "STORY_ID_INVALID": "StoryIdInvalid", | ||
| "STORY_NOT_MODIFIED": "StoryNotModified", | ||
| "STORY_PERIOD_INVALID": "StoryPeriodInvalid", | ||
| "STORY_SEND_FLOOD_MONTHLY_X": "StorySendFloodMonthly", | ||
| "STORY_SEND_FLOOD_WEEKLY_X": "StorySendFloodWeekly", | ||
| "SUBSCRIPTION_EXPORT_MISSING": "SubscriptionExportMissing", | ||
| "SUBSCRIPTION_ID_INVALID": "SubscriptionIdInvalid", | ||
| "SUBSCRIPTION_PERIOD_INVALID": "SubscriptionPeriodInvalid", | ||
| "SUGGESTED_POST_AMOUNT_INVALID": "SuggestedPostAmountInvalid", | ||
| "SUGGESTED_POST_PEER_INVALID": "SuggestedPostPeerInvalid", | ||
| "SWITCH_PM_TEXT_EMPTY": "SwitchPmTextEmpty", | ||
| "SWITCH_WEBVIEW_URL_INVALID": "SwitchWebviewUrlInvalid", | ||
| "TAKEOUT_INVALID": "TakeoutInvalid", | ||
| "TAKEOUT_REQUIRED": "TakeoutRequired", | ||
| "TASK_ALREADY_EXISTS": "TaskAlreadyExists", | ||
| "TEMP_AUTH_KEY_ALREADY_BOUND": "TempAuthKeyAlreadyBound", | ||
| "TEMP_AUTH_KEY_EMPTY": "TempAuthKeyEmpty", | ||
| "TERMS_URL_INVALID": "TermsUrlInvalid", | ||
| "THEME_FILE_INVALID": "ThemeFileInvalid", | ||
| "THEME_FORMAT_INVALID": "ThemeFormatInvalid", | ||
| "THEME_INVALID": "ThemeInvalid", | ||
| "THEME_MIME_INVALID": "ThemeMimeInvalid", | ||
| "THEME_PARAMS_INVALID": "ThemeParamsInvalid", | ||
| "THEME_SLUG_INVALID": "ThemeSlugInvalid", | ||
| "THEME_TITLE_INVALID": "ThemeTitleInvalid", | ||
| "TIMEZONE_INVALID": "TimezoneInvalid", | ||
| "TITLE_INVALID": "TitleInvalid", | ||
| "TMP_PASSWORD_DISABLED": "TmpPasswordDisabled", | ||
| "TMP_PASSWORD_INVALID": "TmpPasswordInvalid", | ||
| "TODO_ITEMS_EMPTY": "TodoItemsEmpty", | ||
| "TODO_ITEM_DUPLICATE": "TodoItemDuplicate", | ||
| "TODO_NOT_MODIFIED": "TodoNotModified", | ||
| "TOKEN_EMPTY": "TokenEmpty", | ||
| "TOKEN_INVALID": "TokenInvalid", | ||
| "TOKEN_TYPE_INVALID": "TokenTypeInvalid", | ||
| "TOPICS_EMPTY": "TopicsEmpty", | ||
| "TOPIC_CLOSED": "TopicClosed", | ||
| "TOPIC_CLOSE_SEPARATELY": "TopicCloseSeparately", | ||
| "TOPIC_DELETED": "TopicDeleted", | ||
| "TOPIC_HIDE_SEPARATELY": "TopicHideSeparately", | ||
| "TOPIC_ID_INVALID": "TopicIdInvalid", | ||
| "TOPIC_NOT_MODIFIED": "TopicNotModified", | ||
| "TOPIC_TITLE_EMPTY": "TopicTitleEmpty", | ||
| "TO_ID_INVALID": "ToIdInvalid", | ||
| "TO_LANG_INVALID": "ToLangInvalid", | ||
| "TRANSACTION_ID_INVALID": "TransactionIdInvalid", | ||
| "TRANSCRIPTION_FAILED": "TranscriptionFailed", | ||
| "TRANSLATE_REQ_QUOTA_EXCEEDED": "TranslateReqQuotaExceeded", | ||
| "TTL_DAYS_INVALID": "TtlDaysInvalid", | ||
| "TTL_MEDIA_INVALID": "TtlMediaInvalid", | ||
| "TTL_PERIOD_INVALID": "TtlPeriodInvalid", | ||
| "TYPES_EMPTY": "TypesEmpty", | ||
| "TYPE_CONSTRUCTOR_INVALID": "TypeConstructorInvalid", | ||
| "UNKNOWN_ERROR": "UnknownError", | ||
| "UNSUPPORTED": "Unsupported", | ||
| "UNTIL_DATE_INVALID": "UntilDateInvalid", | ||
| "URL_INVALID": "UrlInvalid", | ||
| "USAGE_LIMIT_INVALID": "UsageLimitInvalid", | ||
| "USERNAMES_ACTIVE_TOO_MUCH": "UsernamesActiveTooMuch", | ||
| "USERNAME_INVALID": "UsernameInvalid", | ||
| "USERNAME_NOT_MODIFIED": "UsernameNotModified", | ||
| "USERNAME_NOT_OCCUPIED": "UsernameNotOccupied", | ||
| "USERNAME_OCCUPIED": "UsernameOccupied", | ||
| "USERNAME_PURCHASE_AVAILABLE": "UsernamePurchaseAvailable", | ||
| "USERPIC_UPLOAD_REQUIRED": "UserpicUploadRequired", | ||
| "USERS_TOO_FEW": "UsersTooFew", | ||
| "USERS_TOO_MUCH": "UsersTooMuch", | ||
| "USER_ADMIN_INVALID": "UserAdminInvalid", | ||
| "USER_ALREADY_INVITED": "UserAlreadyInvited", | ||
| "USER_ALREADY_PARTICIPANT": "UserAlreadyParticipant", | ||
| "USER_BANNED_IN_CHANNEL": "UserBannedInChannel", | ||
| "USER_BLOCKED": "UserBlocked", | ||
| "USER_BOT": "UserBot", | ||
| "USER_BOT_INVALID": "UserBotInvalid", | ||
| "USER_BOT_REQUIRED": "UserBotRequired", | ||
| "USER_CHANNELS_TOO_MUCH": "UserChannelsTooMuch", | ||
| "USER_CREATOR": "UserCreator", | ||
| "USER_GIFT_UNAVAILABLE": "UserGiftUnavailable", | ||
| "USER_ID_INVALID": "UserIdInvalid", | ||
| "USER_INVALID": "UserInvalid", | ||
| "USER_IS_BLOCKED": "UserIsBlocked", | ||
| "USER_IS_BOT": "UserIsBot", | ||
| "USER_KICKED": "UserKicked", | ||
| "USER_NOT_MUTUAL_CONTACT": "UserNotMutualContact", | ||
| "USER_NOT_PARTICIPANT": "UserNotParticipant", | ||
| "USER_PUBLIC_MISSING": "UserPublicMissing", | ||
| "USER_VOLUME_INVALID": "UserVolumeInvalid", | ||
| "VENUE_ID_INVALID": "VenueIdInvalid", | ||
| "VIDEO_CONTENT_TYPE_INVALID": "VideoContentTypeInvalid", | ||
| "VIDEO_FILE_INVALID": "VideoFileInvalid", | ||
| "VIDEO_PAUSE_FORBIDDEN": "VideoPauseForbidden", | ||
| "VIDEO_STOP_FORBIDDEN": "VideoStopForbidden", | ||
| "VIDEO_TITLE_EMPTY": "VideoTitleEmpty", | ||
| "VOICE_MESSAGES_FORBIDDEN": "VoiceMessagesForbidden", | ||
| "VOLUME_LOC_NOT_FOUND": "VolumeLocNotFound", | ||
| "WALLPAPER_FILE_INVALID": "WallpaperFileInvalid", | ||
| "WALLPAPER_INVALID": "WallpaperInvalid", | ||
| "WALLPAPER_MIME_INVALID": "WallpaperMimeInvalid", | ||
| "WALLPAPER_NOT_FOUND": "WallpaperNotFound", | ||
| "WC_CONVERT_URL_INVALID": "WcConvertUrlInvalid", | ||
| "WEBDOCUMENT_INVALID": "WebdocumentInvalid", | ||
| "WEBDOCUMENT_MIME_INVALID": "WebdocumentMimeInvalid", | ||
| "WEBDOCUMENT_SIZE_TOO_BIG": "WebdocumentSizeTooBig", | ||
| "WEBDOCUMENT_URL_EMPTY": "WebdocumentUrlEmpty", | ||
| "WEBDOCUMENT_URL_INVALID": "WebdocumentUrlInvalid", | ||
| "WEBPAGE_CURL_FAILED": "WebpageCurlFailed", | ||
| "WEBPAGE_MEDIA_EMPTY": "WebpageMediaEmpty", | ||
| "WEBPAGE_NOT_FOUND": "WebpageNotFound", | ||
| "WEBPAGE_URL_INVALID": "WebpageUrlInvalid", | ||
| "WEBPUSH_AUTH_INVALID": "WebpushAuthInvalid", | ||
| "WEBPUSH_KEY_INVALID": "WebpushKeyInvalid", | ||
| "WEBPUSH_TOKEN_INVALID": "WebpushTokenInvalid", | ||
| "YOU_BLOCKED_USER": "YouBlockedUser", | ||
| }, | ||
| 500: { | ||
| "_": "InternalServerError", | ||
| "API_CALL_ERROR": "ApiCallError", | ||
| "AUTH_KEY_UNSYNCHRONIZED": "AuthKeyUnsynchronized", | ||
| "AUTH_RESTART": "AuthRestart", | ||
| "AUTH_RESTART_X": "AuthRestart", | ||
| "CALL_OCCUPY_FAILED": "CallOccupyFailed", | ||
| "CDN_UPLOAD_TIMEOUT": "CdnUploadTimeout", | ||
| "CHAT_FROM_CALL_CHANGED": "ChatFromCallChanged", | ||
| "CHAT_ID_GENERATE_FAILED": "ChatIdGenerateFailed", | ||
| "CHAT_INVALID": "ChatInvalid", | ||
| "CHAT_OCCUPY_LOC_FAILED": "ChatOccupyLocFailed", | ||
| "CHAT_OCCUPY_USERNAME_FAILED": "ChatOccupyUsernameFailed", | ||
| "CHP_CALL_FAIL": "ChpCallFail", | ||
| "ENCRYPTION_OCCUPY_ADMIN_FAILED": "EncryptionOccupyAdminFailed", | ||
| "ENCRYPTION_OCCUPY_FAILED": "EncryptionOccupyFailed", | ||
| "FILE_WRITE_FAILED": "FileWriteFailed", | ||
| "FOLDER_DEAC_AUTOFIX_ALL": "FolderDeacAutofixAll", | ||
| "GROUPCALL_ADD_PARTICIPANTS_FAILED": "GroupcallAddParticipantsFailed", | ||
| "GROUPED_ID_OCCUPY_FAILED": "GroupedIdOccupyFailed", | ||
| "HISTORY_GET_FAILED": "HistoryGetFailed", | ||
| "IMAGE_ENGINE_DOWN": "ImageEngineDown", | ||
| "INTERDC_X_CALL_ERROR": "InterdcCallError", | ||
| "INTERDC_X_CALL_RICH_ERROR": "InterdcCallRichError", | ||
| "MEMBER_FETCH_FAILED": "MemberFetchFailed", | ||
| "MEMBER_NO_LOCATION": "MemberNoLocation", | ||
| "MEMBER_OCCUPY_PRIMARY_LOC_FAILED": "MemberOccupyPrimaryLocFailed", | ||
| "MEMBER_OCCUPY_USERNAME_FAILED": "MemberOccupyUsernameFailed", | ||
| "MSGID_DECREASE_RETRY": "MsgidDecreaseRetry", | ||
| "MSG_RANGE_UNSYNC": "MsgRangeUnsync", | ||
| "MSG_WAIT_FAILED": "MsgWaitFailed", | ||
| "MT_SEND_QUEUE_TOO_LONG": "MtSendQueueTooLong", | ||
| "NEED_CHAT_INVALID": "NeedChatInvalid", | ||
| "NEED_MEMBER_INVALID": "NeedMemberInvalid", | ||
| "No workers running": "NoWorkersRunning", | ||
| "PARTICIPANT_CALL_FAILED": "ParticipantCallFailed", | ||
| "PERSISTENT_TIMESTAMP_OUTDATED": "PersistentTimestampOutdated", | ||
| "PHOTO_CREATE_FAILED": "PhotoCreateFailed", | ||
| "POSTPONED_TIMEOUT": "PostponedTimeout", | ||
| "PTS_CHANGE_EMPTY": "PtsChangeEmpty", | ||
| "RANDOM_ID_DUPLICATE": "RandomIdDuplicate", | ||
| "REG_ID_GENERATE_FAILED": "RegIdGenerateFailed", | ||
| "RPC_CALL_FAIL": "RpcCallFail", | ||
| "RPC_CONNECT_FAILED": "RpcConnectFailed", | ||
| "RPC_MCGET_FAIL": "RpcMcgetFail", | ||
| "SEND_MEDIA_INVALID": "SendMediaInvalid", | ||
| "SIGN_IN_FAILED": "SignInFailed", | ||
| "STORAGE_CHECK_FAILED": "StorageCheckFailed", | ||
| "STORE_INVALID_SCALAR_TYPE": "StoreInvalidScalarType", | ||
| "TIMEOUT": "Timeout", | ||
| "TRANSLATE_REQ_FAILED": "TranslateReqFailed", | ||
| "TRANSLATION_TIMEOUT": "TranslationTimeout", | ||
| "UNKNOWN_METHOD": "UnknownMethod", | ||
| "UPLOAD_NO_VOLUME": "UploadNoVolume", | ||
| "VOLUME_LOC_NOT_FOUND": "VolumeLocNotFound", | ||
| "WORKER_BUSY_TOO_LONG_RETRY": "WorkerBusyTooLongRetry", | ||
| "WP_ID_GENERATE_FAILED": "WpIdGenerateFailed", | ||
| }, | ||
| 403: { | ||
| "_": "Forbidden", | ||
| "ALLOW_PAYMENT_REQUIRED_X": "AllowPaymentRequired", | ||
| "ANONYMOUS_REACTIONS_DISABLED": "AnonymousReactionsDisabled", | ||
| "BOT_ACCESS_FORBIDDEN": "BotAccessForbidden", | ||
| "BOT_VERIFIER_FORBIDDEN": "BotVerifierForbidden", | ||
| "BROADCAST_FORBIDDEN": "BroadcastForbidden", | ||
| "CHANNEL_PUBLIC_GROUP_NA": "ChannelPublicGroupNa", | ||
| "CHAT_ACTION_FORBIDDEN": "ChatActionForbidden", | ||
| "CHAT_ADMIN_INVITE_REQUIRED": "ChatAdminInviteRequired", | ||
| "CHAT_ADMIN_REQUIRED": "ChatAdminRequired", | ||
| "CHAT_FORBIDDEN": "ChatForbidden", | ||
| "CHAT_GUEST_SEND_FORBIDDEN": "ChatGuestSendForbidden", | ||
| "CHAT_SEND_AUDIOS_FORBIDDEN": "ChatSendAudiosForbidden", | ||
| "CHAT_SEND_DOCS_FORBIDDEN": "ChatSendDocsForbidden", | ||
| "CHAT_SEND_GAME_FORBIDDEN": "ChatSendGameForbidden", | ||
| "CHAT_SEND_GIFS_FORBIDDEN": "ChatSendGifsForbidden", | ||
| "CHAT_SEND_INLINE_FORBIDDEN": "ChatSendInlineForbidden", | ||
| "CHAT_SEND_MEDIA_FORBIDDEN": "ChatSendMediaForbidden", | ||
| "CHAT_SEND_PHOTOS_FORBIDDEN": "ChatSendPhotosForbidden", | ||
| "CHAT_SEND_PLAIN_FORBIDDEN": "ChatSendPlainForbidden", | ||
| "CHAT_SEND_POLL_FORBIDDEN": "ChatSendPollForbidden", | ||
| "CHAT_SEND_ROUNDVIDEOS_FORBIDDEN": "ChatSendRoundvideosForbidden", | ||
| "CHAT_SEND_STICKERS_FORBIDDEN": "ChatSendStickersForbidden", | ||
| "CHAT_SEND_VIDEOS_FORBIDDEN": "ChatSendVideosForbidden", | ||
| "CHAT_SEND_VOICES_FORBIDDEN": "ChatSendVoicesForbidden", | ||
| "CHAT_SEND_WEBPAGE_FORBIDDEN": "ChatSendWebpageForbidden", | ||
| "CHAT_TYPE_INVALID": "ChatTypeInvalid", | ||
| "CHAT_WRITE_FORBIDDEN": "ChatWriteForbidden", | ||
| "EDIT_BOT_INVITE_FORBIDDEN": "EditBotInviteForbidden", | ||
| "GROUPCALL_ALREADY_STARTED": "GroupcallAlreadyStarted", | ||
| "GROUPCALL_FORBIDDEN": "GroupcallForbidden", | ||
| "INLINE_BOT_REQUIRED": "InlineBotRequired", | ||
| "LIVE_DISABLED": "LiveDisabled", | ||
| "MESSAGE_AUTHOR_REQUIRED": "MessageAuthorRequired", | ||
| "MESSAGE_DELETE_FORBIDDEN": "MessageDeleteForbidden", | ||
| "NOT_ALLOWED": "NotAllowed", | ||
| "NOT_ELIGIBLE": "NotEligible", | ||
| "PARTICIPANT_JOIN_MISSING": "ParticipantJoinMissing", | ||
| "PEER_ID_INVALID": "PeerIdInvalid", | ||
| "POLL_VOTE_REQUIRED": "PollVoteRequired", | ||
| "PREMIUM_ACCOUNT_REQUIRED": "PremiumAccountRequired", | ||
| "PRIVACY_PREMIUM_REQUIRED": "PrivacyPremiumRequired", | ||
| "PUBLIC_CHANNEL_MISSING": "PublicChannelMissing", | ||
| "RIGHT_FORBIDDEN": "RightForbidden", | ||
| "SENSITIVE_CHANGE_FORBIDDEN": "SensitiveChangeForbidden", | ||
| "TAKEOUT_REQUIRED": "TakeoutRequired", | ||
| "USER_BOT_INVALID": "UserBotInvalid", | ||
| "USER_CHANNELS_TOO_MUCH": "UserChannelsTooMuch", | ||
| "USER_DELETED": "UserDeleted", | ||
| "USER_INVALID": "UserInvalid", | ||
| "USER_IS_BLOCKED": "UserIsBlocked", | ||
| "USER_NOT_MUTUAL_CONTACT": "UserNotMutualContact", | ||
| "USER_NOT_PARTICIPANT": "UserNotParticipant", | ||
| "USER_PERMISSION_DENIED": "UserPermissionDenied", | ||
| "USER_PRIVACY_RESTRICTED": "UserPrivacyRestricted", | ||
| "USER_RESTRICTED": "UserRestricted", | ||
| "VOICE_MESSAGES_FORBIDDEN": "VoiceMessagesForbidden", | ||
| "YOUR_PRIVACY_RESTRICTED": "YourPrivacyRestricted", | ||
| }, | ||
| 503: { | ||
| "_": "ServiceUnavailable", | ||
| "ApiCallError": "ApiCallError", | ||
| "Timedout": "Timedout", | ||
| "Timeout": "Timeout", | ||
| }, | ||
| 303: { | ||
| "_": "SeeOther", | ||
| "FILE_MIGRATE_X": "FileMigrate", | ||
| "NETWORK_MIGRATE_X": "NetworkMigrate", | ||
| "PHONE_MIGRATE_X": "PhoneMigrate", | ||
| "STATS_MIGRATE_X": "StatsMigrate", | ||
| "USER_MIGRATE_X": "UserMigrate", | ||
| }, | ||
| 420: { | ||
| "_": "Flood", | ||
| "2FA_CONFIRM_WAIT_X": "TwoFaConfirmWait", | ||
| "ADDRESS_INVALID": "AddressInvalid", | ||
| "FLOOD_PREMIUM_WAIT_X": "FloodPremiumWait", | ||
| "FLOOD_TEST_PHONE_WAIT_X": "FloodTestPhoneWait", | ||
| "FLOOD_WAIT_X": "FloodWait", | ||
| "FROZEN_METHOD_INVALID": "FrozenMethodInvalid", | ||
| "PREMIUM_SUB_ACTIVE_UNTIL_X": "PremiumSubActiveUntil", | ||
| "SLOWMODE_WAIT_X": "SlowmodeWait", | ||
| "STORY_SEND_FLOOD_X": "StorySendFlood", | ||
| "TAKEOUT_INIT_DELAY_X": "TakeoutInitDelay", | ||
| }, | ||
| 406: { | ||
| "_": "NotAcceptable", | ||
| "ALLOW_PAYMENT_REQUIRED": "AllowPaymentRequired", | ||
| "API_GIFT_RESTRICTED_UPDATE_APP": "ApiGiftRestrictedUpdateApp", | ||
| "AUTH_KEY_DUPLICATED": "AuthKeyDuplicated", | ||
| "BANNED_RIGHTS_INVALID": "BannedRightsInvalid", | ||
| "BUSINESS_ADDRESS_ACTIVE": "BusinessAddressActive", | ||
| "CALL_PROTOCOL_COMPAT_LAYER_INVALID": "CallProtocolCompatLayerInvalid", | ||
| "CHANNEL_PRIVATE": "ChannelPrivate", | ||
| "CHANNEL_TOO_LARGE": "ChannelTooLarge", | ||
| "CHAT_FORWARDS_RESTRICTED": "ChatForwardsRestricted", | ||
| "FILEREF_UPGRADE_NEEDED": "FilerefUpgradeNeeded", | ||
| "FRESH_CHANGE_ADMINS_FORBIDDEN": "FreshChangeAdminsForbidden", | ||
| "FRESH_CHANGE_PHONE_FORBIDDEN": "FreshChangePhoneForbidden", | ||
| "FRESH_RESET_AUTHORISATION_FORBIDDEN": "FreshResetAuthorisationForbidden", | ||
| "GIFTCODE_NOT_ALLOWED": "GiftcodeNotAllowed", | ||
| "INVITE_HASH_EXPIRED": "InviteHashExpired", | ||
| "PAYMENT_UNSUPPORTED": "PaymentUnsupported", | ||
| "PEER_ID_INVALID": "PeerIdInvalid", | ||
| "PHONE_NUMBER_INVALID": "PhoneNumberInvalid", | ||
| "PHONE_PASSWORD_FLOOD": "PhonePasswordFlood", | ||
| "PRECHECKOUT_FAILED": "PrecheckoutFailed", | ||
| "PREMIUM_CURRENTLY_UNAVAILABLE": "PremiumCurrentlyUnavailable", | ||
| "PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_XMIN": "PreviousChatImportActiveWaitMin", | ||
| "PRIVACY_PREMIUM_REQUIRED": "PrivacyPremiumRequired", | ||
| "SEND_CODE_UNAVAILABLE": "SendCodeUnavailable", | ||
| "STARGIFT_EXPORT_IN_PROGRESS": "StargiftExportInProgress", | ||
| "STARS_FORM_AMOUNT_MISMATCH": "StarsFormAmountMismatch", | ||
| "STICKERSET_INVALID": "StickersetInvalid", | ||
| "STICKERSET_OWNER_ANONYMOUS": "StickersetOwnerAnonymous", | ||
| "TOPIC_CLOSED": "TopicClosed", | ||
| "TOPIC_DELETED": "TopicDeleted", | ||
| "TRANSLATIONS_DISABLED": "TranslationsDisabled", | ||
| "UPDATE_APP_TO_LOGIN": "UpdateAppToLogin", | ||
| "USERPIC_PRIVACY_REQUIRED": "UserpicPrivacyRequired", | ||
| "USERPIC_UPLOAD_REQUIRED": "UserpicUploadRequired", | ||
| "USER_RESTRICTED": "UserRestricted", | ||
| }, | ||
| } |
There was a problem hiding this comment.
This generated dictionary has a few issues that should be addressed in the generator script:
-
Critical: Some error IDs are mapped to the same exception class name, which will cause class redefinitions and incorrect exception handling. For example:
EMAIL_UNCONFIRMEDandEMAIL_UNCONFIRMED_Xboth map toEmailUnconfirmed.AUTH_RESTARTandAUTH_RESTART_Xboth map toAuthRestart.
These should be mapped to unique class names (e.g.,EmailUnconfirmedX,AuthRestartX).
-
Medium: The top-level error codes (like 401, 400, 500) are not sorted numerically. Sorting them would improve readability.
| class AuthRestart(InternalServerError): | ||
| """Internal error (debug info {value}), please repeat the method call.""" | ||
| ID = "AUTH_RESTART_X" | ||
| """``str``: RPC Error ID""" | ||
| MESSAGE = __doc__ |
There was a problem hiding this comment.
The class AuthRestart is redefined here, overwriting the previous definition on lines 21-25. This happens because the generator maps both AUTH_RESTART and AUTH_RESTART_X error IDs to the same class name. The error ID with an _X suffix should be mapped to a unique class name to avoid this conflict, for example, AuthRestartX.
| class AuthRestart(InternalServerError): | |
| """Internal error (debug info {value}), please repeat the method call.""" | |
| ID = "AUTH_RESTART_X" | |
| """``str``: RPC Error ID""" | |
| MESSAGE = __doc__ | |
| class AuthRestartX(InternalServerError): | |
| """Internal error (debug info {value}), please repeat the method call.""" | |
| ID = "AUTH_RESTART_X" | |
| """``str``: RPC Error ID""" | |
| MESSAGE = __doc__ |
| from .unauthorized_401 import * | ||
| from .bad_request_400 import * | ||
| from .internal_server_error_500 import * | ||
| from .forbidden_403 import * | ||
| from .service_unavailable_503 import * | ||
| from .see_other_303 import * | ||
| from .flood_420 import * | ||
| from .not_acceptable_406 import * |
There was a problem hiding this comment.
For better readability and maintainability, it's good practice to keep imports sorted. In this case, sorting them numerically by the error code would be logical.
| from .unauthorized_401 import * | |
| from .bad_request_400 import * | |
| from .internal_server_error_500 import * | |
| from .forbidden_403 import * | |
| from .service_unavailable_503 import * | |
| from .see_other_303 import * | |
| from .flood_420 import * | |
| from .not_acceptable_406 import * | |
| from .see_other_303 import * | |
| from .bad_request_400 import * | |
| from .unauthorized_401 import * | |
| from .forbidden_403 import * | |
| from .not_acceptable_406 import * | |
| from .flood_420 import * | |
| from .internal_server_error_500 import * | |
| from .service_unavailable_503 import * |
| from .res_pq import ResPQ | ||
| from .pq_inner_data import PQInnerData | ||
| from .bind_auth_key_inner import BindAuthKeyInner | ||
| from .server_dh_params import ServerDHParams | ||
| from .server_dh_inner_data import ServerDHInnerData | ||
| from .client_dh_inner_data import ClientDHInnerData | ||
| from .set_client_dh_params_answer import SetClientDHParamsAnswer | ||
| from .destroy_auth_key_res import DestroyAuthKeyRes | ||
| from .msgs_ack import MsgsAck | ||
| from .bad_msg_notification import BadMsgNotification | ||
| from .msgs_state_req import MsgsStateReq | ||
| from .msgs_state_info import MsgsStateInfo | ||
| from .msgs_all_info import MsgsAllInfo | ||
| from .msg_detailed_info import MsgDetailedInfo | ||
| from .msg_resend_req import MsgResendReq | ||
| from .rpc_result import RpcResult | ||
| from .rpc_error import RpcError | ||
| from .rpc_drop_answer import RpcDropAnswer | ||
| from .pong import Pong | ||
| from .destroy_session_res import DestroySessionRes | ||
| from .new_session import NewSession | ||
| from .http_wait import HttpWait | ||
| from .ip_port import IpPort | ||
| from .access_point_rule import AccessPointRule | ||
| from .input_peer import InputPeer | ||
| from .input_user import InputUser | ||
| from .input_contact import InputContact | ||
| from .input_file import InputFile | ||
| from .input_media import InputMedia | ||
| from .input_chat_photo import InputChatPhoto | ||
| from .input_geo_point import InputGeoPoint | ||
| from .input_photo import InputPhoto | ||
| from .input_file_location import InputFileLocation | ||
| from .peer import Peer | ||
| from .user import User | ||
| from .user_profile_photo import UserProfilePhoto | ||
| from .user_status import UserStatus | ||
| from .chat import Chat | ||
| from .chat_full import ChatFull | ||
| from .chat_participant import ChatParticipant | ||
| from .chat_participants import ChatParticipants | ||
| from .chat_photo import ChatPhoto | ||
| from .message import Message | ||
| from .message_media import MessageMedia | ||
| from .message_action import MessageAction | ||
| from .dialog import Dialog | ||
| from .photo import Photo | ||
| from .photo_size import PhotoSize | ||
| from .geo_point import GeoPoint | ||
| from .input_notify_peer import InputNotifyPeer | ||
| from .input_peer_notify_settings import InputPeerNotifySettings | ||
| from .peer_notify_settings import PeerNotifySettings | ||
| from .peer_settings import PeerSettings | ||
| from .wall_paper import WallPaper | ||
| from .report_reason import ReportReason | ||
| from .user_full import UserFull | ||
| from .contact import Contact | ||
| from .imported_contact import ImportedContact | ||
| from .contact_status import ContactStatus | ||
| from .messages_filter import MessagesFilter | ||
| from .update import Update | ||
| from .updates_t import Updates | ||
| from .dc_option import DcOption | ||
| from .config import Config | ||
| from .nearest_dc import NearestDc | ||
| from .encrypted_chat import EncryptedChat | ||
| from .input_encrypted_chat import InputEncryptedChat | ||
| from .encrypted_file import EncryptedFile | ||
| from .input_encrypted_file import InputEncryptedFile | ||
| from .encrypted_message import EncryptedMessage | ||
| from .input_document import InputDocument | ||
| from .document import Document | ||
| from .notify_peer import NotifyPeer | ||
| from .send_message_action import SendMessageAction | ||
| from .input_privacy_key import InputPrivacyKey | ||
| from .privacy_key import PrivacyKey | ||
| from .input_privacy_rule import InputPrivacyRule | ||
| from .privacy_rule import PrivacyRule | ||
| from .account_days_ttl import AccountDaysTTL | ||
| from .document_attribute import DocumentAttribute | ||
| from .sticker_pack import StickerPack | ||
| from .web_page import WebPage | ||
| from .authorization import Authorization | ||
| from .received_notify_message import ReceivedNotifyMessage | ||
| from .exported_chat_invite import ExportedChatInvite | ||
| from .chat_invite import ChatInvite | ||
| from .input_sticker_set import InputStickerSet | ||
| from .sticker_set import StickerSet | ||
| from .bot_command import BotCommand | ||
| from .bot_info import BotInfo | ||
| from .keyboard_button import KeyboardButton | ||
| from .keyboard_button_row import KeyboardButtonRow | ||
| from .reply_markup import ReplyMarkup | ||
| from .message_entity import MessageEntity | ||
| from .input_channel import InputChannel | ||
| from .message_range import MessageRange | ||
| from .channel_messages_filter import ChannelMessagesFilter | ||
| from .channel_participant import ChannelParticipant | ||
| from .channel_participants_filter import ChannelParticipantsFilter | ||
| from .input_bot_inline_message import InputBotInlineMessage | ||
| from .input_bot_inline_result import InputBotInlineResult | ||
| from .bot_inline_message import BotInlineMessage | ||
| from .bot_inline_result import BotInlineResult | ||
| from .exported_message_link import ExportedMessageLink | ||
| from .message_fwd_header import MessageFwdHeader | ||
| from .input_bot_inline_message_id import InputBotInlineMessageID | ||
| from .inline_bot_switch_pm import InlineBotSwitchPM | ||
| from .top_peer import TopPeer | ||
| from .top_peer_category import TopPeerCategory | ||
| from .top_peer_category_peers import TopPeerCategoryPeers | ||
| from .draft_message import DraftMessage | ||
| from .sticker_set_covered import StickerSetCovered | ||
| from .mask_coords import MaskCoords | ||
| from .input_stickered_media import InputStickeredMedia | ||
| from .game import Game | ||
| from .input_game import InputGame | ||
| from .high_score import HighScore | ||
| from .rich_text import RichText | ||
| from .page_block import PageBlock | ||
| from .phone_call_discard_reason import PhoneCallDiscardReason | ||
| from .data_json import DataJSON | ||
| from .labeled_price import LabeledPrice | ||
| from .invoice import Invoice | ||
| from .payment_charge import PaymentCharge | ||
| from .post_address import PostAddress | ||
| from .payment_requested_info import PaymentRequestedInfo | ||
| from .payment_saved_credentials import PaymentSavedCredentials | ||
| from .web_document import WebDocument | ||
| from .input_web_document import InputWebDocument | ||
| from .input_web_file_location import InputWebFileLocation | ||
| from .input_payment_credentials import InputPaymentCredentials | ||
| from .shipping_option import ShippingOption | ||
| from .input_sticker_set_item import InputStickerSetItem | ||
| from .input_phone_call import InputPhoneCall | ||
| from .phone_call import PhoneCall | ||
| from .phone_connection import PhoneConnection | ||
| from .phone_call_protocol import PhoneCallProtocol | ||
| from .cdn_public_key import CdnPublicKey | ||
| from .cdn_config import CdnConfig | ||
| from .lang_pack_string import LangPackString | ||
| from .lang_pack_difference import LangPackDifference | ||
| from .lang_pack_language import LangPackLanguage | ||
| from .channel_admin_log_event_action import ChannelAdminLogEventAction | ||
| from .channel_admin_log_event import ChannelAdminLogEvent | ||
| from .channel_admin_log_events_filter import ChannelAdminLogEventsFilter | ||
| from .popular_contact import PopularContact | ||
| from .recent_me_url import RecentMeUrl | ||
| from .input_single_media import InputSingleMedia | ||
| from .web_authorization import WebAuthorization | ||
| from .input_message import InputMessage | ||
| from .input_dialog_peer import InputDialogPeer | ||
| from .dialog_peer import DialogPeer | ||
| from .file_hash import FileHash | ||
| from .input_client_proxy import InputClientProxy | ||
| from .input_secure_file import InputSecureFile | ||
| from .secure_file import SecureFile | ||
| from .secure_data import SecureData | ||
| from .secure_plain_data import SecurePlainData | ||
| from .secure_value_type import SecureValueType | ||
| from .secure_value import SecureValue | ||
| from .input_secure_value import InputSecureValue | ||
| from .secure_value_hash import SecureValueHash | ||
| from .secure_value_error import SecureValueError | ||
| from .secure_credentials_encrypted import SecureCredentialsEncrypted | ||
| from .saved_contact import SavedContact | ||
| from .password_kdf_algo import PasswordKdfAlgo | ||
| from .secure_password_kdf_algo import SecurePasswordKdfAlgo | ||
| from .secure_secret_settings import SecureSecretSettings | ||
| from .input_check_password_srp import InputCheckPasswordSRP | ||
| from .secure_required_type import SecureRequiredType | ||
| from .input_app_event import InputAppEvent | ||
| from .json_object_value import JSONObjectValue | ||
| from .json_value import JSONValue | ||
| from .page_table_cell import PageTableCell | ||
| from .page_table_row import PageTableRow | ||
| from .page_caption import PageCaption | ||
| from .page_list_item import PageListItem | ||
| from .page_list_ordered_item import PageListOrderedItem | ||
| from .page_related_article import PageRelatedArticle | ||
| from .page import Page | ||
| from .poll_answer import PollAnswer | ||
| from .poll import Poll | ||
| from .poll_answer_voters import PollAnswerVoters | ||
| from .poll_results import PollResults | ||
| from .chat_onlines import ChatOnlines | ||
| from .stats_url import StatsURL | ||
| from .chat_admin_rights import ChatAdminRights | ||
| from .chat_banned_rights import ChatBannedRights | ||
| from .input_wall_paper import InputWallPaper | ||
| from .code_settings import CodeSettings | ||
| from .wall_paper_settings import WallPaperSettings | ||
| from .auto_download_settings import AutoDownloadSettings | ||
| from .emoji_keyword import EmojiKeyword | ||
| from .emoji_keywords_difference import EmojiKeywordsDifference | ||
| from .emoji_url import EmojiURL | ||
| from .emoji_language import EmojiLanguage | ||
| from .folder import Folder | ||
| from .input_folder_peer import InputFolderPeer | ||
| from .folder_peer import FolderPeer | ||
| from .url_auth_result import UrlAuthResult | ||
| from .channel_location import ChannelLocation | ||
| from .peer_located import PeerLocated | ||
| from .restriction_reason import RestrictionReason | ||
| from .input_theme import InputTheme | ||
| from .theme import Theme | ||
| from .base_theme import BaseTheme | ||
| from .input_theme_settings import InputThemeSettings | ||
| from .theme_settings import ThemeSettings | ||
| from .web_page_attribute import WebPageAttribute | ||
| from .bank_card_open_url import BankCardOpenUrl | ||
| from .dialog_filter import DialogFilter | ||
| from .dialog_filter_suggested import DialogFilterSuggested | ||
| from .stats_date_range_days import StatsDateRangeDays | ||
| from .stats_abs_value_and_prev import StatsAbsValueAndPrev | ||
| from .stats_percent_value import StatsPercentValue | ||
| from .stats_graph import StatsGraph | ||
| from .video_size import VideoSize | ||
| from .stats_group_top_poster import StatsGroupTopPoster | ||
| from .stats_group_top_admin import StatsGroupTopAdmin | ||
| from .stats_group_top_inviter import StatsGroupTopInviter | ||
| from .global_privacy_settings import GlobalPrivacySettings | ||
| from .message_views import MessageViews | ||
| from .message_reply_header import MessageReplyHeader | ||
| from .message_replies import MessageReplies | ||
| from .peer_blocked import PeerBlocked | ||
| from .group_call import GroupCall | ||
| from .input_group_call import InputGroupCall | ||
| from .group_call_participant import GroupCallParticipant | ||
| from .inline_query_peer_type import InlineQueryPeerType | ||
| from .chat_invite_importer import ChatInviteImporter | ||
| from .chat_admin_with_invites import ChatAdminWithInvites | ||
| from .group_call_participant_video_source_group import GroupCallParticipantVideoSourceGroup | ||
| from .group_call_participant_video import GroupCallParticipantVideo | ||
| from .bot_command_scope import BotCommandScope | ||
| from .chat_theme import ChatTheme | ||
| from .sponsored_message import SponsoredMessage | ||
| from .search_results_calendar_period import SearchResultsCalendarPeriod | ||
| from .search_results_position import SearchResultsPosition | ||
| from .reaction_count import ReactionCount | ||
| from .message_reactions import MessageReactions | ||
| from .available_reaction import AvailableReaction | ||
| from .message_peer_reaction import MessagePeerReaction | ||
| from .group_call_stream_channel import GroupCallStreamChannel | ||
| from .attach_menu_bot_icon_color import AttachMenuBotIconColor | ||
| from .attach_menu_bot_icon import AttachMenuBotIcon | ||
| from .attach_menu_bot import AttachMenuBot | ||
| from .attach_menu_bots import AttachMenuBots | ||
| from .attach_menu_bots_bot import AttachMenuBotsBot | ||
| from .web_view_result import WebViewResult | ||
| from .web_view_message_sent import WebViewMessageSent | ||
| from .bot_menu_button import BotMenuButton | ||
| from .notification_sound import NotificationSound | ||
| from .attach_menu_peer_type import AttachMenuPeerType | ||
| from .input_invoice import InputInvoice | ||
| from .input_store_payment_purpose import InputStorePaymentPurpose | ||
| from .payment_form_method import PaymentFormMethod | ||
| from .emoji_status import EmojiStatus | ||
| from .reaction import Reaction | ||
| from .chat_reactions import ChatReactions | ||
| from .email_verify_purpose import EmailVerifyPurpose | ||
| from .email_verification import EmailVerification | ||
| from .premium_subscription_option import PremiumSubscriptionOption | ||
| from .send_as_peer import SendAsPeer | ||
| from .message_extended_media import MessageExtendedMedia | ||
| from .sticker_keyword import StickerKeyword | ||
| from .username import Username | ||
| from .forum_topic import ForumTopic | ||
| from .default_history_ttl import DefaultHistoryTTL | ||
| from .exported_contact_token import ExportedContactToken | ||
| from .request_peer_type import RequestPeerType | ||
| from .emoji_list import EmojiList | ||
| from .emoji_group import EmojiGroup | ||
| from .text_with_entities import TextWithEntities | ||
| from .auto_save_settings import AutoSaveSettings | ||
| from .auto_save_exception import AutoSaveException | ||
| from .input_bot_app import InputBotApp | ||
| from .bot_app import BotApp | ||
| from .inline_bot_web_view import InlineBotWebView | ||
| from .read_participant_date import ReadParticipantDate | ||
| from .input_chatlist import InputChatlist | ||
| from .exported_chatlist_invite import ExportedChatlistInvite | ||
| from .message_peer_vote import MessagePeerVote | ||
| from .story_views import StoryViews | ||
| from .story_item import StoryItem | ||
| from .story_view import StoryView | ||
| from .input_reply_to import InputReplyTo | ||
| from .exported_story_link import ExportedStoryLink | ||
| from .stories_stealth_mode import StoriesStealthMode | ||
| from .media_area_coordinates import MediaAreaCoordinates | ||
| from .media_area import MediaArea | ||
| from .peer_stories import PeerStories | ||
| from .premium_gift_code_option import PremiumGiftCodeOption | ||
| from .prepaid_giveaway import PrepaidGiveaway | ||
| from .boost import Boost | ||
| from .my_boost import MyBoost | ||
| from .story_fwd_header import StoryFwdHeader | ||
| from .post_interaction_counters import PostInteractionCounters | ||
| from .public_forward import PublicForward | ||
| from .peer_color import PeerColor | ||
| from .story_reaction import StoryReaction | ||
| from .saved_dialog import SavedDialog | ||
| from .saved_reaction_tag import SavedReactionTag | ||
| from .outbox_read_date import OutboxReadDate | ||
| from .sms_job import SmsJob | ||
| from .business_weekly_open import BusinessWeeklyOpen | ||
| from .business_work_hours import BusinessWorkHours | ||
| from .business_location import BusinessLocation | ||
| from .input_business_recipients import InputBusinessRecipients | ||
| from .business_recipients import BusinessRecipients | ||
| from .business_away_message_schedule import BusinessAwayMessageSchedule | ||
| from .input_business_greeting_message import InputBusinessGreetingMessage | ||
| from .business_greeting_message import BusinessGreetingMessage | ||
| from .input_business_away_message import InputBusinessAwayMessage | ||
| from .business_away_message import BusinessAwayMessage | ||
| from .timezone import Timezone | ||
| from .quick_reply import QuickReply | ||
| from .input_quick_reply_shortcut import InputQuickReplyShortcut | ||
| from .connected_bot import ConnectedBot | ||
| from .birthday import Birthday | ||
| from .bot_business_connection import BotBusinessConnection | ||
| from .input_business_intro import InputBusinessIntro | ||
| from .business_intro import BusinessIntro | ||
| from .input_collectible import InputCollectible | ||
| from .input_business_bot_recipients import InputBusinessBotRecipients | ||
| from .business_bot_recipients import BusinessBotRecipients | ||
| from .contact_birthday import ContactBirthday | ||
| from .missing_invitee import MissingInvitee | ||
| from .input_business_chat_link import InputBusinessChatLink | ||
| from .business_chat_link import BusinessChatLink | ||
| from .requested_peer import RequestedPeer | ||
| from .sponsored_message_report_option import SponsoredMessageReportOption | ||
| from .reaction_notifications_from import ReactionNotificationsFrom | ||
| from .reactions_notify_settings import ReactionsNotifySettings | ||
| from .available_effect import AvailableEffect | ||
| from .fact_check import FactCheck | ||
| from .stars_transaction_peer import StarsTransactionPeer | ||
| from .stars_topup_option import StarsTopupOption | ||
| from .stars_transaction import StarsTransaction | ||
| from .found_story import FoundStory | ||
| from .geo_point_address import GeoPointAddress | ||
| from .stars_revenue_status import StarsRevenueStatus | ||
| from .input_stars_transaction import InputStarsTransaction | ||
| from .stars_gift_option import StarsGiftOption | ||
| from .bot_preview_media import BotPreviewMedia | ||
| from .stars_subscription_pricing import StarsSubscriptionPricing | ||
| from .stars_subscription import StarsSubscription | ||
| from .message_reactor import MessageReactor | ||
| from .stars_giveaway_option import StarsGiveawayOption | ||
| from .stars_giveaway_winners_option import StarsGiveawayWinnersOption | ||
| from .star_gift import StarGift | ||
| from .message_report_option import MessageReportOption | ||
| from .report_result import ReportResult | ||
| from .bot_app_settings import BotAppSettings | ||
| from .star_ref_program import StarRefProgram | ||
| from .connected_bot_star_ref import ConnectedBotStarRef | ||
| from .stars_amount import StarsAmount | ||
| from .bot_verifier_settings import BotVerifierSettings | ||
| from .bot_verification import BotVerification | ||
| from .star_gift_attribute import StarGiftAttribute | ||
| from .saved_star_gift import SavedStarGift | ||
| from .input_saved_star_gift import InputSavedStarGift | ||
| from .paid_reaction_privacy import PaidReactionPrivacy | ||
| from .requirement_to_contact import RequirementToContact | ||
| from .business_bot_rights import BusinessBotRights | ||
| from .disallowed_gifts_settings import DisallowedGiftsSettings | ||
| from .sponsored_peer import SponsoredPeer | ||
| from .star_gift_attribute_id import StarGiftAttributeId | ||
| from .star_gift_attribute_counter import StarGiftAttributeCounter | ||
| from .pending_suggestion import PendingSuggestion | ||
| from .todo_item import TodoItem | ||
| from .todo_list import TodoList | ||
| from .todo_completion import TodoCompletion | ||
| from .suggested_post import SuggestedPost | ||
| from .stars_rating import StarsRating | ||
| from .star_gift_collection import StarGiftCollection | ||
| from .story_album import StoryAlbum | ||
| from .search_posts_flood import SearchPostsFlood | ||
| from .profile_tab import ProfileTab | ||
| from .input_chat_theme import InputChatTheme | ||
| from .star_gift_upgrade_price import StarGiftUpgradePrice | ||
| from .group_call_message import GroupCallMessage | ||
| from .group_call_donor import GroupCallDonor | ||
| from .recent_story import RecentStory | ||
| from .auction_bid_level import AuctionBidLevel | ||
| from .star_gift_auction_state import StarGiftAuctionState | ||
| from .star_gift_auction_user_state import StarGiftAuctionUserState | ||
| from .star_gift_auction_acquired_gift import StarGiftAuctionAcquiredGift | ||
| from .star_gift_active_auction_state import StarGiftActiveAuctionState | ||
| from .input_star_gift_auction import InputStarGiftAuction | ||
| from .passkey import Passkey | ||
| from .input_passkey_response import InputPasskeyResponse | ||
| from .input_passkey_credential import InputPasskeyCredential | ||
| from .star_gift_background import StarGiftBackground | ||
| from .star_gift_auction_round import StarGiftAuctionRound | ||
| from .star_gift_attribute_rarity import StarGiftAttributeRarity | ||
| from .keyboard_button_style import KeyboardButtonStyle | ||
| from .premium_gift_option import PremiumGiftOption | ||
| from . import help, storage, auth, contacts, messages, updates, photos, upload, account, channels, payments, phone, stats, stickers, users, chatlists, bots, stories, premium, smsjobs, fragment | ||
|
|
||
| __all__ = [ | ||
| "ResPQ", | ||
| "PQInnerData", | ||
| "BindAuthKeyInner", | ||
| "ServerDHParams", | ||
| "ServerDHInnerData", | ||
| "ClientDHInnerData", | ||
| "SetClientDHParamsAnswer", | ||
| "DestroyAuthKeyRes", | ||
| "MsgsAck", | ||
| "BadMsgNotification", | ||
| "MsgsStateReq", | ||
| "MsgsStateInfo", | ||
| "MsgsAllInfo", | ||
| "MsgDetailedInfo", | ||
| "MsgResendReq", | ||
| "RpcResult", | ||
| "RpcError", | ||
| "RpcDropAnswer", | ||
| "Pong", | ||
| "DestroySessionRes", | ||
| "NewSession", | ||
| "HttpWait", | ||
| "IpPort", | ||
| "AccessPointRule", | ||
| "InputPeer", | ||
| "InputUser", | ||
| "InputContact", | ||
| "InputFile", | ||
| "InputMedia", | ||
| "InputChatPhoto", | ||
| "InputGeoPoint", | ||
| "InputPhoto", | ||
| "InputFileLocation", | ||
| "Peer", | ||
| "User", | ||
| "UserProfilePhoto", | ||
| "UserStatus", | ||
| "Chat", | ||
| "ChatFull", | ||
| "ChatParticipant", | ||
| "ChatParticipants", | ||
| "ChatPhoto", | ||
| "Message", | ||
| "MessageMedia", | ||
| "MessageAction", | ||
| "Dialog", | ||
| "Photo", | ||
| "PhotoSize", | ||
| "GeoPoint", | ||
| "InputNotifyPeer", | ||
| "InputPeerNotifySettings", | ||
| "PeerNotifySettings", | ||
| "PeerSettings", | ||
| "WallPaper", | ||
| "ReportReason", | ||
| "UserFull", | ||
| "Contact", | ||
| "ImportedContact", | ||
| "ContactStatus", | ||
| "MessagesFilter", | ||
| "Update", | ||
| "Updates", | ||
| "DcOption", | ||
| "Config", | ||
| "NearestDc", | ||
| "EncryptedChat", | ||
| "InputEncryptedChat", | ||
| "EncryptedFile", | ||
| "InputEncryptedFile", | ||
| "EncryptedMessage", | ||
| "InputDocument", | ||
| "Document", | ||
| "NotifyPeer", | ||
| "SendMessageAction", | ||
| "InputPrivacyKey", | ||
| "PrivacyKey", | ||
| "InputPrivacyRule", | ||
| "PrivacyRule", | ||
| "AccountDaysTTL", | ||
| "DocumentAttribute", | ||
| "StickerPack", | ||
| "WebPage", | ||
| "Authorization", | ||
| "ReceivedNotifyMessage", | ||
| "ExportedChatInvite", | ||
| "ChatInvite", | ||
| "InputStickerSet", | ||
| "StickerSet", | ||
| "BotCommand", | ||
| "BotInfo", | ||
| "KeyboardButton", | ||
| "KeyboardButtonRow", | ||
| "ReplyMarkup", | ||
| "MessageEntity", | ||
| "InputChannel", | ||
| "MessageRange", | ||
| "ChannelMessagesFilter", | ||
| "ChannelParticipant", | ||
| "ChannelParticipantsFilter", | ||
| "InputBotInlineMessage", | ||
| "InputBotInlineResult", | ||
| "BotInlineMessage", | ||
| "BotInlineResult", | ||
| "ExportedMessageLink", | ||
| "MessageFwdHeader", | ||
| "InputBotInlineMessageID", | ||
| "InlineBotSwitchPM", | ||
| "TopPeer", | ||
| "TopPeerCategory", | ||
| "TopPeerCategoryPeers", | ||
| "DraftMessage", | ||
| "StickerSetCovered", | ||
| "MaskCoords", | ||
| "InputStickeredMedia", | ||
| "Game", | ||
| "InputGame", | ||
| "HighScore", | ||
| "RichText", | ||
| "PageBlock", | ||
| "PhoneCallDiscardReason", | ||
| "DataJSON", | ||
| "LabeledPrice", | ||
| "Invoice", | ||
| "PaymentCharge", | ||
| "PostAddress", | ||
| "PaymentRequestedInfo", | ||
| "PaymentSavedCredentials", | ||
| "WebDocument", | ||
| "InputWebDocument", | ||
| "InputWebFileLocation", | ||
| "InputPaymentCredentials", | ||
| "ShippingOption", | ||
| "InputStickerSetItem", | ||
| "InputPhoneCall", | ||
| "PhoneCall", | ||
| "PhoneConnection", | ||
| "PhoneCallProtocol", | ||
| "CdnPublicKey", | ||
| "CdnConfig", | ||
| "LangPackString", | ||
| "LangPackDifference", | ||
| "LangPackLanguage", | ||
| "ChannelAdminLogEventAction", | ||
| "ChannelAdminLogEvent", | ||
| "ChannelAdminLogEventsFilter", | ||
| "PopularContact", | ||
| "RecentMeUrl", | ||
| "InputSingleMedia", | ||
| "WebAuthorization", | ||
| "InputMessage", | ||
| "InputDialogPeer", | ||
| "DialogPeer", | ||
| "FileHash", | ||
| "InputClientProxy", | ||
| "InputSecureFile", | ||
| "SecureFile", | ||
| "SecureData", | ||
| "SecurePlainData", | ||
| "SecureValueType", | ||
| "SecureValue", | ||
| "InputSecureValue", | ||
| "SecureValueHash", | ||
| "SecureValueError", | ||
| "SecureCredentialsEncrypted", | ||
| "SavedContact", | ||
| "PasswordKdfAlgo", | ||
| "SecurePasswordKdfAlgo", | ||
| "SecureSecretSettings", | ||
| "InputCheckPasswordSRP", | ||
| "SecureRequiredType", | ||
| "InputAppEvent", | ||
| "JSONObjectValue", | ||
| "JSONValue", | ||
| "PageTableCell", | ||
| "PageTableRow", | ||
| "PageCaption", | ||
| "PageListItem", | ||
| "PageListOrderedItem", | ||
| "PageRelatedArticle", | ||
| "Page", | ||
| "PollAnswer", | ||
| "Poll", | ||
| "PollAnswerVoters", | ||
| "PollResults", | ||
| "ChatOnlines", | ||
| "StatsURL", | ||
| "ChatAdminRights", | ||
| "ChatBannedRights", | ||
| "InputWallPaper", | ||
| "CodeSettings", | ||
| "WallPaperSettings", | ||
| "AutoDownloadSettings", | ||
| "EmojiKeyword", | ||
| "EmojiKeywordsDifference", | ||
| "EmojiURL", | ||
| "EmojiLanguage", | ||
| "Folder", | ||
| "InputFolderPeer", | ||
| "FolderPeer", | ||
| "UrlAuthResult", | ||
| "ChannelLocation", | ||
| "PeerLocated", | ||
| "RestrictionReason", | ||
| "InputTheme", | ||
| "Theme", | ||
| "BaseTheme", | ||
| "InputThemeSettings", | ||
| "ThemeSettings", | ||
| "WebPageAttribute", | ||
| "BankCardOpenUrl", | ||
| "DialogFilter", | ||
| "DialogFilterSuggested", | ||
| "StatsDateRangeDays", | ||
| "StatsAbsValueAndPrev", | ||
| "StatsPercentValue", | ||
| "StatsGraph", | ||
| "VideoSize", | ||
| "StatsGroupTopPoster", | ||
| "StatsGroupTopAdmin", | ||
| "StatsGroupTopInviter", | ||
| "GlobalPrivacySettings", | ||
| "MessageViews", | ||
| "MessageReplyHeader", | ||
| "MessageReplies", | ||
| "PeerBlocked", | ||
| "GroupCall", | ||
| "InputGroupCall", | ||
| "GroupCallParticipant", | ||
| "InlineQueryPeerType", | ||
| "ChatInviteImporter", | ||
| "ChatAdminWithInvites", | ||
| "GroupCallParticipantVideoSourceGroup", | ||
| "GroupCallParticipantVideo", | ||
| "BotCommandScope", | ||
| "ChatTheme", | ||
| "SponsoredMessage", | ||
| "SearchResultsCalendarPeriod", | ||
| "SearchResultsPosition", | ||
| "ReactionCount", | ||
| "MessageReactions", | ||
| "AvailableReaction", | ||
| "MessagePeerReaction", | ||
| "GroupCallStreamChannel", | ||
| "AttachMenuBotIconColor", | ||
| "AttachMenuBotIcon", | ||
| "AttachMenuBot", | ||
| "AttachMenuBots", | ||
| "AttachMenuBotsBot", | ||
| "WebViewResult", | ||
| "WebViewMessageSent", | ||
| "BotMenuButton", | ||
| "NotificationSound", | ||
| "AttachMenuPeerType", | ||
| "InputInvoice", | ||
| "InputStorePaymentPurpose", | ||
| "PaymentFormMethod", | ||
| "EmojiStatus", | ||
| "Reaction", | ||
| "ChatReactions", | ||
| "EmailVerifyPurpose", | ||
| "EmailVerification", | ||
| "PremiumSubscriptionOption", | ||
| "SendAsPeer", | ||
| "MessageExtendedMedia", | ||
| "StickerKeyword", | ||
| "Username", | ||
| "ForumTopic", | ||
| "DefaultHistoryTTL", | ||
| "ExportedContactToken", | ||
| "RequestPeerType", | ||
| "EmojiList", | ||
| "EmojiGroup", | ||
| "TextWithEntities", | ||
| "AutoSaveSettings", | ||
| "AutoSaveException", | ||
| "InputBotApp", | ||
| "BotApp", | ||
| "InlineBotWebView", | ||
| "ReadParticipantDate", | ||
| "InputChatlist", | ||
| "ExportedChatlistInvite", | ||
| "MessagePeerVote", | ||
| "StoryViews", | ||
| "StoryItem", | ||
| "StoryView", | ||
| "InputReplyTo", | ||
| "ExportedStoryLink", | ||
| "StoriesStealthMode", | ||
| "MediaAreaCoordinates", | ||
| "MediaArea", | ||
| "PeerStories", | ||
| "PremiumGiftCodeOption", | ||
| "PrepaidGiveaway", | ||
| "Boost", | ||
| "MyBoost", | ||
| "StoryFwdHeader", | ||
| "PostInteractionCounters", | ||
| "PublicForward", | ||
| "PeerColor", | ||
| "StoryReaction", | ||
| "SavedDialog", | ||
| "SavedReactionTag", | ||
| "OutboxReadDate", | ||
| "SmsJob", | ||
| "BusinessWeeklyOpen", | ||
| "BusinessWorkHours", | ||
| "BusinessLocation", | ||
| "InputBusinessRecipients", | ||
| "BusinessRecipients", | ||
| "BusinessAwayMessageSchedule", | ||
| "InputBusinessGreetingMessage", | ||
| "BusinessGreetingMessage", | ||
| "InputBusinessAwayMessage", | ||
| "BusinessAwayMessage", | ||
| "Timezone", | ||
| "QuickReply", | ||
| "InputQuickReplyShortcut", | ||
| "ConnectedBot", | ||
| "Birthday", | ||
| "BotBusinessConnection", | ||
| "InputBusinessIntro", | ||
| "BusinessIntro", | ||
| "InputCollectible", | ||
| "InputBusinessBotRecipients", | ||
| "BusinessBotRecipients", | ||
| "ContactBirthday", | ||
| "MissingInvitee", | ||
| "InputBusinessChatLink", | ||
| "BusinessChatLink", | ||
| "RequestedPeer", | ||
| "SponsoredMessageReportOption", | ||
| "ReactionNotificationsFrom", | ||
| "ReactionsNotifySettings", | ||
| "AvailableEffect", | ||
| "FactCheck", | ||
| "StarsTransactionPeer", | ||
| "StarsTopupOption", | ||
| "StarsTransaction", | ||
| "FoundStory", | ||
| "GeoPointAddress", | ||
| "StarsRevenueStatus", | ||
| "InputStarsTransaction", | ||
| "StarsGiftOption", | ||
| "BotPreviewMedia", | ||
| "StarsSubscriptionPricing", | ||
| "StarsSubscription", | ||
| "MessageReactor", | ||
| "StarsGiveawayOption", | ||
| "StarsGiveawayWinnersOption", | ||
| "StarGift", | ||
| "MessageReportOption", | ||
| "ReportResult", | ||
| "BotAppSettings", | ||
| "StarRefProgram", | ||
| "ConnectedBotStarRef", | ||
| "StarsAmount", | ||
| "BotVerifierSettings", | ||
| "BotVerification", | ||
| "StarGiftAttribute", | ||
| "SavedStarGift", | ||
| "InputSavedStarGift", | ||
| "PaidReactionPrivacy", | ||
| "RequirementToContact", | ||
| "BusinessBotRights", | ||
| "DisallowedGiftsSettings", | ||
| "SponsoredPeer", | ||
| "StarGiftAttributeId", | ||
| "StarGiftAttributeCounter", | ||
| "PendingSuggestion", | ||
| "TodoItem", | ||
| "TodoList", | ||
| "TodoCompletion", | ||
| "SuggestedPost", | ||
| "StarsRating", | ||
| "StarGiftCollection", | ||
| "StoryAlbum", | ||
| "SearchPostsFlood", | ||
| "ProfileTab", | ||
| "InputChatTheme", | ||
| "StarGiftUpgradePrice", | ||
| "GroupCallMessage", | ||
| "GroupCallDonor", | ||
| "RecentStory", | ||
| "AuctionBidLevel", | ||
| "StarGiftAuctionState", | ||
| "StarGiftAuctionUserState", | ||
| "StarGiftAuctionAcquiredGift", | ||
| "StarGiftActiveAuctionState", | ||
| "InputStarGiftAuction", | ||
| "Passkey", | ||
| "InputPasskeyResponse", | ||
| "InputPasskeyCredential", | ||
| "StarGiftBackground", | ||
| "StarGiftAuctionRound", | ||
| "StarGiftAttributeRarity", | ||
| "KeyboardButtonStyle", | ||
| "PremiumGiftOption", | ||
| "help", | ||
| "storage", | ||
| "auth", | ||
| "contacts", | ||
| "messages", | ||
| "updates", | ||
| "photos", | ||
| "upload", | ||
| "account", | ||
| "channels", | ||
| "payments", | ||
| "phone", | ||
| "stats", | ||
| "stickers", | ||
| "users", | ||
| "chatlists", | ||
| "bots", | ||
| "stories", | ||
| "premium", | ||
| "smsjobs", | ||
| "fragment", | ||
| ] |
There was a problem hiding this comment.
The imports and the __all__ list in this large generated file are not sorted alphabetically. For better code maintainability and easier navigation, it's recommended to ensure the generator script outputs these lists in sorted order. This observation applies to other new __init__.py files in this pull request as well.
This submission includes a new script
generate_raw.pywhich triggers the internal compiler to generate Telegram API files and error exceptions. It also includes the updated generated files inpyrogram/raw/andpyrogram/errors/exceptions/, which were previously ignored but are now tracked in the repository.PR created automatically by Jules for task 7211725134344892268 started by @5hojib