mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-10-31 16:07:44 +03:00 
			
		
		
		
	
		
			
				
	
	
	
		
			29 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			29 KiB
		
	
	
	
	
	
	
	
| 1 | name | codes | description | 
|---|---|---|---|
| 2 | 2FA_CONFIRM_WAIT_0 | 420 | The account is 2FA protected so it will be deleted in a week. Otherwise it can be reset in {seconds} | 
| 3 | ABOUT_TOO_LONG | 400 | The provided bio is too long | 
| 4 | ACCESS_TOKEN_EXPIRED | 400 | Bot token expired | 
| 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_RANK_EMOJI_NOT_ALLOWED | 400 | Emoji are not allowed in admin titles or ranks | 
| 9 | ADMIN_RANK_INVALID | 400 | The given admin title or rank was invalid (possibly larger than 16 characters) | 
| 10 | ALBUM_PHOTOS_TOO_MANY | 400 | Too many photos were included in the album | 
| 11 | API_ID_INVALID | 400 | The api_id/api_hash combination is invalid | 
| 12 | API_ID_PUBLISHED_FLOOD | 400 | This API id was published somewhere, you can't use it now | 
| 13 | ARTICLE_TITLE_EMPTY | 400 | The title of the article is empty | 
| 14 | AUDIO_TITLE_EMPTY | 400 | The title attribute of the audio must be non-empty | 
| 15 | AUDIO_CONTENT_URL_EMPTY | 400 | |
| 16 | AUTH_BYTES_INVALID | 400 | The provided authorization is invalid | 
| 17 | 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 | 
| 18 | AUTH_KEY_INVALID | 401 | The key is invalid | 
| 19 | AUTH_KEY_PERM_EMPTY | 401 | The method is unavailable for temporary authorization key, not bound to permanent | 
| 20 | AUTH_KEY_UNREGISTERED | 401 | The key is not registered in the system | 
| 21 | AUTH_RESTART | 500 | Restart the authorization process | 
| 22 | AUTH_TOKEN_ALREADY_ACCEPTED | 400 | The authorization token was already used | 
| 23 | AUTH_TOKEN_EXPIRED | 400 | The provided authorization token has expired and the updated QR-code must be re-scanned | 
| 24 | AUTH_TOKEN_INVALID | 400 | An invalid authorization token was provided | 
| 25 | AUTOARCHIVE_NOT_AVAILABLE | 400 | You cannot use this feature yet | 
| 26 | BANK_CARD_NUMBER_INVALID | 400 | Incorrect credit card number | 
| 27 | BASE_PORT_LOC_INVALID | 400 | Base port location invalid | 
| 28 | BANNED_RIGHTS_INVALID | 400 | You cannot use that set of permissions in this request, i.e. restricting view_messages as a default | 
| 29 | BOTS_TOO_MUCH | 400 | There are too many bots in this chat/channel | 
| 30 | BOT_ONESIDE_NOT_AVAIL | 400 | |
| 31 | BOT_CHANNELS_NA | 400 | Bots can't edit admin privileges | 
| 32 | BOT_COMMAND_DESCRIPTION_INVALID | 400 | The command description was empty, too long or had invalid characters used | 
| 33 | BOT_COMMAND_INVALID | 400 | |
| 34 | BOT_DOMAIN_INVALID | 400 | The domain used for the auth button does not match the one configured in @BotFather | 
| 35 | BOT_GAMES_DISABLED | 400 | Bot games cannot be used in this type of chat | 
| 36 | BOT_GROUPS_BLOCKED | 400 | This bot can't be added to groups | 
| 37 | BOT_INLINE_DISABLED | 400 | This bot can't be used in inline mode | 
| 38 | BOT_INVALID | 400 | This is not a valid bot | 
| 39 | BOT_METHOD_INVALID | 400 | The API access for bot users is restricted. The method you tried to invoke cannot be executed as a bot | 
| 40 | BOT_MISSING | 400 | This method can only be run by a bot | 
| 41 | BOT_PAYMENTS_DISABLED | 400 | This method can only be run by a bot | 
| 42 | BOT_POLLS_DISABLED | 400 | You cannot create polls under a bot account | 
| 43 | BOT_RESPONSE_TIMEOUT | 400 | The bot did not answer to the callback query in time | 
| 44 | BOT_SCORE_NOT_MODIFIED | 400 | |
| 45 | BROADCAST_CALLS_DISABLED | 400 | |
| 46 | BROADCAST_FORBIDDEN | 403 | The request cannot be used in broadcast channels | 
| 47 | BROADCAST_ID_INVALID | 400 | The channel is invalid | 
| 48 | BROADCAST_PUBLIC_VOTERS_FORBIDDEN | 400 | You cannot broadcast polls where the voters are public | 
| 49 | BROADCAST_REQUIRED | 400 | The request can only be used with a broadcast channel | 
| 50 | BUTTON_DATA_INVALID | 400 | The provided button data is invalid | 
| 51 | BUTTON_TYPE_INVALID | 400 | The type of one of the buttons you provided is invalid | 
| 52 | BUTTON_URL_INVALID | 400 | Button URL invalid | 
| 53 | CALL_ALREADY_ACCEPTED | 400 | The call was already accepted | 
| 54 | CALL_ALREADY_DECLINED | 400 | The call was already declined | 
| 55 | CALL_OCCUPY_FAILED | 500 | The call failed because the user is already making another call | 
| 56 | CALL_PEER_INVALID | 400 | The provided call peer object is invalid | 
| 57 | CALL_PROTOCOL_FLAGS_INVALID | 400 | Call protocol flags invalid | 
| 58 | CDN_METHOD_INVALID | 400 | This method cannot be invoked on a CDN server. Refer to https://core.telegram.org/cdn#schema for available methods | 
| 59 | 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 | 
| 60 | CHANNELS_ADMIN_LOCATED_TOO_MUCH | 400 | |
| 61 | CHANNELS_TOO_MUCH | 400 | You have joined too many channels/supergroups | 
| 62 | CHANNEL_ADD_INVALID | 400 | |
| 63 | CHANNEL_BANNED | 400 | The channel is banned | 
| 64 | 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 | 
| 65 | 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 | 
| 66 | CHANNEL_PUBLIC_GROUP_NA | 403 | channel/supergroup not available | 
| 67 | CHANNEL_TOO_LARGE | 406 | |
| 68 | CHAT_ABOUT_NOT_MODIFIED | 400 | About text has not changed | 
| 69 | CHAT_ABOUT_TOO_LONG | 400 | Chat about too long | 
| 70 | CHAT_ADMIN_INVITE_REQUIRED | 403 | You do not have the rights to do this | 
| 71 | 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 | 
| 72 | CHAT_FORBIDDEN | 403 | You cannot write in this chat | 
| 73 | CHAT_FORWARDS_RESTRICTED | ||
| 74 | CHAT_ID_EMPTY | 400 | The provided chat ID is empty | 
| 75 | 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 | 
| 76 | CHAT_INVALID | 400 | The chat is invalid for this request | 
| 77 | CHAT_LINK_EXISTS | 400 | The chat is linked to a channel and cannot be used in that request | 
| 78 | CHAT_NOT_MODIFIED | 400 | The chat or channel wasn't modified (title, invites, username, admins, etc. are the same) | 
| 79 | CHAT_RESTRICTED | 400 | The chat is restricted and cannot be used in that request | 
| 80 | CHAT_SEND_GIFS_FORBIDDEN | 403 | You can't send gifs in this chat | 
| 81 | CHAT_SEND_INLINE_FORBIDDEN | 400 | You cannot send inline results in this chat | 
| 82 | CHAT_SEND_MEDIA_FORBIDDEN | 403 | You can't send media in this chat | 
| 83 | CHAT_SEND_STICKERS_FORBIDDEN | 403 | You can't send stickers in this chat | 
| 84 | CHAT_TITLE_EMPTY | 400 | No chat title provided | 
| 85 | CHAT_TOO_BIG | 400 | |
| 86 | CHAT_WRITE_FORBIDDEN | 403 | You can't write in this chat | 
| 87 | CHP_CALL_FAIL | 500 | The statistics cannot be retrieved at this time | 
| 88 | CODE_EMPTY | 400 | The provided code is empty | 
| 89 | CODE_HASH_INVALID | 400 | Code hash invalid | 
| 90 | CODE_INVALID | 400 | Code invalid (i.e. from email) | 
| 91 | CONNECTION_API_ID_INVALID | 400 | The provided API id is invalid | 
| 92 | CONNECTION_DEVICE_MODEL_EMPTY | 400 | Device model empty | 
| 93 | 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 | 
| 94 | CONNECTION_LAYER_INVALID | 400 | The very first request must always be InvokeWithLayerRequest | 
| 95 | CONNECTION_NOT_INITED | 400 | Connection not initialized | 
| 96 | CONNECTION_SYSTEM_EMPTY | 400 | Connection system empty | 
| 97 | CONNECTION_SYSTEM_LANG_CODE_EMPTY | 400 | The system language string was empty during connection | 
| 98 | CONTACT_ID_INVALID | 400 | The provided contact ID is invalid | 
| 99 | CONTACT_NAME_EMPTY | 400 | The provided contact name cannot be empty | 
| 100 | CURRENCY_TOTAL_AMOUNT_INVALID | 400 | |
| 101 | DATA_INVALID | 400 | Encrypted data invalid | 
| 102 | DATA_JSON_INVALID | 400 | The provided JSON data is invalid | 
| 103 | DATE_EMPTY | 400 | Date empty | 
| 104 | DC_ID_INVALID | 400 | This occurs when an authorization is tried to be exported for the same data center one is currently connected to | 
| 105 | DH_G_A_INVALID | 400 | g_a invalid | 
| 106 | DOCUMENT_INVALID | 400 | The document file was invalid and can't be used in inline mode | 
| 107 | EMAIL_HASH_EXPIRED | 400 | The email hash expired and cannot be used to verify it | 
| 108 | EMAIL_INVALID | 400 | The given email is invalid | 
| 109 | EMAIL_UNCONFIRMED_0 | 400 | Email unconfirmed, the length of the code must be {code_length} | 
| 110 | EMOJI_INVALID | 400 | |
| 111 | EMOJI_NOT_MODIFIED | 400 | |
| 112 | EMOTICON_EMPTY | 400 | The emoticon field cannot be empty | 
| 113 | EMOTICON_INVALID | 400 | The specified emoticon cannot be used or was not a emoticon | 
| 114 | EMOTICON_STICKERPACK_MISSING | 400 | The emoticon sticker pack you are trying to get is missing | 
| 115 | ENCRYPTED_MESSAGE_INVALID | 400 | Encrypted message invalid | 
| 116 | ENCRYPTION_ALREADY_ACCEPTED | 400 | Secret chat already accepted | 
| 117 | ENCRYPTION_ALREADY_DECLINED | 400 | The secret chat was already declined | 
| 118 | ENCRYPTION_DECLINED | 400 | The secret chat was declined | 
| 119 | ENCRYPTION_ID_INVALID | 400 | The provided secret chat ID is invalid | 
| 120 | ENCRYPTION_OCCUPY_FAILED | 500 | TDLib developer claimed it is not an error while accepting secret chats and 500 is used instead of 420 | 
| 121 | ENTITIES_TOO_LONG | 400 | It is no longer possible to send such long data inside entity tags (for example inline text URLs) | 
| 122 | ENTITY_MENTION_USER_INVALID | 400 | You can't use this entity | 
| 123 | ERROR_TEXT_EMPTY | 400 | The provided error message is empty | 
| 124 | EXPIRE_DATE_INVALID | 400 | |
| 125 | EXPIRE_FORBIDDEN | 400 | |
| 126 | EXPORT_CARD_INVALID | 400 | Provided card is invalid | 
| 127 | EXTERNAL_URL_INVALID | 400 | External URL invalid | 
| 128 | FIELD_NAME_EMPTY | 400 | The field with the name FIELD_NAME is missing | 
| 129 | FIELD_NAME_INVALID | 400 | The field with the name FIELD_NAME is invalid | 
| 130 | FILEREF_UPGRADE_NEEDED | 406 | The file reference needs to be refreshed before being used again | 
| 131 | FILE_CONTENT_TYPE_INVALID | 400 | |
| 132 | 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 ...) | 
| 133 | FILE_MIGRATE_0 | 303 | The file to be accessed is currently stored in DC {new_dc} | 
| 134 | FILE_PARTS_INVALID | 400 | The number of file parts is invalid | 
| 135 | FILE_PART_EMPTY | 400 | The provided file part is empty | 
| 136 | FILE_PART_INVALID | 400 | The file part number is invalid | 
| 137 | FILE_PART_LENGTH_INVALID | 400 | The length of a file part is invalid | 
| 138 | FILE_PART_SIZE_CHANGED | 400 | The file part size (chunk size) cannot change during upload | 
| 139 | FILE_PART_SIZE_INVALID | 400 | The provided file part size is invalid | 
| 140 | FILE_PART_0_MISSING | 400 | Part {which} of the file is missing from storage | 
| 141 | FILE_REFERENCE_EMPTY | 400 | The file reference must exist to access the media and it cannot be empty | 
| 142 | 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 | 
| 143 | FILE_REFERENCE_INVALID | 400 | The file reference is invalid or you can't do that operation on such message | 
| 144 | FILE_TITLE_EMPTY | 400 | |
| 145 | FIRSTNAME_INVALID | 400 | The first name is invalid | 
| 146 | FILTER_NOT_SUPPORTED | 400 | |
| 147 | FLOOD_TEST_PHONE_WAIT_0 | 420 | A wait of {seconds} seconds is required in the test servers | 
| 148 | FLOOD_WAIT_0 | 420 | A wait of {seconds} seconds is required | 
| 149 | FOLDER_ID_EMPTY | 400 | The folder you tried to delete was already empty | 
| 150 | FOLDER_ID_INVALID | 400 | The folder you tried to use was not valid | 
| 151 | FRESH_CHANGE_ADMINS_FORBIDDEN | 400 | Recently logged-in users cannot add or change admins | 
| 152 | FRESH_CHANGE_PHONE_FORBIDDEN | 406 | Recently logged-in users cannot use this request | 
| 153 | FRESH_RESET_AUTHORISATION_FORBIDDEN | 406 | The current session is too new and cannot be used to reset other authorisations yet | 
| 154 | FROM_PEER_INVALID | 400 | The given from_user peer cannot be used for the parameter | 
| 155 | GAME_BOT_INVALID | 400 | You cannot send that game with the current bot | 
| 156 | GIF_CONTENT_TYPE_INVALID | 400 | |
| 157 | GIF_ID_INVALID | 400 | The provided GIF ID is invalid | 
| 158 | GRAPH_INVALID_RELOAD | 400 | |
| 159 | GRAPH_OUTDATED_RELOAD | 400 | Data can't be used for the channel statistics, graphs outdated | 
| 160 | GROUPCALL_ADD_PARTICIPANTS_FAILED | 500 | |
| 161 | GROUPCALL_ALREADY_DISCARDED | 400 | |
| 162 | GROUPCALL_FORBIDDEN | 403 | |
| 163 | GROUPCALL_INVALID | 400 | |
| 164 | GROUPCALL_JOIN_MISSING | 400 | |
| 165 | GROUPCALL_SSRC_DUPLICATE_MUCH | 400 | |
| 166 | GROUPCALL_NOT_MODIFIED | 400 | |
| 167 | GROUPED_MEDIA_INVALID | 400 | Invalid grouped media | 
| 168 | GROUP_CALL_INVALID | 400 | Group call invalid | 
| 169 | HASH_INVALID | 400 | The provided hash is invalid | 
| 170 | HISTORY_GET_FAILED | 500 | Fetching of history failed | 
| 171 | IMAGE_PROCESS_FAILED | 400 | Failure while processing image | 
| 172 | IMPORT_FILE_INVALID | 400 | The file is too large to be imported | 
| 173 | IMPORT_FORMAT_UNRECOGNIZED | 400 | Unknown import format | 
| 174 | IMPORT_ID_INVALID | 400 | |
| 175 | INLINE_BOT_REQUIRED | 403 | The action must be performed through an inline bot callback | 
| 176 | INLINE_RESULT_EXPIRED | 400 | The inline query expired | 
| 177 | INPUT_CONSTRUCTOR_INVALID | 400 | The provided constructor is invalid | 
| 178 | INPUT_FETCH_ERROR | 400 | An error occurred while deserializing TL parameters | 
| 179 | INPUT_FETCH_FAIL | 400 | Failed deserializing TL payload | 
| 180 | INPUT_FILTER_INVALID | 400 | The search query filter is invalid | 
| 181 | INPUT_LAYER_INVALID | 400 | The provided layer is invalid | 
| 182 | INPUT_METHOD_INVALID | 400 | The invoked method does not exist anymore or has never existed | 
| 183 | 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) | 
| 184 | INPUT_USER_DEACTIVATED | 400 | The specified user was deleted | 
| 185 | INTERDC_0_CALL_ERROR | 500 | An error occurred while communicating with DC {dc} | 
| 186 | INTERDC_0_CALL_RICH_ERROR | 500 | A rich error occurred while communicating with DC {dc} | 
| 187 | INVITE_FORBIDDEN_WITH_JOINAS | 400 | |
| 188 | INVITE_HASH_EMPTY | 400 | The invite hash is empty | 
| 189 | INVITE_HASH_EXPIRED | 400 | The chat the user tried to join has expired and is not valid anymore | 
| 190 | INVITE_HASH_INVALID | 400 | The invite hash is invalid | 
| 191 | LANG_CODE_INVALID | 400 | |
| 192 | LANG_PACK_INVALID | 400 | The provided language pack is invalid | 
| 193 | LASTNAME_INVALID | 400 | The last name is invalid | 
| 194 | LIMIT_INVALID | 400 | An invalid limit was provided. See https://core.telegram.org/api/files#downloading-files | 
| 195 | LINK_NOT_MODIFIED | 400 | The channel is already linked to this group | 
| 196 | LOCATION_INVALID | 400 | The location given for a file was invalid. See https://core.telegram.org/api/files#downloading-files | 
| 197 | MAX_ID_INVALID | 400 | The provided max ID is invalid | 
| 198 | MAX_QTS_INVALID | 400 | The provided QTS were invalid | 
| 199 | MD5_CHECKSUM_INVALID | 400 | The MD5 check-sums do not match | 
| 200 | MEDIA_CAPTION_TOO_LONG | 400 | The caption is too long | 
| 201 | 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) | 
| 202 | MEDIA_GROUPED_INVALID | 400 | |
| 203 | MEDIA_INVALID | 400 | Media invalid | 
| 204 | MEDIA_NEW_INVALID | 400 | The new media to edit the message with is invalid (such as stickers or voice notes) | 
| 205 | MEDIA_PREV_INVALID | 400 | The old media cannot be edited with anything else (such as stickers or voice notes) | 
| 206 | MEDIA_TTL_INVALID | 400 | |
| 207 | MEGAGROUP_ID_INVALID | 400 | The group is invalid | 
| 208 | MEGAGROUP_PREHISTORY_HIDDEN | 400 | You can't set this discussion group because it's history is hidden | 
| 209 | MEGAGROUP_REQUIRED | 400 | The request can only be used with a megagroup channel | 
| 210 | MEMBER_NO_LOCATION | 500 | An internal failure occurred while fetching user info (couldn't find location) | 
| 211 | MEMBER_OCCUPY_PRIMARY_LOC_FAILED | 500 | Occupation of primary member location failed | 
| 212 | MESSAGE_AUTHOR_REQUIRED | 403 | Message author required | 
| 213 | MESSAGE_DELETE_FORBIDDEN | 403 | You can't delete one of the messages you tried to delete, most likely because it is a service message. | 
| 214 | MESSAGE_EDIT_TIME_EXPIRED | 400 | You can't edit this message anymore, too much time has passed since its creation. | 
| 215 | MESSAGE_EMPTY | 400 | Empty or invalid UTF-8 message was sent | 
| 216 | MESSAGE_IDS_EMPTY | 400 | No message ids were provided | 
| 217 | MESSAGE_ID_INVALID | 400 | The specified message ID is invalid or you can't do that operation on such message | 
| 218 | MESSAGE_NOT_MODIFIED | 400 | Content of the message was not modified | 
| 219 | MESSAGE_POLL_CLOSED | 400 | The poll was closed and can no longer be voted on | 
| 220 | MESSAGE_TOO_LONG | 400 | Message was too long. Current maximum length is 4096 UTF-8 characters | 
| 221 | METHOD_INVALID | 400 | The API method is invalid and cannot be used | 
| 222 | MSGID_DECREASE_RETRY | 500 | The request should be retried with a lower message ID | 
| 223 | MSG_ID_INVALID | 400 | The message ID used in the peer was invalid | 
| 224 | MSG_WAIT_FAILED | 400 | A waiting call returned an error | 
| 225 | MT_SEND_QUEUE_TOO_LONG | 500 | |
| 226 | MULTI_MEDIA_TOO_LONG | 400 | Too many media files were included in the same album | 
| 227 | NEED_CHAT_INVALID | 500 | The provided chat is invalid | 
| 228 | NEED_MEMBER_INVALID | 500 | The provided member is invalid or does not exist (for example a thumb size) | 
| 229 | NETWORK_MIGRATE_0 | 303 | The source IP address is associated with DC {new_dc} | 
| 230 | NEW_SALT_INVALID | 400 | The new salt is invalid | 
| 231 | NEW_SETTINGS_INVALID | 400 | The new settings are invalid | 
| 232 | NEXT_OFFSET_INVALID | 400 | The value for next_offset is invalid. Check that it has normal characters and is not too long | 
| 233 | OFFSET_INVALID | 400 | The given offset was invalid, it must be divisible by 1KB. See https://core.telegram.org/api/files#downloading-files | 
| 234 | OFFSET_PEER_ID_INVALID | 400 | The provided offset peer is invalid | 
| 235 | OPTIONS_TOO_MUCH | 400 | You defined too many options for the poll | 
| 236 | OPTION_INVALID | 400 | The option specified is invalid and does not exist in the target poll | 
| 237 | 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>". | 
| 238 | PACK_SHORT_NAME_OCCUPIED | 400 | A stickerpack with this name already exists | 
| 239 | PARTICIPANTS_TOO_FEW | 400 | Not enough participants | 
| 240 | PARTICIPANT_CALL_FAILED | 500 | Failure while making call | 
| 241 | PARTICIPANT_JOIN_MISSING | 403 | |
| 242 | PARTICIPANT_ID_INVALID | ||
| 243 | PARTICIPANT_VERSION_OUTDATED | 400 | The other participant does not use an up to date telegram client with support for calls | 
| 244 | PASSWORD_EMPTY | 400 | The provided password is empty | 
| 245 | PASSWORD_HASH_INVALID | 400 | The password (and thus its hash value) you entered is invalid | 
| 246 | PASSWORD_MISSING | 400 | The account must have 2-factor authentication enabled (a password) before this method can be used | 
| 247 | PASSWORD_RECOVERY_EXPIRED | 400 | |
| 248 | PASSWORD_RECOVERY_NA | 400 | |
| 249 | PASSWORD_REQUIRED | 400 | The account must have 2-factor authentication enabled (a password) before this method can be used | 
| 250 | PASSWORD_TOO_FRESH_0 | 400 | The password was added too recently and {seconds} seconds must pass before using the method | 
| 251 | PAYMENT_PROVIDER_INVALID | 400 | The payment provider was not recognised or its token was invalid | 
| 252 | PEER_FLOOD | 400 | Too many requests | 
| 253 | PEER_ID_INVALID | 400 | An invalid Peer was used. Make sure to pass the right peer type and that the value is valid (for instance, bots cannot start conversations) | 
| 254 | PEER_ID_NOT_SUPPORTED | 400 | The provided peer ID is not supported | 
| 255 | PERSISTENT_TIMESTAMP_EMPTY | 400 | Persistent timestamp empty | 
| 256 | PERSISTENT_TIMESTAMP_INVALID | 400 | Persistent timestamp invalid | 
| 257 | PERSISTENT_TIMESTAMP_OUTDATED | 500 | Persistent timestamp outdated | 
| 258 | PHONE_CODE_EMPTY | 400 | The phone code is missing | 
| 259 | PHONE_CODE_EXPIRED | 400 | The confirmation code has expired | 
| 260 | PHONE_CODE_HASH_EMPTY | 400 | The phone code hash is missing | 
| 261 | PHONE_CODE_INVALID | 400 | The phone code entered was invalid | 
| 262 | PHONE_MIGRATE_0 | 303 | The phone number a user is trying to use for authorization is associated with DC {new_dc} | 
| 263 | PHONE_NOT_OCCUPIED | 400 | |
| 264 | PHONE_NUMBER_APP_SIGNUP_FORBIDDEN | 400 | You can't sign up using this app | 
| 265 | 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 | 
| 266 | PHONE_NUMBER_FLOOD | 400 | You asked for the code too many times. | 
| 267 | PHONE_NUMBER_INVALID | 400 406 | The phone number is invalid | 
| 268 | PHONE_NUMBER_OCCUPIED | 400 | The phone number is already in use | 
| 269 | PHONE_NUMBER_UNOCCUPIED | 400 | The phone number is not yet being used | 
| 270 | PHONE_PASSWORD_FLOOD | 406 | You have tried logging in too many times | 
| 271 | PHONE_PASSWORD_PROTECTED | 400 | This phone is password protected | 
| 272 | PHOTO_CONTENT_TYPE_INVALID | 400 | |
| 273 | PHOTO_CONTENT_URL_EMPTY | 400 | The content from the URL used as a photo appears to be empty or has caused another HTTP error | 
| 274 | PHOTO_CROP_SIZE_SMALL | 400 | Photo is too small | 
| 275 | PHOTO_EXT_INVALID | 400 | The extension of the photo is invalid | 
| 276 | PHOTO_FILE_MISSING | 400 | |
| 277 | PHOTO_ID_INVALID | 400 | Photo id is invalid | 
| 278 | PHOTO_INVALID | 400 | Photo invalid | 
| 279 | PHOTO_INVALID_DIMENSIONS | 400 | The photo dimensions are invalid (hint: `pip install pillow` for `send_file` to resize images) | 
| 280 | 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 | 
| 281 | PHOTO_THUMB_URL_EMPTY | 400 | The URL used as a thumbnail appears to be empty or has caused another HTTP error | 
| 282 | PIN_RESTRICTED | 400 | You can't pin messages in private chats with other people | 
| 283 | PINNED_DIALOGS_TOO_MUCH | 400 | |
| 284 | POLL_ANSWER_INVALID | 400 | |
| 285 | POLL_ANSWERS_INVALID | 400 | The poll did not have enough answers or had too many | 
| 286 | POLL_OPTION_DUPLICATE | 400 | A duplicate option was sent in the same poll | 
| 287 | POLL_OPTION_INVALID | 400 | A poll option used invalid data (the data may be too long) | 
| 288 | POLL_QUESTION_INVALID | 400 | The poll question was either empty or too long | 
| 289 | POLL_UNSUPPORTED | 400 | This layer does not support polls in the issued method | 
| 290 | POLL_VOTE_REQUIRED | 403 | |
| 291 | PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_0MIN | 406 | Similar to a flood wait, must wait {minutes} minutes | 
| 292 | PRIVACY_KEY_INVALID | 400 | The privacy key is invalid | 
| 293 | PRIVACY_TOO_LONG | 400 | Cannot add that many entities in a single request | 
| 294 | PRIVACY_VALUE_INVALID | 400 | The privacy value is invalid | 
| 295 | PTS_CHANGE_EMPTY | 500 | No PTS change | 
| 296 | PUBLIC_KEY_REQUIRED | 400 | |
| 297 | QUERY_ID_EMPTY | 400 | The query ID is empty | 
| 298 | QUERY_ID_INVALID | 400 | The query ID is invalid | 
| 299 | QUERY_TOO_SHORT | 400 | The query string is too short | 
| 300 | QUIZ_ANSWER_MISSING | 400 | |
| 301 | QUIZ_CORRECT_ANSWERS_EMPTY | 400 | A quiz must specify one correct answer | 
| 302 | QUIZ_CORRECT_ANSWERS_TOO_MUCH | 400 | There can only be one correct answer | 
| 303 | QUIZ_CORRECT_ANSWER_INVALID | 400 | The correct answer is not an existing answer | 
| 304 | QUIZ_MULTIPLE_INVALID | 400 | A poll cannot be both multiple choice and quiz | 
| 305 | RANDOM_ID_DUPLICATE | 500 | You provided a random ID that was already used | 
| 306 | RANDOM_ID_INVALID | 400 | A provided random ID is invalid | 
| 307 | RANDOM_LENGTH_INVALID | 400 | Random length invalid | 
| 308 | RANGES_INVALID | 400 | Invalid range provided | 
| 309 | REACTION_EMPTY | 400 | No reaction provided | 
| 310 | REACTION_INVALID | 400 | Invalid reaction provided (only emoji are allowed) or you cannot use the reaction in the specified chat | 
| 311 | REFLECTOR_NOT_AVAILABLE | 400 | Invalid call reflector server | 
| 312 | REG_ID_GENERATE_FAILED | 500 | Failure while generating registration ID | 
| 313 | REPLY_MARKUP_GAME_EMPTY | 400 | The provided reply markup for the game is empty | 
| 314 | REPLY_MARKUP_INVALID | 400 | The provided reply markup is invalid | 
| 315 | REPLY_MARKUP_TOO_LONG | 400 | The data embedded in the reply markup buttons was too much | 
| 316 | RESET_REQUEST_MISSING | 400 | |
| 317 | RESULTS_TOO_MUCH | 400 | You sent too many results, see https://core.telegram.org/bots/api#answerinlinequery for the current limit | 
| 318 | RESULT_ID_DUPLICATE | 400 | Duplicated IDs on the sent results. Make sure to use unique IDs | 
| 319 | RESULT_ID_INVALID | 400 | The given result cannot be used to send the selection to the bot | 
| 320 | RESULT_TYPE_INVALID | 400 | Result type invalid | 
| 321 | REVOTE_NOT_ALLOWED | 400 | |
| 322 | 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) | 
| 323 | RPC_CALL_FAIL | 500 | Telegram is having internal issues, please try again later. | 
| 324 | RPC_MCGET_FAIL | 500 | Telegram is having internal issues, please try again later. | 
| 325 | RSA_DECRYPT_FAILED | 400 | Internal RSA decryption failed | 
| 326 | SCHEDULE_BOT_NOT_ALLOWED | 400 | Bots are not allowed to schedule messages | 
| 327 | SCHEDULE_DATE_INVALID | 400 | |
| 328 | 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) | 
| 329 | SCHEDULE_STATUS_PRIVATE | 400 | You cannot schedule a message until the person comes online if their privacy does not show this information | 
| 330 | SCHEDULE_TOO_MUCH | 400 | You cannot schedule more messages in this chat (last known limit of 100 per chat) | 
| 331 | SCORE_INVALID | 400 | |
| 332 | SEARCH_QUERY_EMPTY | 400 | The search query is empty | 
| 333 | SECONDS_INVALID | 400 | Slow mode only supports certain values (e.g. 0, 10s, 30s, 1m, 5m, 15m and 1h) | 
| 334 | SEND_AS_PEER_INVALID | ||
| 335 | SEND_CODE_UNAVAILABLE | 406 | |
| 336 | SEND_MESSAGE_MEDIA_INVALID | 400 | The message media was invalid or not specified | 
| 337 | SEND_MESSAGE_TYPE_INVALID | 400 | The message type is invalid | 
| 338 | SENSITIVE_CHANGE_FORBIDDEN | 403 | Your sensitive content settings cannot be changed at this time | 
| 339 | SESSION_EXPIRED | 401 | The authorization has expired | 
| 340 | SESSION_PASSWORD_NEEDED | 401 | Two-steps verification is enabled and a password is required | 
| 341 | SESSION_REVOKED | 401 | The authorization has been invalidated, because of the user terminating all sessions | 
| 342 | SESSION_TOO_FRESH_0 | 400 | The session logged in too recently and {seconds} seconds must pass before calling the method | 
| 343 | SHA256_HASH_INVALID | 400 | The provided SHA256 hash is invalid | 
| 344 | SHORTNAME_OCCUPY_FAILED | 400 | An error occurred when trying to register the short-name used for the sticker pack. Try a different name | 
| 345 | SHORT_NAME_INVALID | 400 | |
| 346 | SHORT_NAME_OCCUPIED | 400 | |
| 347 | SLOWMODE_MULTI_MSGS_DISABLED | 400 | |
| 348 | SLOWMODE_WAIT_0 | 420 | A wait of {seconds} seconds is required before sending another message in this chat | 
| 349 | SRP_ID_INVALID | 400 | |
| 350 | START_PARAM_EMPTY | 400 | The start parameter is empty | 
| 351 | START_PARAM_INVALID | 400 | Start parameter invalid | 
| 352 | STATS_MIGRATE_0 | 303 | The channel statistics must be fetched from DC {dc} | 
| 353 | STICKERPACK_STICKERS_TOO_MUCH | 400 | |
| 354 | STICKERSET_INVALID | 400 | The provided sticker set is invalid | 
| 355 | 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 | 
| 356 | STICKERS_EMPTY | 400 | No sticker provided | 
| 357 | STICKERS_TOO_MUCH | 400 | |
| 358 | 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) | 
| 359 | STICKER_EMOJI_INVALID | 400 | Sticker emoji invalid | 
| 360 | STICKER_FILE_INVALID | 400 | Sticker file invalid | 
| 361 | STICKER_GIF_DIMENSIONS | 400 | |
| 362 | STICKER_ID_INVALID | 400 | The provided sticker ID is invalid | 
| 363 | STICKER_INVALID | 400 | The provided sticker is invalid | 
| 364 | STICKER_PNG_DIMENSIONS | 400 | Sticker png dimensions invalid | 
| 365 | STICKER_PNG_NOPNG | 400 | Stickers must be a png file but the used image was not a png | 
| 366 | STICKER_TGS_NODOC | 400 | |
| 367 | STICKER_TGS_NOTGS | 400 | Stickers must be a tgs file but the used file was not a tgs | 
| 368 | STICKER_THUMB_PNG_NOPNG | 400 | Stickerset thumb must be a png file but the used file was not png | 
| 369 | STICKER_THUMB_TGS_NOTGS | 400 | Stickerset thumb must be a tgs file but the used file was not tgs | 
| 370 | STICKER_VIDEO_NOWEBM | 400 | |
| 371 | STICKER_VIDEO_BIG | 400 | |
| 372 | STORAGE_CHECK_FAILED | 500 | Server storage check failed | 
| 373 | STORE_INVALID_SCALAR_TYPE | 500 | |
| 374 | TAKEOUT_INIT_DELAY_0 | 420 | A wait of {seconds} seconds is required before being able to initiate the takeout | 
| 375 | TAKEOUT_INVALID | 400 | The takeout session has been invalidated by another data export session | 
| 376 | TAKEOUT_REQUIRED | 400 | You must initialize a takeout request first | 
| 377 | TEMP_AUTH_KEY_EMPTY | 400 | No temporary auth key provided | 
| 378 | TIMEOUT | 500 | A timeout occurred while fetching data from the worker | 
| 379 | TITLE_INVALID | 400 | |
| 380 | THEME_INVALID | 400 | Theme invalid | 
| 381 | THEME_MIME_INVALID | 400 | You cannot create this theme, the mime-type is invalid | 
| 382 | TMP_PASSWORD_DISABLED | 400 | The temporary password is disabled | 
| 383 | TMP_PASSWORD_INVALID | 400 | Password auth needs to be regenerated | 
| 384 | TOKEN_INVALID | 400 | The provided token is invalid | 
| 385 | TTL_DAYS_INVALID | 400 | The provided TTL is invalid | 
| 386 | TTL_MEDIA_INVALID | 400 | The provided media cannot be used with a TTL | 
| 387 | TTL_PERIOD_INVALID | 400 | The provided TTL Period is invalid | 
| 388 | TYPES_EMPTY | 400 | The types field is empty | 
| 389 | TYPE_CONSTRUCTOR_INVALID | 400 | The type constructor is invalid | 
| 390 | UNKNOWN_ERROR | 400 | |
| 391 | UNKNOWN_METHOD | 500 | The method you tried to call cannot be called on non-CDN DCs | 
| 392 | UNTIL_DATE_INVALID | 400 | That date cannot be specified in this request (try using None) | 
| 393 | UPDATE_APP_TO_LOGIN | 406 | |
| 394 | 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) | 
| 395 | USAGE_LIMIT_INVALID | 400 | |
| 396 | USER_VOLUME_INVALID | 400 | |
| 397 | 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]" | 
| 398 | USERNAME_NOT_MODIFIED | 400 | The username is not different from the current username | 
| 399 | USERNAME_NOT_OCCUPIED | 400 | The username is not in use by anyone else yet | 
| 400 | USERNAME_OCCUPIED | 400 | The username is already taken | 
| 401 | USERS_TOO_FEW | 400 | Not enough users (to create a chat, for example) | 
| 402 | USERS_TOO_MUCH | 400 | The maximum number of users has been exceeded (to create a chat, for example) | 
| 403 | USER_ADMIN_INVALID | 400 | Either you're not an admin or you tried to ban an admin that you didn't promote | 
| 404 | USER_ALREADY_INVITED | 400 | |
| 405 | USER_ALREADY_PARTICIPANT | 400 | The authenticated user is already a participant of the chat | 
| 406 | USER_BANNED_IN_CHANNEL | 400 | You're banned from sending messages in supergroups/channels | 
| 407 | USER_BLOCKED | 400 | User blocked | 
| 408 | USER_BOT | 400 | Bots can only be admins in channels. | 
| 409 | USER_BOT_INVALID | 400 403 | This method can only be called by a bot | 
| 410 | USER_BOT_REQUIRED | 400 | This method can only be called by a bot | 
| 411 | USER_CHANNELS_TOO_MUCH | 403 | One of the users you tried to add is already in too many channels/supergroups | 
| 412 | USER_CREATOR | 400 | You can't leave this channel, because you're its creator | 
| 413 | USER_DEACTIVATED | 401 | The user has been deleted/deactivated | 
| 414 | USER_DEACTIVATED_BAN | 401 | The user has been deleted/deactivated | 
| 415 | 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 | 
| 416 | USER_INVALID | 400 | The given user was invalid | 
| 417 | USER_IS_BLOCKED | 400 403 | User is blocked | 
| 418 | USER_IS_BOT | 400 | Bots can't send messages to other bots | 
| 419 | USER_KICKED | 400 | This user was kicked from this supergroup/channel | 
| 420 | USER_MIGRATE_0 | 303 | The user whose identity is being used to execute queries is associated with DC {new_dc} | 
| 421 | USER_NOT_MUTUAL_CONTACT | 400 403 | The provided user is not a mutual contact | 
| 422 | USER_NOT_PARTICIPANT | 400 | The target user is not a member of the specified megagroup or channel | 
| 423 | USER_PRIVACY_RESTRICTED | 403 | The user's privacy settings do not allow you to do this | 
| 424 | USER_RESTRICTED | 403 | You're spamreported, you can't create channels or chats. | 
| 425 | USERPIC_UPLOAD_REQUIRED | 400 | You must have a profile picture before using this method | 
| 426 | VIDEO_CONTENT_TYPE_INVALID | 400 | The video content type is not supported with the given parameters (i.e. supports_streaming) | 
| 427 | VIDEO_FILE_INVALID | 400 | The given video cannot be used | 
| 428 | VIDEO_TITLE_EMPTY | 400 | |
| 429 | WALLPAPER_FILE_INVALID | 400 | The given file cannot be used as a wallpaper | 
| 430 | WALLPAPER_INVALID | 400 | The input wallpaper was not valid | 
| 431 | WALLPAPER_MIME_INVALID | 400 | |
| 432 | WC_CONVERT_URL_INVALID | 400 | WC convert URL invalid | 
| 433 | WEBDOCUMENT_MIME_INVALID | 400 | |
| 434 | WEBDOCUMENT_URL_INVALID | 400 | The given URL cannot be used | 
| 435 | WEBPAGE_CURL_FAILED | 400 | Failure while fetching the webpage with cURL | 
| 436 | WEBPAGE_MEDIA_EMPTY | 400 | Webpage media empty | 
| 437 | WORKER_BUSY_TOO_LONG_RETRY | 500 | Telegram workers are too busy to respond immediately | 
| 438 | YOU_BLOCKED_USER | 400 | You blocked this user |