Telethon/telethon_generator/data/errors.csv

29 KiB

1namecodesdescription
22FA_CONFIRM_WAIT_0420The 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_RANK_EMOJI_NOT_ALLOWED400Emoji are not allowed in admin titles or ranks
9ADMIN_RANK_INVALID400The given admin title or rank was invalid (possibly larger than 16 characters)
10ALBUM_PHOTOS_TOO_MANY400Too many photos were included in the album
11API_ID_INVALID400The api_id/api_hash combination is invalid
12API_ID_PUBLISHED_FLOOD400This API id was published somewhere, you can't use it now
13ARTICLE_TITLE_EMPTY400The title of the article is empty
14AUDIO_TITLE_EMPTY400The title attribute of the audio must be non-empty
15AUDIO_CONTENT_URL_EMPTY400
16AUTH_BYTES_INVALID400The provided authorization is invalid
17AUTH_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
18AUTH_KEY_INVALID401The key is invalid
19AUTH_KEY_PERM_EMPTY401The method is unavailable for temporary authorization key, not bound to permanent
20AUTH_KEY_UNREGISTERED401The key is not registered in the system
21AUTH_RESTART500Restart the authorization process
22AUTH_TOKEN_ALREADY_ACCEPTED400The authorization token was already used
23AUTH_TOKEN_EXPIRED400The provided authorization token has expired and the updated QR-code must be re-scanned
24AUTH_TOKEN_INVALID400An invalid authorization token was provided
25AUTOARCHIVE_NOT_AVAILABLE400You cannot use this feature yet
26BANK_CARD_NUMBER_INVALID400Incorrect credit card number
27BASE_PORT_LOC_INVALID400Base port location invalid
28BANNED_RIGHTS_INVALID400You cannot use that set of permissions in this request, i.e. restricting view_messages as a default
29BOTS_TOO_MUCH400There are too many bots in this chat/channel
30BOT_ONESIDE_NOT_AVAIL400
31BOT_CHANNELS_NA400Bots can't edit admin privileges
32BOT_COMMAND_DESCRIPTION_INVALID400The command description was empty, too long or had invalid characters used
33BOT_COMMAND_INVALID400
34BOT_DOMAIN_INVALID400The domain used for the auth button does not match the one configured in @BotFather
35BOT_GAMES_DISABLED400Bot games cannot be used in this type of chat
36BOT_GROUPS_BLOCKED400This bot can't be added to groups
37BOT_INLINE_DISABLED400This bot can't be used in inline mode
38BOT_INVALID400This is not a valid bot
39BOT_METHOD_INVALID400The API access for bot users is restricted. The method you tried to invoke cannot be executed as a bot
40BOT_MISSING400This method can only be run by a bot
41BOT_PAYMENTS_DISABLED400This method can only be run by a bot
42BOT_POLLS_DISABLED400You cannot create polls under a bot account
43BOT_RESPONSE_TIMEOUT400The bot did not answer to the callback query in time
44BROADCAST_CALLS_DISABLED400
45BROADCAST_FORBIDDEN403The request cannot be used in broadcast channels
46BROADCAST_ID_INVALID400The channel is invalid
47BROADCAST_PUBLIC_VOTERS_FORBIDDEN400You cannot broadcast polls where the voters are public
48BROADCAST_REQUIRED400The request can only be used with a broadcast channel
49BUTTON_DATA_INVALID400The provided button data is invalid
50BUTTON_TYPE_INVALID400The type of one of the buttons you provided is invalid
51BUTTON_URL_INVALID400Button URL invalid
52CALL_ALREADY_ACCEPTED400The call was already accepted
53CALL_ALREADY_DECLINED400The call was already declined
54CALL_OCCUPY_FAILED500The call failed because the user is already making another call
55CALL_PEER_INVALID400The provided call peer object is invalid
56CALL_PROTOCOL_FLAGS_INVALID400Call protocol flags invalid
57CDN_METHOD_INVALID400This method cannot be invoked on a CDN server. Refer to https://core.telegram.org/cdn#schema for available methods
58CHANNELS_ADMIN_PUBLIC_TOO_MUCH400You're admin of too many public channels, make some channels private to change the username of this channel
59CHANNELS_TOO_MUCH400You have joined too many channels/supergroups
60CHANNEL_BANNED400The channel is banned
61CHANNEL_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
62CHANNEL_PRIVATE400The channel specified is private and you lack permission to access it. Another reason may be that you were banned from it
63CHANNEL_PUBLIC_GROUP_NA403channel/supergroup not available
64CHAT_ABOUT_NOT_MODIFIED400About text has not changed
65CHAT_ABOUT_TOO_LONG400Chat about too long
66CHAT_ADMIN_INVITE_REQUIRED403You do not have the rights to do this
67CHAT_ADMIN_REQUIRED400Chat 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
68CHAT_FORBIDDEN403You cannot write in this chat
69CHAT_ID_EMPTY400The provided chat ID is empty
70CHAT_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
71CHAT_INVALID400The chat is invalid for this request
72CHAT_LINK_EXISTS400The chat is linked to a channel and cannot be used in that request
73CHAT_NOT_MODIFIED400The chat or channel wasn't modified (title, invites, username, admins, etc. are the same)
74CHAT_RESTRICTED400The chat is restricted and cannot be used in that request
75CHAT_SEND_GIFS_FORBIDDEN403You can't send gifs in this chat
76CHAT_SEND_INLINE_FORBIDDEN400You cannot send inline results in this chat
77CHAT_SEND_MEDIA_FORBIDDEN403You can't send media in this chat
78CHAT_SEND_STICKERS_FORBIDDEN403You can't send stickers in this chat
79CHAT_TITLE_EMPTY400No chat title provided
80CHAT_TOO_BIG400
81CHAT_WRITE_FORBIDDEN403You can't write in this chat
82CHP_CALL_FAIL500The statistics cannot be retrieved at this time
83CODE_EMPTY400The provided code is empty
84CODE_HASH_INVALID400Code hash invalid
85CODE_INVALID400Code invalid (i.e. from email)
86CONNECTION_API_ID_INVALID400The provided API id is invalid
87CONNECTION_DEVICE_MODEL_EMPTY400Device model empty
88CONNECTION_LANG_PACK_INVALID400The specified language pack is not valid. This is meant to be used by official applications only so far, leave it empty
89CONNECTION_LAYER_INVALID400The very first request must always be InvokeWithLayerRequest
90CONNECTION_NOT_INITED400Connection not initialized
91CONNECTION_SYSTEM_EMPTY400Connection system empty
92CONNECTION_SYSTEM_LANG_CODE_EMPTY400The system language string was empty during connection
93CONTACT_ID_INVALID400The provided contact ID is invalid
94CONTACT_NAME_EMPTY400The provided contact name cannot be empty
95CURRENCY_TOTAL_AMOUNT_INVALID400
96DATA_INVALID400Encrypted data invalid
97DATA_JSON_INVALID400The provided JSON data is invalid
98DATE_EMPTY400Date empty
99DC_ID_INVALID400This occurs when an authorization is tried to be exported for the same data center one is currently connected to
100DH_G_A_INVALID400g_a invalid
101DOCUMENT_INVALID400The document file was invalid and can't be used in inline mode
102EMAIL_HASH_EXPIRED400The email hash expired and cannot be used to verify it
103EMAIL_INVALID400The given email is invalid
104EMAIL_UNCONFIRMED_0400Email unconfirmed, the length of the code must be {code_length}
105EMOJI_INVALID400
106EMOJI_NOT_MODIFIED400
107EMOTICON_EMPTY400The emoticon field cannot be empty
108EMOTICON_INVALID400The specified emoticon cannot be used or was not a emoticon
109EMOTICON_STICKERPACK_MISSING400The emoticon sticker pack you are trying to get is missing
110ENCRYPTED_MESSAGE_INVALID400Encrypted message invalid
111ENCRYPTION_ALREADY_ACCEPTED400Secret chat already accepted
112ENCRYPTION_ALREADY_DECLINED400The secret chat was already declined
113ENCRYPTION_DECLINED400The secret chat was declined
114ENCRYPTION_ID_INVALID400The provided secret chat ID is invalid
115ENCRYPTION_OCCUPY_FAILED500TDLib developer claimed it is not an error while accepting secret chats and 500 is used instead of 420
116ENTITIES_TOO_LONG400It is no longer possible to send such long data inside entity tags (for example inline text URLs)
117ENTITY_MENTION_USER_INVALID400You can't use this entity
118ERROR_TEXT_EMPTY400The provided error message is empty
119EXPIRE_FORBIDDEN400
120EXPORT_CARD_INVALID400Provided card is invalid
121EXTERNAL_URL_INVALID400External URL invalid
122FIELD_NAME_EMPTY400The field with the name FIELD_NAME is missing
123FIELD_NAME_INVALID400The field with the name FIELD_NAME is invalid
124FILEREF_UPGRADE_NEEDED406The file reference needs to be refreshed before being used again
125FILE_CONTENT_TYPE_INVALID400
126FILE_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 ...)
127FILE_MIGRATE_0303The file to be accessed is currently stored in DC {new_dc}
128FILE_PARTS_INVALID400The number of file parts is invalid
129FILE_PART_EMPTY400The provided file part is empty
130FILE_PART_INVALID400The file part number is invalid
131FILE_PART_LENGTH_INVALID400The length of a file part is invalid
132FILE_PART_SIZE_CHANGED400The file part size (chunk size) cannot change during upload
133FILE_PART_SIZE_INVALID400The provided file part size is invalid
134FILE_PART_0_MISSING400Part {which} of the file is missing from storage
135FILE_REFERENCE_EMPTY400The file reference must exist to access the media and it cannot be empty
136FILE_REFERENCE_EXPIRED400The file reference has expired and is no longer valid or it belongs to self-destructing media and cannot be resent
137FILE_REFERENCE_INVALID400The file reference is invalid or you can't do that operation on such message
138FILE_TITLE_EMPTY400
139FIRSTNAME_INVALID400The first name is invalid
140FLOOD_TEST_PHONE_WAIT_0420A wait of {seconds} seconds is required in the test servers
141FLOOD_WAIT_0420A wait of {seconds} seconds is required
142FOLDER_ID_EMPTY400The folder you tried to delete was already empty
143FOLDER_ID_INVALID400The folder you tried to use was not valid
144FRESH_CHANGE_ADMINS_FORBIDDEN400Recently logged-in users cannot add or change admins
145FRESH_CHANGE_PHONE_FORBIDDEN406Recently logged-in users cannot use this request
146FRESH_RESET_AUTHORISATION_FORBIDDEN406The current session is too new and cannot be used to reset other authorisations yet
147FROM_PEER_INVALID400The given from_user peer cannot be used for the parameter
148GAME_BOT_INVALID400You cannot send that game with the current bot
149GIF_CONTENT_TYPE_INVALID400
150GIF_ID_INVALID400The provided GIF ID is invalid
151GRAPH_INVALID_RELOAD400
152GRAPH_OUTDATED_RELOAD400Data can't be used for the channel statistics, graphs outdated
153GROUPCALL_ADD_PARTICIPANTS_FAILED500
154GROUPCALL_ALREADY_DISCARDED400
155GROUPCALL_FORBIDDEN403
156GROUPCALL_JOIN_MISSING400
157GROUPCALL_SSRC_DUPLICATE_MUCH400
158GROUPCALL_NOT_MODIFIED400
159GROUPED_MEDIA_INVALID400Invalid grouped media
160GROUP_CALL_INVALID400Group call invalid
161HASH_INVALID400The provided hash is invalid
162HISTORY_GET_FAILED500Fetching of history failed
163IMAGE_PROCESS_FAILED400Failure while processing image
164IMPORT_FILE_INVALID400The file is too large to be imported
165IMPORT_FORMAT_UNRECOGNIZED400Unknown import format
166IMPORT_ID_INVALID400
167INLINE_BOT_REQUIRED403The action must be performed through an inline bot callback
168INLINE_RESULT_EXPIRED400The inline query expired
169INPUT_CONSTRUCTOR_INVALID400The provided constructor is invalid
170INPUT_FETCH_ERROR400An error occurred while deserializing TL parameters
171INPUT_FETCH_FAIL400Failed deserializing TL payload
172INPUT_FILTER_INVALID400The search query filter is invalid
173INPUT_LAYER_INVALID400The provided layer is invalid
174INPUT_METHOD_INVALID400The invoked method does not exist anymore or has never existed
175INPUT_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)
176INPUT_USER_DEACTIVATED400The specified user was deleted
177INTERDC_0_CALL_ERROR500An error occurred while communicating with DC {dc}
178INTERDC_0_CALL_RICH_ERROR500A rich error occurred while communicating with DC {dc}
179INVITE_HASH_EMPTY400The invite hash is empty
180INVITE_HASH_EXPIRED400The chat the user tried to join has expired and is not valid anymore
181INVITE_HASH_INVALID400The invite hash is invalid
182LANG_CODE_INVALID400
183LANG_PACK_INVALID400The provided language pack is invalid
184LASTNAME_INVALID400The last name is invalid
185LIMIT_INVALID400An invalid limit was provided. See https://core.telegram.org/api/files#downloading-files
186LINK_NOT_MODIFIED400The channel is already linked to this group
187LOCATION_INVALID400The location given for a file was invalid. See https://core.telegram.org/api/files#downloading-files
188MAX_ID_INVALID400The provided max ID is invalid
189MAX_QTS_INVALID400The provided QTS were invalid
190MD5_CHECKSUM_INVALID400The MD5 check-sums do not match
191MEDIA_CAPTION_TOO_LONG400The caption is too long
192MEDIA_EMPTY400The provided media object is invalid or the current account may not be able to send it (such as games as users)
193MEDIA_GROUPED_INVALID400
194MEDIA_INVALID400Media invalid
195MEDIA_NEW_INVALID400The new media to edit the message with is invalid (such as stickers or voice notes)
196MEDIA_PREV_INVALID400The old media cannot be edited with anything else (such as stickers or voice notes)
197MEDIA_TTL_INVALID400
198MEGAGROUP_ID_INVALID400The group is invalid
199MEGAGROUP_PREHISTORY_HIDDEN400You can't set this discussion group because it's history is hidden
200MEGAGROUP_REQUIRED400The request can only be used with a megagroup channel
201MEMBER_NO_LOCATION500An internal failure occurred while fetching user info (couldn't find location)
202MEMBER_OCCUPY_PRIMARY_LOC_FAILED500Occupation of primary member location failed
203MESSAGE_AUTHOR_REQUIRED403Message author required
204MESSAGE_DELETE_FORBIDDEN403You can't delete one of the messages you tried to delete, most likely because it is a service message.
205MESSAGE_EDIT_TIME_EXPIRED400You can't edit this message anymore, too much time has passed since its creation.
206MESSAGE_EMPTY400Empty or invalid UTF-8 message was sent
207MESSAGE_IDS_EMPTY400No message ids were provided
208MESSAGE_ID_INVALID400The specified message ID is invalid or you can't do that operation on such message
209MESSAGE_NOT_MODIFIED400Content of the message was not modified
210MESSAGE_POLL_CLOSED400The poll was closed and can no longer be voted on
211MESSAGE_TOO_LONG400Message was too long. Current maximum length is 4096 UTF-8 characters
212METHOD_INVALID400The API method is invalid and cannot be used
213MSGID_DECREASE_RETRY500The request should be retried with a lower message ID
214MSG_ID_INVALID400The message ID used in the peer was invalid
215MSG_WAIT_FAILED400A waiting call returned an error
216MT_SEND_QUEUE_TOO_LONG500
217MULTI_MEDIA_TOO_LONG400Too many media files were included in the same album
218NEED_CHAT_INVALID500The provided chat is invalid
219NEED_MEMBER_INVALID500The provided member is invalid or does not exist (for example a thumb size)
220NETWORK_MIGRATE_0303The source IP address is associated with DC {new_dc}
221NEW_SALT_INVALID400The new salt is invalid
222NEW_SETTINGS_INVALID400The new settings are invalid
223NEXT_OFFSET_INVALID400The value for next_offset is invalid. Check that it has normal characters and is not too long
224OFFSET_INVALID400The given offset was invalid, it must be divisible by 1KB. See https://core.telegram.org/api/files#downloading-files
225OFFSET_PEER_ID_INVALID400The provided offset peer is invalid
226OPTIONS_TOO_MUCH400You defined too many options for the poll
227OPTION_INVALID400The option specified is invalid and does not exist in the target poll
228PACK_SHORT_NAME_INVALID400Invalid sticker pack name. It must begin with a letter, can't contain consecutive underscores and must end in "_by_<bot username>".
229PACK_SHORT_NAME_OCCUPIED400A stickerpack with this name already exists
230PARTICIPANTS_TOO_FEW400Not enough participants
231PARTICIPANT_CALL_FAILED500Failure while making call
232PARTICIPANT_JOIN_MISSING403
233PARTICIPANT_VERSION_OUTDATED400The other participant does not use an up to date telegram client with support for calls
234PASSWORD_EMPTY400The provided password is empty
235PASSWORD_HASH_INVALID400The password (and thus its hash value) you entered is invalid
236PASSWORD_MISSING400The account must have 2-factor authentication enabled (a password) before this method can be used
237PASSWORD_RECOVERY_EXPIRED400
238PASSWORD_RECOVERY_NA400
239PASSWORD_REQUIRED400The account must have 2-factor authentication enabled (a password) before this method can be used
240PASSWORD_TOO_FRESH_0400The password was added too recently and {seconds} seconds must pass before using the method
241PAYMENT_PROVIDER_INVALID400The payment provider was not recognised or its token was invalid
242PEER_FLOOD400Too many requests
243PEER_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)
244PEER_ID_NOT_SUPPORTED400The provided peer ID is not supported
245PERSISTENT_TIMESTAMP_EMPTY400Persistent timestamp empty
246PERSISTENT_TIMESTAMP_INVALID400Persistent timestamp invalid
247PERSISTENT_TIMESTAMP_OUTDATED500Persistent timestamp outdated
248PHONE_CODE_EMPTY400The phone code is missing
249PHONE_CODE_EXPIRED400The confirmation code has expired
250PHONE_CODE_HASH_EMPTY400The phone code hash is missing
251PHONE_CODE_INVALID400The phone code entered was invalid
252PHONE_MIGRATE_0303The phone number a user is trying to use for authorization is associated with DC {new_dc}
253PHONE_NUMBER_APP_SIGNUP_FORBIDDEN400You can't sign up using this app
254PHONE_NUMBER_BANNED400The used phone number has been banned from Telegram and cannot be used anymore. Maybe check https://www.telegram.org/faq_spam
255PHONE_NUMBER_FLOOD400You asked for the code too many times.
256PHONE_NUMBER_INVALID400 406The phone number is invalid
257PHONE_NUMBER_OCCUPIED400The phone number is already in use
258PHONE_NUMBER_UNOCCUPIED400The phone number is not yet being used
259PHONE_PASSWORD_FLOOD406You have tried logging in too many times
260PHONE_PASSWORD_PROTECTED400This phone is password protected
261PHOTO_CONTENT_TYPE_INVALID400
262PHOTO_CONTENT_URL_EMPTY400The content from the URL used as a photo appears to be empty or has caused another HTTP error
263PHOTO_CROP_SIZE_SMALL400Photo is too small
264PHOTO_EXT_INVALID400The extension of the photo is invalid
265PHOTO_ID_INVALID400Photo id is invalid
266PHOTO_INVALID400Photo invalid
267PHOTO_INVALID_DIMENSIONS400The photo dimensions are invalid (hint: `pip install pillow` for `send_file` to resize images)
268PHOTO_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
269PHOTO_THUMB_URL_EMPTY400The URL used as a thumbnail appears to be empty or has caused another HTTP error
270PIN_RESTRICTED400You can't pin messages in private chats with other people
271PINNED_DIALOGS_TOO_MUCH400
272POLL_ANSWERS_INVALID400The poll did not have enough answers or had too many
273POLL_OPTION_DUPLICATE400A duplicate option was sent in the same poll
274POLL_OPTION_INVALID400A poll option used invalid data (the data may be too long)
275POLL_QUESTION_INVALID400The poll question was either empty or too long
276POLL_UNSUPPORTED400This layer does not support polls in the issued method
277POLL_VOTE_REQUIRED403
278PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_0MIN406Similar to a flood wait, must wait {minutes} minutes
279PRIVACY_KEY_INVALID400The privacy key is invalid
280PRIVACY_TOO_LONG400Cannot add that many entities in a single request
281PRIVACY_VALUE_INVALID400The privacy value is invalid
282PTS_CHANGE_EMPTY500No PTS change
283PUBLIC_KEY_REQUIRED400
284QUERY_ID_EMPTY400The query ID is empty
285QUERY_ID_INVALID400The query ID is invalid
286QUERY_TOO_SHORT400The query string is too short
287QUIZ_CORRECT_ANSWERS_EMPTY400A quiz must specify one correct answer
288QUIZ_CORRECT_ANSWERS_TOO_MUCH400There can only be one correct answer
289QUIZ_CORRECT_ANSWER_INVALID400The correct answer is not an existing answer
290QUIZ_MULTIPLE_INVALID400A poll cannot be both multiple choice and quiz
291RANDOM_ID_DUPLICATE500You provided a random ID that was already used
292RANDOM_ID_INVALID400A provided random ID is invalid
293RANDOM_LENGTH_INVALID400Random length invalid
294RANGES_INVALID400Invalid range provided
295REACTION_EMPTY400No reaction provided
296REACTION_INVALID400Invalid reaction provided (only emoji are allowed)
297REFLECTOR_NOT_AVAILABLE400Invalid call reflector server
298REG_ID_GENERATE_FAILED500Failure while generating registration ID
299REPLY_MARKUP_GAME_EMPTY400The provided reply markup for the game is empty
300REPLY_MARKUP_INVALID400The provided reply markup is invalid
301REPLY_MARKUP_TOO_LONG400The data embedded in the reply markup buttons was too much
302RESET_REQUEST_MISSING400
303RESULTS_TOO_MUCH400You sent too many results, see https://core.telegram.org/bots/api#answerinlinequery for the current limit
304RESULT_ID_DUPLICATE400Duplicated IDs on the sent results. Make sure to use unique IDs
305RESULT_ID_INVALID400The given result cannot be used to send the selection to the bot
306RESULT_TYPE_INVALID400Result type invalid
307RIGHT_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)
308RPC_CALL_FAIL500Telegram is having internal issues, please try again later.
309RPC_MCGET_FAIL500Telegram is having internal issues, please try again later.
310RSA_DECRYPT_FAILED400Internal RSA decryption failed
311SCHEDULE_BOT_NOT_ALLOWED400Bots are not allowed to schedule messages
312SCHEDULE_DATE_INVALID400
313SCHEDULE_DATE_TOO_LATE400The date you tried to schedule is too far in the future (last known limit of 1 year and a few hours)
314SCHEDULE_STATUS_PRIVATE400You cannot schedule a message until the person comes online if their privacy does not show this information
315SCHEDULE_TOO_MUCH400You cannot schedule more messages in this chat (last known limit of 100 per chat)
316SEARCH_QUERY_EMPTY400The search query is empty
317SECONDS_INVALID400Slow mode only supports certain values (e.g. 0, 10s, 30s, 1m, 5m, 15m and 1h)
318SEND_MESSAGE_MEDIA_INVALID400The message media was invalid or not specified
319SEND_MESSAGE_TYPE_INVALID400The message type is invalid
320SENSITIVE_CHANGE_FORBIDDEN403Your sensitive content settings cannot be changed at this time
321SESSION_EXPIRED401The authorization has expired
322SESSION_PASSWORD_NEEDED401Two-steps verification is enabled and a password is required
323SESSION_REVOKED401The authorization has been invalidated, because of the user terminating all sessions
324SESSION_TOO_FRESH_0400The session logged in too recently and {seconds} seconds must pass before calling the method
325SHA256_HASH_INVALID400The provided SHA256 hash is invalid
326SHORTNAME_OCCUPY_FAILED400An error occurred when trying to register the short-name used for the sticker pack. Try a different name
327SHORT_NAME_INVALID400
328SHORT_NAME_OCCUPIED400
329SLOWMODE_WAIT_0420A wait of {seconds} seconds is required before sending another message in this chat
330SRP_ID_INVALID400
331START_PARAM_EMPTY400The start parameter is empty
332START_PARAM_INVALID400Start parameter invalid
333STATS_MIGRATE_0303The channel statistics must be fetched from DC {dc}
334STICKERSET_INVALID400The provided sticker set is invalid
335STICKERSET_OWNER_ANONYMOUS406This sticker set can't be used as the group's official stickers because it was created by one of its anonymous admins
336STICKERS_EMPTY400No sticker provided
337STICKER_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)
338STICKER_EMOJI_INVALID400Sticker emoji invalid
339STICKER_FILE_INVALID400Sticker file invalid
340STICKER_ID_INVALID400The provided sticker ID is invalid
341STICKER_INVALID400The provided sticker is invalid
342STICKER_PNG_DIMENSIONS400Sticker png dimensions invalid
343STICKER_PNG_NOPNG400Stickers must be a png file but the used image was not a png
344STICKER_TGS_NODOC400
345STICKER_TGS_NOTGS400Stickers must be a tgs file but the used file was not a tgs
346STICKER_THUMB_PNG_NOPNG400Stickerset thumb must be a png file but the used file was not png
347STICKER_THUMB_TGS_NOTGS400Stickerset thumb must be a tgs file but the used file was not tgs
348STORAGE_CHECK_FAILED500Server storage check failed
349STORE_INVALID_SCALAR_TYPE500
350TAKEOUT_INIT_DELAY_0420A wait of {seconds} seconds is required before being able to initiate the takeout
351TAKEOUT_INVALID400The takeout session has been invalidated by another data export session
352TAKEOUT_REQUIRED400You must initialize a takeout request first
353TEMP_AUTH_KEY_EMPTY400No temporary auth key provided
354TIMEOUT500A timeout occurred while fetching data from the worker
355TITLE_INVALID400
356THEME_INVALID400Theme invalid
357THEME_MIME_INVALID400You cannot create this theme, the mime-type is invalid
358TMP_PASSWORD_DISABLED400The temporary password is disabled
359TMP_PASSWORD_INVALID400Password auth needs to be regenerated
360TOKEN_INVALID400The provided token is invalid
361TTL_DAYS_INVALID400The provided TTL is invalid
362TTL_MEDIA_INVALID400The provided media cannot be used with a TTL
363TTL_PERIOD_INVALID400The provided TTL Period is invalid
364TYPES_EMPTY400The types field is empty
365TYPE_CONSTRUCTOR_INVALID400The type constructor is invalid
366UNKNOWN_ERROR400
367UNKNOWN_METHOD500The method you tried to call cannot be called on non-CDN DCs
368UNTIL_DATE_INVALID400That date cannot be specified in this request (try using None)
369URL_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)
370USER_VOLUME_INVALID400
371USERNAME_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]"
372USERNAME_NOT_MODIFIED400The username is not different from the current username
373USERNAME_NOT_OCCUPIED400The username is not in use by anyone else yet
374USERNAME_OCCUPIED400The username is already taken
375USERS_TOO_FEW400Not enough users (to create a chat, for example)
376USERS_TOO_MUCH400The maximum number of users has been exceeded (to create a chat, for example)
377USER_ADMIN_INVALID400Either you're not an admin or you tried to ban an admin that you didn't promote
378USER_ALREADY_PARTICIPANT400The authenticated user is already a participant of the chat
379USER_BANNED_IN_CHANNEL400You're banned from sending messages in supergroups/channels
380USER_BLOCKED400User blocked
381USER_BOT400Bots can only be admins in channels.
382USER_BOT_INVALID400 403This method can only be called by a bot
383USER_BOT_REQUIRED400This method can only be called by a bot
384USER_CHANNELS_TOO_MUCH403One of the users you tried to add is already in too many channels/supergroups
385USER_CREATOR400You can't leave this channel, because you're its creator
386USER_DEACTIVATED401The user has been deleted/deactivated
387USER_DEACTIVATED_BAN401The user has been deleted/deactivated
388USER_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
389USER_INVALID400The given user was invalid
390USER_IS_BLOCKED400 403User is blocked
391USER_IS_BOT400Bots can't send messages to other bots
392USER_KICKED400This user was kicked from this supergroup/channel
393USER_MIGRATE_0303The user whose identity is being used to execute queries is associated with DC {new_dc}
394USER_NOT_MUTUAL_CONTACT400 403The provided user is not a mutual contact
395USER_NOT_PARTICIPANT400The target user is not a member of the specified megagroup or channel
396USER_PRIVACY_RESTRICTED403The user's privacy settings do not allow you to do this
397USER_RESTRICTED403You're spamreported, you can't create channels or chats.
398USERPIC_UPLOAD_REQUIRED400You must have a profile picture before using this method
399VIDEO_CONTENT_TYPE_INVALID400The video content type is not supported with the given parameters (i.e. supports_streaming)
400VIDEO_FILE_INVALID400The given video cannot be used
401VIDEO_TITLE_EMPTY400
402WALLPAPER_FILE_INVALID400The given file cannot be used as a wallpaper
403WALLPAPER_INVALID400The input wallpaper was not valid
404WALLPAPER_MIME_INVALID400
405WC_CONVERT_URL_INVALID400WC convert URL invalid
406WEBDOCUMENT_MIME_INVALID400
407WEBDOCUMENT_URL_INVALID400The given URL cannot be used
408WEBPAGE_CURL_FAILED400Failure while fetching the webpage with cURL
409WEBPAGE_MEDIA_EMPTY400Webpage media empty
410WORKER_BUSY_TOO_LONG_RETRY500Telegram workers are too busy to respond immediately
411YOU_BLOCKED_USER400You blocked this user