UNPKG

@tgsnake/core

Version:

Pure Telegram MTProto library for nodejs

775 lines (774 loc) 28.3 kB
declare const count = 743; declare const Exceptions: { 303: { _: string; FILE_MIGRATE_X: string; NETWORK_MIGRATE_X: string; PHONE_MIGRATE_X: string; STATS_MIGRATE_X: string; USER_MIGRATE_X: string; }; 400: { _: string; ABOUT_TOO_LONG: string; ACCESS_TOKEN_EXPIRED: string; ACCESS_TOKEN_INVALID: string; ADDRESS_INVALID: string; ADMINS_TOO_MUCH: string; ADMIN_ID_INVALID: string; ADMIN_RANK_EMOJI_NOT_ALLOWED: string; ADMIN_RANK_INVALID: string; ADMIN_RIGHTS_EMPTY: string; AD_EXPIRED: string; ALBUM_PHOTOS_TOO_MANY: string; API_ID_INVALID: string; API_ID_PUBLISHED_FLOOD: string; ARTICLE_TITLE_EMPTY: string; AUDIO_CONTENT_URL_EMPTY: string; AUDIO_TITLE_EMPTY: string; AUTH_BYTES_INVALID: string; AUTH_TOKEN_ALREADY_ACCEPTED: string; AUTH_TOKEN_EXCEPTION: string; AUTH_TOKEN_EXPIRED: string; AUTH_TOKEN_INVALID: string; AUTH_TOKEN_INVALIDX: string; AUTOARCHIVE_NOT_AVAILABLE: string; BALANCE_TOO_LOW: string; BANK_CARD_NUMBER_INVALID: string; BANNED_RIGHTS_INVALID: string; BASE_PORT_LOC_INVALID: string; BIRTHDAY_INVALID: string; BOOSTS_EMPTY: string; BOOSTS_REQUIRED: string; BOOST_NOT_MODIFIED: string; BOOST_PEER_INVALID: string; BOTS_TOO_MUCH: string; BOT_ALREADY_DISABLED: string; BOT_APP_BOT_INVALID: string; BOT_APP_INVALID: string; BOT_APP_SHORTNAME_INVALID: string; BOT_BUSINESS_MISSING: string; BOT_CHANNELS_NA: string; BOT_COMMAND_DESCRIPTION_INVALID: string; BOT_COMMAND_INVALID: string; BOT_DOMAIN_INVALID: string; BOT_GAMES_DISABLED: string; BOT_GROUPS_BLOCKED: string; BOT_INLINE_DISABLED: string; BOT_INVALID: string; BOT_INVOICE_INVALID: string; BOT_METHOD_INVALID: string; BOT_MISSING: string; BOT_NOT_CONNECTED_YET: string; BOT_ONESIDE_NOT_AVAIL: string; BOT_PAYMENTS_DISABLED: string; BOT_POLLS_DISABLED: string; BOT_RESPONSE_TIMEOUT: string; BOT_SCORE_NOT_MODIFIED: string; BOT_WEBVIEW_DISABLED: string; BROADCAST_ID_INVALID: string; BROADCAST_PUBLIC_VOTERS_FORBIDDEN: string; BROADCAST_REQUIRED: string; BUSINESS_PEER_INVALID: string; BUSINESS_PEER_USAGE_MISSING: string; BUSINESS_RECIPIENTS_EMPTY: string; BUSINESS_WORK_HOURS_EMPTY: string; BUSINESS_WORK_HOURS_PERIOD_INVALID: string; BUTTON_COPY_TEXT_INVALID: string; BUTTON_DATA_INVALID: string; BUTTON_ID_INVALID: string; BUTTON_POS_INVALID: string; BUTTON_TEXT_INVALID: string; BUTTON_TYPE_INVALID: string; BUTTON_URL_INVALID: string; BUTTON_USER_INVALID: string; BUTTON_USER_PRIVACY_RESTRICTED: string; CALL_ALREADY_ACCEPTED: string; CALL_ALREADY_DECLINED: string; CALL_OCCUPY_FAILED: string; CALL_PEER_INVALID: string; CALL_PROTOCOL_FLAGS_INVALID: string; CDN_METHOD_INVALID: string; CHANNELS_ADMIN_LOCATED_TOO_MUCH: string; CHANNELS_ADMIN_PUBLIC_TOO_MUCH: string; CHANNELS_TOO_MUCH: string; CHANNEL_ADD_INVALID: string; CHANNEL_BANNED: string; CHANNEL_FORUM_MISSING: string; CHANNEL_ID_INVALID: string; CHANNEL_INVALID: string; CHANNEL_PARICIPANT_MISSING: string; CHANNEL_PRIVATE: string; CHANNEL_TOO_BIG: string; CHANNEL_TOO_LARGE: string; CHARGE_ALREADY_REFUNDED: string; CHATLINKS_TOO_MUCH: string; CHATLINK_SLUG_EMPTY: string; CHATLINK_SLUG_EXPIRED: string; CHATLISTS_TOO_MUCH: string; CHATLIST_EXCLUDE_INVALID: string; CHAT_ABOUT_NOT_MODIFIED: string; CHAT_ABOUT_TOO_LONG: string; CHAT_ADMIN_REQUIRED: string; CHAT_DISCUSSION_UNALLOWED: string; CHAT_FORWARDS_RESTRICTED: string; CHAT_ID_EMPTY: string; CHAT_ID_INVALID: string; CHAT_INVALID: string; CHAT_INVITE_PERMANENT: string; CHAT_LINK_EXISTS: string; CHAT_MEMBER_ADD_FAILED: string; CHAT_NOT_MODIFIED: string; CHAT_PUBLIC_REQUIRED: string; CHAT_RESTRICTED: string; CHAT_REVOKE_DATE_UNSUPPORTED: string; CHAT_SEND_INLINE_FORBIDDEN: string; CHAT_TITLE_EMPTY: string; CHAT_TOO_BIG: string; CODE_EMPTY: string; CODE_HASH_INVALID: string; CODE_INVALID: string; COLLECTIBLE_INVALID: string; COLLECTIBLE_NOT_FOUND: string; COLOR_INVALID: string; CONNECTION_API_ID_INVALID: string; CONNECTION_APP_VERSION_EMPTY: string; CONNECTION_DEVICE_MODEL_EMPTY: string; CONNECTION_ID_INVALID: string; CONNECTION_LANG_PACK_INVALID: string; CONNECTION_LAYER_INVALID: string; CONNECTION_NOT_INITED: string; CONNECTION_SYSTEM_EMPTY: string; CONNECTION_SYSTEM_LANG_CODE_EMPTY: string; CONTACT_ADD_MISSING: string; CONTACT_ID_INVALID: string; CONTACT_MISSING: string; CONTACT_NAME_EMPTY: string; CONTACT_REQ_MISSING: string; CREATE_CALL_FAILED: string; CURRENCY_TOTAL_AMOUNT_INVALID: string; CUSTOM_REACTIONS_TOO_MANY: string; DATA_INVALID: string; DATA_JSON_INVALID: string; DATA_TOO_LONG: string; DATE_EMPTY: string; DC_ID_INVALID: string; DH_G_A_INVALID: string; DOCUMENT_INVALID: string; EMAIL_HASH_EXPIRED: string; EMAIL_INVALID: string; EMAIL_NOT_ALLOWED: string; EMAIL_NOT_SETUP: string; EMAIL_UNCONFIRMED: string; EMAIL_UNCONFIRMED_X: string; EMAIL_VERIFY_EXPIRED: string; EMOJI_INVALID: string; EMOJI_MARKUP_INVALID: string; EMOJI_NOT_MODIFIED: string; EMOTICON_EMPTY: string; EMOTICON_INVALID: string; EMOTICON_STICKERPACK_MISSING: string; ENCRYPTED_MESSAGE_INVALID: string; ENCRYPTION_ALREADY_ACCEPTED: string; ENCRYPTION_ALREADY_DECLINED: string; ENCRYPTION_DECLINED: string; ENCRYPTION_ID_INVALID: string; ENTITIES_TOO_LONG: string; ENTITY_BOUNDS_INVALID: string; ENTITY_MENTION_USER_INVALID: string; ERROR_TEXT_EMPTY: string; EXPIRE_DATE_INVALID: string; EXPORT_CARD_INVALID: string; EXTENDED_MEDIA_AMOUNT_INVALID: string; EXTERNAL_URL_INVALID: string; FIELD_NAME_EMPTY: string; FIELD_NAME_INVALID: string; FILE_CONTENT_TYPE_INVALID: string; FILE_EMTPY: string; FILE_ID_INVALID: string; FILE_MIGRATE_X: string; FILE_PARTS_INVALID: string; FILE_PART_EMPTY: string; FILE_PART_INVALID: string; FILE_PART_LENGTH_INVALID: string; FILE_PART_SIZE_CHANGED: string; FILE_PART_SIZE_INVALID: string; FILE_PART_TOO_BIG: string; FILE_PART_TOO_SMALL: string; FILE_PART_X_MISSING: string; 'FILE_REFERENCE_*': string; FILE_REFERENCE_EMPTY: string; FILE_REFERENCE_EXPIRED: string; FILE_REFERENCE_INVALID: string; FILE_REFERENCE_X_EXPIRED: string; FILE_REFERENCE_X_INVALID: string; FILE_TITLE_EMPTY: string; FILE_TOKEN_INVALID: string; FILTER_ID_INVALID: string; FILTER_INCLUDE_EMPTY: string; FILTER_NOT_SUPPORTED: string; FILTER_TITLE_EMPTY: string; FIRSTNAME_INVALID: string; FOLDER_ID_EMPTY: string; FOLDER_ID_INVALID: string; FORM_EXPIRED: string; FORM_ID_EMPTY: string; FORM_UNSUPPORTED: string; FORUM_ENABLED: string; FRESH_CHANGE_ADMINS_FORBIDDEN: string; FROM_MESSAGE_BOT_DISABLED: string; FROM_PEER_INVALID: string; GAME_BOT_INVALID: string; GENERAL_MODIFY_ICON_FORBIDDEN: string; GEO_POINT_INVALID: string; GIFT_SLUG_EXPIRED: string; GIFT_SLUG_INVALID: string; GIF_CONTENT_TYPE_INVALID: string; GIF_ID_INVALID: string; GRAPH_EXPIRED_RELOAD: string; GRAPH_INVALID_RELOAD: string; GRAPH_OUTDATED_RELOAD: string; GROUPCALL_ALREADY_DISCARDED: string; GROUPCALL_FORBIDDEN: string; GROUPCALL_INVALID: string; GROUPCALL_JOIN_MISSING: string; GROUPCALL_NOT_MODIFIED: string; GROUPCALL_SSRC_DUPLICATE_MUCH: string; GROUPED_MEDIA_INVALID: string; GROUP_CALL_INVALID: string; HASHTAG_INVALID: string; HASH_INVALID: string; HIDE_REQUESTER_MISSING: string; ID_EXPIRED: string; ID_INVALID: string; IMAGE_PROCESS_FAILED: string; IMPORT_FILE_INVALID: string; IMPORT_FORMAT_DATE_INVALID: string; IMPORT_FORMAT_UNRECOGNIZED: string; IMPORT_HISTORY_LOG_EMPTY: string; IMPORT_ID_INVALID: string; IMPORT_TOKEN_INVALID: string; INLINE_RESULT_EXPIRED: string; INPUT_CHATLIST_INVALID: string; INPUT_CONSTRUCTOR_INVALID: string; INPUT_FETCH_ERROR: string; INPUT_FETCH_FAIL: string; INPUT_FILE_INVALID: string; INPUT_FILTER_INVALID: string; INPUT_LAYER_INVALID: string; INPUT_METHOD_INVALID: string; INPUT_PEERS_EMPTY: string; INPUT_REQUEST_TOO_LONG: string; INPUT_TEXT_EMPTY: string; INPUT_TEXT_TOO_LONG: string; INPUT_USER_DEACTIVATED: string; INVITES_TOO_MUCH: string; INVITE_FORBIDDEN_WITH_JOINAS: string; INVITE_HASH_EMPTY: string; INVITE_HASH_EXPIRED: string; INVITE_HASH_INVALID: string; INVITE_REQUEST_SENT: string; INVITE_REVOKED_MISSING: string; INVITE_SLUG_EMPTY: string; INVITE_SLUG_EXPIRED: string; INVITE_SLUG_INVALID: string; INVOICE_PAYLOAD_INVALID: string; JOIN_AS_PEER_INVALID: string; LANGUAGE_INVALID: string; LANG_CODE_INVALID: string; LANG_CODE_NOT_SUPPORTED: string; LANG_PACK_INVALID: string; LASTNAME_INVALID: string; LIMIT_INVALID: string; LINK_NOT_MODIFIED: string; LOCATION_INVALID: string; MAX_DATE_INVALID: string; MAX_ID_INVALID: string; MAX_QTS_INVALID: string; MD5_CHECKSUM_INVALID: string; MEDIA_CAPTION_TOO_LONG: string; MEDIA_EMPTY: string; MEDIA_FILE_INVALID: string; MEDIA_GROUPED_INVALID: string; MEDIA_INVALID: string; MEDIA_NEW_INVALID: string; MEDIA_PREV_INVALID: string; MEDIA_TTL_INVALID: string; MEDIA_TYPE_INVALID: string; MEDIA_VIDEO_STORY_MISSING: string; MEGAGROUP_GEO_REQUIRED: string; MEGAGROUP_ID_INVALID: string; MEGAGROUP_PREHISTORY_HIDDEN: string; MEGAGROUP_REQUIRED: string; MESSAGE_EDIT_TIME_EXPIRED: string; MESSAGE_EMPTY: string; MESSAGE_IDS_EMPTY: string; MESSAGE_ID_INVALID: string; MESSAGE_NOT_MODIFIED: string; MESSAGE_NOT_READ_YET: string; MESSAGE_POLL_CLOSED: string; MESSAGE_TOO_LONG: string; MESSAGE_TOO_OLD: string; METHOD_INVALID: string; MIN_DATE_INVALID: string; MSG_ID_INVALID: string; MSG_TOO_OLD: string; MSG_WAIT_FAILED: string; MULTI_MEDIA_TOO_LONG: string; NEW_SALT_INVALID: string; NEW_SETTINGS_EMPTY: string; NEW_SETTINGS_INVALID: string; NEXT_OFFSET_INVALID: string; NOT_ELIGIBLE: string; NOT_JOINED: string; OFFSET_INVALID: string; OFFSET_PEER_ID_INVALID: string; OPTIONS_TOO_MUCH: string; OPTION_INVALID: string; ORDER_INVALID: string; PACK_SHORT_NAME_INVALID: string; PACK_SHORT_NAME_OCCUPIED: string; PACK_TITLE_INVALID: string; PARTICIPANTS_TOO_FEW: string; PARTICIPANT_ID_INVALID: string; PARTICIPANT_JOIN_MISSING: string; PARTICIPANT_VERSION_OUTDATED: string; PASSWORD_EMPTY: string; PASSWORD_HASH_INVALID: string; PASSWORD_MISSING: string; PASSWORD_RECOVERY_EXPIRED: string; PASSWORD_RECOVERY_NA: string; PASSWORD_REQUIRED: string; PASSWORD_TOO_FRESH_X: string; PAYMENT_PROVIDER_INVALID: string; PEERS_LIST_EMPTY: string; PEER_FLOOD: string; PEER_HISTORY_EMPTY: string; PEER_ID_INVALID: string; PEER_ID_NOT_SUPPORTED: string; PEER_TYPES_INVALID: string; PERSISTENT_TIMESTAMP_EMPTY: string; PERSISTENT_TIMESTAMP_INVALID: string; PHONE_CODE_EMPTY: string; PHONE_CODE_EXPIRED: string; PHONE_CODE_HASH_EMPTY: string; PHONE_CODE_INVALID: string; PHONE_HASH_EXPIRED: string; PHONE_NOT_OCCUPIED: string; PHONE_NUMBER_APP_SIGNUP_FORBIDDEN: string; PHONE_NUMBER_BANNED: string; PHONE_NUMBER_FLOOD: string; PHONE_NUMBER_INVALID: string; PHONE_NUMBER_OCCUPIED: string; PHONE_NUMBER_UNOCCUPIED: string; PHONE_PASSWORD_PROTECTED: string; PHOTO_CONTENT_TYPE_INVALID: string; PHOTO_CONTENT_URL_EMPTY: string; PHOTO_CROP_FILE_MISSING: string; PHOTO_CROP_SIZE_SMALL: string; PHOTO_EXT_INVALID: string; PHOTO_FILE_MISSING: string; PHOTO_ID_INVALID: string; PHOTO_INVALID: string; PHOTO_INVALID_DIMENSIONS: string; PHOTO_SAVE_FILE_INVALID: string; PHOTO_THUMB_URL_EMPTY: string; PHOTO_THUMB_URL_INVALID: string; PINNED_DIALOGS_TOO_MUCH: string; PIN_RESTRICTED: string; POLL_ANSWERS_INVALID: string; POLL_ANSWER_INVALID: string; POLL_OPTION_DUPLICATE: string; POLL_OPTION_INVALID: string; POLL_QUESTION_INVALID: string; POLL_UNSUPPORTED: string; POLL_VOTE_REQUIRED: string; PREMIUM_ACCOUNT_REQUIRED: string; PRICING_CHAT_INVALID: string; PRIVACY_KEY_INVALID: string; PRIVACY_TOO_LONG: string; PRIVACY_VALUE_INVALID: string; PUBLIC_KEY_REQUIRED: string; QUERY_ID_EMPTY: string; QUERY_ID_INVALID: string; QUERY_TOO_SHORT: string; QUICK_REPLIES_TOO_MUCH: string; QUIZ_ANSWER_MISSING: string; QUIZ_CORRECT_ANSWERS_EMPTY: string; QUIZ_CORRECT_ANSWERS_TOO_MUCH: string; QUIZ_CORRECT_ANSWER_INVALID: string; QUIZ_MULTIPLE_INVALID: string; QUOTE_TEXT_INVALID: string; RAISE_HAND_FORBIDDEN: string; RANDOM_ID_EMPTY: string; RANDOM_ID_INVALID: string; RANDOM_LENGTH_INVALID: string; RANGES_INVALID: string; REACTIONS_TOO_MANY: string; REACTION_EMPTY: string; REACTION_INVALID: string; RECEIPT_EMPTY: string; REFLECTOR_NOT_AVAILABLE: string; REPLY_MARKUP_BUY_EMPTY: string; REPLY_MARKUP_GAME_EMPTY: string; REPLY_MARKUP_INVALID: string; REPLY_MARKUP_TOO_LONG: string; REPLY_MESSAGES_TOO_MUCH: string; REPLY_MESSAGE_ID_INVALID: string; REPLY_TO_INVALID: string; REPLY_TO_USER_INVALID: string; REQUEST_TOKEN_INVALID: string; RESET_REQUEST_MISSING: string; RESULTS_TOO_MUCH: string; RESULT_ID_DUPLICATE: string; RESULT_ID_EMPTY: string; RESULT_ID_INVALID: string; RESULT_TYPE_INVALID: string; REVOTE_NOT_ALLOWED: string; RIGHTS_NOT_MODIFIED: string; RINGTONE_INVALID: string; RINGTONE_MIME_INVALID: string; RSA_DECRYPT_FAILED: string; SCHEDULE_BOT_NOT_ALLOWED: string; SCHEDULE_DATE_INVALID: string; SCHEDULE_DATE_TOO_LATE: string; SCHEDULE_STATUS_PRIVATE: string; SCHEDULE_TOO_MUCH: string; SCORE_INVALID: string; SEARCH_QUERY_EMPTY: string; SEARCH_WITH_LINK_NOT_SUPPORTED: string; SECONDS_INVALID: string; SECURE_SECRET_REQUIRED: string; SEND_AS_PEER_INVALID: string; SEND_MESSAGE_MEDIA_INVALID: string; SEND_MESSAGE_TYPE_INVALID: string; SESSION_TOO_FRESH_X: string; SETTINGS_INVALID: string; SHA256_HASH_INVALID: string; SHORTCUT_INVALID: string; SHORTNAME_OCCUPY_FAILED: string; SHORT_NAME_INVALID: string; SHORT_NAME_OCCUPIED: string; SLOTS_EMPTY: string; SLOWMODE_MULTI_MSGS_DISABLED: string; SLUG_INVALID: string; SMSJOB_ID_INVALID: string; SMS_CODE_CREATE_FAILED: string; SRP_A_INVALID: string; SRP_ID_INVALID: string; SRP_PASSWORD_CHANGED: string; STARGIFT_INVALID: string; STARGIFT_USAGE_LIMITED: string; STARREF_AWAITING_END: string; STARREF_HASH_REVOKED: string; STARREF_PERMILLE_INVALID: string; STARREF_PERMILLE_TOO_LOW: string; STARS_INVOICE_INVALID: string; STARS_PAYMENT_REQUIRED: string; START_PARAM_EMPTY: string; START_PARAM_INVALID: string; START_PARAM_TOO_LONG: string; STICKERPACK_STICKERS_TOO_MUCH: string; STICKERSET_INVALID: string; STICKERSET_NOT_MODIFIED: string; STICKERS_EMPTY: string; STICKERS_TOO_MUCH: string; STICKER_DOCUMENT_INVALID: string; STICKER_EMOJI_INVALID: string; STICKER_FILE_INVALID: string; STICKER_GIF_DIMENSIONS: string; STICKER_ID_INVALID: string; STICKER_INVALID: string; STICKER_MIME_INVALID: string; STICKER_PNG_DIMENSIONS: string; STICKER_PNG_NOPNG: string; STICKER_TGS_NODOC: string; STICKER_TGS_NOTGS: string; STICKER_THUMB_PNG_NOPNG: string; STICKER_THUMB_TGS_NOTGS: string; STICKER_VIDEO_BIG: string; STICKER_VIDEO_NODOC: string; STICKER_VIDEO_NOWEBM: string; STORIES_NEVER_CREATED: string; STORIES_TOO_MUCH: string; STORY_ID_EMPTY: string; STORY_ID_INVALID: string; STORY_NOT_MODIFIED: string; STORY_PERIOD_INVALID: string; STORY_SEND_FLOOD_MONTHLY_X: string; STORY_SEND_FLOOD_WEEKLY_X: string; SUBSCRIPTION_EXPORT_MISSING: string; SUBSCRIPTION_PERIOD_INVALID: string; SWITCH_PM_TEXT_EMPTY: string; SWITCH_WEBVIEW_URL_INVALID: string; TAKEOUT_INVALID: string; TAKEOUT_REQUIRED: string; TASK_ALREADY_EXISTS: string; TEMP_AUTH_KEY_ALREADY_BOUND: string; TEMP_AUTH_KEY_EMPTY: string; TERMS_URL_INVALID: string; THEME_FILE_INVALID: string; THEME_FORMAT_INVALID: string; THEME_INVALID: string; THEME_MIME_INVALID: string; THEME_PARAMS_INVALID: string; THEME_TITLE_INVALID: string; TIMEZONE_INVALID: string; TITLE_INVALID: string; TMP_PASSWORD_DISABLED: string; TMP_PASSWORD_INVALID: string; TOKEN_EMPTY: string; TOKEN_INVALID: string; TOKEN_TYPE_INVALID: string; TOPICS_EMPTY: string; TOPIC_CLOSED: string; TOPIC_CLOSE_SEPARATELY: string; TOPIC_DELETED: string; TOPIC_HIDE_SEPARATELY: string; TOPIC_ID_INVALID: string; TOPIC_NOT_MODIFIED: string; TOPIC_TITLE_EMPTY: string; TO_LANG_INVALID: string; TRANSACTION_ID_INVALID: string; TRANSCRIPTION_FAILED: string; TRANSLATE_REQ_QUOTA_EXCEEDED: string; TTL_DAYS_INVALID: string; TTL_MEDIA_INVALID: string; TTL_PERIOD_INVALID: string; TYPES_EMPTY: string; TYPE_CONSTRUCTOR_INVALID: string; UNTIL_DATE_INVALID: string; URL_INVALID: string; USAGE_LIMIT_INVALID: string; USERNAMES_ACTIVE_TOO_MUCH: string; USERNAME_INVALID: string; USERNAME_NOT_MODIFIED: string; USERNAME_NOT_OCCUPIED: string; USERNAME_OCCUPIED: string; USERNAME_PURCHASE_AVAILABLE: string; USERPIC_UPLOAD_REQUIRED: string; USERS_TOO_FEW: string; USERS_TOO_MUCH: string; USER_ADMIN_INVALID: string; USER_ALREADY_INVITED: string; USER_ALREADY_PARTICIPANT: string; USER_BANNED_IN_CHANNEL: string; USER_BLOCKED: string; USER_BOT: string; USER_BOT_INVALID: string; USER_BOT_REQUIRED: string; USER_CHANNELS_TOO_MUCH: string; USER_CREATOR: string; USER_GIFT_UNAVAILABLE: string; USER_ID_INVALID: string; USER_INVALID: string; USER_IS_BLOCKED: string; USER_IS_BOT: string; USER_KICKED: string; USER_NOT_MUTUAL_CONTACT: string; USER_NOT_PARTICIPANT: string; USER_PUBLIC_MISSING: string; USER_VOLUME_INVALID: string; VENUE_ID_INVALID: string; VIDEO_CONTENT_TYPE_INVALID: string; VIDEO_FILE_INVALID: string; VIDEO_PAUSE_FORBIDDEN: string; VIDEO_STOP_FORBIDDEN: string; VIDEO_TITLE_EMPTY: string; VOICE_MESSAGES_FORBIDDEN: string; VOLUME_LOC_NOT_FOUND: string; WALLPAPER_FILE_INVALID: string; WALLPAPER_INVALID: string; WALLPAPER_MIME_INVALID: string; WALLPAPER_NOT_FOUND: string; WC_CONVERT_URL_INVALID: string; WEBDOCUMENT_INVALID: string; WEBDOCUMENT_MIME_INVALID: string; WEBDOCUMENT_SIZE_TOO_BIG: string; WEBDOCUMENT_URL_EMPTY: string; WEBDOCUMENT_URL_INVALID: string; WEBPAGE_CURL_FAILED: string; WEBPAGE_MEDIA_EMPTY: string; WEBPAGE_NOT_FOUND: string; WEBPAGE_URL_INVALID: string; WEBPUSH_AUTH_INVALID: string; WEBPUSH_KEY_INVALID: string; WEBPUSH_TOKEN_INVALID: string; YOU_BLOCKED_USER: string; }; 401: { _: string; ACTIVE_USER_REQUIRED: string; AUTH_KEY_INVALID: string; AUTH_KEY_PERM_EMPTY: string; AUTH_KEY_UNREGISTERED: string; SESSION_EXPIRED: string; SESSION_PASSWORD_NEEDED: string; SESSION_REVOKED: string; USER_DEACTIVATED: string; USER_DEACTIVATED_BAN: string; }; 403: { _: string; ANONYMOUS_REACTIONS_DISABLED: string; BROADCAST_FORBIDDEN: string; CHANNEL_PUBLIC_GROUP_NA: string; CHAT_ACTION_FORBIDDEN: string; CHAT_ADMIN_INVITE_REQUIRED: string; CHAT_ADMIN_REQUIRED: string; CHAT_FORBIDDEN: string; CHAT_GUEST_SEND_FORBIDDEN: string; CHAT_SEND_AUDIOS_FORBIDDEN: string; CHAT_SEND_DOCS_FORBIDDEN: string; CHAT_SEND_GAME_FORBIDDEN: string; CHAT_SEND_GIFS_FORBIDDEN: string; CHAT_SEND_INLINE_FORBIDDEN: string; CHAT_SEND_MEDIA_FORBIDDEN: string; CHAT_SEND_PHOTOS_FORBIDDEN: string; CHAT_SEND_PLAIN_FORBIDDEN: string; CHAT_SEND_POLL_FORBIDDEN: string; CHAT_SEND_ROUNDVIDEOS_FORBIDDEN: string; CHAT_SEND_STICKERS_FORBIDDEN: string; CHAT_SEND_VIDEOS_FORBIDDEN: string; CHAT_SEND_VOICES_FORBIDDEN: string; CHAT_TYPE_INVALID: string; CHAT_WRITE_FORBIDDEN: string; EDIT_BOT_INVITE_FORBIDDEN: string; GROUPCALL_ALREADY_STARTED: string; GROUPCALL_FORBIDDEN: string; INLINE_BOT_REQUIRED: string; MESSAGE_AUTHOR_REQUIRED: string; MESSAGE_DELETE_FORBIDDEN: string; NOT_ELIGIBLE: string; PARTICIPANT_JOIN_MISSING: string; PEER_ID_INVALID: string; POLL_VOTE_REQUIRED: string; PREMIUM_ACCOUNT_REQUIRED: string; PRIVACY_PREMIUM_REQUIRED: string; PUBLIC_CHANNEL_MISSING: string; RIGHT_FORBIDDEN: string; SENSITIVE_CHANGE_FORBIDDEN: string; TAKEOUT_REQUIRED: string; USER_BOT_INVALID: string; USER_CHANNELS_TOO_MUCH: string; USER_DELETED: string; USER_INVALID: string; USER_IS_BLOCKED: string; USER_NOT_MUTUAL_CONTACT: string; USER_NOT_PARTICIPANT: string; USER_PRIVACY_RESTRICTED: string; USER_RESTRICTED: string; VOICE_MESSAGES_FORBIDDEN: string; YOUR_PRIVACY_RESTRICTED: string; }; 404: { _: string; PEER_ID_INVALID: string; }; 406: { _: string; AUTH_KEY_DUPLICATED: string; BANNED_RIGHTS_INVALID: string; BUSINESS_ADDRESS_ACTIVE: string; CALL_PROTOCOL_COMPAT_LAYER_INVALID: string; CHANNEL_PRIVATE: string; CHANNEL_TOO_LARGE: string; CHAT_FORWARDS_RESTRICTED: string; FILEREF_UPGRADE_NEEDED: string; FRESH_CHANGE_ADMINS_FORBIDDEN: string; FRESH_CHANGE_PHONE_FORBIDDEN: string; FRESH_RESET_AUTHORISATION_FORBIDDEN: string; GIFTCODE_NOT_ALLOWED: string; INVITE_HASH_EXPIRED: string; PAYMENT_UNSUPPORTED: string; PHONE_NUMBER_INVALID: string; PHONE_PASSWORD_FLOOD: string; PREMIUM_CURRENTLY_UNAVAILABLE: string; PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_XMIN: string; PRIVACY_PREMIUM_REQUIRED: string; SEND_CODE_UNAVAILABLE: string; STICKERSET_INVALID: string; STICKERSET_OWNER_ANONYMOUS: string; TOPIC_CLOSED: string; TOPIC_DELETED: string; UPDATE_APP_TO_LOGIN: string; USERPIC_PRIVACY_REQUIRED: string; USERPIC_UPLOAD_REQUIRED: string; USER_RESTRICTED: string; }; 420: { _: string; '2FA_CONFIRM_WAIT_X': string; ADDRESS_INVALID: string; FLOOD_PREMIUM_WAIT_X: string; FLOOD_TEST_PHONE_WAIT_X: string; FLOOD_WAIT_X: string; PREMIUM_SUB_ACTIVE_UNTIL_X: string; SLOWMODE_WAIT_X: string; TAKEOUT_INIT_DELAY_X: string; }; 500: { _: string; API_CALL_ERROR: string; AUTH_KEY_UNSYNCHRONIZED: string; AUTH_RESTART: string; AUTH_RESTART_X: string; CALL_OCCUPY_FAILED: string; CDN_SALTS_EMPTY: string; CDN_UPLOAD_TIMEOUT: string; CHAT_ID_GENERATE_FAILED: string; CHAT_INVALID: string; CHAT_OCCUPY_LOC_FAILED: string; CHAT_OCCUPY_USERNAME_FAILED: string; CHP_CALL_FAIL: string; ENCRYPTION_OCCUPY_ADMIN_FAILED: string; ENCRYPTION_OCCUPY_FAILED: string; FOLDER_DEAC_AUTOFIX_ALL: string; GROUPCALL_ADD_PARTICIPANTS_FAILED: string; GROUPED_ID_OCCUPY_FAILED: string; HISTORY_GET_FAILED: string; IMAGE_ENGINE_DOWN: string; INTERDC_X_CALL_ERROR: string; INTERDC_X_CALL_RICH_ERROR: string; MEMBER_CHAT_ADD_FAILED: string; MEMBER_FETCH_FAILED: string; MEMBER_NOT_FOUND: string; MEMBER_NO_LOCATION: string; MEMBER_OCCUPY_PRIMARY_LOC_FAILED: string; MEMBER_OCCUPY_USERNAME_FAILED: string; MSGID_DECREASE_RETRY: string; MSG_RANGE_UNSYNC: string; MSG_WAIT_FAILED: string; MT_SEND_QUEUE_TOO_LONG: string; NEED_CHAT_INVALID: string; NEED_MEMBER_INVALID: string; No_workers_running: string; PARTICIPANT_CALL_FAILED: string; PERSISTENT_TIMESTAMP_OUTDATED: string; PHOTO_CREATE_FAILED: string; POSTPONED_TIMEOUT: string; PTS_CHANGE_EMPTY: string; RANDOM_ID_DUPLICATE: string; REG_ID_GENERATE_FAILED: string; RPC_CALL_FAIL: string; RPC_CONNECT_FAILED: string; RPC_MCGET_FAIL: string; SEND_MEDIA_INVALID: string; SIGN_IN_FAILED: string; STORAGE_CHECK_FAILED: string; STORE_INVALID_SCALAR_TYPE: string; TRANSLATE_REQ_FAILED: string; UNKNOWN_METHOD: string; UPLOAD_NO_VOLUME: string; VOLUME_LOC_NOT_FOUND: string; WORKER_BUSY_TOO_LONG_RETRY: string; WP_ID_GENERATE_FAILED: string; }; 503: { _: string; ApiCallError: string; MSG_WAIT_TIMEOUT: string; Timeout: string; }; }; export { Exceptions, count };