Sync list of known errors with Telegram's JSON

This commit is contained in:
Lonami Exo 2023-01-11 19:53:35 +01:00
parent 7a74dedc48
commit 94cc897019

View File

@ -5,13 +5,14 @@ ACCESS_TOKEN_EXPIRED,400,Bot token expired
ACCESS_TOKEN_INVALID,400,The provided token is not valid ACCESS_TOKEN_INVALID,400,The provided token is not valid
ACTIVE_USER_REQUIRED,401,The method is only available to already activated users ACTIVE_USER_REQUIRED,401,The method is only available to already activated users
ADMINS_TOO_MUCH,400,Too many admins ADMINS_TOO_MUCH,400,Too many admins
ADMIN_ID_INVALID,400,The specified admin ID is invalid
ADMIN_RANK_EMOJI_NOT_ALLOWED,400,Emoji are not allowed in admin titles or ranks ADMIN_RANK_EMOJI_NOT_ALLOWED,400,Emoji are not allowed in admin titles or ranks
ADMIN_RANK_INVALID,400,The given admin title or rank was invalid (possibly larger than 16 characters) ADMIN_RANK_INVALID,400,The given admin title or rank was invalid (possibly larger than 16 characters)
ALBUM_PHOTOS_TOO_MANY,400,Too many photos were included in the album ALBUM_PHOTOS_TOO_MANY,400,Too many photos were included in the album
API_ID_INVALID,400,The api_id/api_hash combination is invalid API_ID_INVALID,400,The api_id/api_hash combination is invalid
API_ID_PUBLISHED_FLOOD,400,"This API id was published somewhere, you can't use it now" API_ID_PUBLISHED_FLOOD,400,"This API id was published somewhere, you can't use it now"
ARTICLE_TITLE_EMPTY,400,The title of the article is empty ARTICLE_TITLE_EMPTY,400,The title of the article is empty
AUDIO_CONTENT_URL_EMPTY,400, AUDIO_CONTENT_URL_EMPTY,400,The remote URL specified in the content field is empty
AUDIO_TITLE_EMPTY,400,The title attribute of the audio must be non-empty AUDIO_TITLE_EMPTY,400,The title attribute of the audio must be non-empty
AUTH_BYTES_INVALID,400,The provided authorization is invalid AUTH_BYTES_INVALID,400,The provided authorization is invalid
AUTH_KEY_DUPLICATED,406,"The authorization key (session file) was used under two different IP addresses simultaneously, and can no longer be used. Use the same session exclusively, or use different sessions" AUTH_KEY_DUPLICATED,406,"The authorization key (session file) was used under two different IP addresses simultaneously, and can no longer be used. Use the same session exclusively, or use different sessions"
@ -20,9 +21,11 @@ AUTH_KEY_PERM_EMPTY,401,"The method is unavailable for temporary authorization k
AUTH_KEY_UNREGISTERED,401,The key is not registered in the system AUTH_KEY_UNREGISTERED,401,The key is not registered in the system
AUTH_RESTART,500,Restart the authorization process AUTH_RESTART,500,Restart the authorization process
AUTH_TOKEN_ALREADY_ACCEPTED,400,The authorization token was already used AUTH_TOKEN_ALREADY_ACCEPTED,400,The authorization token was already used
AUTH_TOKEN_EXCEPTION,400,An error occurred while importing the auth token
AUTH_TOKEN_EXPIRED,400,The provided authorization token has expired and the updated QR-code must be re-scanned AUTH_TOKEN_EXPIRED,400,The provided authorization token has expired and the updated QR-code must be re-scanned
AUTH_TOKEN_INVALID,400,An invalid authorization token was provided AUTH_TOKEN_INVALID,400,An invalid authorization token was provided
AUTH_TOKEN_INVALID2,400,An invalid authorization token was provided AUTH_TOKEN_INVALID2,400,An invalid authorization token was provided
AUTH_TOKEN_INVALIDX,400,The specified auth token is invalid
AUTOARCHIVE_NOT_AVAILABLE,400,You cannot use this feature yet AUTOARCHIVE_NOT_AVAILABLE,400,You cannot use this feature yet
BANK_CARD_NUMBER_INVALID,400,Incorrect credit card number BANK_CARD_NUMBER_INVALID,400,Incorrect credit card number
BANNED_RIGHTS_INVALID,400,"You cannot use that set of permissions in this request, i.e. restricting view_messages as a default" BANNED_RIGHTS_INVALID,400,"You cannot use that set of permissions in this request, i.e. restricting view_messages as a default"
@ -30,7 +33,7 @@ BASE_PORT_LOC_INVALID,400,Base port location invalid
BOTS_TOO_MUCH,400,There are too many bots in this chat/channel BOTS_TOO_MUCH,400,There are too many bots in this chat/channel
BOT_CHANNELS_NA,400,Bots can't edit admin privileges BOT_CHANNELS_NA,400,Bots can't edit admin privileges
BOT_COMMAND_DESCRIPTION_INVALID,400,"The command description was empty, too long or had invalid characters used" BOT_COMMAND_DESCRIPTION_INVALID,400,"The command description was empty, too long or had invalid characters used"
BOT_COMMAND_INVALID,400, BOT_COMMAND_INVALID,400,The specified command is invalid
BOT_DOMAIN_INVALID,400,The domain used for the auth button does not match the one configured in @BotFather BOT_DOMAIN_INVALID,400,The domain used for the auth button does not match the one configured in @BotFather
BOT_GAMES_DISABLED,400,Bot games cannot be used in this type of chat BOT_GAMES_DISABLED,400,Bot games cannot be used in this type of chat
BOT_GROUPS_BLOCKED,400,This bot can't be added to groups BOT_GROUPS_BLOCKED,400,This bot can't be added to groups
@ -38,77 +41,98 @@ BOT_INLINE_DISABLED,400,This bot can't be used in inline mode
BOT_INVALID,400,This is not a valid bot BOT_INVALID,400,This is not a valid bot
BOT_METHOD_INVALID,400,The API access for bot users is restricted. The method you tried to invoke cannot be executed as a bot BOT_METHOD_INVALID,400,The API access for bot users is restricted. The method you tried to invoke cannot be executed as a bot
BOT_MISSING,400,This method can only be run by a bot BOT_MISSING,400,This method can only be run by a bot
BOT_ONESIDE_NOT_AVAIL,400, BOT_ONESIDE_NOT_AVAIL,400,Bots can't pin messages in PM just for themselves
BOT_PAYMENTS_DISABLED,400,This method can only be run by a bot BOT_PAYMENTS_DISABLED,400,This method can only be run by a bot
BOT_POLLS_DISABLED,400,You cannot create polls under a bot account BOT_POLLS_DISABLED,400,You cannot create polls under a bot account
BOT_RESPONSE_TIMEOUT,400,The bot did not answer to the callback query in time BOT_RESPONSE_TIMEOUT,400,The bot did not answer to the callback query in time
BOT_SCORE_NOT_MODIFIED,400,The score wasn't modified
BROADCAST_CALLS_DISABLED,400, BROADCAST_CALLS_DISABLED,400,
BROADCAST_FORBIDDEN,403,The request cannot be used in broadcast channels BROADCAST_FORBIDDEN,403,The request cannot be used in broadcast channels
BROADCAST_ID_INVALID,400,The channel is invalid BROADCAST_ID_INVALID,400,The channel is invalid
BROADCAST_PUBLIC_VOTERS_FORBIDDEN,400,You cannot broadcast polls where the voters are public BROADCAST_PUBLIC_VOTERS_FORBIDDEN,400,You cannot broadcast polls where the voters are public
BROADCAST_REQUIRED,400,The request can only be used with a broadcast channel BROADCAST_REQUIRED,400,The request can only be used with a broadcast channel
BUTTON_DATA_INVALID,400,The provided button data is invalid BUTTON_DATA_INVALID,400,The provided button data is invalid
BUTTON_TEXT_INVALID,400,The specified button text is invalid
BUTTON_TYPE_INVALID,400,The type of one of the buttons you provided is invalid BUTTON_TYPE_INVALID,400,The type of one of the buttons you provided is invalid
BUTTON_URL_INVALID,400,Button URL invalid BUTTON_URL_INVALID,400,Button URL invalid
BUTTON_USER_PRIVACY_RESTRICTED,400,The privacy setting of the user specified in a [inputKeyboardButtonUserProfile](/constructor/inputKeyboardButtonUserProfile) button do not allow creating such a button
CALL_ALREADY_ACCEPTED,400,The call was already accepted CALL_ALREADY_ACCEPTED,400,The call was already accepted
CALL_ALREADY_DECLINED,400,The call was already declined CALL_ALREADY_DECLINED,400,The call was already declined
CALL_OCCUPY_FAILED,500,The call failed because the user is already making another call CALL_OCCUPY_FAILED,500,The call failed because the user is already making another call
CALL_PEER_INVALID,400,The provided call peer object is invalid CALL_PEER_INVALID,400,The provided call peer object is invalid
CALL_PROTOCOL_FLAGS_INVALID,400,Call protocol flags invalid CALL_PROTOCOL_FLAGS_INVALID,400,Call protocol flags invalid
CDN_METHOD_INVALID,400,This method cannot be invoked on a CDN server. Refer to https://core.telegram.org/cdn#schema for available methods CDN_METHOD_INVALID,400,This method cannot be invoked on a CDN server. Refer to https://core.telegram.org/cdn#schema for available methods
CDN_UPLOAD_TIMEOUT,500,A server-side timeout occurred while reuploading the file to the CDN DC
CHANNELS_ADMIN_LOCATED_TOO_MUCH,400,The user has reached the limit of public geogroups
CHANNELS_ADMIN_PUBLIC_TOO_MUCH,400,"You're admin of too many public channels, make some channels private to change the username of this channel" CHANNELS_ADMIN_PUBLIC_TOO_MUCH,400,"You're admin of too many public channels, make some channels private to change the username of this channel"
CHANNELS_TOO_MUCH,400,You have joined too many channels/supergroups CHANNELS_TOO_MUCH,400,You have joined too many channels/supergroups
CHANNEL_BANNED,400,The channel is banned CHANNEL_BANNED,400,The channel is banned
CHANNEL_ID_INVALID,400,The specified supergroup ID is invalid
CHANNEL_INVALID,400,"Invalid channel object. Make sure to pass the right types, for instance making sure that the request is designed for channels or otherwise look for a different one more suited" CHANNEL_INVALID,400,"Invalid channel object. Make sure to pass the right types, for instance making sure that the request is designed for channels or otherwise look for a different one more suited"
CHANNEL_PRIVATE,400,The channel specified is private and you lack permission to access it. Another reason may be that you were banned from it CHANNEL_PARICIPANT_MISSING,400,The current user is not in the channel
CHANNEL_PRIVATE,400 406,The channel specified is private and you lack permission to access it. Another reason may be that you were banned from it
CHANNEL_PUBLIC_GROUP_NA,403,channel/supergroup not available CHANNEL_PUBLIC_GROUP_NA,403,channel/supergroup not available
CHANNEL_TOO_BIG,400, CHANNEL_TOO_BIG,400,
CHANNEL_TOO_LARGE,406, CHANNEL_TOO_LARGE,400 406,Channel is too large to be deleted; this error is issued when trying to delete channels with more than 1000 members (subject to change)
CHAT_ABOUT_NOT_MODIFIED,400,About text has not changed CHAT_ABOUT_NOT_MODIFIED,400,About text has not changed
CHAT_ABOUT_TOO_LONG,400,Chat about too long CHAT_ABOUT_TOO_LONG,400,Chat about too long
CHAT_ADMIN_INVITE_REQUIRED,403,You do not have the rights to do this CHAT_ADMIN_INVITE_REQUIRED,403,You do not have the rights to do this
CHAT_ADMIN_REQUIRED,400,"Chat admin privileges are required to do that in the specified chat (for example, to send a message in a channel which is not yours), or invalid permissions used for the channel or group" CHAT_ADMIN_REQUIRED,400 403,"Chat admin privileges are required to do that in the specified chat (for example, to send a message in a channel which is not yours), or invalid permissions used for the channel or group"
CHAT_DISCUSSION_UNALLOWED,400, CHAT_DISCUSSION_UNALLOWED,400,
CHAT_FORBIDDEN,403,You cannot write in this chat CHAT_FORBIDDEN,403,You cannot write in this chat
CHAT_FORWARDS_RESTRICTED,400, CHAT_FORWARDS_RESTRICTED,400 406,You can't forward messages from a protected chat
CHAT_GUEST_SEND_FORBIDDEN,403,"You join the discussion group before commenting, see [here](/api/discussion#requiring-users-to-join-the-group) for more info"
CHAT_ID_EMPTY,400,The provided chat ID is empty CHAT_ID_EMPTY,400,The provided chat ID is empty
CHAT_ID_GENERATE_FAILED,500,Failure while generating the chat ID
CHAT_ID_INVALID,400,"Invalid object ID for a chat. Make sure to pass the right types, for instance making sure that the request is designed for chats (not channels/megagroups) or otherwise look for a different one more suited\nAn example working with a megagroup and AddChatUserRequest, it will fail because megagroups are channels. Use InviteToChannelRequest instead" CHAT_ID_INVALID,400,"Invalid object ID for a chat. Make sure to pass the right types, for instance making sure that the request is designed for chats (not channels/megagroups) or otherwise look for a different one more suited\nAn example working with a megagroup and AddChatUserRequest, it will fail because megagroups are channels. Use InviteToChannelRequest instead"
CHAT_INVALID,400,The chat is invalid for this request CHAT_INVALID,400,The chat is invalid for this request
CHAT_INVITE_PERMANENT,400,You can't set an expiration date on permanent invite links
CHAT_LINK_EXISTS,400,The chat is linked to a channel and cannot be used in that request CHAT_LINK_EXISTS,400,The chat is linked to a channel and cannot be used in that request
CHAT_NOT_MODIFIED,400,"The chat or channel wasn't modified (title, invites, username, admins, etc. are the same)" CHAT_NOT_MODIFIED,400,"The chat or channel wasn't modified (title, invites, username, admins, etc. are the same)"
CHAT_RESTRICTED,400,The chat is restricted and cannot be used in that request CHAT_RESTRICTED,400,The chat is restricted and cannot be used in that request
CHAT_REVOKE_DATE_UNSUPPORTED,400,`min_date` and `max_date` are not available for using with non-user peers
CHAT_SEND_GAME_FORBIDDEN,403,You can't send a game to this chat
CHAT_SEND_GIFS_FORBIDDEN,403,You can't send gifs in this chat CHAT_SEND_GIFS_FORBIDDEN,403,You can't send gifs in this chat
CHAT_SEND_INLINE_FORBIDDEN,400,You cannot send inline results in this chat CHAT_SEND_INLINE_FORBIDDEN,400 403,You cannot send inline results in this chat
CHAT_SEND_MEDIA_FORBIDDEN,403,You can't send media in this chat CHAT_SEND_MEDIA_FORBIDDEN,403,You can't send media in this chat
CHAT_SEND_POLL_FORBIDDEN,403,You can't send polls in this chat
CHAT_SEND_STICKERS_FORBIDDEN,403,You can't send stickers in this chat CHAT_SEND_STICKERS_FORBIDDEN,403,You can't send stickers in this chat
CHAT_TITLE_EMPTY,400,No chat title provided CHAT_TITLE_EMPTY,400,No chat title provided
CHAT_TOO_BIG,400, CHAT_TOO_BIG,400,"This method is not available for groups with more than `chat_read_mark_size_threshold` members, [see client configuration](https://core.telegram.org/api/config#client-configuration)"
CHAT_WRITE_FORBIDDEN,403,You can't write in this chat CHAT_WRITE_FORBIDDEN,403,You can't write in this chat
CHP_CALL_FAIL,500,The statistics cannot be retrieved at this time CHP_CALL_FAIL,500,The statistics cannot be retrieved at this time
CODE_EMPTY,400,The provided code is empty CODE_EMPTY,400,The provided code is empty
CODE_HASH_INVALID,400,Code hash invalid CODE_HASH_INVALID,400,Code hash invalid
CODE_INVALID,400,Code invalid (i.e. from email) CODE_INVALID,400,Code invalid (i.e. from email)
CONNECTION_API_ID_INVALID,400,The provided API id is invalid CONNECTION_API_ID_INVALID,400,The provided API id is invalid
CONNECTION_APP_VERSION_EMPTY,400,App version is empty
CONNECTION_DEVICE_MODEL_EMPTY,400,Device model empty CONNECTION_DEVICE_MODEL_EMPTY,400,Device model empty
CONNECTION_LANG_PACK_INVALID,400,"The specified language pack is not valid. This is meant to be used by official applications only so far, leave it empty" CONNECTION_LANG_PACK_INVALID,400,"The specified language pack is not valid. This is meant to be used by official applications only so far, leave it empty"
CONNECTION_LAYER_INVALID,400,The very first request must always be InvokeWithLayerRequest CONNECTION_LAYER_INVALID,400,The very first request must always be InvokeWithLayerRequest
CONNECTION_NOT_INITED,400,Connection not initialized CONNECTION_NOT_INITED,400,Connection not initialized
CONNECTION_SYSTEM_EMPTY,400,Connection system empty CONNECTION_SYSTEM_EMPTY,400,Connection system empty
CONNECTION_SYSTEM_LANG_CODE_EMPTY,400,The system language string was empty during connection CONNECTION_SYSTEM_LANG_CODE_EMPTY,400,The system language string was empty during connection
CONTACT_ADD_MISSING,400,Contact to add is missing
CONTACT_ID_INVALID,400,The provided contact ID is invalid CONTACT_ID_INVALID,400,The provided contact ID is invalid
CONTACT_NAME_EMPTY,400,The provided contact name cannot be empty CONTACT_NAME_EMPTY,400,The provided contact name cannot be empty
CURRENCY_TOTAL_AMOUNT_INVALID,400, CONTACT_REQ_MISSING,400,Missing contact request
CREATE_CALL_FAILED,400,An error occurred while creating the call
CURRENCY_TOTAL_AMOUNT_INVALID,400,The total amount of all prices is invalid
DATA_INVALID,400,Encrypted data invalid DATA_INVALID,400,Encrypted data invalid
DATA_JSON_INVALID,400,The provided JSON data is invalid DATA_JSON_INVALID,400,The provided JSON data is invalid
DATA_TOO_LONG,400,Data too long
DATE_EMPTY,400,Date empty DATE_EMPTY,400,Date empty
DC_ID_INVALID,400,This occurs when an authorization is tried to be exported for the same data center one is currently connected to DC_ID_INVALID,400,This occurs when an authorization is tried to be exported for the same data center one is currently connected to
DH_G_A_INVALID,400,g_a invalid DH_G_A_INVALID,400,g_a invalid
DOCUMENT_INVALID,400,The document file was invalid and can't be used in inline mode DOCUMENT_INVALID,400,The document file was invalid and can't be used in inline mode
EDIT_BOT_INVITE_FORBIDDEN,403,Normal users can't edit invites that were created by bots
EMAIL_HASH_EXPIRED,400,The email hash expired and cannot be used to verify it EMAIL_HASH_EXPIRED,400,The email hash expired and cannot be used to verify it
EMAIL_INVALID,400,The given email is invalid EMAIL_INVALID,400,The given email is invalid
EMAIL_UNCONFIRMED,400,Email unconfirmed
EMAIL_UNCONFIRMED_X,400,"Email unconfirmed, the length of the code must be {code_length}" EMAIL_UNCONFIRMED_X,400,"Email unconfirmed, the length of the code must be {code_length}"
EMOJI_INVALID,400, EMAIL_VERIFY_EXPIRED,400,The verification email has expired
EMOJI_NOT_MODIFIED,400, EMOJI_INVALID,400,The specified theme emoji is valid
EMOJI_NOT_MODIFIED,400,The theme wasn't changed
EMOTICON_EMPTY,400,The emoticon field cannot be empty EMOTICON_EMPTY,400,The emoticon field cannot be empty
EMOTICON_INVALID,400,The specified emoticon cannot be used or was not a emoticon EMOTICON_INVALID,400,The specified emoticon cannot be used or was not a emoticon
EMOTICON_STICKERPACK_MISSING,400,The emoticon sticker pack you are trying to get is missing EMOTICON_STICKERPACK_MISSING,400,The emoticon sticker pack you are trying to get is missing
@ -122,14 +146,15 @@ ENTITIES_TOO_LONG,400,It is no longer possible to send such long data inside ent
ENTITY_BOUNDS_INVALID,400,Some of provided entities have invalid bounds (length is zero or out of the boundaries of the string) ENTITY_BOUNDS_INVALID,400,Some of provided entities have invalid bounds (length is zero or out of the boundaries of the string)
ENTITY_MENTION_USER_INVALID,400,You can't use this entity ENTITY_MENTION_USER_INVALID,400,You can't use this entity
ERROR_TEXT_EMPTY,400,The provided error message is empty ERROR_TEXT_EMPTY,400,The provided error message is empty
EXPIRE_DATE_INVALID,400, EXPIRE_DATE_INVALID,400,The specified expiration date is invalid
EXPIRE_FORBIDDEN,400, EXPIRE_FORBIDDEN,400,
EXPORT_CARD_INVALID,400,Provided card is invalid EXPORT_CARD_INVALID,400,Provided card is invalid
EXTERNAL_URL_INVALID,400,External URL invalid EXTERNAL_URL_INVALID,400,External URL invalid
FIELD_NAME_EMPTY,400,The field with the name FIELD_NAME is missing FIELD_NAME_EMPTY,400,The field with the name FIELD_NAME is missing
FIELD_NAME_INVALID,400,The field with the name FIELD_NAME is invalid FIELD_NAME_INVALID,400,The field with the name FIELD_NAME is invalid
FILEREF_UPGRADE_NEEDED,406,The file reference needs to be refreshed before being used again FILEREF_UPGRADE_NEEDED,406,The file reference needs to be refreshed before being used again
FILE_CONTENT_TYPE_INVALID,400, FILE_CONTENT_TYPE_INVALID,400,File content-type is invalid
FILE_EMTPY,400,An empty file was provided
FILE_ID_INVALID,400,"The provided file id is invalid. Make sure all parameters are present, have the correct type and are not empty (ID, access hash, file reference, thumb size ...)" FILE_ID_INVALID,400,"The provided file id is invalid. Make sure all parameters are present, have the correct type and are not empty (ID, access hash, file reference, thumb size ...)"
FILE_MIGRATE_X,303,The file to be accessed is currently stored in DC {new_dc} FILE_MIGRATE_X,303,The file to be accessed is currently stored in DC {new_dc}
FILE_PARTS_INVALID,400,The number of file parts is invalid FILE_PARTS_INVALID,400,The number of file parts is invalid
@ -139,40 +164,51 @@ FILE_PART_INVALID,400,The file part number is invalid
FILE_PART_LENGTH_INVALID,400,The length of a file part is invalid FILE_PART_LENGTH_INVALID,400,The length of a file part is invalid
FILE_PART_SIZE_CHANGED,400,The file part size (chunk size) cannot change during upload FILE_PART_SIZE_CHANGED,400,The file part size (chunk size) cannot change during upload
FILE_PART_SIZE_INVALID,400,The provided file part size is invalid FILE_PART_SIZE_INVALID,400,The provided file part size is invalid
FILE_PART_TOO_BIG,400,The uploaded file part is too big
FILE_PART_X_MISSING,400,Part {which} of the file is missing from storage FILE_PART_X_MISSING,400,Part {which} of the file is missing from storage
FILE_REFERENCE_*,400,"The file reference expired, it [must be refreshed](https://core.telegram.org/api/file_reference)"
FILE_REFERENCE_EMPTY,400,The file reference must exist to access the media and it cannot be empty FILE_REFERENCE_EMPTY,400,The file reference must exist to access the media and it cannot be empty
FILE_REFERENCE_EXPIRED,400,The file reference has expired and is no longer valid or it belongs to self-destructing media and cannot be resent FILE_REFERENCE_EXPIRED,400,The file reference has expired and is no longer valid or it belongs to self-destructing media and cannot be resent
FILE_REFERENCE_INVALID,400,The file reference is invalid or you can't do that operation on such message FILE_REFERENCE_INVALID,400,The file reference is invalid or you can't do that operation on such message
FILE_TITLE_EMPTY,400, FILE_TITLE_EMPTY,400,An empty file title was specified
FILTER_ID_INVALID,400,The specified filter ID is invalid
FILTER_INCLUDE_EMPTY,400,The include_peers vector of the filter is empty
FILTER_NOT_SUPPORTED,400,The specified filter cannot be used in this context
FILTER_TITLE_EMPTY,400,The title field of the filter is empty
FIRSTNAME_INVALID,400,The first name is invalid FIRSTNAME_INVALID,400,The first name is invalid
FLOOD_TEST_PHONE_WAIT_X,420,A wait of {seconds} seconds is required in the test servers FLOOD_TEST_PHONE_WAIT_X,420,A wait of {seconds} seconds is required in the test servers
FLOOD_WAIT_X,420,A wait of {seconds} seconds is required FLOOD_WAIT_X,420,A wait of {seconds} seconds is required
FOLDER_ID_EMPTY,400,The folder you tried to delete was already empty FOLDER_ID_EMPTY,400,The folder you tried to delete was already empty
FOLDER_ID_INVALID,400,The folder you tried to use was not valid FOLDER_ID_INVALID,400,The folder you tried to use was not valid
FRESH_CHANGE_ADMINS_FORBIDDEN,400,Recently logged-in users cannot add or change admins FRESH_CHANGE_ADMINS_FORBIDDEN,400 406,Recently logged-in users cannot add or change admins
FRESH_CHANGE_PHONE_FORBIDDEN,406,Recently logged-in users cannot use this request FRESH_CHANGE_PHONE_FORBIDDEN,406,Recently logged-in users cannot use this request
FRESH_RESET_AUTHORISATION_FORBIDDEN,406,The current session is too new and cannot be used to reset other authorisations yet FRESH_RESET_AUTHORISATION_FORBIDDEN,406,The current session is too new and cannot be used to reset other authorisations yet
FROM_MESSAGE_BOT_DISABLED,400,Bots can't use fromMessage min constructors
FROM_PEER_INVALID,400,The given from_user peer cannot be used for the parameter FROM_PEER_INVALID,400,The given from_user peer cannot be used for the parameter
GAME_BOT_INVALID,400,You cannot send that game with the current bot GAME_BOT_INVALID,400,You cannot send that game with the current bot
GIF_CONTENT_TYPE_INVALID,400, GEO_POINT_INVALID,400,Invalid geoposition provided
GIF_CONTENT_TYPE_INVALID,400,GIF content-type invalid
GIF_ID_INVALID,400,The provided GIF ID is invalid GIF_ID_INVALID,400,The provided GIF ID is invalid
GRAPH_INVALID_RELOAD,400, GRAPH_EXPIRED_RELOAD,400,"This graph has expired, please obtain a new graph token"
GRAPH_INVALID_RELOAD,400,"Invalid graph token provided, please reload the stats and provide the updated token"
GRAPH_OUTDATED_RELOAD,400,"Data can't be used for the channel statistics, graphs outdated" GRAPH_OUTDATED_RELOAD,400,"Data can't be used for the channel statistics, graphs outdated"
GROUPCALL_ADD_PARTICIPANTS_FAILED,500, GROUPCALL_ADD_PARTICIPANTS_FAILED,500,
GROUPCALL_ALREADY_DISCARDED,400, GROUPCALL_ALREADY_DISCARDED,400,The group call was already discarded
GROUPCALL_FORBIDDEN,403, GROUPCALL_ALREADY_STARTED,403,"The groupcall has already started, you can join directly using [phone.joinGroupCall](https://core.telegram.org/method/phone.joinGroupCall)"
GROUPCALL_JOIN_MISSING,400, GROUPCALL_FORBIDDEN,403,The group call has already ended
GROUPCALL_NOT_MODIFIED,400, GROUPCALL_INVALID,400,The specified group call is invalid
GROUPCALL_SSRC_DUPLICATE_MUCH,400, GROUPCALL_JOIN_MISSING,400,You haven't joined this group call
GROUPCALL_NOT_MODIFIED,400,Group call settings weren't modified
GROUPCALL_SSRC_DUPLICATE_MUCH,400,The app needs to retry joining the group call with a new SSRC value
GROUPED_MEDIA_INVALID,400,Invalid grouped media GROUPED_MEDIA_INVALID,400,Invalid grouped media
GROUP_CALL_INVALID,400,Group call invalid GROUP_CALL_INVALID,400,Group call invalid
HASH_INVALID,400,The provided hash is invalid HASH_INVALID,400,The provided hash is invalid
HIDE_REQUESTER_MISSING,400, HIDE_REQUESTER_MISSING,400,The join request was missing or was already handled
HISTORY_GET_FAILED,500,Fetching of history failed HISTORY_GET_FAILED,500,Fetching of history failed
IMAGE_PROCESS_FAILED,400,Failure while processing image IMAGE_PROCESS_FAILED,400,Failure while processing image
IMPORT_FILE_INVALID,400,The file is too large to be imported IMPORT_FILE_INVALID,400,The file is too large to be imported
IMPORT_FORMAT_UNRECOGNIZED,400,Unknown import format IMPORT_FORMAT_UNRECOGNIZED,400,Unknown import format
IMPORT_ID_INVALID,400, IMPORT_ID_INVALID,400,The specified import ID is invalid
INLINE_BOT_REQUIRED,403,The action must be performed through an inline bot callback INLINE_BOT_REQUIRED,403,The action must be performed through an inline bot callback
INLINE_RESULT_EXPIRED,400,The inline query expired INLINE_RESULT_EXPIRED,400,The inline query expired
INPUT_CONSTRUCTOR_INVALID,400,The provided constructor is invalid INPUT_CONSTRUCTOR_INVALID,400,The provided constructor is invalid
@ -182,26 +218,35 @@ INPUT_FILTER_INVALID,400,The search query filter is invalid
INPUT_LAYER_INVALID,400,The provided layer is invalid INPUT_LAYER_INVALID,400,The provided layer is invalid
INPUT_METHOD_INVALID,400,The invoked method does not exist anymore or has never existed INPUT_METHOD_INVALID,400,The invoked method does not exist anymore or has never existed
INPUT_REQUEST_TOO_LONG,400,The input request was too long. This may be a bug in the library as it can occur when serializing more bytes than it should (like appending the vector constructor code at the end of a message) INPUT_REQUEST_TOO_LONG,400,The input request was too long. This may be a bug in the library as it can occur when serializing more bytes than it should (like appending the vector constructor code at the end of a message)
INPUT_TEXT_EMPTY,400,The specified text is empty
INPUT_USER_DEACTIVATED,400,The specified user was deleted INPUT_USER_DEACTIVATED,400,The specified user was deleted
INTERDC_X_CALL_ERROR,500,An error occurred while communicating with DC {dc} INTERDC_X_CALL_ERROR,500,An error occurred while communicating with DC {dc}
INTERDC_X_CALL_RICH_ERROR,500,A rich error occurred while communicating with DC {dc} INTERDC_X_CALL_RICH_ERROR,500,A rich error occurred while communicating with DC {dc}
INVITE_FORBIDDEN_WITH_JOINAS,400, INVITE_FORBIDDEN_WITH_JOINAS,400,"If the user has anonymously joined a group call as a channel, they can't invite other users to the group call because that would cause deanonymization, because the invite would be sent using the original user ID, not the anonymized channel ID"
INVITE_HASH_EMPTY,400,The invite hash is empty INVITE_HASH_EMPTY,400,The invite hash is empty
INVITE_HASH_EXPIRED,400,The chat the user tried to join has expired and is not valid anymore INVITE_HASH_EXPIRED,400 406,The chat the user tried to join has expired and is not valid anymore
INVITE_HASH_INVALID,400,The invite hash is invalid INVITE_HASH_INVALID,400,The invite hash is invalid
INVITE_REQUEST_SENT,400,You have successfully requested to join this chat or channel INVITE_REQUEST_SENT,400,You have successfully requested to join this chat or channel
LANG_CODE_INVALID,400, INVITE_REVOKED_MISSING,400,The specified invite link was already revoked or is invalid
INVOICE_PAYLOAD_INVALID,400,The specified invoice payload is invalid
Invalid msg_resend_req query,-500,Invalid msg_resend_req query
Invalid msgs_ack query,-500,Invalid msgs_ack query
Invalid msgs_state_req query,-500,Invalid msgs_state_req query
JOIN_AS_PEER_INVALID,400,The specified peer cannot be used to join a group call
LANG_CODE_INVALID,400,The specified language code is invalid
LANG_CODE_NOT_SUPPORTED,400,The specified language code is not supported
LANG_PACK_INVALID,400,The provided language pack is invalid LANG_PACK_INVALID,400,The provided language pack is invalid
LASTNAME_INVALID,400,The last name is invalid LASTNAME_INVALID,400,The last name is invalid
LIMIT_INVALID,400,An invalid limit was provided. See https://core.telegram.org/api/files#downloading-files LIMIT_INVALID,400,An invalid limit was provided. See https://core.telegram.org/api/files#downloading-files
LINK_NOT_MODIFIED,400,The channel is already linked to this group LINK_NOT_MODIFIED,400,The channel is already linked to this group
LOCATION_INVALID,400,The location given for a file was invalid. See https://core.telegram.org/api/files#downloading-files LOCATION_INVALID,400,The location given for a file was invalid. See https://core.telegram.org/api/files#downloading-files
MAX_DATE_INVALID,400,The specified maximum date is invalid
MAX_ID_INVALID,400,The provided max ID is invalid MAX_ID_INVALID,400,The provided max ID is invalid
MAX_QTS_INVALID,400,The provided QTS were invalid MAX_QTS_INVALID,400,The provided QTS were invalid
MD5_CHECKSUM_INVALID,400,The MD5 check-sums do not match MD5_CHECKSUM_INVALID,400,The MD5 check-sums do not match
MEDIA_CAPTION_TOO_LONG,400,The caption is too long MEDIA_CAPTION_TOO_LONG,400,The caption is too long
MEDIA_EMPTY,400,The provided media object is invalid or the current account may not be able to send it (such as games as users) MEDIA_EMPTY,400,The provided media object is invalid or the current account may not be able to send it (such as games as users)
MEDIA_GROUPED_INVALID,400, MEDIA_GROUPED_INVALID,400,You tried to send media of different types in an album
MEDIA_INVALID,400,Media invalid MEDIA_INVALID,400,Media invalid
MEDIA_NEW_INVALID,400,The new media to edit the message with is invalid (such as stickers or voice notes) MEDIA_NEW_INVALID,400,The new media to edit the message with is invalid (such as stickers or voice notes)
MEDIA_PREV_INVALID,400,The old media cannot be edited with anything else (such as stickers or voice notes) MEDIA_PREV_INVALID,400,The old media cannot be edited with anything else (such as stickers or voice notes)
@ -221,8 +266,10 @@ MESSAGE_NOT_MODIFIED,400,Content of the message was not modified
MESSAGE_POLL_CLOSED,400,The poll was closed and can no longer be voted on MESSAGE_POLL_CLOSED,400,The poll was closed and can no longer be voted on
MESSAGE_TOO_LONG,400,Message was too long MESSAGE_TOO_LONG,400,Message was too long
METHOD_INVALID,400,The API method is invalid and cannot be used METHOD_INVALID,400,The API method is invalid and cannot be used
MIN_DATE_INVALID,400,The specified minimum date is invalid
MSGID_DECREASE_RETRY,500,The request should be retried with a lower message ID MSGID_DECREASE_RETRY,500,The request should be retried with a lower message ID
MSG_ID_INVALID,400,The message ID used in the peer was invalid MSG_ID_INVALID,400,The message ID used in the peer was invalid
MSG_TOO_OLD,400,"[`chat_read_mark_expire_period` seconds](https://core.telegram.org/api/config#chat-read-mark-expire-period) have passed since the message was sent, read receipts were deleted"
MSG_WAIT_FAILED,400,A waiting call returned an error MSG_WAIT_FAILED,400,A waiting call returned an error
MT_SEND_QUEUE_TOO_LONG,500, MT_SEND_QUEUE_TOO_LONG,500,
MULTI_MEDIA_TOO_LONG,400,Too many media files were included in the same album MULTI_MEDIA_TOO_LONG,400,Too many media files were included in the same album
@ -230,6 +277,7 @@ NEED_CHAT_INVALID,500,The provided chat is invalid
NEED_MEMBER_INVALID,500,The provided member is invalid or does not exist (for example a thumb size) NEED_MEMBER_INVALID,500,The provided member is invalid or does not exist (for example a thumb size)
NETWORK_MIGRATE_X,303,The source IP address is associated with DC {new_dc} NETWORK_MIGRATE_X,303,The source IP address is associated with DC {new_dc}
NEW_SALT_INVALID,400,The new salt is invalid NEW_SALT_INVALID,400,The new salt is invalid
NEW_SETTINGS_EMPTY,400,"No password is set on the current account, and no new password was specified in `new_settings`"
NEW_SETTINGS_INVALID,400,The new settings are invalid NEW_SETTINGS_INVALID,400,The new settings are invalid
NEXT_OFFSET_INVALID,400,The value for next_offset is invalid. Check that it has normal characters and is not too long NEXT_OFFSET_INVALID,400,The value for next_offset is invalid. Check that it has normal characters and is not too long
NOT_ALLOWED,403, NOT_ALLOWED,403,
@ -239,16 +287,17 @@ OPTIONS_TOO_MUCH,400,You defined too many options for the poll
OPTION_INVALID,400,The option specified is invalid and does not exist in the target poll OPTION_INVALID,400,The option specified is invalid and does not exist in the target poll
PACK_SHORT_NAME_INVALID,400,"Invalid sticker pack name. It must begin with a letter, can't contain consecutive underscores and must end in ""_by_<bot username>""." PACK_SHORT_NAME_INVALID,400,"Invalid sticker pack name. It must begin with a letter, can't contain consecutive underscores and must end in ""_by_<bot username>""."
PACK_SHORT_NAME_OCCUPIED,400,A stickerpack with this name already exists PACK_SHORT_NAME_OCCUPIED,400,A stickerpack with this name already exists
PACK_TITLE_INVALID,400,The stickerpack title is invalid
PARTICIPANTS_TOO_FEW,400,Not enough participants PARTICIPANTS_TOO_FEW,400,Not enough participants
PARTICIPANT_CALL_FAILED,500,Failure while making call PARTICIPANT_CALL_FAILED,500,Failure while making call
PARTICIPANT_ID_INVALID,400, PARTICIPANT_ID_INVALID,400,The specified participant ID is invalid
PARTICIPANT_JOIN_MISSING,403, PARTICIPANT_JOIN_MISSING,400 403,"Trying to enable a presentation, when the user hasn't joined the Video Chat with [phone.joinGroupCall](https://core.telegram.org/method/phone.joinGroupCall)"
PARTICIPANT_VERSION_OUTDATED,400,The other participant does not use an up to date telegram client with support for calls PARTICIPANT_VERSION_OUTDATED,400,The other participant does not use an up to date telegram client with support for calls
PASSWORD_EMPTY,400,The provided password is empty PASSWORD_EMPTY,400,The provided password is empty
PASSWORD_HASH_INVALID,400,The password (and thus its hash value) you entered is invalid PASSWORD_HASH_INVALID,400,The password (and thus its hash value) you entered is invalid
PASSWORD_MISSING,400,The account must have 2-factor authentication enabled (a password) before this method can be used PASSWORD_MISSING,400,The account must have 2-factor authentication enabled (a password) before this method can be used
PASSWORD_RECOVERY_EXPIRED,400, PASSWORD_RECOVERY_EXPIRED,400,The recovery code has expired
PASSWORD_RECOVERY_NA,400, PASSWORD_RECOVERY_NA,400,"No email was set, can't recover password via email"
PASSWORD_REQUIRED,400,The account must have 2-factor authentication enabled (a password) before this method can be used PASSWORD_REQUIRED,400,The account must have 2-factor authentication enabled (a password) before this method can be used
PASSWORD_TOO_FRESH_X,400,The password was added too recently and {seconds} seconds must pass before using the method PASSWORD_TOO_FRESH_X,400,The password was added too recently and {seconds} seconds must pass before using the method
PAYMENT_PROVIDER_INVALID,400,The payment provider was not recognised or its token was invalid PAYMENT_PROVIDER_INVALID,400,The payment provider was not recognised or its token was invalid
@ -263,7 +312,9 @@ PHONE_CODE_EMPTY,400,The phone code is missing
PHONE_CODE_EXPIRED,400,The confirmation code has expired PHONE_CODE_EXPIRED,400,The confirmation code has expired
PHONE_CODE_HASH_EMPTY,400,The phone code hash is missing PHONE_CODE_HASH_EMPTY,400,The phone code hash is missing
PHONE_CODE_INVALID,400,The phone code entered was invalid PHONE_CODE_INVALID,400,The phone code entered was invalid
PHONE_HASH_EXPIRED,400,An invalid or expired `phone_code_hash` was provided
PHONE_MIGRATE_X,303,The phone number a user is trying to use for authorization is associated with DC {new_dc} PHONE_MIGRATE_X,303,The phone number a user is trying to use for authorization is associated with DC {new_dc}
PHONE_NOT_OCCUPIED,400,No user is associated to the specified phone number
PHONE_NUMBER_APP_SIGNUP_FORBIDDEN,400,You can't sign up using this app PHONE_NUMBER_APP_SIGNUP_FORBIDDEN,400,You can't sign up using this app
PHONE_NUMBER_BANNED,400,The used phone number has been banned from Telegram and cannot be used anymore. Maybe check https://www.telegram.org/faq_spam PHONE_NUMBER_BANNED,400,The used phone number has been banned from Telegram and cannot be used anymore. Maybe check https://www.telegram.org/faq_spam
PHONE_NUMBER_FLOOD,400,You asked for the code too many times. PHONE_NUMBER_FLOOD,400,You asked for the code too many times.
@ -272,69 +323,81 @@ PHONE_NUMBER_OCCUPIED,400,The phone number is already in use
PHONE_NUMBER_UNOCCUPIED,400,The phone number is not yet being used PHONE_NUMBER_UNOCCUPIED,400,The phone number is not yet being used
PHONE_PASSWORD_FLOOD,406,You have tried logging in too many times PHONE_PASSWORD_FLOOD,406,You have tried logging in too many times
PHONE_PASSWORD_PROTECTED,400,This phone is password protected PHONE_PASSWORD_PROTECTED,400,This phone is password protected
PHOTO_CONTENT_TYPE_INVALID,400, PHOTO_CONTENT_TYPE_INVALID,400,Photo mime-type invalid
PHOTO_CONTENT_URL_EMPTY,400,The content from the URL used as a photo appears to be empty or has caused another HTTP error PHOTO_CONTENT_URL_EMPTY,400,The content from the URL used as a photo appears to be empty or has caused another HTTP error
PHOTO_CROP_FILE_MISSING,400,Photo crop file missing
PHOTO_CROP_SIZE_SMALL,400,Photo is too small PHOTO_CROP_SIZE_SMALL,400,Photo is too small
PHOTO_EXT_INVALID,400,The extension of the photo is invalid PHOTO_EXT_INVALID,400,The extension of the photo is invalid
PHOTO_FILE_MISSING,400,Profile photo file missing
PHOTO_ID_INVALID,400,Photo id is invalid PHOTO_ID_INVALID,400,Photo id is invalid
PHOTO_INVALID,400,Photo invalid PHOTO_INVALID,400,Photo invalid
PHOTO_INVALID_DIMENSIONS,400,The photo dimensions are invalid (hint: `pip install pillow` for `send_file` to resize images) PHOTO_INVALID_DIMENSIONS,400,The photo dimensions are invalid (hint: `pip install pillow` for `send_file` to resize images)
PHOTO_SAVE_FILE_INVALID,400,The photo you tried to send cannot be saved by Telegram. A reason may be that it exceeds 10MB. Try resizing it locally PHOTO_SAVE_FILE_INVALID,400,The photo you tried to send cannot be saved by Telegram. A reason may be that it exceeds 10MB. Try resizing it locally
PHOTO_THUMB_URL_EMPTY,400,The URL used as a thumbnail appears to be empty or has caused another HTTP error PHOTO_THUMB_URL_EMPTY,400,The URL used as a thumbnail appears to be empty or has caused another HTTP error
PINNED_DIALOGS_TOO_MUCH,400, PINNED_DIALOGS_TOO_MUCH,400,Too many pinned dialogs
PIN_RESTRICTED,400,You can't pin messages in private chats with other people PIN_RESTRICTED,400,You can't pin messages in private chats with other people
POLL_ANSWERS_INVALID,400,The poll did not have enough answers or had too many POLL_ANSWERS_INVALID,400,The poll did not have enough answers or had too many
POLL_ANSWER_INVALID,400,One of the poll answers is not acceptable
POLL_OPTION_DUPLICATE,400,A duplicate option was sent in the same poll POLL_OPTION_DUPLICATE,400,A duplicate option was sent in the same poll
POLL_OPTION_INVALID,400,A poll option used invalid data (the data may be too long) POLL_OPTION_INVALID,400,A poll option used invalid data (the data may be too long)
POLL_QUESTION_INVALID,400,The poll question was either empty or too long POLL_QUESTION_INVALID,400,The poll question was either empty or too long
POLL_UNSUPPORTED,400,This layer does not support polls in the issued method POLL_UNSUPPORTED,400,This layer does not support polls in the issued method
POLL_VOTE_REQUIRED,403, POLL_VOTE_REQUIRED,403,Cast a vote in the poll before calling this method
POSTPONED_TIMEOUT,500,The postponed call has timed out POSTPONED_TIMEOUT,500,The postponed call has timed out
PREMIUM_ACCOUNT_REQUIRED,403, PREMIUM_ACCOUNT_REQUIRED,403,A premium account is required to execute this action
PREMIUM_CURRENTLY_UNAVAILABLE,406, PREMIUM_CURRENTLY_UNAVAILABLE,406,
PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_XMIN,406,"Similar to a flood wait, must wait {minutes} minutes" PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_XMIN,406,"Similar to a flood wait, must wait {minutes} minutes"
PRIVACY_KEY_INVALID,400,The privacy key is invalid PRIVACY_KEY_INVALID,400,The privacy key is invalid
PRIVACY_TOO_LONG,400,Cannot add that many entities in a single request PRIVACY_TOO_LONG,400,Cannot add that many entities in a single request
PRIVACY_VALUE_INVALID,400,The privacy value is invalid PRIVACY_VALUE_INVALID,400,The privacy value is invalid
PTS_CHANGE_EMPTY,500,No PTS change PTS_CHANGE_EMPTY,500,No PTS change
PUBLIC_KEY_REQUIRED,400, PUBLIC_CHANNEL_MISSING,403,You can only export group call invite links for public chats or channels
PUBLIC_KEY_REQUIRED,400,A public key is required
QUERY_ID_EMPTY,400,The query ID is empty QUERY_ID_EMPTY,400,The query ID is empty
QUERY_ID_INVALID,400,The query ID is invalid QUERY_ID_INVALID,400,The query ID is invalid
QUERY_TOO_SHORT,400,The query string is too short QUERY_TOO_SHORT,400,The query string is too short
QUIZ_ANSWER_MISSING,400, QUIZ_ANSWER_MISSING,400,You can forward a quiz while hiding the original author only after choosing an option in the quiz
QUIZ_CORRECT_ANSWERS_EMPTY,400,A quiz must specify one correct answer QUIZ_CORRECT_ANSWERS_EMPTY,400,A quiz must specify one correct answer
QUIZ_CORRECT_ANSWERS_TOO_MUCH,400,There can only be one correct answer QUIZ_CORRECT_ANSWERS_TOO_MUCH,400,There can only be one correct answer
QUIZ_CORRECT_ANSWER_INVALID,400,The correct answer is not an existing answer QUIZ_CORRECT_ANSWER_INVALID,400,The correct answer is not an existing answer
QUIZ_MULTIPLE_INVALID,400,A poll cannot be both multiple choice and quiz QUIZ_MULTIPLE_INVALID,400,A poll cannot be both multiple choice and quiz
RANDOM_ID_DUPLICATE,500,You provided a random ID that was already used RANDOM_ID_DUPLICATE,500,You provided a random ID that was already used
RANDOM_ID_EMPTY,400,Random ID empty
RANDOM_ID_INVALID,400,A provided random ID is invalid RANDOM_ID_INVALID,400,A provided random ID is invalid
RANDOM_LENGTH_INVALID,400,Random length invalid RANDOM_LENGTH_INVALID,400,Random length invalid
RANGES_INVALID,400,Invalid range provided RANGES_INVALID,400,Invalid range provided
REACTIONS_TOO_MANY,400,"The message already has exactly `reactions_uniq_max` reaction emojis, you can't react with a new emoji, see [the docs for more info](/api/config#client-configuration)"
REACTION_EMPTY,400,No reaction provided REACTION_EMPTY,400,No reaction provided
REACTION_INVALID,400,Invalid reaction provided (only emoji are allowed) REACTION_INVALID,400,Invalid reaction provided (only emoji are allowed)
REFLECTOR_NOT_AVAILABLE,400,Invalid call reflector server REFLECTOR_NOT_AVAILABLE,400,Invalid call reflector server
REG_ID_GENERATE_FAILED,500,Failure while generating registration ID REG_ID_GENERATE_FAILED,500,Failure while generating registration ID
REPLY_MARKUP_BUY_EMPTY,400,Reply markup for buy button empty
REPLY_MARKUP_GAME_EMPTY,400,The provided reply markup for the game is empty REPLY_MARKUP_GAME_EMPTY,400,The provided reply markup for the game is empty
REPLY_MARKUP_INVALID,400,The provided reply markup is invalid REPLY_MARKUP_INVALID,400,The provided reply markup is invalid
REPLY_MARKUP_TOO_LONG,400,The data embedded in the reply markup buttons was too much REPLY_MARKUP_TOO_LONG,400,The data embedded in the reply markup buttons was too much
RESET_REQUEST_MISSING,400, RESET_REQUEST_MISSING,400,No password reset is in progress
RESULTS_TOO_MUCH,400,"You sent too many results, see https://core.telegram.org/bots/api#answerinlinequery for the current limit" RESULTS_TOO_MUCH,400,"You sent too many results, see https://core.telegram.org/bots/api#answerinlinequery for the current limit"
RESULT_ID_DUPLICATE,400,Duplicated IDs on the sent results. Make sure to use unique IDs RESULT_ID_DUPLICATE,400,Duplicated IDs on the sent results. Make sure to use unique IDs
RESULT_ID_EMPTY,400,Result ID empty
RESULT_ID_INVALID,400,The given result cannot be used to send the selection to the bot RESULT_ID_INVALID,400,The given result cannot be used to send the selection to the bot
RESULT_TYPE_INVALID,400,Result type invalid RESULT_TYPE_INVALID,400,Result type invalid
REVOTE_NOT_ALLOWED,400,You cannot change your vote
RIGHTS_NOT_MODIFIED,400,"The new admin rights are equal to the old rights, no change was made"
RIGHT_FORBIDDEN,403,Either your admin rights do not allow you to do this or you passed the wrong rights combination (some rights only apply to channels and vice versa) RIGHT_FORBIDDEN,403,Either your admin rights do not allow you to do this or you passed the wrong rights combination (some rights only apply to channels and vice versa)
RPC_CALL_FAIL,500,"Telegram is having internal issues, please try again later." RPC_CALL_FAIL,500,"Telegram is having internal issues, please try again later."
RPC_MCGET_FAIL,500,"Telegram is having internal issues, please try again later." RPC_MCGET_FAIL,500,"Telegram is having internal issues, please try again later."
RSA_DECRYPT_FAILED,400,Internal RSA decryption failed RSA_DECRYPT_FAILED,400,Internal RSA decryption failed
SCHEDULE_BOT_NOT_ALLOWED,400,Bots are not allowed to schedule messages SCHEDULE_BOT_NOT_ALLOWED,400,Bots are not allowed to schedule messages
SCHEDULE_DATE_INVALID,400, SCHEDULE_DATE_INVALID,400,Invalid schedule date provided
SCHEDULE_DATE_TOO_LATE,400,The date you tried to schedule is too far in the future (last known limit of 1 year and a few hours) SCHEDULE_DATE_TOO_LATE,400,The date you tried to schedule is too far in the future (last known limit of 1 year and a few hours)
SCHEDULE_STATUS_PRIVATE,400,You cannot schedule a message until the person comes online if their privacy does not show this information SCHEDULE_STATUS_PRIVATE,400,You cannot schedule a message until the person comes online if their privacy does not show this information
SCHEDULE_TOO_MUCH,400,You cannot schedule more messages in this chat (last known limit of 100 per chat) SCHEDULE_TOO_MUCH,400,You cannot schedule more messages in this chat (last known limit of 100 per chat)
SCORE_INVALID,400,The specified game score is invalid
SEARCH_QUERY_EMPTY,400,The search query is empty SEARCH_QUERY_EMPTY,400,The search query is empty
SEARCH_WITH_LINK_NOT_SUPPORTED,400,You cannot provide a search query and an invite link at the same time
SECONDS_INVALID,400,"Slow mode only supports certain values (e.g. 0, 10s, 30s, 1m, 5m, 15m and 1h)" SECONDS_INVALID,400,"Slow mode only supports certain values (e.g. 0, 10s, 30s, 1m, 5m, 15m and 1h)"
SEND_AS_PEER_INVALID,400, SEND_AS_PEER_INVALID,400,You can't send messages as the specified peer
SEND_CODE_UNAVAILABLE,406, SEND_CODE_UNAVAILABLE,406,"Returned when all available options for this type of number were already used (e.g. flash-call, then SMS, then this error might be returned to trigger a second resend)"
SEND_MESSAGE_MEDIA_INVALID,400,The message media was invalid or not specified SEND_MESSAGE_MEDIA_INVALID,400,The message media was invalid or not specified
SEND_MESSAGE_TYPE_INVALID,400,The message type is invalid SEND_MESSAGE_TYPE_INVALID,400,The message type is invalid
SENSITIVE_CHANGE_FORBIDDEN,403,Your sensitive content settings cannot be changed at this time SENSITIVE_CHANGE_FORBIDDEN,403,Your sensitive content settings cannot be changed at this time
@ -342,76 +405,97 @@ SESSION_EXPIRED,401,The authorization has expired
SESSION_PASSWORD_NEEDED,401,Two-steps verification is enabled and a password is required SESSION_PASSWORD_NEEDED,401,Two-steps verification is enabled and a password is required
SESSION_REVOKED,401,"The authorization has been invalidated, because of the user terminating all sessions" SESSION_REVOKED,401,"The authorization has been invalidated, because of the user terminating all sessions"
SESSION_TOO_FRESH_X,400,The session logged in too recently and {seconds} seconds must pass before calling the method SESSION_TOO_FRESH_X,400,The session logged in too recently and {seconds} seconds must pass before calling the method
SETTINGS_INVALID,400,Invalid settings were provided
SHA256_HASH_INVALID,400,The provided SHA256 hash is invalid SHA256_HASH_INVALID,400,The provided SHA256 hash is invalid
SHORTNAME_OCCUPY_FAILED,400,An error occurred when trying to register the short-name used for the sticker pack. Try a different name SHORTNAME_OCCUPY_FAILED,400,An error occurred when trying to register the short-name used for the sticker pack. Try a different name
SHORT_NAME_INVALID,400, SHORT_NAME_INVALID,400,The specified short name is invalid
SHORT_NAME_OCCUPIED,400, SHORT_NAME_OCCUPIED,400,The specified short name is already in use
SIGN_IN_FAILED,500,Failure while signing in
SLOWMODE_MULTI_MSGS_DISABLED,400,"Slowmode is enabled, you cannot forward multiple messages to this group"
SLOWMODE_WAIT_X,420,A wait of {seconds} seconds is required before sending another message in this chat SLOWMODE_WAIT_X,420,A wait of {seconds} seconds is required before sending another message in this chat
SRP_ID_INVALID,400, SMS_CODE_CREATE_FAILED,400,An error occurred while creating the SMS code
SRP_ID_INVALID,400,Invalid SRP ID provided
SRP_PASSWORD_CHANGED,400,Password has changed
START_PARAM_EMPTY,400,The start parameter is empty START_PARAM_EMPTY,400,The start parameter is empty
START_PARAM_INVALID,400,Start parameter invalid START_PARAM_INVALID,400,Start parameter invalid
START_PARAM_TOO_LONG,400, START_PARAM_TOO_LONG,400,Start parameter is too long
STATS_MIGRATE_X,303,The channel statistics must be fetched from DC {dc} STATS_MIGRATE_X,303,The channel statistics must be fetched from DC {dc}
STICKERSET_INVALID,400,The provided sticker set is invalid STICKERPACK_STICKERS_TOO_MUCH,400,"There are too many stickers in this stickerpack, you can't add any more"
STICKERSET_INVALID,400 406,The provided sticker set is invalid
STICKERSET_OWNER_ANONYMOUS,406,This sticker set can't be used as the group's official stickers because it was created by one of its anonymous admins STICKERSET_OWNER_ANONYMOUS,406,This sticker set can't be used as the group's official stickers because it was created by one of its anonymous admins
STICKERS_EMPTY,400,No sticker provided STICKERS_EMPTY,400,No sticker provided
STICKERS_TOO_MUCH,400,"There are too many stickers in this stickerpack, you can't add any more"
STICKER_DOCUMENT_INVALID,400,"The sticker file was invalid (this file has failed Telegram internal checks, make sure to use the correct format and comply with https://core.telegram.org/animated_stickers)" STICKER_DOCUMENT_INVALID,400,"The sticker file was invalid (this file has failed Telegram internal checks, make sure to use the correct format and comply with https://core.telegram.org/animated_stickers)"
STICKER_EMOJI_INVALID,400,Sticker emoji invalid STICKER_EMOJI_INVALID,400,Sticker emoji invalid
STICKER_FILE_INVALID,400,Sticker file invalid STICKER_FILE_INVALID,400,Sticker file invalid
STICKER_GIF_DIMENSIONS,400,The specified video sticker has invalid dimensions
STICKER_ID_INVALID,400,The provided sticker ID is invalid STICKER_ID_INVALID,400,The provided sticker ID is invalid
STICKER_INVALID,400,The provided sticker is invalid STICKER_INVALID,400,The provided sticker is invalid
STICKER_PNG_DIMENSIONS,400,Sticker png dimensions invalid STICKER_PNG_DIMENSIONS,400,Sticker png dimensions invalid
STICKER_PNG_NOPNG,400,Stickers must be a png file but the used image was not a png STICKER_PNG_NOPNG,400,Stickers must be a png file but the used image was not a png
STICKER_TGS_NODOC,400, STICKER_TGS_NODOC,400,You must send the animated sticker as a document
STICKER_TGS_NOTGS,400,Stickers must be a tgs file but the used file was not a tgs STICKER_TGS_NOTGS,400,Stickers must be a tgs file but the used file was not a tgs
STICKER_THUMB_PNG_NOPNG,400,Stickerset thumb must be a png file but the used file was not png STICKER_THUMB_PNG_NOPNG,400,Stickerset thumb must be a png file but the used file was not png
STICKER_THUMB_TGS_NOTGS,400,Stickerset thumb must be a tgs file but the used file was not tgs STICKER_THUMB_TGS_NOTGS,400,Stickerset thumb must be a tgs file but the used file was not tgs
STICKER_VIDEO_BIG,400,The specified video sticker is too big
STICKER_VIDEO_NODOC,400,You must send the video sticker as a document
STICKER_VIDEO_NOWEBM,400,The specified video sticker is not in webm format
STORAGE_CHECK_FAILED,500,Server storage check failed STORAGE_CHECK_FAILED,500,Server storage check failed
STORE_INVALID_SCALAR_TYPE,500, STORE_INVALID_SCALAR_TYPE,500,
SWITCH_PM_TEXT_EMPTY,400,The switch_pm.text field was empty
TAKEOUT_INIT_DELAY_X,420,A wait of {seconds} seconds is required before being able to initiate the takeout TAKEOUT_INIT_DELAY_X,420,A wait of {seconds} seconds is required before being able to initiate the takeout
TAKEOUT_INVALID,400,The takeout session has been invalidated by another data export session TAKEOUT_INVALID,400,The takeout session has been invalidated by another data export session
TAKEOUT_REQUIRED,400,You must initialize a takeout request first TAKEOUT_REQUIRED,400 403,You must initialize a takeout request first
TEMP_AUTH_KEY_ALREADY_BOUND,400,The passed temporary key is already bound to another **perm_auth_key_id**
TEMP_AUTH_KEY_EMPTY,400,No temporary auth key provided TEMP_AUTH_KEY_EMPTY,400,No temporary auth key provided
THEME_FILE_INVALID,400,Invalid theme file provided
THEME_FORMAT_INVALID,400,Invalid theme format provided
THEME_INVALID,400,Theme invalid THEME_INVALID,400,Theme invalid
THEME_MIME_INVALID,400,"You cannot create this theme, the mime-type is invalid" THEME_MIME_INVALID,400,"You cannot create this theme, the mime-type is invalid"
THEME_TITLE_INVALID,400,The specified theme title is invalid
TIMEOUT,500,A timeout occurred while fetching data from the worker TIMEOUT,500,A timeout occurred while fetching data from the worker
TITLE_INVALID,400, TITLE_INVALID,400,The specified stickerpack title is invalid
TMP_PASSWORD_DISABLED,400,The temporary password is disabled TMP_PASSWORD_DISABLED,400,The temporary password is disabled
TMP_PASSWORD_INVALID,400,Password auth needs to be regenerated TMP_PASSWORD_INVALID,400,Password auth needs to be regenerated
TOKEN_INVALID,400,The provided token is invalid TOKEN_INVALID,400,The provided token is invalid
TOPIC_DELETED,400,The topic was deleted TOPIC_DELETED,400,The topic was deleted
TO_LANG_INVALID,400,The specified destination language is invalid
TTL_DAYS_INVALID,400,The provided TTL is invalid TTL_DAYS_INVALID,400,The provided TTL is invalid
TTL_MEDIA_INVALID,400,The provided media cannot be used with a TTL TTL_MEDIA_INVALID,400,The provided media cannot be used with a TTL
TTL_PERIOD_INVALID,400,The provided TTL Period is invalid TTL_PERIOD_INVALID,400,The provided TTL Period is invalid
TYPES_EMPTY,400,The types field is empty TYPES_EMPTY,400,The types field is empty
TYPE_CONSTRUCTOR_INVALID,400,The type constructor is invalid TYPE_CONSTRUCTOR_INVALID,400,The type constructor is invalid
Timeout,-503,Timeout while fetching data
UNKNOWN_ERROR,400, UNKNOWN_ERROR,400,
UNKNOWN_METHOD,500,The method you tried to call cannot be called on non-CDN DCs UNKNOWN_METHOD,500,The method you tried to call cannot be called on non-CDN DCs
UNTIL_DATE_INVALID,400,That date cannot be specified in this request (try using None) UNTIL_DATE_INVALID,400,That date cannot be specified in this request (try using None)
UPDATE_APP_TO_LOGIN,406, UPDATE_APP_TO_LOGIN,406,
URL_INVALID,400,The URL used was invalid (e.g. when answering a callback with a URL that's not t.me/yourbot or your game's URL) URL_INVALID,400,The URL used was invalid (e.g. when answering a callback with a URL that's not t.me/yourbot or your game's URL)
USAGE_LIMIT_INVALID,400,The specified usage limit is invalid
USERNAME_INVALID,400,"Nobody is using this username, or the username is unacceptable. If the latter, it must match r""[a-zA-Z][\w\d]{3,30}[a-zA-Z\d]""" USERNAME_INVALID,400,"Nobody is using this username, or the username is unacceptable. If the latter, it must match r""[a-zA-Z][\w\d]{3,30}[a-zA-Z\d]"""
USERNAME_NOT_MODIFIED,400,The username is not different from the current username USERNAME_NOT_MODIFIED,400,The username is not different from the current username
USERNAME_NOT_OCCUPIED,400,The username is not in use by anyone else yet USERNAME_NOT_OCCUPIED,400,The username is not in use by anyone else yet
USERNAME_OCCUPIED,400,The username is already taken USERNAME_OCCUPIED,400,The username is already taken
USERNAME_PURCHASE_AVAILABLE,400, USERNAME_PURCHASE_AVAILABLE,400,
USERPIC_UPLOAD_REQUIRED,400,You must have a profile picture before using this method USERPIC_PRIVACY_REQUIRED,406,You need to disable privacy settings for your profile picture in order to make your geolocation public
USERPIC_UPLOAD_REQUIRED,400 406,You must have a profile picture before using this method
USERS_TOO_FEW,400,"Not enough users (to create a chat, for example)" USERS_TOO_FEW,400,"Not enough users (to create a chat, for example)"
USERS_TOO_MUCH,400,"The maximum number of users has been exceeded (to create a chat, for example)" USERS_TOO_MUCH,400,"The maximum number of users has been exceeded (to create a chat, for example)"
USER_ADMIN_INVALID,400,Either you're not an admin or you tried to ban an admin that you didn't promote USER_ADMIN_INVALID,400,Either you're not an admin or you tried to ban an admin that you didn't promote
USER_ALREADY_INVITED,400, USER_ALREADY_INVITED,400,You have already invited this user
USER_ALREADY_PARTICIPANT,400,The authenticated user is already a participant of the chat USER_ALREADY_PARTICIPANT,400,The authenticated user is already a participant of the chat
USER_BANNED_IN_CHANNEL,400,You're banned from sending messages in supergroups/channels USER_BANNED_IN_CHANNEL,400,You're banned from sending messages in supergroups/channels
USER_BLOCKED,400,User blocked USER_BLOCKED,400,User blocked
USER_BOT,400,Bots can only be admins in channels. USER_BOT,400,Bots can only be admins in channels.
USER_BOT_INVALID,400 403,This method can only be called by a bot USER_BOT_INVALID,400 403,This method can only be called by a bot
USER_BOT_REQUIRED,400,This method can only be called by a bot USER_BOT_REQUIRED,400,This method can only be called by a bot
USER_CHANNELS_TOO_MUCH,403,One of the users you tried to add is already in too many channels/supergroups USER_CHANNELS_TOO_MUCH,400 403,One of the users you tried to add is already in too many channels/supergroups
USER_CREATOR,400,"You can't leave this channel, because you're its creator" USER_CREATOR,400,"You can't leave this channel, because you're its creator"
USER_DEACTIVATED,401,The user has been deleted/deactivated USER_DEACTIVATED,401,The user has been deleted/deactivated
USER_DEACTIVATED_BAN,401,The user has been deleted/deactivated USER_DEACTIVATED_BAN,401,The user has been deleted/deactivated
USER_DELETED,403,You can't send this secret message because the other participant deleted their account
USER_ID_INVALID,400,"Invalid object ID for a user. Make sure to pass the right types, for instance making sure that the request is designed for users or otherwise look for a different one more suited" USER_ID_INVALID,400,"Invalid object ID for a user. Make sure to pass the right types, for instance making sure that the request is designed for users or otherwise look for a different one more suited"
USER_INVALID,400,The given user was invalid USER_INVALID,400 403,The given user was invalid
USER_IS_BLOCKED,400 403,User is blocked USER_IS_BLOCKED,400 403,User is blocked
USER_IS_BOT,400,Bots can't send messages to other bots USER_IS_BOT,400,Bots can't send messages to other bots
USER_KICKED,400,This user was kicked from this supergroup/channel USER_KICKED,400,This user was kicked from this supergroup/channel
@ -419,18 +503,24 @@ USER_MIGRATE_X,303,The user whose identity is being used to execute queries is a
USER_NOT_MUTUAL_CONTACT,400 403,The provided user is not a mutual contact USER_NOT_MUTUAL_CONTACT,400 403,The provided user is not a mutual contact
USER_NOT_PARTICIPANT,400,The target user is not a member of the specified megagroup or channel USER_NOT_PARTICIPANT,400,The target user is not a member of the specified megagroup or channel
USER_PRIVACY_RESTRICTED,403,The user's privacy settings do not allow you to do this USER_PRIVACY_RESTRICTED,403,The user's privacy settings do not allow you to do this
USER_RESTRICTED,403,"You're spamreported, you can't create channels or chats." USER_RESTRICTED,403 406,"You're spamreported, you can't create channels or chats."
USER_VOLUME_INVALID,400, USER_VOLUME_INVALID,400,The specified user volume is invalid
VIDEO_CONTENT_TYPE_INVALID,400,The video content type is not supported with the given parameters (i.e. supports_streaming) VIDEO_CONTENT_TYPE_INVALID,400,The video content type is not supported with the given parameters (i.e. supports_streaming)
VIDEO_FILE_INVALID,400,The given video cannot be used VIDEO_FILE_INVALID,400,The given video cannot be used
VIDEO_TITLE_EMPTY,400, VIDEO_TITLE_EMPTY,400,The specified video title is empty
VOICE_MESSAGES_FORBIDDEN,400,This user's privacy settings forbid you from sending voice messages
WALLPAPER_FILE_INVALID,400,The given file cannot be used as a wallpaper WALLPAPER_FILE_INVALID,400,The given file cannot be used as a wallpaper
WALLPAPER_INVALID,400,The input wallpaper was not valid WALLPAPER_INVALID,400,The input wallpaper was not valid
WALLPAPER_MIME_INVALID,400, WALLPAPER_MIME_INVALID,400,The specified wallpaper MIME type is invalid
WC_CONVERT_URL_INVALID,400,WC convert URL invalid WC_CONVERT_URL_INVALID,400,WC convert URL invalid
WEBDOCUMENT_MIME_INVALID,400, WEBDOCUMENT_INVALID,400,Invalid webdocument URL provided
WEBDOCUMENT_MIME_INVALID,400,Invalid webdocument mime type provided
WEBDOCUMENT_SIZE_TOO_BIG,400,Webdocument is too big!
WEBDOCUMENT_URL_INVALID,400,The given URL cannot be used WEBDOCUMENT_URL_INVALID,400,The given URL cannot be used
WEBPAGE_CURL_FAILED,400,Failure while fetching the webpage with cURL WEBPAGE_CURL_FAILED,400,Failure while fetching the webpage with cURL
WEBPAGE_MEDIA_EMPTY,400,Webpage media empty WEBPAGE_MEDIA_EMPTY,400,Webpage media empty
WEBPUSH_AUTH_INVALID,400,The specified web push authentication secret is invalid
WEBPUSH_KEY_INVALID,400,The specified web push elliptic curve Diffie-Hellman public key is invalid
WEBPUSH_TOKEN_INVALID,400,The specified web push token is invalid
WORKER_BUSY_TOO_LONG_RETRY,500,Telegram workers are too busy to respond immediately WORKER_BUSY_TOO_LONG_RETRY,500,Telegram workers are too busy to respond immediately
YOU_BLOCKED_USER,400,You blocked this user YOU_BLOCKED_USER,400,You blocked this user

1 name codes description
5 ACCESS_TOKEN_INVALID 400 The provided token is not valid
6 ACTIVE_USER_REQUIRED 401 The method is only available to already activated users
7 ADMINS_TOO_MUCH 400 Too many admins
8 ADMIN_ID_INVALID 400 The specified admin ID is invalid
9 ADMIN_RANK_EMOJI_NOT_ALLOWED 400 Emoji are not allowed in admin titles or ranks
10 ADMIN_RANK_INVALID 400 The given admin title or rank was invalid (possibly larger than 16 characters)
11 ALBUM_PHOTOS_TOO_MANY 400 Too many photos were included in the album
12 API_ID_INVALID 400 The api_id/api_hash combination is invalid
13 API_ID_PUBLISHED_FLOOD 400 This API id was published somewhere, you can't use it now
14 ARTICLE_TITLE_EMPTY 400 The title of the article is empty
15 AUDIO_CONTENT_URL_EMPTY 400 The remote URL specified in the content field is empty
16 AUDIO_TITLE_EMPTY 400 The title attribute of the audio must be non-empty
17 AUTH_BYTES_INVALID 400 The provided authorization is invalid
18 AUTH_KEY_DUPLICATED 406 The authorization key (session file) was used under two different IP addresses simultaneously, and can no longer be used. Use the same session exclusively, or use different sessions
21 AUTH_KEY_UNREGISTERED 401 The key is not registered in the system
22 AUTH_RESTART 500 Restart the authorization process
23 AUTH_TOKEN_ALREADY_ACCEPTED 400 The authorization token was already used
24 AUTH_TOKEN_EXCEPTION 400 An error occurred while importing the auth token
25 AUTH_TOKEN_EXPIRED 400 The provided authorization token has expired and the updated QR-code must be re-scanned
26 AUTH_TOKEN_INVALID 400 An invalid authorization token was provided
27 AUTH_TOKEN_INVALID2 400 An invalid authorization token was provided
28 AUTH_TOKEN_INVALIDX 400 The specified auth token is invalid
29 AUTOARCHIVE_NOT_AVAILABLE 400 You cannot use this feature yet
30 BANK_CARD_NUMBER_INVALID 400 Incorrect credit card number
31 BANNED_RIGHTS_INVALID 400 You cannot use that set of permissions in this request, i.e. restricting view_messages as a default
33 BOTS_TOO_MUCH 400 There are too many bots in this chat/channel
34 BOT_CHANNELS_NA 400 Bots can't edit admin privileges
35 BOT_COMMAND_DESCRIPTION_INVALID 400 The command description was empty, too long or had invalid characters used
36 BOT_COMMAND_INVALID 400 The specified command is invalid
37 BOT_DOMAIN_INVALID 400 The domain used for the auth button does not match the one configured in @BotFather
38 BOT_GAMES_DISABLED 400 Bot games cannot be used in this type of chat
39 BOT_GROUPS_BLOCKED 400 This bot can't be added to groups
41 BOT_INVALID 400 This is not a valid bot
42 BOT_METHOD_INVALID 400 The API access for bot users is restricted. The method you tried to invoke cannot be executed as a bot
43 BOT_MISSING 400 This method can only be run by a bot
44 BOT_ONESIDE_NOT_AVAIL 400 Bots can't pin messages in PM just for themselves
45 BOT_PAYMENTS_DISABLED 400 This method can only be run by a bot
46 BOT_POLLS_DISABLED 400 You cannot create polls under a bot account
47 BOT_RESPONSE_TIMEOUT 400 The bot did not answer to the callback query in time
48 BOT_SCORE_NOT_MODIFIED 400 The score wasn't modified
49 BROADCAST_CALLS_DISABLED 400
50 BROADCAST_FORBIDDEN 403 The request cannot be used in broadcast channels
51 BROADCAST_ID_INVALID 400 The channel is invalid
52 BROADCAST_PUBLIC_VOTERS_FORBIDDEN 400 You cannot broadcast polls where the voters are public
53 BROADCAST_REQUIRED 400 The request can only be used with a broadcast channel
54 BUTTON_DATA_INVALID 400 The provided button data is invalid
55 BUTTON_TEXT_INVALID 400 The specified button text is invalid
56 BUTTON_TYPE_INVALID 400 The type of one of the buttons you provided is invalid
57 BUTTON_URL_INVALID 400 Button URL invalid
58 BUTTON_USER_PRIVACY_RESTRICTED 400 The privacy setting of the user specified in a [inputKeyboardButtonUserProfile](/constructor/inputKeyboardButtonUserProfile) button do not allow creating such a button
59 CALL_ALREADY_ACCEPTED 400 The call was already accepted
60 CALL_ALREADY_DECLINED 400 The call was already declined
61 CALL_OCCUPY_FAILED 500 The call failed because the user is already making another call
62 CALL_PEER_INVALID 400 The provided call peer object is invalid
63 CALL_PROTOCOL_FLAGS_INVALID 400 Call protocol flags invalid
64 CDN_METHOD_INVALID 400 This method cannot be invoked on a CDN server. Refer to https://core.telegram.org/cdn#schema for available methods
65 CDN_UPLOAD_TIMEOUT 500 A server-side timeout occurred while reuploading the file to the CDN DC
66 CHANNELS_ADMIN_LOCATED_TOO_MUCH 400 The user has reached the limit of public geogroups
67 CHANNELS_ADMIN_PUBLIC_TOO_MUCH 400 You're admin of too many public channels, make some channels private to change the username of this channel
68 CHANNELS_TOO_MUCH 400 You have joined too many channels/supergroups
69 CHANNEL_BANNED 400 The channel is banned
70 CHANNEL_ID_INVALID 400 The specified supergroup ID is invalid
71 CHANNEL_INVALID 400 Invalid channel object. Make sure to pass the right types, for instance making sure that the request is designed for channels or otherwise look for a different one more suited
72 CHANNEL_PRIVATE CHANNEL_PARICIPANT_MISSING 400 The channel specified is private and you lack permission to access it. Another reason may be that you were banned from it The current user is not in the channel
73 CHANNEL_PRIVATE 400 406 The channel specified is private and you lack permission to access it. Another reason may be that you were banned from it
74 CHANNEL_PUBLIC_GROUP_NA 403 channel/supergroup not available
75 CHANNEL_TOO_BIG 400
76 CHANNEL_TOO_LARGE 406 400 406 Channel is too large to be deleted; this error is issued when trying to delete channels with more than 1000 members (subject to change)
77 CHAT_ABOUT_NOT_MODIFIED 400 About text has not changed
78 CHAT_ABOUT_TOO_LONG 400 Chat about too long
79 CHAT_ADMIN_INVITE_REQUIRED 403 You do not have the rights to do this
80 CHAT_ADMIN_REQUIRED 400 400 403 Chat admin privileges are required to do that in the specified chat (for example, to send a message in a channel which is not yours), or invalid permissions used for the channel or group
81 CHAT_DISCUSSION_UNALLOWED 400
82 CHAT_FORBIDDEN 403 You cannot write in this chat
83 CHAT_FORWARDS_RESTRICTED 400 400 406 You can't forward messages from a protected chat
84 CHAT_GUEST_SEND_FORBIDDEN 403 You join the discussion group before commenting, see [here](/api/discussion#requiring-users-to-join-the-group) for more info
85 CHAT_ID_EMPTY 400 The provided chat ID is empty
86 CHAT_ID_GENERATE_FAILED 500 Failure while generating the chat ID
87 CHAT_ID_INVALID 400 Invalid object ID for a chat. Make sure to pass the right types, for instance making sure that the request is designed for chats (not channels/megagroups) or otherwise look for a different one more suited\nAn example working with a megagroup and AddChatUserRequest, it will fail because megagroups are channels. Use InviteToChannelRequest instead
88 CHAT_INVALID 400 The chat is invalid for this request
89 CHAT_INVITE_PERMANENT 400 You can't set an expiration date on permanent invite links
90 CHAT_LINK_EXISTS 400 The chat is linked to a channel and cannot be used in that request
91 CHAT_NOT_MODIFIED 400 The chat or channel wasn't modified (title, invites, username, admins, etc. are the same)
92 CHAT_RESTRICTED 400 The chat is restricted and cannot be used in that request
93 CHAT_REVOKE_DATE_UNSUPPORTED 400 `min_date` and `max_date` are not available for using with non-user peers
94 CHAT_SEND_GAME_FORBIDDEN 403 You can't send a game to this chat
95 CHAT_SEND_GIFS_FORBIDDEN 403 You can't send gifs in this chat
96 CHAT_SEND_INLINE_FORBIDDEN 400 400 403 You cannot send inline results in this chat
97 CHAT_SEND_MEDIA_FORBIDDEN 403 You can't send media in this chat
98 CHAT_SEND_POLL_FORBIDDEN 403 You can't send polls in this chat
99 CHAT_SEND_STICKERS_FORBIDDEN 403 You can't send stickers in this chat
100 CHAT_TITLE_EMPTY 400 No chat title provided
101 CHAT_TOO_BIG 400 This method is not available for groups with more than `chat_read_mark_size_threshold` members, [see client configuration](https://core.telegram.org/api/config#client-configuration)
102 CHAT_WRITE_FORBIDDEN 403 You can't write in this chat
103 CHP_CALL_FAIL 500 The statistics cannot be retrieved at this time
104 CODE_EMPTY 400 The provided code is empty
105 CODE_HASH_INVALID 400 Code hash invalid
106 CODE_INVALID 400 Code invalid (i.e. from email)
107 CONNECTION_API_ID_INVALID 400 The provided API id is invalid
108 CONNECTION_APP_VERSION_EMPTY 400 App version is empty
109 CONNECTION_DEVICE_MODEL_EMPTY 400 Device model empty
110 CONNECTION_LANG_PACK_INVALID 400 The specified language pack is not valid. This is meant to be used by official applications only so far, leave it empty
111 CONNECTION_LAYER_INVALID 400 The very first request must always be InvokeWithLayerRequest
112 CONNECTION_NOT_INITED 400 Connection not initialized
113 CONNECTION_SYSTEM_EMPTY 400 Connection system empty
114 CONNECTION_SYSTEM_LANG_CODE_EMPTY 400 The system language string was empty during connection
115 CONTACT_ADD_MISSING 400 Contact to add is missing
116 CONTACT_ID_INVALID 400 The provided contact ID is invalid
117 CONTACT_NAME_EMPTY 400 The provided contact name cannot be empty
118 CURRENCY_TOTAL_AMOUNT_INVALID CONTACT_REQ_MISSING 400 Missing contact request
119 CREATE_CALL_FAILED 400 An error occurred while creating the call
120 CURRENCY_TOTAL_AMOUNT_INVALID 400 The total amount of all prices is invalid
121 DATA_INVALID 400 Encrypted data invalid
122 DATA_JSON_INVALID 400 The provided JSON data is invalid
123 DATA_TOO_LONG 400 Data too long
124 DATE_EMPTY 400 Date empty
125 DC_ID_INVALID 400 This occurs when an authorization is tried to be exported for the same data center one is currently connected to
126 DH_G_A_INVALID 400 g_a invalid
127 DOCUMENT_INVALID 400 The document file was invalid and can't be used in inline mode
128 EDIT_BOT_INVITE_FORBIDDEN 403 Normal users can't edit invites that were created by bots
129 EMAIL_HASH_EXPIRED 400 The email hash expired and cannot be used to verify it
130 EMAIL_INVALID 400 The given email is invalid
131 EMAIL_UNCONFIRMED 400 Email unconfirmed
132 EMAIL_UNCONFIRMED_X 400 Email unconfirmed, the length of the code must be {code_length}
133 EMOJI_INVALID EMAIL_VERIFY_EXPIRED 400 The verification email has expired
134 EMOJI_NOT_MODIFIED EMOJI_INVALID 400 The specified theme emoji is valid
135 EMOJI_NOT_MODIFIED 400 The theme wasn't changed
136 EMOTICON_EMPTY 400 The emoticon field cannot be empty
137 EMOTICON_INVALID 400 The specified emoticon cannot be used or was not a emoticon
138 EMOTICON_STICKERPACK_MISSING 400 The emoticon sticker pack you are trying to get is missing
146 ENTITY_BOUNDS_INVALID 400 Some of provided entities have invalid bounds (length is zero or out of the boundaries of the string)
147 ENTITY_MENTION_USER_INVALID 400 You can't use this entity
148 ERROR_TEXT_EMPTY 400 The provided error message is empty
149 EXPIRE_DATE_INVALID 400 The specified expiration date is invalid
150 EXPIRE_FORBIDDEN 400
151 EXPORT_CARD_INVALID 400 Provided card is invalid
152 EXTERNAL_URL_INVALID 400 External URL invalid
153 FIELD_NAME_EMPTY 400 The field with the name FIELD_NAME is missing
154 FIELD_NAME_INVALID 400 The field with the name FIELD_NAME is invalid
155 FILEREF_UPGRADE_NEEDED 406 The file reference needs to be refreshed before being used again
156 FILE_CONTENT_TYPE_INVALID 400 File content-type is invalid
157 FILE_EMTPY 400 An empty file was provided
158 FILE_ID_INVALID 400 The provided file id is invalid. Make sure all parameters are present, have the correct type and are not empty (ID, access hash, file reference, thumb size ...)
159 FILE_MIGRATE_X 303 The file to be accessed is currently stored in DC {new_dc}
160 FILE_PARTS_INVALID 400 The number of file parts is invalid
164 FILE_PART_LENGTH_INVALID 400 The length of a file part is invalid
165 FILE_PART_SIZE_CHANGED 400 The file part size (chunk size) cannot change during upload
166 FILE_PART_SIZE_INVALID 400 The provided file part size is invalid
167 FILE_PART_TOO_BIG 400 The uploaded file part is too big
168 FILE_PART_X_MISSING 400 Part {which} of the file is missing from storage
169 FILE_REFERENCE_* 400 The file reference expired, it [must be refreshed](https://core.telegram.org/api/file_reference)
170 FILE_REFERENCE_EMPTY 400 The file reference must exist to access the media and it cannot be empty
171 FILE_REFERENCE_EXPIRED 400 The file reference has expired and is no longer valid or it belongs to self-destructing media and cannot be resent
172 FILE_REFERENCE_INVALID 400 The file reference is invalid or you can't do that operation on such message
173 FILE_TITLE_EMPTY 400 An empty file title was specified
174 FILTER_ID_INVALID 400 The specified filter ID is invalid
175 FILTER_INCLUDE_EMPTY 400 The include_peers vector of the filter is empty
176 FILTER_NOT_SUPPORTED 400 The specified filter cannot be used in this context
177 FILTER_TITLE_EMPTY 400 The title field of the filter is empty
178 FIRSTNAME_INVALID 400 The first name is invalid
179 FLOOD_TEST_PHONE_WAIT_X 420 A wait of {seconds} seconds is required in the test servers
180 FLOOD_WAIT_X 420 A wait of {seconds} seconds is required
181 FOLDER_ID_EMPTY 400 The folder you tried to delete was already empty
182 FOLDER_ID_INVALID 400 The folder you tried to use was not valid
183 FRESH_CHANGE_ADMINS_FORBIDDEN 400 400 406 Recently logged-in users cannot add or change admins
184 FRESH_CHANGE_PHONE_FORBIDDEN 406 Recently logged-in users cannot use this request
185 FRESH_RESET_AUTHORISATION_FORBIDDEN 406 The current session is too new and cannot be used to reset other authorisations yet
186 FROM_MESSAGE_BOT_DISABLED 400 Bots can't use fromMessage min constructors
187 FROM_PEER_INVALID 400 The given from_user peer cannot be used for the parameter
188 GAME_BOT_INVALID 400 You cannot send that game with the current bot
189 GIF_CONTENT_TYPE_INVALID GEO_POINT_INVALID 400 Invalid geoposition provided
190 GIF_CONTENT_TYPE_INVALID 400 GIF content-type invalid
191 GIF_ID_INVALID 400 The provided GIF ID is invalid
192 GRAPH_INVALID_RELOAD GRAPH_EXPIRED_RELOAD 400 This graph has expired, please obtain a new graph token
193 GRAPH_INVALID_RELOAD 400 Invalid graph token provided, please reload the stats and provide the updated token
194 GRAPH_OUTDATED_RELOAD 400 Data can't be used for the channel statistics, graphs outdated
195 GROUPCALL_ADD_PARTICIPANTS_FAILED 500
196 GROUPCALL_ALREADY_DISCARDED 400 The group call was already discarded
197 GROUPCALL_FORBIDDEN GROUPCALL_ALREADY_STARTED 403 The groupcall has already started, you can join directly using [phone.joinGroupCall](https://core.telegram.org/method/phone.joinGroupCall)
198 GROUPCALL_JOIN_MISSING GROUPCALL_FORBIDDEN 400 403 The group call has already ended
199 GROUPCALL_NOT_MODIFIED GROUPCALL_INVALID 400 The specified group call is invalid
200 GROUPCALL_SSRC_DUPLICATE_MUCH GROUPCALL_JOIN_MISSING 400 You haven't joined this group call
201 GROUPCALL_NOT_MODIFIED 400 Group call settings weren't modified
202 GROUPCALL_SSRC_DUPLICATE_MUCH 400 The app needs to retry joining the group call with a new SSRC value
203 GROUPED_MEDIA_INVALID 400 Invalid grouped media
204 GROUP_CALL_INVALID 400 Group call invalid
205 HASH_INVALID 400 The provided hash is invalid
206 HIDE_REQUESTER_MISSING 400 The join request was missing or was already handled
207 HISTORY_GET_FAILED 500 Fetching of history failed
208 IMAGE_PROCESS_FAILED 400 Failure while processing image
209 IMPORT_FILE_INVALID 400 The file is too large to be imported
210 IMPORT_FORMAT_UNRECOGNIZED 400 Unknown import format
211 IMPORT_ID_INVALID 400 The specified import ID is invalid
212 INLINE_BOT_REQUIRED 403 The action must be performed through an inline bot callback
213 INLINE_RESULT_EXPIRED 400 The inline query expired
214 INPUT_CONSTRUCTOR_INVALID 400 The provided constructor is invalid
218 INPUT_LAYER_INVALID 400 The provided layer is invalid
219 INPUT_METHOD_INVALID 400 The invoked method does not exist anymore or has never existed
220 INPUT_REQUEST_TOO_LONG 400 The input request was too long. This may be a bug in the library as it can occur when serializing more bytes than it should (like appending the vector constructor code at the end of a message)
221 INPUT_TEXT_EMPTY 400 The specified text is empty
222 INPUT_USER_DEACTIVATED 400 The specified user was deleted
223 INTERDC_X_CALL_ERROR 500 An error occurred while communicating with DC {dc}
224 INTERDC_X_CALL_RICH_ERROR 500 A rich error occurred while communicating with DC {dc}
225 INVITE_FORBIDDEN_WITH_JOINAS 400 If the user has anonymously joined a group call as a channel, they can't invite other users to the group call because that would cause deanonymization, because the invite would be sent using the original user ID, not the anonymized channel ID
226 INVITE_HASH_EMPTY 400 The invite hash is empty
227 INVITE_HASH_EXPIRED 400 400 406 The chat the user tried to join has expired and is not valid anymore
228 INVITE_HASH_INVALID 400 The invite hash is invalid
229 INVITE_REQUEST_SENT 400 You have successfully requested to join this chat or channel
230 LANG_CODE_INVALID INVITE_REVOKED_MISSING 400 The specified invite link was already revoked or is invalid
231 INVOICE_PAYLOAD_INVALID 400 The specified invoice payload is invalid
232 Invalid msg_resend_req query -500 Invalid msg_resend_req query
233 Invalid msgs_ack query -500 Invalid msgs_ack query
234 Invalid msgs_state_req query -500 Invalid msgs_state_req query
235 JOIN_AS_PEER_INVALID 400 The specified peer cannot be used to join a group call
236 LANG_CODE_INVALID 400 The specified language code is invalid
237 LANG_CODE_NOT_SUPPORTED 400 The specified language code is not supported
238 LANG_PACK_INVALID 400 The provided language pack is invalid
239 LASTNAME_INVALID 400 The last name is invalid
240 LIMIT_INVALID 400 An invalid limit was provided. See https://core.telegram.org/api/files#downloading-files
241 LINK_NOT_MODIFIED 400 The channel is already linked to this group
242 LOCATION_INVALID 400 The location given for a file was invalid. See https://core.telegram.org/api/files#downloading-files
243 MAX_DATE_INVALID 400 The specified maximum date is invalid
244 MAX_ID_INVALID 400 The provided max ID is invalid
245 MAX_QTS_INVALID 400 The provided QTS were invalid
246 MD5_CHECKSUM_INVALID 400 The MD5 check-sums do not match
247 MEDIA_CAPTION_TOO_LONG 400 The caption is too long
248 MEDIA_EMPTY 400 The provided media object is invalid or the current account may not be able to send it (such as games as users)
249 MEDIA_GROUPED_INVALID 400 You tried to send media of different types in an album
250 MEDIA_INVALID 400 Media invalid
251 MEDIA_NEW_INVALID 400 The new media to edit the message with is invalid (such as stickers or voice notes)
252 MEDIA_PREV_INVALID 400 The old media cannot be edited with anything else (such as stickers or voice notes)
266 MESSAGE_POLL_CLOSED 400 The poll was closed and can no longer be voted on
267 MESSAGE_TOO_LONG 400 Message was too long
268 METHOD_INVALID 400 The API method is invalid and cannot be used
269 MIN_DATE_INVALID 400 The specified minimum date is invalid
270 MSGID_DECREASE_RETRY 500 The request should be retried with a lower message ID
271 MSG_ID_INVALID 400 The message ID used in the peer was invalid
272 MSG_TOO_OLD 400 [`chat_read_mark_expire_period` seconds](https://core.telegram.org/api/config#chat-read-mark-expire-period) have passed since the message was sent, read receipts were deleted
273 MSG_WAIT_FAILED 400 A waiting call returned an error
274 MT_SEND_QUEUE_TOO_LONG 500
275 MULTI_MEDIA_TOO_LONG 400 Too many media files were included in the same album
277 NEED_MEMBER_INVALID 500 The provided member is invalid or does not exist (for example a thumb size)
278 NETWORK_MIGRATE_X 303 The source IP address is associated with DC {new_dc}
279 NEW_SALT_INVALID 400 The new salt is invalid
280 NEW_SETTINGS_EMPTY 400 No password is set on the current account, and no new password was specified in `new_settings`
281 NEW_SETTINGS_INVALID 400 The new settings are invalid
282 NEXT_OFFSET_INVALID 400 The value for next_offset is invalid. Check that it has normal characters and is not too long
283 NOT_ALLOWED 403
287 OPTION_INVALID 400 The option specified is invalid and does not exist in the target poll
288 PACK_SHORT_NAME_INVALID 400 Invalid sticker pack name. It must begin with a letter, can't contain consecutive underscores and must end in "_by_<bot username>".
289 PACK_SHORT_NAME_OCCUPIED 400 A stickerpack with this name already exists
290 PACK_TITLE_INVALID 400 The stickerpack title is invalid
291 PARTICIPANTS_TOO_FEW 400 Not enough participants
292 PARTICIPANT_CALL_FAILED 500 Failure while making call
293 PARTICIPANT_ID_INVALID 400 The specified participant ID is invalid
294 PARTICIPANT_JOIN_MISSING 403 400 403 Trying to enable a presentation, when the user hasn't joined the Video Chat with [phone.joinGroupCall](https://core.telegram.org/method/phone.joinGroupCall)
295 PARTICIPANT_VERSION_OUTDATED 400 The other participant does not use an up to date telegram client with support for calls
296 PASSWORD_EMPTY 400 The provided password is empty
297 PASSWORD_HASH_INVALID 400 The password (and thus its hash value) you entered is invalid
298 PASSWORD_MISSING 400 The account must have 2-factor authentication enabled (a password) before this method can be used
299 PASSWORD_RECOVERY_EXPIRED 400 The recovery code has expired
300 PASSWORD_RECOVERY_NA 400 No email was set, can't recover password via email
301 PASSWORD_REQUIRED 400 The account must have 2-factor authentication enabled (a password) before this method can be used
302 PASSWORD_TOO_FRESH_X 400 The password was added too recently and {seconds} seconds must pass before using the method
303 PAYMENT_PROVIDER_INVALID 400 The payment provider was not recognised or its token was invalid
312 PHONE_CODE_EXPIRED 400 The confirmation code has expired
313 PHONE_CODE_HASH_EMPTY 400 The phone code hash is missing
314 PHONE_CODE_INVALID 400 The phone code entered was invalid
315 PHONE_HASH_EXPIRED 400 An invalid or expired `phone_code_hash` was provided
316 PHONE_MIGRATE_X 303 The phone number a user is trying to use for authorization is associated with DC {new_dc}
317 PHONE_NOT_OCCUPIED 400 No user is associated to the specified phone number
318 PHONE_NUMBER_APP_SIGNUP_FORBIDDEN 400 You can't sign up using this app
319 PHONE_NUMBER_BANNED 400 The used phone number has been banned from Telegram and cannot be used anymore. Maybe check https://www.telegram.org/faq_spam
320 PHONE_NUMBER_FLOOD 400 You asked for the code too many times.
323 PHONE_NUMBER_UNOCCUPIED 400 The phone number is not yet being used
324 PHONE_PASSWORD_FLOOD 406 You have tried logging in too many times
325 PHONE_PASSWORD_PROTECTED 400 This phone is password protected
326 PHOTO_CONTENT_TYPE_INVALID 400 Photo mime-type invalid
327 PHOTO_CONTENT_URL_EMPTY 400 The content from the URL used as a photo appears to be empty or has caused another HTTP error
328 PHOTO_CROP_FILE_MISSING 400 Photo crop file missing
329 PHOTO_CROP_SIZE_SMALL 400 Photo is too small
330 PHOTO_EXT_INVALID 400 The extension of the photo is invalid
331 PHOTO_FILE_MISSING 400 Profile photo file missing
332 PHOTO_ID_INVALID 400 Photo id is invalid
333 PHOTO_INVALID 400 Photo invalid
334 PHOTO_INVALID_DIMENSIONS 400 The photo dimensions are invalid (hint: `pip install pillow` for `send_file` to resize images)
335 PHOTO_SAVE_FILE_INVALID 400 The photo you tried to send cannot be saved by Telegram. A reason may be that it exceeds 10MB. Try resizing it locally
336 PHOTO_THUMB_URL_EMPTY 400 The URL used as a thumbnail appears to be empty or has caused another HTTP error
337 PINNED_DIALOGS_TOO_MUCH 400 Too many pinned dialogs
338 PIN_RESTRICTED 400 You can't pin messages in private chats with other people
339 POLL_ANSWERS_INVALID 400 The poll did not have enough answers or had too many
340 POLL_ANSWER_INVALID 400 One of the poll answers is not acceptable
341 POLL_OPTION_DUPLICATE 400 A duplicate option was sent in the same poll
342 POLL_OPTION_INVALID 400 A poll option used invalid data (the data may be too long)
343 POLL_QUESTION_INVALID 400 The poll question was either empty or too long
344 POLL_UNSUPPORTED 400 This layer does not support polls in the issued method
345 POLL_VOTE_REQUIRED 403 Cast a vote in the poll before calling this method
346 POSTPONED_TIMEOUT 500 The postponed call has timed out
347 PREMIUM_ACCOUNT_REQUIRED 403 A premium account is required to execute this action
348 PREMIUM_CURRENTLY_UNAVAILABLE 406
349 PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_XMIN 406 Similar to a flood wait, must wait {minutes} minutes
350 PRIVACY_KEY_INVALID 400 The privacy key is invalid
351 PRIVACY_TOO_LONG 400 Cannot add that many entities in a single request
352 PRIVACY_VALUE_INVALID 400 The privacy value is invalid
353 PTS_CHANGE_EMPTY 500 No PTS change
354 PUBLIC_KEY_REQUIRED PUBLIC_CHANNEL_MISSING 400 403 You can only export group call invite links for public chats or channels
355 PUBLIC_KEY_REQUIRED 400 A public key is required
356 QUERY_ID_EMPTY 400 The query ID is empty
357 QUERY_ID_INVALID 400 The query ID is invalid
358 QUERY_TOO_SHORT 400 The query string is too short
359 QUIZ_ANSWER_MISSING 400 You can forward a quiz while hiding the original author only after choosing an option in the quiz
360 QUIZ_CORRECT_ANSWERS_EMPTY 400 A quiz must specify one correct answer
361 QUIZ_CORRECT_ANSWERS_TOO_MUCH 400 There can only be one correct answer
362 QUIZ_CORRECT_ANSWER_INVALID 400 The correct answer is not an existing answer
363 QUIZ_MULTIPLE_INVALID 400 A poll cannot be both multiple choice and quiz
364 RANDOM_ID_DUPLICATE 500 You provided a random ID that was already used
365 RANDOM_ID_EMPTY 400 Random ID empty
366 RANDOM_ID_INVALID 400 A provided random ID is invalid
367 RANDOM_LENGTH_INVALID 400 Random length invalid
368 RANGES_INVALID 400 Invalid range provided
369 REACTIONS_TOO_MANY 400 The message already has exactly `reactions_uniq_max` reaction emojis, you can't react with a new emoji, see [the docs for more info](/api/config#client-configuration)
370 REACTION_EMPTY 400 No reaction provided
371 REACTION_INVALID 400 Invalid reaction provided (only emoji are allowed)
372 REFLECTOR_NOT_AVAILABLE 400 Invalid call reflector server
373 REG_ID_GENERATE_FAILED 500 Failure while generating registration ID
374 REPLY_MARKUP_BUY_EMPTY 400 Reply markup for buy button empty
375 REPLY_MARKUP_GAME_EMPTY 400 The provided reply markup for the game is empty
376 REPLY_MARKUP_INVALID 400 The provided reply markup is invalid
377 REPLY_MARKUP_TOO_LONG 400 The data embedded in the reply markup buttons was too much
378 RESET_REQUEST_MISSING 400 No password reset is in progress
379 RESULTS_TOO_MUCH 400 You sent too many results, see https://core.telegram.org/bots/api#answerinlinequery for the current limit
380 RESULT_ID_DUPLICATE 400 Duplicated IDs on the sent results. Make sure to use unique IDs
381 RESULT_ID_EMPTY 400 Result ID empty
382 RESULT_ID_INVALID 400 The given result cannot be used to send the selection to the bot
383 RESULT_TYPE_INVALID 400 Result type invalid
384 REVOTE_NOT_ALLOWED 400 You cannot change your vote
385 RIGHTS_NOT_MODIFIED 400 The new admin rights are equal to the old rights, no change was made
386 RIGHT_FORBIDDEN 403 Either your admin rights do not allow you to do this or you passed the wrong rights combination (some rights only apply to channels and vice versa)
387 RPC_CALL_FAIL 500 Telegram is having internal issues, please try again later.
388 RPC_MCGET_FAIL 500 Telegram is having internal issues, please try again later.
389 RSA_DECRYPT_FAILED 400 Internal RSA decryption failed
390 SCHEDULE_BOT_NOT_ALLOWED 400 Bots are not allowed to schedule messages
391 SCHEDULE_DATE_INVALID 400 Invalid schedule date provided
392 SCHEDULE_DATE_TOO_LATE 400 The date you tried to schedule is too far in the future (last known limit of 1 year and a few hours)
393 SCHEDULE_STATUS_PRIVATE 400 You cannot schedule a message until the person comes online if their privacy does not show this information
394 SCHEDULE_TOO_MUCH 400 You cannot schedule more messages in this chat (last known limit of 100 per chat)
395 SCORE_INVALID 400 The specified game score is invalid
396 SEARCH_QUERY_EMPTY 400 The search query is empty
397 SEARCH_WITH_LINK_NOT_SUPPORTED 400 You cannot provide a search query and an invite link at the same time
398 SECONDS_INVALID 400 Slow mode only supports certain values (e.g. 0, 10s, 30s, 1m, 5m, 15m and 1h)
399 SEND_AS_PEER_INVALID 400 You can't send messages as the specified peer
400 SEND_CODE_UNAVAILABLE 406 Returned when all available options for this type of number were already used (e.g. flash-call, then SMS, then this error might be returned to trigger a second resend)
401 SEND_MESSAGE_MEDIA_INVALID 400 The message media was invalid or not specified
402 SEND_MESSAGE_TYPE_INVALID 400 The message type is invalid
403 SENSITIVE_CHANGE_FORBIDDEN 403 Your sensitive content settings cannot be changed at this time
405 SESSION_PASSWORD_NEEDED 401 Two-steps verification is enabled and a password is required
406 SESSION_REVOKED 401 The authorization has been invalidated, because of the user terminating all sessions
407 SESSION_TOO_FRESH_X 400 The session logged in too recently and {seconds} seconds must pass before calling the method
408 SETTINGS_INVALID 400 Invalid settings were provided
409 SHA256_HASH_INVALID 400 The provided SHA256 hash is invalid
410 SHORTNAME_OCCUPY_FAILED 400 An error occurred when trying to register the short-name used for the sticker pack. Try a different name
411 SHORT_NAME_INVALID 400 The specified short name is invalid
412 SHORT_NAME_OCCUPIED 400 The specified short name is already in use
413 SIGN_IN_FAILED 500 Failure while signing in
414 SLOWMODE_MULTI_MSGS_DISABLED 400 Slowmode is enabled, you cannot forward multiple messages to this group
415 SLOWMODE_WAIT_X 420 A wait of {seconds} seconds is required before sending another message in this chat
416 SRP_ID_INVALID SMS_CODE_CREATE_FAILED 400 An error occurred while creating the SMS code
417 SRP_ID_INVALID 400 Invalid SRP ID provided
418 SRP_PASSWORD_CHANGED 400 Password has changed
419 START_PARAM_EMPTY 400 The start parameter is empty
420 START_PARAM_INVALID 400 Start parameter invalid
421 START_PARAM_TOO_LONG 400 Start parameter is too long
422 STATS_MIGRATE_X 303 The channel statistics must be fetched from DC {dc}
423 STICKERSET_INVALID STICKERPACK_STICKERS_TOO_MUCH 400 The provided sticker set is invalid There are too many stickers in this stickerpack, you can't add any more
424 STICKERSET_INVALID 400 406 The provided sticker set is invalid
425 STICKERSET_OWNER_ANONYMOUS 406 This sticker set can't be used as the group's official stickers because it was created by one of its anonymous admins
426 STICKERS_EMPTY 400 No sticker provided
427 STICKERS_TOO_MUCH 400 There are too many stickers in this stickerpack, you can't add any more
428 STICKER_DOCUMENT_INVALID 400 The sticker file was invalid (this file has failed Telegram internal checks, make sure to use the correct format and comply with https://core.telegram.org/animated_stickers)
429 STICKER_EMOJI_INVALID 400 Sticker emoji invalid
430 STICKER_FILE_INVALID 400 Sticker file invalid
431 STICKER_GIF_DIMENSIONS 400 The specified video sticker has invalid dimensions
432 STICKER_ID_INVALID 400 The provided sticker ID is invalid
433 STICKER_INVALID 400 The provided sticker is invalid
434 STICKER_PNG_DIMENSIONS 400 Sticker png dimensions invalid
435 STICKER_PNG_NOPNG 400 Stickers must be a png file but the used image was not a png
436 STICKER_TGS_NODOC 400 You must send the animated sticker as a document
437 STICKER_TGS_NOTGS 400 Stickers must be a tgs file but the used file was not a tgs
438 STICKER_THUMB_PNG_NOPNG 400 Stickerset thumb must be a png file but the used file was not png
439 STICKER_THUMB_TGS_NOTGS 400 Stickerset thumb must be a tgs file but the used file was not tgs
440 STICKER_VIDEO_BIG 400 The specified video sticker is too big
441 STICKER_VIDEO_NODOC 400 You must send the video sticker as a document
442 STICKER_VIDEO_NOWEBM 400 The specified video sticker is not in webm format
443 STORAGE_CHECK_FAILED 500 Server storage check failed
444 STORE_INVALID_SCALAR_TYPE 500
445 SWITCH_PM_TEXT_EMPTY 400 The switch_pm.text field was empty
446 TAKEOUT_INIT_DELAY_X 420 A wait of {seconds} seconds is required before being able to initiate the takeout
447 TAKEOUT_INVALID 400 The takeout session has been invalidated by another data export session
448 TAKEOUT_REQUIRED 400 400 403 You must initialize a takeout request first
449 TEMP_AUTH_KEY_ALREADY_BOUND 400 The passed temporary key is already bound to another **perm_auth_key_id**
450 TEMP_AUTH_KEY_EMPTY 400 No temporary auth key provided
451 THEME_FILE_INVALID 400 Invalid theme file provided
452 THEME_FORMAT_INVALID 400 Invalid theme format provided
453 THEME_INVALID 400 Theme invalid
454 THEME_MIME_INVALID 400 You cannot create this theme, the mime-type is invalid
455 THEME_TITLE_INVALID 400 The specified theme title is invalid
456 TIMEOUT 500 A timeout occurred while fetching data from the worker
457 TITLE_INVALID 400 The specified stickerpack title is invalid
458 TMP_PASSWORD_DISABLED 400 The temporary password is disabled
459 TMP_PASSWORD_INVALID 400 Password auth needs to be regenerated
460 TOKEN_INVALID 400 The provided token is invalid
461 TOPIC_DELETED 400 The topic was deleted
462 TO_LANG_INVALID 400 The specified destination language is invalid
463 TTL_DAYS_INVALID 400 The provided TTL is invalid
464 TTL_MEDIA_INVALID 400 The provided media cannot be used with a TTL
465 TTL_PERIOD_INVALID 400 The provided TTL Period is invalid
466 TYPES_EMPTY 400 The types field is empty
467 TYPE_CONSTRUCTOR_INVALID 400 The type constructor is invalid
468 Timeout -503 Timeout while fetching data
469 UNKNOWN_ERROR 400
470 UNKNOWN_METHOD 500 The method you tried to call cannot be called on non-CDN DCs
471 UNTIL_DATE_INVALID 400 That date cannot be specified in this request (try using None)
472 UPDATE_APP_TO_LOGIN 406
473 URL_INVALID 400 The URL used was invalid (e.g. when answering a callback with a URL that's not t.me/yourbot or your game's URL)
474 USAGE_LIMIT_INVALID 400 The specified usage limit is invalid
475 USERNAME_INVALID 400 Nobody is using this username, or the username is unacceptable. If the latter, it must match r"[a-zA-Z][\w\d]{3,30}[a-zA-Z\d]"
476 USERNAME_NOT_MODIFIED 400 The username is not different from the current username
477 USERNAME_NOT_OCCUPIED 400 The username is not in use by anyone else yet
478 USERNAME_OCCUPIED 400 The username is already taken
479 USERNAME_PURCHASE_AVAILABLE 400
480 USERPIC_UPLOAD_REQUIRED USERPIC_PRIVACY_REQUIRED 400 406 You must have a profile picture before using this method You need to disable privacy settings for your profile picture in order to make your geolocation public
481 USERPIC_UPLOAD_REQUIRED 400 406 You must have a profile picture before using this method
482 USERS_TOO_FEW 400 Not enough users (to create a chat, for example)
483 USERS_TOO_MUCH 400 The maximum number of users has been exceeded (to create a chat, for example)
484 USER_ADMIN_INVALID 400 Either you're not an admin or you tried to ban an admin that you didn't promote
485 USER_ALREADY_INVITED 400 You have already invited this user
486 USER_ALREADY_PARTICIPANT 400 The authenticated user is already a participant of the chat
487 USER_BANNED_IN_CHANNEL 400 You're banned from sending messages in supergroups/channels
488 USER_BLOCKED 400 User blocked
489 USER_BOT 400 Bots can only be admins in channels.
490 USER_BOT_INVALID 400 403 This method can only be called by a bot
491 USER_BOT_REQUIRED 400 This method can only be called by a bot
492 USER_CHANNELS_TOO_MUCH 403 400 403 One of the users you tried to add is already in too many channels/supergroups
493 USER_CREATOR 400 You can't leave this channel, because you're its creator
494 USER_DEACTIVATED 401 The user has been deleted/deactivated
495 USER_DEACTIVATED_BAN 401 The user has been deleted/deactivated
496 USER_DELETED 403 You can't send this secret message because the other participant deleted their account
497 USER_ID_INVALID 400 Invalid object ID for a user. Make sure to pass the right types, for instance making sure that the request is designed for users or otherwise look for a different one more suited
498 USER_INVALID 400 400 403 The given user was invalid
499 USER_IS_BLOCKED 400 403 User is blocked
500 USER_IS_BOT 400 Bots can't send messages to other bots
501 USER_KICKED 400 This user was kicked from this supergroup/channel
503 USER_NOT_MUTUAL_CONTACT 400 403 The provided user is not a mutual contact
504 USER_NOT_PARTICIPANT 400 The target user is not a member of the specified megagroup or channel
505 USER_PRIVACY_RESTRICTED 403 The user's privacy settings do not allow you to do this
506 USER_RESTRICTED 403 403 406 You're spamreported, you can't create channels or chats.
507 USER_VOLUME_INVALID 400 The specified user volume is invalid
508 VIDEO_CONTENT_TYPE_INVALID 400 The video content type is not supported with the given parameters (i.e. supports_streaming)
509 VIDEO_FILE_INVALID 400 The given video cannot be used
510 VIDEO_TITLE_EMPTY 400 The specified video title is empty
511 VOICE_MESSAGES_FORBIDDEN 400 This user's privacy settings forbid you from sending voice messages
512 WALLPAPER_FILE_INVALID 400 The given file cannot be used as a wallpaper
513 WALLPAPER_INVALID 400 The input wallpaper was not valid
514 WALLPAPER_MIME_INVALID 400 The specified wallpaper MIME type is invalid
515 WC_CONVERT_URL_INVALID 400 WC convert URL invalid
516 WEBDOCUMENT_MIME_INVALID WEBDOCUMENT_INVALID 400 Invalid webdocument URL provided
517 WEBDOCUMENT_MIME_INVALID 400 Invalid webdocument mime type provided
518 WEBDOCUMENT_SIZE_TOO_BIG 400 Webdocument is too big!
519 WEBDOCUMENT_URL_INVALID 400 The given URL cannot be used
520 WEBPAGE_CURL_FAILED 400 Failure while fetching the webpage with cURL
521 WEBPAGE_MEDIA_EMPTY 400 Webpage media empty
522 WEBPUSH_AUTH_INVALID 400 The specified web push authentication secret is invalid
523 WEBPUSH_KEY_INVALID 400 The specified web push elliptic curve Diffie-Hellman public key is invalid
524 WEBPUSH_TOKEN_INVALID 400 The specified web push token is invalid
525 WORKER_BUSY_TOO_LONG_RETRY 500 Telegram workers are too busy to respond immediately
526 YOU_BLOCKED_USER 400 You blocked this user