Telethon/telethon_generator/data/errors.csv
2020-10-13 10:50:05 +02:00

25 KiB

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