Telethon/telethon_generator/data/errors.csv

38 KiB

1namecodesdescription
22FA_CONFIRM_WAIT_X420The account is 2FA protected so it will be deleted in a week. Otherwise it can be reset in {seconds}
3ABOUT_TOO_LONG400The provided bio is too long
4ACCESS_TOKEN_EXPIRED400Bot token expired
5ACCESS_TOKEN_INVALID400The provided token is not valid
6ACTIVE_USER_REQUIRED401The method is only available to already activated users
7ADMINS_TOO_MUCH400Too many admins
8ADMIN_ID_INVALID400The specified admin ID is invalid
9ADMIN_RANK_EMOJI_NOT_ALLOWED400Emoji are not allowed in admin titles or ranks
10ADMIN_RANK_INVALID400The given admin title or rank was invalid (possibly larger than 16 characters)
11ALBUM_PHOTOS_TOO_MANY400Too many photos were included in the album
12API_ID_INVALID400The api_id/api_hash combination is invalid
13API_ID_PUBLISHED_FLOOD400This API id was published somewhere, you can't use it now
14ARTICLE_TITLE_EMPTY400The title of the article is empty
15AUDIO_CONTENT_URL_EMPTY400The remote URL specified in the content field is empty
16AUDIO_TITLE_EMPTY400The title attribute of the audio must be non-empty
17AUTH_BYTES_INVALID400The provided authorization is invalid
18AUTH_KEY_DUPLICATED406The 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
19AUTH_KEY_INVALID401The key is invalid
20AUTH_KEY_PERM_EMPTY401The method is unavailable for temporary authorization key, not bound to permanent
21AUTH_KEY_UNREGISTERED401The key is not registered in the system
22AUTH_RESTART500Restart the authorization process
23AUTH_TOKEN_ALREADY_ACCEPTED400The authorization token was already used
24AUTH_TOKEN_EXCEPTION400An error occurred while importing the auth token
25AUTH_TOKEN_EXPIRED400The provided authorization token has expired and the updated QR-code must be re-scanned
26AUTH_TOKEN_INVALID400An invalid authorization token was provided
27AUTH_TOKEN_INVALID2400An invalid authorization token was provided
28AUTH_TOKEN_INVALIDX400The specified auth token is invalid
29AUTOARCHIVE_NOT_AVAILABLE400You cannot use this feature yet
30BANK_CARD_NUMBER_INVALID400Incorrect credit card number
31BANNED_RIGHTS_INVALID400You cannot use that set of permissions in this request, i.e. restricting view_messages as a default
32BASE_PORT_LOC_INVALID400Base port location invalid
33BOTS_TOO_MUCH400There are too many bots in this chat/channel
34BOT_CHANNELS_NA400Bots can't edit admin privileges
35BOT_COMMAND_DESCRIPTION_INVALID400The command description was empty, too long or had invalid characters used
36BOT_COMMAND_INVALID400The specified command is invalid
37BOT_DOMAIN_INVALID400The domain used for the auth button does not match the one configured in @BotFather
38BOT_GAMES_DISABLED400Bot games cannot be used in this type of chat
39BOT_GROUPS_BLOCKED400This bot can't be added to groups
40BOT_INLINE_DISABLED400This bot can't be used in inline mode
41BOT_INVALID400This is not a valid bot
42BOT_METHOD_INVALID400The API access for bot users is restricted. The method you tried to invoke cannot be executed as a bot
43BOT_MISSING400This method can only be run by a bot
44BOT_ONESIDE_NOT_AVAIL400Bots can't pin messages in PM just for themselves
45BOT_PAYMENTS_DISABLED400This method can only be run by a bot
46BOT_POLLS_DISABLED400You cannot create polls under a bot account
47BOT_RESPONSE_TIMEOUT400The bot did not answer to the callback query in time
48BOT_SCORE_NOT_MODIFIED400The score wasn't modified
49BROADCAST_CALLS_DISABLED400
50BROADCAST_FORBIDDEN403The request cannot be used in broadcast channels
51BROADCAST_ID_INVALID400The channel is invalid
52BROADCAST_PUBLIC_VOTERS_FORBIDDEN400You cannot broadcast polls where the voters are public
53BROADCAST_REQUIRED400The request can only be used with a broadcast channel
54BUTTON_DATA_INVALID400The provided button data is invalid
55BUTTON_TEXT_INVALID400The specified button text is invalid
56BUTTON_TYPE_INVALID400The type of one of the buttons you provided is invalid
57BUTTON_URL_INVALID400Button URL invalid
58BUTTON_USER_PRIVACY_RESTRICTED400The privacy setting of the user specified in a [inputKeyboardButtonUserProfile](/constructor/inputKeyboardButtonUserProfile) button do not allow creating such a button
59CALL_ALREADY_ACCEPTED400The call was already accepted
60CALL_ALREADY_DECLINED400The call was already declined
61CALL_OCCUPY_FAILED500The call failed because the user is already making another call
62CALL_PEER_INVALID400The provided call peer object is invalid
63CALL_PROTOCOL_FLAGS_INVALID400Call protocol flags invalid
64CDN_METHOD_INVALID400This method cannot be invoked on a CDN server. Refer to https://core.telegram.org/cdn#schema for available methods
65CDN_UPLOAD_TIMEOUT500A server-side timeout occurred while reuploading the file to the CDN DC
66CHANNELS_ADMIN_LOCATED_TOO_MUCH400The user has reached the limit of public geogroups
67CHANNELS_ADMIN_PUBLIC_TOO_MUCH400You're admin of too many public channels, make some channels private to change the username of this channel
68CHANNELS_TOO_MUCH400You have joined too many channels/supergroups
69CHANNEL_BANNED400The channel is banned
70CHANNEL_ID_INVALID400The specified supergroup ID is invalid
71CHANNEL_INVALID400Invalid 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
72CHANNEL_PARICIPANT_MISSING400The current user is not in the channel
73CHANNEL_PRIVATE400 406The channel specified is private and you lack permission to access it. Another reason may be that you were banned from it
74CHANNEL_PUBLIC_GROUP_NA403channel/supergroup not available
75CHANNEL_TOO_BIG400
76CHANNEL_TOO_LARGE400 406Channel is too large to be deleted; this error is issued when trying to delete channels with more than 1000 members (subject to change)
77CHAT_ABOUT_NOT_MODIFIED400About text has not changed
78CHAT_ABOUT_TOO_LONG400Chat about too long
79CHAT_ADMIN_INVITE_REQUIRED403You do not have the rights to do this
80CHAT_ADMIN_REQUIRED400 403Chat 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
81CHAT_DISCUSSION_UNALLOWED400
82CHAT_FORBIDDEN403You cannot write in this chat
83CHAT_FORWARDS_RESTRICTED400 406You can't forward messages from a protected chat
84CHAT_GUEST_SEND_FORBIDDEN403You join the discussion group before commenting, see [here](/api/discussion#requiring-users-to-join-the-group) for more info
85CHAT_ID_EMPTY400The provided chat ID is empty
86CHAT_ID_GENERATE_FAILED500Failure while generating the chat ID
87CHAT_ID_INVALID400Invalid 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
88CHAT_INVALID400The chat is invalid for this request
89CHAT_INVITE_PERMANENT400You can't set an expiration date on permanent invite links
90CHAT_LINK_EXISTS400The chat is linked to a channel and cannot be used in that request
91CHAT_NOT_MODIFIED400The chat or channel wasn't modified (title, invites, username, admins, etc. are the same)
92CHAT_RESTRICTED400The chat is restricted and cannot be used in that request
93CHAT_REVOKE_DATE_UNSUPPORTED400`min_date` and `max_date` are not available for using with non-user peers
94CHAT_SEND_GAME_FORBIDDEN403You can't send a game to this chat
95CHAT_SEND_GIFS_FORBIDDEN403You can't send gifs in this chat
96CHAT_SEND_INLINE_FORBIDDEN400 403You cannot send inline results in this chat
97CHAT_SEND_MEDIA_FORBIDDEN403You can't send media in this chat
98CHAT_SEND_POLL_FORBIDDEN403You can't send polls in this chat
99CHAT_SEND_STICKERS_FORBIDDEN403You can't send stickers in this chat
100CHAT_TITLE_EMPTY400No chat title provided
101CHAT_TOO_BIG400This 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)
102CHAT_WRITE_FORBIDDEN403You can't write in this chat
103CHP_CALL_FAIL500The statistics cannot be retrieved at this time
104CODE_EMPTY400The provided code is empty
105CODE_HASH_INVALID400Code hash invalid
106CODE_INVALID400Code invalid (i.e. from email)
107CONNECTION_API_ID_INVALID400The provided API id is invalid
108CONNECTION_APP_VERSION_EMPTY400App version is empty
109CONNECTION_DEVICE_MODEL_EMPTY400Device model empty
110CONNECTION_LANG_PACK_INVALID400The specified language pack is not valid. This is meant to be used by official applications only so far, leave it empty
111CONNECTION_LAYER_INVALID400The very first request must always be InvokeWithLayerRequest
112CONNECTION_NOT_INITED400Connection not initialized
113CONNECTION_SYSTEM_EMPTY400Connection system empty
114CONNECTION_SYSTEM_LANG_CODE_EMPTY400The system language string was empty during connection
115CONTACT_ADD_MISSING400Contact to add is missing
116CONTACT_ID_INVALID400The provided contact ID is invalid
117CONTACT_NAME_EMPTY400The provided contact name cannot be empty
118CONTACT_REQ_MISSING400Missing contact request
119CREATE_CALL_FAILED400An error occurred while creating the call
120CURRENCY_TOTAL_AMOUNT_INVALID400The total amount of all prices is invalid
121DATA_INVALID400Encrypted data invalid
122DATA_JSON_INVALID400The provided JSON data is invalid
123DATA_TOO_LONG400Data too long
124DATE_EMPTY400Date empty
125DC_ID_INVALID400This occurs when an authorization is tried to be exported for the same data center one is currently connected to
126DH_G_A_INVALID400g_a invalid
127DOCUMENT_INVALID400The document file was invalid and can't be used in inline mode
128EDIT_BOT_INVITE_FORBIDDEN403Normal users can't edit invites that were created by bots
129EMAIL_HASH_EXPIRED400The email hash expired and cannot be used to verify it
130EMAIL_INVALID400The given email is invalid
131EMAIL_UNCONFIRMED400Email unconfirmed
132EMAIL_UNCONFIRMED_X400Email unconfirmed, the length of the code must be {code_length}
133EMAIL_VERIFY_EXPIRED400The verification email has expired
134EMOJI_INVALID400The specified theme emoji is valid
135EMOJI_NOT_MODIFIED400The theme wasn't changed
136EMOTICON_EMPTY400The emoticon field cannot be empty
137EMOTICON_INVALID400The specified emoticon cannot be used or was not a emoticon
138EMOTICON_STICKERPACK_MISSING400The emoticon sticker pack you are trying to get is missing
139ENCRYPTED_MESSAGE_INVALID400Encrypted message invalid
140ENCRYPTION_ALREADY_ACCEPTED400Secret chat already accepted
141ENCRYPTION_ALREADY_DECLINED400The secret chat was already declined
142ENCRYPTION_DECLINED400The secret chat was declined
143ENCRYPTION_ID_INVALID400The provided secret chat ID is invalid
144ENCRYPTION_OCCUPY_FAILED500TDLib developer claimed it is not an error while accepting secret chats and 500 is used instead of 420
145ENTITIES_TOO_LONG400It is no longer possible to send such long data inside entity tags (for example inline text URLs)
146ENTITY_BOUNDS_INVALID400Some of provided entities have invalid bounds (length is zero or out of the boundaries of the string)
147ENTITY_MENTION_USER_INVALID400You can't use this entity
148ERROR_TEXT_EMPTY400The provided error message is empty
149EXPIRE_DATE_INVALID400The specified expiration date is invalid
150EXPIRE_FORBIDDEN400
151EXPORT_CARD_INVALID400Provided card is invalid
152EXTERNAL_URL_INVALID400External URL invalid
153FIELD_NAME_EMPTY400The field with the name FIELD_NAME is missing
154FIELD_NAME_INVALID400The field with the name FIELD_NAME is invalid
155FILEREF_UPGRADE_NEEDED406The file reference needs to be refreshed before being used again
156FILE_CONTENT_TYPE_INVALID400File content-type is invalid
157FILE_EMTPY400An empty file was provided
158FILE_ID_INVALID400The 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 ...)
159FILE_MIGRATE_X303The file to be accessed is currently stored in DC {new_dc}
160FILE_PARTS_INVALID400The number of file parts is invalid
161FILE_PART_0_MISSING400File part 0 missing
162FILE_PART_EMPTY400The provided file part is empty
163FILE_PART_INVALID400The file part number is invalid
164FILE_PART_LENGTH_INVALID400The length of a file part is invalid
165FILE_PART_SIZE_CHANGED400The file part size (chunk size) cannot change during upload
166FILE_PART_SIZE_INVALID400The provided file part size is invalid
167FILE_PART_TOO_BIG400The uploaded file part is too big
168FILE_PART_X_MISSING400Part {which} of the file is missing from storage
169FILE_REFERENCE_EMPTY400The file reference must exist to access the media and it cannot be empty
170FILE_REFERENCE_EXPIRED400The file reference has expired and is no longer valid or it belongs to self-destructing media and cannot be resent
171FILE_REFERENCE_INVALID400The file reference is invalid or you can't do that operation on such message
172FILE_TITLE_EMPTY400An empty file title was specified
173FILTER_ID_INVALID400The specified filter ID is invalid
174FILTER_INCLUDE_EMPTY400The include_peers vector of the filter is empty
175FILTER_NOT_SUPPORTED400The specified filter cannot be used in this context
176FILTER_TITLE_EMPTY400The title field of the filter is empty
177FIRSTNAME_INVALID400The first name is invalid
178FLOOD_TEST_PHONE_WAIT_X420A wait of {seconds} seconds is required in the test servers
179FLOOD_WAIT_X420A wait of {seconds} seconds is required
180FOLDER_ID_EMPTY400The folder you tried to delete was already empty
181FOLDER_ID_INVALID400The folder you tried to use was not valid
182FRESH_CHANGE_ADMINS_FORBIDDEN400 406Recently logged-in users cannot add or change admins
183FRESH_CHANGE_PHONE_FORBIDDEN406Recently logged-in users cannot use this request
184FRESH_RESET_AUTHORISATION_FORBIDDEN406The current session is too new and cannot be used to reset other authorisations yet
185FROM_MESSAGE_BOT_DISABLED400Bots can't use fromMessage min constructors
186FROM_PEER_INVALID400The given from_user peer cannot be used for the parameter
187GAME_BOT_INVALID400You cannot send that game with the current bot
188GEO_POINT_INVALID400Invalid geoposition provided
189GIF_CONTENT_TYPE_INVALID400GIF content-type invalid
190GIF_ID_INVALID400The provided GIF ID is invalid
191GRAPH_EXPIRED_RELOAD400This graph has expired, please obtain a new graph token
192GRAPH_INVALID_RELOAD400Invalid graph token provided, please reload the stats and provide the updated token
193GRAPH_OUTDATED_RELOAD400Data can't be used for the channel statistics, graphs outdated
194GROUPCALL_ADD_PARTICIPANTS_FAILED500
195GROUPCALL_ALREADY_DISCARDED400The group call was already discarded
196GROUPCALL_ALREADY_STARTED403The groupcall has already started, you can join directly using [phone.joinGroupCall](https://core.telegram.org/method/phone.joinGroupCall)
197GROUPCALL_FORBIDDEN403The group call has already ended
198GROUPCALL_INVALID400The specified group call is invalid
199GROUPCALL_JOIN_MISSING400You haven't joined this group call
200GROUPCALL_NOT_MODIFIED400Group call settings weren't modified
201GROUPCALL_SSRC_DUPLICATE_MUCH400The app needs to retry joining the group call with a new SSRC value
202GROUPED_MEDIA_INVALID400Invalid grouped media
203GROUP_CALL_INVALID400Group call invalid
204HASH_INVALID400The provided hash is invalid
205HIDE_REQUESTER_MISSING400The join request was missing or was already handled
206HISTORY_GET_FAILED500Fetching of history failed
207IMAGE_PROCESS_FAILED400Failure while processing image
208IMPORT_FILE_INVALID400The file is too large to be imported
209IMPORT_FORMAT_UNRECOGNIZED400Unknown import format
210IMPORT_ID_INVALID400The specified import ID is invalid
211INLINE_BOT_REQUIRED403The action must be performed through an inline bot callback
212INLINE_RESULT_EXPIRED400The inline query expired
213INPUT_CONSTRUCTOR_INVALID400The provided constructor is invalid
214INPUT_FETCH_ERROR400An error occurred while deserializing TL parameters
215INPUT_FETCH_FAIL400Failed deserializing TL payload
216INPUT_FILTER_INVALID400The search query filter is invalid
217INPUT_LAYER_INVALID400The provided layer is invalid
218INPUT_METHOD_INVALID400The invoked method does not exist anymore or has never existed
219INPUT_REQUEST_TOO_LONG400The 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)
220INPUT_TEXT_EMPTY400The specified text is empty
221INPUT_USER_DEACTIVATED400The specified user was deleted
222INTERDC_X_CALL_ERROR500An error occurred while communicating with DC {dc}
223INTERDC_X_CALL_RICH_ERROR500A rich error occurred while communicating with DC {dc}
224INVITE_FORBIDDEN_WITH_JOINAS400If 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
225INVITE_HASH_EMPTY400The invite hash is empty
226INVITE_HASH_EXPIRED400 406The chat the user tried to join has expired and is not valid anymore
227INVITE_HASH_INVALID400The invite hash is invalid
228INVITE_REQUEST_SENT400You have successfully requested to join this chat or channel
229INVITE_REVOKED_MISSING400The specified invite link was already revoked or is invalid
230INVOICE_PAYLOAD_INVALID400The specified invoice payload is invalid
231JOIN_AS_PEER_INVALID400The specified peer cannot be used to join a group call
232LANG_CODE_INVALID400The specified language code is invalid
233LANG_CODE_NOT_SUPPORTED400The specified language code is not supported
234LANG_PACK_INVALID400The provided language pack is invalid
235LASTNAME_INVALID400The last name is invalid
236LIMIT_INVALID400An invalid limit was provided. See https://core.telegram.org/api/files#downloading-files
237LINK_NOT_MODIFIED400The channel is already linked to this group
238LOCATION_INVALID400The location given for a file was invalid. See https://core.telegram.org/api/files#downloading-files
239MAX_DATE_INVALID400The specified maximum date is invalid
240MAX_ID_INVALID400The provided max ID is invalid
241MAX_QTS_INVALID400The provided QTS were invalid
242MD5_CHECKSUM_INVALID400The MD5 check-sums do not match
243MEDIA_CAPTION_TOO_LONG400The caption is too long
244MEDIA_EMPTY400The provided media object is invalid or the current account may not be able to send it (such as games as users)
245MEDIA_GROUPED_INVALID400You tried to send media of different types in an album
246MEDIA_INVALID400Media invalid
247MEDIA_NEW_INVALID400The new media to edit the message with is invalid (such as stickers or voice notes)
248MEDIA_PREV_INVALID400The old media cannot be edited with anything else (such as stickers or voice notes)
249MEDIA_TTL_INVALID400
250MEGAGROUP_ID_INVALID400The group is invalid
251MEGAGROUP_PREHISTORY_HIDDEN400You can't set this discussion group because it's history is hidden
252MEGAGROUP_REQUIRED400The request can only be used with a megagroup channel
253MEMBER_NO_LOCATION500An internal failure occurred while fetching user info (couldn't find location)
254MEMBER_OCCUPY_PRIMARY_LOC_FAILED500Occupation of primary member location failed
255MESSAGE_AUTHOR_REQUIRED403Message author required
256MESSAGE_DELETE_FORBIDDEN403You can't delete one of the messages you tried to delete, most likely because it is a service message.
257MESSAGE_EDIT_TIME_EXPIRED400You can't edit this message anymore, too much time has passed since its creation.
258MESSAGE_EMPTY400Empty or invalid UTF-8 message was sent
259MESSAGE_IDS_EMPTY400No message ids were provided
260MESSAGE_ID_INVALID400The specified message ID is invalid or you can't do that operation on such message
261MESSAGE_NOT_MODIFIED400Content of the message was not modified
262MESSAGE_POLL_CLOSED400The poll was closed and can no longer be voted on
263MESSAGE_TOO_LONG400Message was too long
264METHOD_INVALID400The API method is invalid and cannot be used
265MIN_DATE_INVALID400The specified minimum date is invalid
266MSGID_DECREASE_RETRY500The request should be retried with a lower message ID
267MSG_ID_INVALID400The message ID used in the peer was invalid
268MSG_TOO_OLD400[`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
269MSG_WAIT_FAILED400A waiting call returned an error
270MT_SEND_QUEUE_TOO_LONG500
271MULTI_MEDIA_TOO_LONG400Too many media files were included in the same album
272NEED_CHAT_INVALID500The provided chat is invalid
273NEED_MEMBER_INVALID500The provided member is invalid or does not exist (for example a thumb size)
274NETWORK_MIGRATE_X303The source IP address is associated with DC {new_dc}
275NEW_SALT_INVALID400The new salt is invalid
276NEW_SETTINGS_EMPTY400No password is set on the current account, and no new password was specified in `new_settings`
277NEW_SETTINGS_INVALID400The new settings are invalid
278NEXT_OFFSET_INVALID400The value for next_offset is invalid. Check that it has normal characters and is not too long
279NOT_ALLOWED403
280OFFSET_INVALID400The given offset was invalid, it must be divisible by 1KB. See https://core.telegram.org/api/files#downloading-files
281OFFSET_PEER_ID_INVALID400The provided offset peer is invalid
282OPTIONS_TOO_MUCH400You defined too many options for the poll
283OPTION_INVALID400The option specified is invalid and does not exist in the target poll
284PACK_SHORT_NAME_INVALID400Invalid sticker pack name. It must begin with a letter, can't contain consecutive underscores and must end in "_by_<bot username>".
285PACK_SHORT_NAME_OCCUPIED400A stickerpack with this name already exists
286PACK_TITLE_INVALID400The stickerpack title is invalid
287PARTICIPANTS_TOO_FEW400Not enough participants
288PARTICIPANT_CALL_FAILED500Failure while making call
289PARTICIPANT_ID_INVALID400The specified participant ID is invalid
290PARTICIPANT_JOIN_MISSING400 403Trying to enable a presentation, when the user hasn't joined the Video Chat with [phone.joinGroupCall](https://core.telegram.org/method/phone.joinGroupCall)
291PARTICIPANT_VERSION_OUTDATED400The other participant does not use an up to date telegram client with support for calls
292PASSWORD_EMPTY400The provided password is empty
293PASSWORD_HASH_INVALID400The password (and thus its hash value) you entered is invalid
294PASSWORD_MISSING400The account must have 2-factor authentication enabled (a password) before this method can be used
295PASSWORD_RECOVERY_EXPIRED400The recovery code has expired
296PASSWORD_RECOVERY_NA400No email was set, can't recover password via email
297PASSWORD_REQUIRED400The account must have 2-factor authentication enabled (a password) before this method can be used
298PASSWORD_TOO_FRESH_X400The password was added too recently and {seconds} seconds must pass before using the method
299PAYMENT_PROVIDER_INVALID400The payment provider was not recognised or its token was invalid
300PEER_FLOOD400Too many requests
301PEER_HISTORY_EMPTY400
302PEER_ID_INVALID400An invalid Peer was used. Make sure to pass the right peer type and that the value is valid (for instance, bots cannot start conversations)
303PEER_ID_NOT_SUPPORTED400The provided peer ID is not supported
304PERSISTENT_TIMESTAMP_EMPTY400Persistent timestamp empty
305PERSISTENT_TIMESTAMP_INVALID400Persistent timestamp invalid
306PERSISTENT_TIMESTAMP_OUTDATED500Persistent timestamp outdated
307PHONE_CODE_EMPTY400The phone code is missing
308PHONE_CODE_EXPIRED400The confirmation code has expired
309PHONE_CODE_HASH_EMPTY400The phone code hash is missing
310PHONE_CODE_INVALID400The phone code entered was invalid
311PHONE_HASH_EXPIRED400An invalid or expired `phone_code_hash` was provided
312PHONE_MIGRATE_X303The phone number a user is trying to use for authorization is associated with DC {new_dc}
313PHONE_NOT_OCCUPIED400No user is associated to the specified phone number
314PHONE_NUMBER_APP_SIGNUP_FORBIDDEN400You can't sign up using this app
315PHONE_NUMBER_BANNED400The used phone number has been banned from Telegram and cannot be used anymore. Maybe check https://www.telegram.org/faq_spam
316PHONE_NUMBER_FLOOD400You asked for the code too many times.
317PHONE_NUMBER_INVALID400 406The phone number is invalid
318PHONE_NUMBER_OCCUPIED400The phone number is already in use
319PHONE_NUMBER_UNOCCUPIED400The phone number is not yet being used
320PHONE_PASSWORD_FLOOD406You have tried logging in too many times
321PHONE_PASSWORD_PROTECTED400This phone is password protected
322PHOTO_CONTENT_TYPE_INVALID400Photo mime-type invalid
323PHOTO_CONTENT_URL_EMPTY400The content from the URL used as a photo appears to be empty or has caused another HTTP error
324PHOTO_CROP_FILE_MISSING400Photo crop file missing
325PHOTO_CROP_SIZE_SMALL400Photo is too small
326PHOTO_EXT_INVALID400The extension of the photo is invalid
327PHOTO_FILE_MISSING400Profile photo file missing
328PHOTO_ID_INVALID400Photo id is invalid
329PHOTO_INVALID400Photo invalid
330PHOTO_INVALID_DIMENSIONS400The photo dimensions are invalid (hint: `pip install pillow` for `send_file` to resize images)
331PHOTO_SAVE_FILE_INVALID400The photo you tried to send cannot be saved by Telegram. A reason may be that it exceeds 10MB. Try resizing it locally
332PHOTO_THUMB_URL_EMPTY400The URL used as a thumbnail appears to be empty or has caused another HTTP error
333PINNED_DIALOGS_TOO_MUCH400Too many pinned dialogs
334PIN_RESTRICTED400You can't pin messages in private chats with other people
335POLL_ANSWERS_INVALID400The poll did not have enough answers or had too many
336POLL_ANSWER_INVALID400One of the poll answers is not acceptable
337POLL_OPTION_DUPLICATE400A duplicate option was sent in the same poll
338POLL_OPTION_INVALID400A poll option used invalid data (the data may be too long)
339POLL_QUESTION_INVALID400The poll question was either empty or too long
340POLL_UNSUPPORTED400This layer does not support polls in the issued method
341POLL_VOTE_REQUIRED403Cast a vote in the poll before calling this method
342POSTPONED_TIMEOUT500The postponed call has timed out
343PREMIUM_ACCOUNT_REQUIRED403A premium account is required to execute this action
344PREMIUM_CURRENTLY_UNAVAILABLE406
345PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_XMIN406Similar to a flood wait, must wait {minutes} minutes
346PRIVACY_KEY_INVALID400The privacy key is invalid
347PRIVACY_TOO_LONG400Cannot add that many entities in a single request
348PRIVACY_VALUE_INVALID400The privacy value is invalid
349PTS_CHANGE_EMPTY500No PTS change
350PUBLIC_CHANNEL_MISSING403You can only export group call invite links for public chats or channels
351PUBLIC_KEY_REQUIRED400A public key is required
352QUERY_ID_EMPTY400The query ID is empty
353QUERY_ID_INVALID400The query ID is invalid
354QUERY_TOO_SHORT400The query string is too short
355QUIZ_ANSWER_MISSING400You can forward a quiz while hiding the original author only after choosing an option in the quiz
356QUIZ_CORRECT_ANSWERS_EMPTY400A quiz must specify one correct answer
357QUIZ_CORRECT_ANSWERS_TOO_MUCH400There can only be one correct answer
358QUIZ_CORRECT_ANSWER_INVALID400The correct answer is not an existing answer
359QUIZ_MULTIPLE_INVALID400A poll cannot be both multiple choice and quiz
360RANDOM_ID_DUPLICATE500You provided a random ID that was already used
361RANDOM_ID_EMPTY400Random ID empty
362RANDOM_ID_INVALID400A provided random ID is invalid
363RANDOM_LENGTH_INVALID400Random length invalid
364RANGES_INVALID400Invalid range provided
365REACTIONS_TOO_MANY400The 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)
366REACTION_EMPTY400No reaction provided
367REACTION_INVALID400Invalid reaction provided (only emoji are allowed)
368REFLECTOR_NOT_AVAILABLE400Invalid call reflector server
369REG_ID_GENERATE_FAILED500Failure while generating registration ID
370REPLY_MARKUP_BUY_EMPTY400Reply markup for buy button empty
371REPLY_MARKUP_GAME_EMPTY400The provided reply markup for the game is empty
372REPLY_MARKUP_INVALID400The provided reply markup is invalid
373REPLY_MARKUP_TOO_LONG400The data embedded in the reply markup buttons was too much
374RESET_REQUEST_MISSING400No password reset is in progress
375RESULTS_TOO_MUCH400You sent too many results, see https://core.telegram.org/bots/api#answerinlinequery for the current limit
376RESULT_ID_DUPLICATE400Duplicated IDs on the sent results. Make sure to use unique IDs
377RESULT_ID_EMPTY400Result ID empty
378RESULT_ID_INVALID400The given result cannot be used to send the selection to the bot
379RESULT_TYPE_INVALID400Result type invalid
380REVOTE_NOT_ALLOWED400You cannot change your vote
381RIGHTS_NOT_MODIFIED400The new admin rights are equal to the old rights, no change was made
382RIGHT_FORBIDDEN403Either 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)
383RPC_CALL_FAIL500Telegram is having internal issues, please try again later.
384RPC_MCGET_FAIL500Telegram is having internal issues, please try again later.
385RSA_DECRYPT_FAILED400Internal RSA decryption failed
386SCHEDULE_BOT_NOT_ALLOWED400Bots are not allowed to schedule messages
387SCHEDULE_DATE_INVALID400Invalid schedule date provided
388SCHEDULE_DATE_TOO_LATE400The date you tried to schedule is too far in the future (last known limit of 1 year and a few hours)
389SCHEDULE_STATUS_PRIVATE400You cannot schedule a message until the person comes online if their privacy does not show this information
390SCHEDULE_TOO_MUCH400You cannot schedule more messages in this chat (last known limit of 100 per chat)
391SCORE_INVALID400The specified game score is invalid
392SEARCH_QUERY_EMPTY400The search query is empty
393SEARCH_WITH_LINK_NOT_SUPPORTED400You cannot provide a search query and an invite link at the same time
394SECONDS_INVALID400Slow mode only supports certain values (e.g. 0, 10s, 30s, 1m, 5m, 15m and 1h)
395SEND_AS_PEER_INVALID400You can't send messages as the specified peer
396SEND_CODE_UNAVAILABLE406Returned 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)
397SEND_MESSAGE_MEDIA_INVALID400The message media was invalid or not specified
398SEND_MESSAGE_TYPE_INVALID400The message type is invalid
399SENSITIVE_CHANGE_FORBIDDEN403Your sensitive content settings cannot be changed at this time
400SESSION_EXPIRED401The authorization has expired
401SESSION_PASSWORD_NEEDED401Two-steps verification is enabled and a password is required
402SESSION_REVOKED401The authorization has been invalidated, because of the user terminating all sessions
403SESSION_TOO_FRESH_X400The session logged in too recently and {seconds} seconds must pass before calling the method
404SETTINGS_INVALID400Invalid settings were provided
405SHA256_HASH_INVALID400The provided SHA256 hash is invalid
406SHORTNAME_OCCUPY_FAILED400An error occurred when trying to register the short-name used for the sticker pack. Try a different name
407SHORT_NAME_INVALID400The specified short name is invalid
408SHORT_NAME_OCCUPIED400The specified short name is already in use
409SIGN_IN_FAILED500Failure while signing in
410SLOWMODE_MULTI_MSGS_DISABLED400Slowmode is enabled, you cannot forward multiple messages to this group
411SLOWMODE_WAIT_X420A wait of {seconds} seconds is required before sending another message in this chat
412SMS_CODE_CREATE_FAILED400An error occurred while creating the SMS code
413SRP_ID_INVALID400Invalid SRP ID provided
414SRP_PASSWORD_CHANGED400Password has changed
415START_PARAM_EMPTY400The start parameter is empty
416START_PARAM_INVALID400Start parameter invalid
417START_PARAM_TOO_LONG400Start parameter is too long
418STATS_MIGRATE_X303The channel statistics must be fetched from DC {dc}
419STICKERPACK_STICKERS_TOO_MUCH400There are too many stickers in this stickerpack, you can't add any more
420STICKERSET_INVALID400 406The provided sticker set is invalid
421STICKERSET_OWNER_ANONYMOUS406This sticker set can't be used as the group's official stickers because it was created by one of its anonymous admins
422STICKERS_EMPTY400No sticker provided
423STICKERS_TOO_MUCH400There are too many stickers in this stickerpack, you can't add any more
424STICKER_DOCUMENT_INVALID400The 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)
425STICKER_EMOJI_INVALID400Sticker emoji invalid
426STICKER_FILE_INVALID400Sticker file invalid
427STICKER_GIF_DIMENSIONS400The specified video sticker has invalid dimensions
428STICKER_ID_INVALID400The provided sticker ID is invalid
429STICKER_INVALID400The provided sticker is invalid
430STICKER_PNG_DIMENSIONS400Sticker png dimensions invalid
431STICKER_PNG_NOPNG400Stickers must be a png file but the used image was not a png
432STICKER_TGS_NODOC400You must send the animated sticker as a document
433STICKER_TGS_NOTGS400Stickers must be a tgs file but the used file was not a tgs
434STICKER_THUMB_PNG_NOPNG400Stickerset thumb must be a png file but the used file was not png
435STICKER_THUMB_TGS_NOTGS400Stickerset thumb must be a tgs file but the used file was not tgs
436STICKER_VIDEO_BIG400The specified video sticker is too big
437STICKER_VIDEO_NODOC400You must send the video sticker as a document
438STICKER_VIDEO_NOWEBM400The specified video sticker is not in webm format
439STORAGE_CHECK_FAILED500Server storage check failed
440STORE_INVALID_SCALAR_TYPE500
441SWITCH_PM_TEXT_EMPTY400The switch_pm.text field was empty
442TAKEOUT_INIT_DELAY_X420A wait of {seconds} seconds is required before being able to initiate the takeout
443TAKEOUT_INVALID400The takeout session has been invalidated by another data export session
444TAKEOUT_REQUIRED400 403You must initialize a takeout request first
445TEMP_AUTH_KEY_ALREADY_BOUND400The passed temporary key is already bound to another **perm_auth_key_id**
446TEMP_AUTH_KEY_EMPTY400No temporary auth key provided
447THEME_FILE_INVALID400Invalid theme file provided
448THEME_FORMAT_INVALID400Invalid theme format provided
449THEME_INVALID400Theme invalid
450THEME_MIME_INVALID400You cannot create this theme, the mime-type is invalid
451THEME_TITLE_INVALID400The specified theme title is invalid
452TIMEOUT500A timeout occurred while fetching data from the worker
453TITLE_INVALID400The specified stickerpack title is invalid
454TMP_PASSWORD_DISABLED400The temporary password is disabled
455TMP_PASSWORD_INVALID400Password auth needs to be regenerated
456TOKEN_INVALID400The provided token is invalid
457TOPIC_DELETED400The topic was deleted
458TO_LANG_INVALID400The specified destination language is invalid
459TTL_DAYS_INVALID400The provided TTL is invalid
460TTL_MEDIA_INVALID400The provided media cannot be used with a TTL
461TTL_PERIOD_INVALID400The provided TTL Period is invalid
462TYPES_EMPTY400The types field is empty
463TYPE_CONSTRUCTOR_INVALID400The type constructor is invalid
464Timeout-503Timeout while fetching data
465UNKNOWN_ERROR400
466UNKNOWN_METHOD500The method you tried to call cannot be called on non-CDN DCs
467UNTIL_DATE_INVALID400That date cannot be specified in this request (try using None)
468UPDATE_APP_TO_LOGIN406
469URL_INVALID400The URL used was invalid (e.g. when answering a callback with a URL that's not t.me/yourbot or your game's URL)
470USAGE_LIMIT_INVALID400The specified usage limit is invalid
471USERNAME_INVALID400Nobody 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]"
472USERNAME_NOT_MODIFIED400The username is not different from the current username
473USERNAME_NOT_OCCUPIED400The username is not in use by anyone else yet
474USERNAME_OCCUPIED400The username is already taken
475USERNAME_PURCHASE_AVAILABLE400
476USERPIC_PRIVACY_REQUIRED406You need to disable privacy settings for your profile picture in order to make your geolocation public
477USERPIC_UPLOAD_REQUIRED400 406You must have a profile picture before using this method
478USERS_TOO_FEW400Not enough users (to create a chat, for example)
479USERS_TOO_MUCH400The maximum number of users has been exceeded (to create a chat, for example)
480USER_ADMIN_INVALID400Either you're not an admin or you tried to ban an admin that you didn't promote
481USER_ALREADY_INVITED400You have already invited this user
482USER_ALREADY_PARTICIPANT400The authenticated user is already a participant of the chat
483USER_BANNED_IN_CHANNEL400You're banned from sending messages in supergroups/channels
484USER_BLOCKED400User blocked
485USER_BOT400Bots can only be admins in channels.
486USER_BOT_INVALID400 403This method can only be called by a bot
487USER_BOT_REQUIRED400This method can only be called by a bot
488USER_CHANNELS_TOO_MUCH400 403One of the users you tried to add is already in too many channels/supergroups
489USER_CREATOR400You can't leave this channel, because you're its creator
490USER_DEACTIVATED401The user has been deleted/deactivated
491USER_DEACTIVATED_BAN401The user has been deleted/deactivated
492USER_DELETED403You can't send this secret message because the other participant deleted their account
493USER_ID_INVALID400Invalid 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
494USER_INVALID400 403The given user was invalid
495USER_IS_BLOCKED400 403User is blocked
496USER_IS_BOT400Bots can't send messages to other bots
497USER_KICKED400This user was kicked from this supergroup/channel
498USER_MIGRATE_X303The user whose identity is being used to execute queries is associated with DC {new_dc}
499USER_NOT_MUTUAL_CONTACT400 403The provided user is not a mutual contact
500USER_NOT_PARTICIPANT400The target user is not a member of the specified megagroup or channel
501USER_PRIVACY_RESTRICTED403The user's privacy settings do not allow you to do this
502USER_RESTRICTED403 406You're spamreported, you can't create channels or chats.
503USER_VOLUME_INVALID400The specified user volume is invalid
504VIDEO_CONTENT_TYPE_INVALID400The video content type is not supported with the given parameters (i.e. supports_streaming)
505VIDEO_FILE_INVALID400The given video cannot be used
506VIDEO_TITLE_EMPTY400The specified video title is empty
507VOICE_MESSAGES_FORBIDDEN400This user's privacy settings forbid you from sending voice messages
508WALLPAPER_FILE_INVALID400The given file cannot be used as a wallpaper
509WALLPAPER_INVALID400The input wallpaper was not valid
510WALLPAPER_MIME_INVALID400The specified wallpaper MIME type is invalid
511WC_CONVERT_URL_INVALID400WC convert URL invalid
512WEBDOCUMENT_INVALID400Invalid webdocument URL provided
513WEBDOCUMENT_MIME_INVALID400Invalid webdocument mime type provided
514WEBDOCUMENT_SIZE_TOO_BIG400Webdocument is too big!
515WEBDOCUMENT_URL_INVALID400The given URL cannot be used
516WEBPAGE_CURL_FAILED400Failure while fetching the webpage with cURL
517WEBPAGE_MEDIA_EMPTY400Webpage media empty
518WEBPUSH_AUTH_INVALID400The specified web push authentication secret is invalid
519WEBPUSH_KEY_INVALID400The specified web push elliptic curve Diffie-Hellman public key is invalid
520WEBPUSH_TOKEN_INVALID400The specified web push token is invalid
521WORKER_BUSY_TOO_LONG_RETRY500Telegram workers are too busy to respond immediately
522YOU_BLOCKED_USER400You blocked this user