import { map } from "https://deno.land/x/mtkruto@0.1.141/3_errors.ts";
type
{ ABOUT_TOO_LONG; ACCESS_TOKEN_EXPIRED; ACCESS_TOKEN_INVALID; ACTIVE_USER_REQUIRED; ADMINS_TOO_MUCH; ADMIN_ID_INVALID; ADMIN_RANK_EMOJI_NOT_ALLOWED; ADMIN_RANK_INVALID; ALBUM_PHOTOS_TOO_MANY; API_ID_INVALID; API_ID_PUBLISHED_FLOOD; ARTICLE_TITLE_EMPTY; AUDIO_CONTENT_URL_EMPTY; AUDIO_TITLE_EMPTY; AUTH_BYTES_INVALID; AUTH_KEY_DUPLICATED; AUTH_KEY_INVALID; AUTH_KEY_PERM_EMPTY; AUTH_KEY_UNREGISTERED; AUTH_RESTART; AUTH_TOKEN_ALREADY_ACCEPTED; AUTH_TOKEN_EXCEPTION; AUTH_TOKEN_EXPIRED; AUTH_TOKEN_INVALID; AUTOARCHIVE_NOT_AVAILABLE; BANK_CARD_NUMBER_INVALID; BANNED_RIGHTS_INVALID; BASE_PORT_LOC_INVALID; BOTS_TOO_MUCH; BOT_CHANNELS_NA; BOT_COMMAND_DESCRIPTION_INVALID; BOT_COMMAND_INVALID; BOT_DOMAIN_INVALID; BOT_GAMES_DISABLED; BOT_GROUPS_BLOCKED; BOT_INLINE_DISABLED; BOT_INVALID; BOT_METHOD_INVALID; BOT_MISSING; BOT_ONESIDE_NOT_AVAIL; BOT_PAYMENTS_DISABLED; BOT_POLLS_DISABLED; BOT_RESPONSE_TIMEOUT; BOT_SCORE_NOT_MODIFIED; BROADCAST_CALLS_DISABLED; BROADCAST_FORBIDDEN; BROADCAST_ID_INVALID; BROADCAST_PUBLIC_VOTERS_FORBIDDEN; BROADCAST_REQUIRED; BUTTON_DATA_INVALID; BUTTON_TEXT_INVALID; BUTTON_TYPE_INVALID; BUTTON_URL_INVALID; BUTTON_USER_PRIVACY_RESTRICTED; CALL_ALREADY_ACCEPTED; CALL_ALREADY_DECLINED; CALL_OCCUPY_FAILED; CALL_PEER_INVALID; CALL_PROTOCOL_FLAGS_INVALID; CDN_METHOD_INVALID; CDN_UPLOAD_TIMEOUT; CHANNELS_ADMIN_LOCATED_TOO_MUCH; CHANNELS_ADMIN_PUBLIC_TOO_MUCH; CHANNELS_TOO_MUCH; CHANNEL_BANNED; CHANNEL_FORUM_MISSING; CHANNEL_ID_INVALID; CHANNEL_INVALID; CHANNEL_PARICIPANT_MISSING; CHANNEL_PRIVATE; CHANNEL_PUBLIC_GROUP_NA; CHANNEL_TOO_BIG; CHANNEL_TOO_LARGE; CHAT_ABOUT_NOT_MODIFIED; CHAT_ABOUT_TOO_LONG; CHAT_ADMIN_INVITE_REQUIRED; CHAT_ADMIN_REQUIRED; CHAT_DISCUSSION_UNALLOWED; CHAT_FORBIDDEN; CHAT_FORWARDS_RESTRICTED; CHAT_GET_FAILED; CHAT_GUEST_SEND_FORBIDDEN; CHAT_ID_EMPTY; CHAT_ID_GENERATE_FAILED; CHAT_ID_INVALID; CHAT_INVALID; CHAT_INVITE_PERMANENT; CHAT_LINK_EXISTS; CHAT_NOT_MODIFIED; CHAT_RESTRICTED; CHAT_REVOKE_DATE_UNSUPPORTED; CHAT_SEND_GAME_FORBIDDEN; CHAT_SEND_GIFS_FORBIDDEN; CHAT_SEND_INLINE_FORBIDDEN; CHAT_SEND_MEDIA_FORBIDDEN; CHAT_SEND_POLL_FORBIDDEN; CHAT_SEND_STICKERS_FORBIDDEN; CHAT_TITLE_EMPTY; CHAT_TOO_BIG; CHAT_WRITE_FORBIDDEN; CHP_CALL_FAIL; CODE_EMPTY; CODE_HASH_INVALID; CODE_INVALID; CONNECTION_API_ID_INVALID; CONNECTION_APP_VERSION_EMPTY; CONNECTION_DEVICE_MODEL_EMPTY; CONNECTION_LANG_PACK_INVALID; CONNECTION_LAYER_INVALID; CONNECTION_NOT_INITED; CONNECTION_SYSTEM_EMPTY; CONNECTION_SYSTEM_LANG_CODE_EMPTY; CONTACT_ADD_MISSING; CONTACT_ID_INVALID; CONTACT_NAME_EMPTY; CONTACT_REQ_MISSING; CREATE_CALL_FAILED; CURRENCY_TOTAL_AMOUNT_INVALID; DATA_INVALID; DATA_JSON_INVALID; DATA_TOO_LONG; DATE_EMPTY; DC_ID_INVALID; DH_G_A_INVALID; DOCUMENT_INVALID; EDIT_BOT_INVITE_FORBIDDEN; EMAIL_HASH_EXPIRED; EMAIL_INVALID; EMAIL_UNCONFIRMED; EMAIL_VERIFY_EXPIRED; EMOJI_INVALID; EMOJI_NOT_MODIFIED; EMOTICON_EMPTY; EMOTICON_INVALID; EMOTICON_STICKERPACK_MISSING; ENCRYPTED_MESSAGE_INVALID; ENCRYPTION_ALREADY_ACCEPTED; ENCRYPTION_ALREADY_DECLINED; ENCRYPTION_DECLINED; ENCRYPTION_ID_INVALID; ENCRYPTION_OCCUPY_FAILED; ENTITIES_TOO_LONG; ENTITY_BOUNDS_INVALID; ENTITY_MENTION_USER_INVALID; ERROR_TEXT_EMPTY; EXPIRE_DATE_INVALID; EXPIRE_FORBIDDEN; EXPORT_CARD_INVALID; EXTERNAL_URL_INVALID; FIELD_NAME_EMPTY; FIELD_NAME_INVALID; FILEREF_UPGRADE_NEEDED; FILE_CONTENT_TYPE_INVALID; FILE_EMTPY; FILE_ID_INVALID; FILE_PARTS_INVALID; FILE_PART_0_MISSING; FILE_PART_EMPTY; FILE_PART_INVALID; FILE_PART_LENGTH_INVALID; FILE_PART_SIZE_CHANGED; FILE_PART_SIZE_INVALID; FILE_PART_TOO_BIG; FILE_PART_X_MISSING; FILE_REFERENCE_EMPTY; FILE_REFERENCE_EXPIRED; FILE_REFERENCE_INVALID; FILE_TITLE_EMPTY; FILTER_ID_INVALID; FILTER_INCLUDE_EMPTY; FILTER_NOT_SUPPORTED; FILTER_TITLE_EMPTY; FIRSTNAME_INVALID; FOLDER_ID_EMPTY; FOLDER_ID_INVALID; FRESH_CHANGE_ADMINS_FORBIDDEN; FRESH_CHANGE_PHONE_FORBIDDEN; FRESH_RESET_AUTHORISATION_FORBIDDEN; FROM_MESSAGE_BOT_DISABLED; FROM_PEER_INVALID; GAME_BOT_INVALID; GEO_POINT_INVALID; GIF_CONTENT_TYPE_INVALID; GIF_ID_INVALID; GRAPH_EXPIRED_RELOAD; GRAPH_INVALID_RELOAD; GRAPH_OUTDATED_RELOAD; GROUPCALL_ADD_PARTICIPANTS_FAILED; GROUPCALL_ALREADY_DISCARDED; GROUPCALL_ALREADY_STARTED; GROUPCALL_FORBIDDEN; GROUPCALL_INVALID; GROUPCALL_JOIN_MISSING; GROUPCALL_NOT_MODIFIED; GROUPCALL_SSRC_DUPLICATE_MUCH; GROUPED_MEDIA_INVALID; GROUP_CALL_INVALID; HASH_INVALID; HIDE_REQUESTER_MISSING; HISTORY_GET_FAILED; IMAGE_PROCESS_FAILED; IMPORT_FILE_INVALID; IMPORT_FORMAT_UNRECOGNIZED; IMPORT_ID_INVALID; INLINE_BOT_REQUIRED; INLINE_RESULT_EXPIRED; INPUT_CONSTRUCTOR_INVALID; INPUT_FETCH_ERROR; INPUT_FETCH_FAIL; INPUT_FILTER_INVALID; INPUT_LAYER_INVALID; INPUT_METHOD_INVALID; INPUT_REQUEST_TOO_LONG; INPUT_TEXT_EMPTY; INPUT_USER_DEACTIVATED; INTERDC_X_CALL_ERROR; INTERDC_X_CALL_RICH_ERROR; INVITE_FORBIDDEN_WITH_JOINAS; INVITE_HASH_EMPTY; INVITE_HASH_EXPIRED; INVITE_HASH_INVALID; INVITE_REQUEST_SENT; INVITE_REVOKED_MISSING; INVOICE_PAYLOAD_INVALID; JOIN_AS_PEER_INVALID; LANG_CODE_INVALID; LANG_CODE_NOT_SUPPORTED; LANG_PACK_INVALID; LASTNAME_INVALID; LIMIT_INVALID; LINK_NOT_MODIFIED; LOCATION_INVALID; MAX_DATE_INVALID; MAX_ID_INVALID; MAX_QTS_INVALID; MD5_CHECKSUM_INVALID; MEDIA_CAPTION_TOO_LONG; MEDIA_EMPTY; MEDIA_GROUPED_INVALID; MEDIA_INVALID; MEDIA_NEW_INVALID; MEDIA_PREV_INVALID; MEDIA_TTL_INVALID; MEGAGROUP_ID_INVALID; MEGAGROUP_PREHISTORY_HIDDEN; MEGAGROUP_REQUIRED; MEMBER_NO_LOCATION; MEMBER_OCCUPY_PRIMARY_LOC_FAILED; MESSAGE_AUTHOR_REQUIRED; MESSAGE_DELETE_FORBIDDEN; MESSAGE_EDIT_TIME_EXPIRED; MESSAGE_EMPTY; MESSAGE_IDS_EMPTY; MESSAGE_ID_INVALID; MESSAGE_NOT_MODIFIED; MESSAGE_POLL_CLOSED; MESSAGE_TOO_LONG; METHOD_INVALID; MIN_DATE_INVALID; MSGID_DECREASE_RETRY; MSG_ID_INVALID; MSG_TOO_OLD; MSG_WAIT_FAILED; MT_SEND_QUEUE_TOO_LONG; MULTI_MEDIA_TOO_LONG; NEED_CHAT_INVALID; NEED_MEMBER_INVALID; NEW_SALT_INVALID; NEW_SETTINGS_EMPTY; NEW_SETTINGS_INVALID; NEXT_OFFSET_INVALID; NOT_ALLOWED; OFFSET_INVALID; OFFSET_PEER_ID_INVALID; OPTIONS_TOO_MUCH; OPTION_INVALID; PACK_SHORT_NAME_INVALID; PACK_SHORT_NAME_OCCUPIED; PACK_TITLE_INVALID; PARTICIPANTS_TOO_FEW; PARTICIPANT_CALL_FAILED; PARTICIPANT_ID_INVALID; PARTICIPANT_JOIN_MISSING; PARTICIPANT_VERSION_OUTDATED; PASSWORD_EMPTY; PASSWORD_HASH_INVALID; PASSWORD_MISSING; PASSWORD_RECOVERY_EXPIRED; PASSWORD_RECOVERY_NA; PASSWORD_REQUIRED; PAYMENT_PROVIDER_INVALID; PEER_FLOOD; PEER_HISTORY_EMPTY; PEER_ID_INVALID; PEER_ID_NOT_SUPPORTED; PERSISTENT_TIMESTAMP_EMPTY; PERSISTENT_TIMESTAMP_INVALID; PERSISTENT_TIMESTAMP_OUTDATED; PHONE_CODE_EMPTY; PHONE_CODE_EXPIRED; PHONE_CODE_HASH_EMPTY; PHONE_CODE_INVALID; PHONE_HASH_EXPIRED; PHONE_NOT_OCCUPIED; PHONE_NUMBER_APP_SIGNUP_FORBIDDEN; PHONE_NUMBER_BANNED; PHONE_NUMBER_FLOOD; PHONE_NUMBER_INVALID; PHONE_NUMBER_OCCUPIED; PHONE_NUMBER_UNOCCUPIED; PHONE_PASSWORD_FLOOD; PHONE_PASSWORD_PROTECTED; PHOTO_CONTENT_TYPE_INVALID; PHOTO_CONTENT_URL_EMPTY; PHOTO_CROP_FILE_MISSING; PHOTO_CROP_SIZE_SMALL; PHOTO_EXT_INVALID; PHOTO_FILE_MISSING; PHOTO_ID_INVALID; PHOTO_INVALID; PHOTO_INVALID_DIMENSIONS; PHOTO_SAVE_FILE_INVALID; PHOTO_THUMB_URL_EMPTY; PINNED_DIALOGS_TOO_MUCH; PIN_RESTRICTED; POLL_ANSWERS_INVALID; POLL_ANSWER_INVALID; POLL_OPTION_DUPLICATE; POLL_OPTION_INVALID; POLL_QUESTION_INVALID; POLL_UNSUPPORTED; POLL_VOTE_REQUIRED; POSTPONED_TIMEOUT; PREMIUM_ACCOUNT_REQUIRED; PREMIUM_CURRENTLY_UNAVAILABLE; PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_XMIN; PRIVACY_KEY_INVALID; PRIVACY_TOO_LONG; PRIVACY_VALUE_INVALID; PTS_CHANGE_EMPTY; PUBLIC_CHANNEL_MISSING; PUBLIC_KEY_REQUIRED; QUERY_ID_EMPTY; QUERY_ID_INVALID; QUERY_TOO_SHORT; QUIZ_ANSWER_MISSING; QUIZ_CORRECT_ANSWERS_EMPTY; QUIZ_CORRECT_ANSWERS_TOO_MUCH; QUIZ_CORRECT_ANSWER_INVALID; QUIZ_MULTIPLE_INVALID; RANDOM_ID_DUPLICATE; RANDOM_ID_EMPTY; RANDOM_ID_INVALID; RANDOM_LENGTH_INVALID; RANGES_INVALID; REACTIONS_TOO_MANY; REACTION_EMPTY; REACTION_INVALID; REFLECTOR_NOT_AVAILABLE; REG_ID_GENERATE_FAILED; REPLY_MARKUP_BUY_EMPTY; REPLY_MARKUP_GAME_EMPTY; REPLY_MARKUP_INVALID; REPLY_MARKUP_TOO_LONG; RESET_REQUEST_MISSING; RESULTS_TOO_MUCH; RESULT_ID_DUPLICATE; RESULT_ID_EMPTY; RESULT_ID_INVALID; RESULT_TYPE_INVALID; REVOTE_NOT_ALLOWED; RIGHTS_NOT_MODIFIED; RIGHT_FORBIDDEN; RPC_CALL_FAIL; RPC_MCGET_FAIL; RSA_DECRYPT_FAILED; SCHEDULE_BOT_NOT_ALLOWED; SCHEDULE_DATE_INVALID; SCHEDULE_DATE_TOO_LATE; SCHEDULE_STATUS_PRIVATE; SCHEDULE_TOO_MUCH; SCORE_INVALID; SEARCH_QUERY_EMPTY; SEARCH_WITH_LINK_NOT_SUPPORTED; SECONDS_INVALID; SEND_AS_PEER_INVALID; SEND_CODE_UNAVAILABLE; SEND_MESSAGE_MEDIA_INVALID; SEND_MESSAGE_TYPE_INVALID; SENSITIVE_CHANGE_FORBIDDEN; SESSION_EXPIRED; SESSION_PASSWORD_NEEDED; SESSION_REVOKED; SETTINGS_INVALID; SHA256_HASH_INVALID; SHORTNAME_OCCUPY_FAILED; SHORT_NAME_INVALID; SHORT_NAME_OCCUPIED; SIGN_IN_FAILED; SLOWMODE_MULTI_MSGS_DISABLED; SMS_CODE_CREATE_FAILED; SRP_ID_INVALID; SRP_PASSWORD_CHANGED; START_PARAM_EMPTY; START_PARAM_INVALID; START_PARAM_TOO_LONG; STICKERPACK_STICKERS_TOO_MUCH; STICKERSET_INVALID; STICKERSET_OWNER_ANONYMOUS; STICKERS_EMPTY; STICKERS_TOO_MUCH; STICKER_DOCUMENT_INVALID; STICKER_EMOJI_INVALID; STICKER_FILE_INVALID; STICKER_GIF_DIMENSIONS; STICKER_ID_INVALID; STICKER_INVALID; STICKER_MIME_INVALID; STICKER_PNG_DIMENSIONS; STICKER_PNG_NOPNG; STICKER_TGS_NODOC; STICKER_TGS_NOTGS; STICKER_THUMB_PNG_NOPNG; STICKER_THUMB_TGS_NOTGS; STICKER_VIDEO_BIG; STICKER_VIDEO_NODOC; STICKER_VIDEO_NOWEBM; STORAGE_CHECK_FAILED; STORE_INVALID_SCALAR_TYPE; SWITCH_PM_TEXT_EMPTY; TAKEOUT_INVALID; TAKEOUT_REQUIRED; TEMP_AUTH_KEY_ALREADY_BOUND; TEMP_AUTH_KEY_EMPTY; THEME_FILE_INVALID; THEME_FORMAT_INVALID; THEME_INVALID; THEME_MIME_INVALID; THEME_TITLE_INVALID; TIMEOUT; TITLE_INVALID; TMP_PASSWORD_DISABLED; TMP_PASSWORD_INVALID; TOKEN_INVALID; TOPIC_DELETED; TO_LANG_INVALID; TTL_DAYS_INVALID; TTL_MEDIA_INVALID; TTL_PERIOD_INVALID; TYPES_EMPTY; TYPE_CONSTRUCTOR_INVALID; Timedout; Timeout; UNKNOWN_ERROR; UNKNOWN_METHOD; UNTIL_DATE_INVALID; UPDATE_APP_TO_LOGIN; URL_INVALID; USAGE_LIMIT_INVALID; USERNAME_INVALID; USERNAME_NOT_MODIFIED; USERNAME_NOT_OCCUPIED; USERNAME_OCCUPIED; USERNAME_PURCHASE_AVAILABLE; USERPIC_PRIVACY_REQUIRED; USERPIC_UPLOAD_REQUIRED; USERS_TOO_FEW; USERS_TOO_MUCH; USER_ADMIN_INVALID; USER_ALREADY_INVITED; USER_ALREADY_PARTICIPANT; USER_BANNED_IN_CHANNEL; USER_BLOCKED; USER_BOT; USER_BOT_INVALID; USER_BOT_REQUIRED; USER_CHANNELS_TOO_MUCH; USER_CREATOR; USER_DEACTIVATED; USER_DEACTIVATED_BAN; USER_DELETED; USER_ID_INVALID; USER_INVALID; USER_IS_BLOCKED; USER_IS_BOT; USER_KICKED; USER_NOT_MUTUAL_CONTACT; USER_NOT_PARTICIPANT; USER_PRIVACY_RESTRICTED; USER_RESTRICTED; USER_VOLUME_INVALID; VIDEO_CONTENT_TYPE_INVALID; VIDEO_FILE_INVALID; VIDEO_TITLE_EMPTY; VOICE_MESSAGES_FORBIDDEN; WALLPAPER_FILE_INVALID; WALLPAPER_INVALID; WALLPAPER_MIME_INVALID; WC_CONVERT_URL_INVALID; WEBDOCUMENT_INVALID; WEBDOCUMENT_MIME_INVALID; WEBDOCUMENT_SIZE_TOO_BIG; WEBDOCUMENT_URL_INVALID; WEBPAGE_CURL_FAILED; WEBPAGE_MEDIA_EMPTY; WEBPUSH_AUTH_INVALID; WEBPUSH_KEY_INVALID; WEBPUSH_TOKEN_INVALID; WORKER_BUSY_TOO_LONG_RETRY; YOU_BLOCKED_USER; }