mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-12-02 06:13:45 +03:00
18 KiB
18 KiB
1 | name | codes | description |
---|---|---|---|
2 | ABOUT_TOO_LONG | 400 | The provided bio is too long |
3 | ACCESS_TOKEN_EXPIRED | 400 | Bot token expired |
4 | ACCESS_TOKEN_INVALID | 400 | The provided token is not valid |
5 | ACTIVE_USER_REQUIRED | 401 | The method is only available to already activated users |
6 | ADMINS_TOO_MUCH | 400 | Too many admins |
7 | API_ID_INVALID | 400 | The api_id/api_hash combination is invalid |
8 | API_ID_PUBLISHED_FLOOD | 400 | This API id was published somewhere, you can't use it now |
9 | ARTICLE_TITLE_EMPTY | 400 | The title of the article is empty |
10 | AUTH_BYTES_INVALID | 400 | The provided authorization is invalid |
11 | AUTH_KEY_DUPLICATED | 406 | The authorization key (session file) was used under two different IP addresses simultaneously, and can no longer be used. Use the same session exclusively, or use different sessions |
12 | AUTH_KEY_INVALID | 401 | The key is invalid |
13 | AUTH_KEY_PERM_EMPTY | 401 | The method is unavailable for temporary authorization key, not bound to permanent |
14 | AUTH_KEY_UNREGISTERED | 401 | The key is not registered in the system |
15 | AUTH_RESTART | 500 | Restart the authorization process |
16 | BANNED_RIGHTS_INVALID | 400 | You cannot use that set of permissions in this request, i.e. restricting view_messages as a default |
17 | BOTS_TOO_MUCH | 400 | There are too many bots in this chat/channel |
18 | BOT_CHANNELS_NA | 400 | Bots can't edit admin privileges |
19 | BOT_GROUPS_BLOCKED | 400 | This bot can't be added to groups |
20 | BOT_INLINE_DISABLED | 400 | This bot can't be used in inline mode |
21 | BOT_INVALID | 400 | This is not a valid bot |
22 | BOT_METHOD_INVALID | 400 | The API access for bot users is restricted. The method you tried to invoke cannot be executed as a bot |
23 | BOT_MISSING | 400 | This method can only be run by a bot |
24 | BOT_POLLS_DISABLED | 400 | You cannot create polls under a bot account |
25 | BUTTON_DATA_INVALID | 400 | The provided button data is invalid |
26 | BUTTON_TYPE_INVALID | 400 | The type of one of the buttons you provided is invalid |
27 | BUTTON_URL_INVALID | 400 | Button URL invalid |
28 | CALL_ALREADY_ACCEPTED | 400 | The call was already accepted |
29 | CALL_ALREADY_DECLINED | 400 | The call was already declined |
30 | CALL_OCCUPY_FAILED | 500 | The call failed because the user is already making another call |
31 | CALL_PEER_INVALID | 400 | The provided call peer object is invalid |
32 | CALL_PROTOCOL_FLAGS_INVALID | 400 | Call protocol flags invalid |
33 | CDN_METHOD_INVALID | 400 | This method cannot be invoked on a CDN server. Refer to https://core.telegram.org/cdn#schema for available methods |
34 | CHANNELS_ADMIN_PUBLIC_TOO_MUCH | 400 | You're admin of too many public channels, make some channels private to change the username of this channel |
35 | CHANNELS_TOO_MUCH | 400 | You have joined too many channels/supergroups |
36 | CHANNEL_INVALID | 400 | Invalid channel object. Make sure to pass the right types, for instance making sure that the request is designed for channels or otherwise look for a different one more suited |
37 | CHANNEL_PRIVATE | 400 | The channel specified is private and you lack permission to access it. Another reason may be that you were banned from it |
38 | CHANNEL_PUBLIC_GROUP_NA | 403 | channel/supergroup not available |
39 | CHAT_ABOUT_NOT_MODIFIED | 400 | About text has not changed |
40 | CHAT_ABOUT_TOO_LONG | 400 | Chat about too long |
41 | CHAT_ADMIN_INVITE_REQUIRED | 403 | You do not have the rights to do this |
42 | CHAT_ADMIN_REQUIRED | 400 403 | Chat admin privileges are required to do that in the specified chat (for example, to send a message in a channel which is not yours), or invalid permissions used for the channel or group |
43 | CHAT_FORBIDDEN | You cannot write in this chat | |
44 | CHAT_ID_EMPTY | 400 | The provided chat ID is empty |
45 | CHAT_ID_INVALID | 400 | Invalid object ID for a chat. Make sure to pass the right types, for instance making sure that the request is designed for chats (not channels/megagroups) or otherwise look for a different one more suited\nAn example working with a megagroup and AddChatUserRequest, it will fail because megagroups are channels. Use InviteToChannelRequest instead |
46 | CHAT_INVALID | 400 | The chat is invalid for this request |
47 | CHAT_NOT_MODIFIED | 400 | The chat or channel wasn't modified (title, invites, username, admins, etc. are the same) |
48 | CHAT_RESTRICTED | 400 | The chat is restricted and cannot be used in that request |
49 | CHAT_SEND_GIFS_FORBIDDEN | 403 | You can't send gifs in this chat |
50 | CHAT_SEND_MEDIA_FORBIDDEN | 403 | You can't send media in this chat |
51 | CHAT_SEND_STICKERS_FORBIDDEN | 403 | You can't send stickers in this chat. |
52 | CHAT_TITLE_EMPTY | 400 | No chat title provided |
53 | CHAT_WRITE_FORBIDDEN | 403 | You can't write in this chat |
54 | CODE_EMPTY | 400 | The provided code is empty |
55 | CODE_HASH_INVALID | 400 | Code hash invalid |
56 | CODE_INVALID | 400 | Code invalid (i.e. from email) |
57 | CONNECTION_API_ID_INVALID | 400 | The provided API id is invalid |
58 | CONNECTION_DEVICE_MODEL_EMPTY | 400 | Device model empty |
59 | CONNECTION_LANG_PACK_INVALID | 400 | The specified language pack is not valid. This is meant to be used by official applications only so far, leave it empty |
60 | CONNECTION_LAYER_INVALID | 400 | The very first request must always be InvokeWithLayerRequest |
61 | CONNECTION_NOT_INITED | 400 | Connection not initialized |
62 | CONNECTION_SYSTEM_EMPTY | 400 | Connection system empty |
63 | CONTACT_ID_INVALID | 400 | The provided contact ID is invalid |
64 | DATA_INVALID | 400 | Encrypted data invalid |
65 | DATA_JSON_INVALID | 400 | The provided JSON data is invalid |
66 | DATE_EMPTY | 400 | Date empty |
67 | DC_ID_INVALID | 400 | This occurs when an authorization is tried to be exported for the same data center one is currently connected to |
68 | DH_G_A_INVALID | 400 | g_a invalid |
69 | EMAIL_HASH_EXPIRED | 400 | The email hash expired and cannot be used to verify it |
70 | EMAIL_UNCONFIRMED_X | 400 | Email unconfirmed, the length of the code must be {code_length} |
71 | ENCRYPTED_MESSAGE_INVALID | 400 | Encrypted message invalid |
72 | ENCRYPTION_ALREADY_ACCEPTED | 400 | Secret chat already accepted |
73 | ENCRYPTION_ALREADY_DECLINED | 400 | The secret chat was already declined |
74 | ENCRYPTION_DECLINED | 400 | The secret chat was declined |
75 | ENCRYPTION_ID_INVALID | 400 | The provided secret chat ID is invalid |
76 | ENCRYPTION_OCCUPY_FAILED | 500 | Internal server error while accepting secret chat |
77 | ENTITY_MENTION_USER_INVALID | 400 | You can't use this entity |
78 | ERROR_TEXT_EMPTY | 400 | The provided error message is empty |
79 | EXPORT_CARD_INVALID | 400 | Provided card is invalid |
80 | EXTERNAL_URL_INVALID | 400 | External URL invalid |
81 | FIELD_NAME_EMPTY | The field with the name FIELD_NAME is missing | |
82 | FIELD_NAME_INVALID | The field with the name FIELD_NAME is invalid | |
83 | FILE_ID_INVALID | 400 | The provided file id is invalid |
84 | FILE_MIGRATE_X | 303 | The file to be accessed is currently stored in DC {new_dc} |
85 | FILE_PARTS_INVALID | 400 | The number of file parts is invalid |
86 | FILE_PART_0_MISSING | File part 0 missing | |
87 | FILE_PART_EMPTY | 400 | The provided file part is empty |
88 | FILE_PART_INVALID | 400 | The file part number is invalid |
89 | FILE_PART_LENGTH_INVALID | 400 | The length of a file part is invalid |
90 | FILE_PART_SIZE_INVALID | 400 | The provided file part size is invalid |
91 | FILE_PART_X_MISSING | 400 | Part {which} of the file is missing from storage |
92 | FILEREF_UPGRADE_NEEDED | 406 | The file reference needs to be refreshed before being used again |
93 | FIRSTNAME_INVALID | 400 | The first name is invalid |
94 | FLOOD_TEST_PHONE_WAIT_X | 420 | A wait of {seconds} seconds is required in the test servers |
95 | FLOOD_WAIT_X | 420 | A wait of {seconds} seconds is required |
96 | GIF_ID_INVALID | 400 | The provided GIF ID is invalid |
97 | GROUPED_MEDIA_INVALID | 400 | Invalid grouped media |
98 | HASH_INVALID | 400 | The provided hash is invalid |
99 | HISTORY_GET_FAILED | 500 | Fetching of history failed |
100 | IMAGE_PROCESS_FAILED | 400 | Failure while processing image |
101 | INLINE_RESULT_EXPIRED | 400 | The inline query expired |
102 | INPUT_CONSTRUCTOR_INVALID | 400 | The provided constructor is invalid |
103 | INPUT_FETCH_ERROR | An error occurred while deserializing TL parameters | |
104 | INPUT_FETCH_FAIL | 400 | Failed deserializing TL payload |
105 | INPUT_LAYER_INVALID | 400 | The provided layer is invalid |
106 | INPUT_METHOD_INVALID | The invoked method does not exist anymore or has never existed | |
107 | INPUT_REQUEST_TOO_LONG | 400 | The input request was too long. This may be a bug in the library as it can occur when serializing more bytes than it should (like appending the vector constructor code at the end of a message) |
108 | INPUT_USER_DEACTIVATED | 400 | The specified user was deleted |
109 | INTERDC_X_CALL_ERROR | An error occurred while communicating with DC {dc} | |
110 | INTERDC_X_CALL_RICH_ERROR | A rich error occurred while communicating with DC {dc} | |
111 | INVITE_HASH_EMPTY | 400 | The invite hash is empty |
112 | INVITE_HASH_EXPIRED | 400 | The chat the user tried to join has expired and is not valid anymore |
113 | INVITE_HASH_INVALID | 400 | The invite hash is invalid |
114 | LANG_PACK_INVALID | 400 | The provided language pack is invalid |
115 | LASTNAME_INVALID | The last name is invalid | |
116 | LIMIT_INVALID | 400 | An invalid limit was provided. See https://core.telegram.org/api/files#downloading-files |
117 | LOCATION_INVALID | 400 | The location given for a file was invalid. See https://core.telegram.org/api/files#downloading-files |
118 | MAX_ID_INVALID | 400 | The provided max ID is invalid |
119 | MD5_CHECKSUM_INVALID | The MD5 check-sums do not match | |
120 | MEDIA_CAPTION_TOO_LONG | 400 | The caption is too long |
121 | MEDIA_EMPTY | 400 | The provided media object is invalid |
122 | MEDIA_INVALID | 400 | Media invalid |
123 | MEDIA_NEW_INVALID | 400 | The new media to edit the message with is invalid (such as stickers or voice notes) |
124 | MEDIA_PREV_INVALID | 400 | The old media cannot be edited with anything else (such as stickers or voice notes) |
125 | MEMBER_NO_LOCATION | 500 | An internal failure occurred while fetching user info (couldn't find location) |
126 | MEMBER_OCCUPY_PRIMARY_LOC_FAILED | 500 | Occupation of primary member location failed |
127 | MESSAGE_AUTHOR_REQUIRED | 403 | Message author required |
128 | MESSAGE_DELETE_FORBIDDEN | 403 | You can't delete one of the messages you tried to delete, most likely because it is a service message. |
129 | MESSAGE_EDIT_TIME_EXPIRED | 400 | You can't edit this message anymore, too much time has passed since its creation. |
130 | MESSAGE_EMPTY | 400 | Empty or invalid UTF-8 message was sent |
131 | MESSAGE_IDS_EMPTY | 400 | No message ids were provided |
132 | MESSAGE_ID_INVALID | 400 | The specified message ID is invalid |
133 | MESSAGE_NOT_MODIFIED | 400 | Content of the message was not modified |
134 | MESSAGE_TOO_LONG | 400 | Message was too long. Current maximum length is 4096 UTF-8 characters |
135 | MSG_WAIT_FAILED | 400 | A waiting call returned an error |
136 | NEED_CHAT_INVALID | 500 | The provided chat is invalid |
137 | NEED_MEMBER_INVALID | 500 | The provided member is invalid |
138 | NETWORK_MIGRATE_X | 303 | The source IP address is associated with DC {new_dc} |
139 | NEW_SALT_INVALID | 400 | The new salt is invalid |
140 | NEW_SETTINGS_INVALID | 400 | The new settings are invalid |
141 | OFFSET_INVALID | 400 | The given offset was invalid, it must be divisible by 1KB. See https://core.telegram.org/api/files#downloading-files |
142 | OFFSET_PEER_ID_INVALID | 400 | The provided offset peer is invalid |
143 | OPTIONS_TOO_MUCH | 400 | You defined too many options for the poll |
144 | PACK_SHORT_NAME_INVALID | 400 | Invalid sticker pack name. It must begin with a letter, can't contain consecutive underscores and must end in "_by_<bot username>". |
145 | PACK_SHORT_NAME_OCCUPIED | 400 | A stickerpack with this name already exists |
146 | PARTICIPANTS_TOO_FEW | 400 | Not enough participants |
147 | PARTICIPANT_CALL_FAILED | 500 | Failure while making call |
148 | PARTICIPANT_VERSION_OUTDATED | 400 | The other participant does not use an up to date telegram client with support for calls |
149 | PASSWORD_EMPTY | 400 | The provided password is empty |
150 | PASSWORD_HASH_INVALID | 400 | The password (and thus its hash value) you entered is invalid |
151 | PEER_FLOOD | Too many requests | |
152 | PEER_ID_INVALID | 400 | An invalid Peer was used. Make sure to pass the right peer type |
153 | PEER_ID_NOT_SUPPORTED | 400 | The provided peer ID is not supported |
154 | PERSISTENT_TIMESTAMP_EMPTY | 400 | Persistent timestamp empty |
155 | PERSISTENT_TIMESTAMP_INVALID | 400 | Persistent timestamp invalid |
156 | PERSISTENT_TIMESTAMP_OUTDATED | 500 | Persistent timestamp outdated |
157 | PHONE_CODE_EMPTY | 400 | The phone code is missing |
158 | PHONE_CODE_EXPIRED | 400 | The confirmation code has expired |
159 | PHONE_CODE_HASH_EMPTY | The phone code hash is missing | |
160 | PHONE_CODE_INVALID | 400 | The phone code entered was invalid |
161 | PHONE_MIGRATE_X | 303 | The phone number a user is trying to use for authorization is associated with DC {new_dc} |
162 | PHONE_NUMBER_APP_SIGNUP_FORBIDDEN | 400 | |
163 | PHONE_NUMBER_BANNED | 400 | The used phone number has been banned from Telegram and cannot be used anymore. Maybe check https://www.telegram.org/faq_spam |
164 | PHONE_NUMBER_FLOOD | 400 | You asked for the code too many times. |
165 | PHONE_NUMBER_INVALID | 400 406 | The phone number is invalid |
166 | PHONE_NUMBER_OCCUPIED | 400 | The phone number is already in use |
167 | PHONE_NUMBER_UNOCCUPIED | 400 | The phone number is not yet being used |
168 | PHONE_PASSWORD_FLOOD | 406 | You have tried logging in too many times |
169 | PHONE_PASSWORD_PROTECTED | 400 | This phone is password protected |
170 | PHOTO_CONTENT_URL_EMPTY | 400 | The content from the URL used as a photo appears to be empty or has caused another HTTP error |
171 | PHOTO_CROP_SIZE_SMALL | 400 | Photo is too small |
172 | PHOTO_EXT_INVALID | 400 | The extension of the photo is invalid |
173 | PHOTO_INVALID | 400 | Photo invalid |
174 | PHOTO_INVALID_DIMENSIONS | 400 | The photo dimensions are invalid |
175 | PHOTO_SAVE_FILE_INVALID | 400 | The photo you tried to send cannot be saved by Telegram. A reason may be that it exceeds 10MB. Try resizing it locally |
176 | PHOTO_THUMB_URL_EMPTY | 400 | The URL used as a thumbnail appears to be empty or has caused another HTTP error |
177 | PIN_RESTRICTED | 400 | You can't pin messages in private chats with other people |
178 | PRIVACY_KEY_INVALID | 400 | The privacy key is invalid |
179 | PTS_CHANGE_EMPTY | 500 | No PTS change |
180 | QUERY_ID_EMPTY | 400 | The query ID is empty |
181 | QUERY_ID_INVALID | 400 | The query ID is invalid |
182 | QUERY_TOO_SHORT | 400 | The query string is too short |
183 | RANDOM_ID_DUPLICATE | 500 | You provided a random ID that was already used |
184 | RANDOM_ID_INVALID | 400 | A provided random ID is invalid |
185 | RANDOM_LENGTH_INVALID | 400 | Random length invalid |
186 | RANGES_INVALID | 400 | Invalid range provided |
187 | REG_ID_GENERATE_FAILED | 500 | Failure while generating registration ID |
188 | REPLY_MARKUP_INVALID | 400 | The provided reply markup is invalid |
189 | REPLY_MARKUP_TOO_LONG | 400 | The data embedded in the reply markup buttons was too much |
190 | RESULT_TYPE_INVALID | 400 | Result type invalid |
191 | RIGHT_FORBIDDEN | 403 | Your admin rights do not allow you to do this |
192 | RPC_CALL_FAIL | Telegram is having internal issues, please try again later. | |
193 | RPC_MCGET_FAIL | Telegram is having internal issues, please try again later. | |
194 | RSA_DECRYPT_FAILED | 400 | Internal RSA decryption failed |
195 | SEARCH_QUERY_EMPTY | 400 | The search query is empty |
196 | SEND_MESSAGE_MEDIA_INVALID | 400 | The message media was invalid or not specified |
197 | SEND_MESSAGE_TYPE_INVALID | 400 | The message type is invalid |
198 | SESSION_EXPIRED | 401 | The authorization has expired |
199 | SESSION_PASSWORD_NEEDED | 401 | Two-steps verification is enabled and a password is required |
200 | SESSION_REVOKED | 401 | The authorization has been invalidated, because of the user terminating all sessions |
201 | SHA256_HASH_INVALID | 400 | The provided SHA256 hash is invalid |
202 | SHORTNAME_OCCUPY_FAILED | 400 | An error occurred when trying to register the short-name used for the sticker pack. Try a different name |
203 | START_PARAM_EMPTY | 400 | The start parameter is empty |
204 | START_PARAM_INVALID | 400 | Start parameter invalid |
205 | STICKERSET_INVALID | 400 | The provided sticker set is invalid |
206 | STICKERS_EMPTY | 400 | No sticker provided |
207 | STICKER_EMOJI_INVALID | 400 | Sticker emoji invalid |
208 | STICKER_FILE_INVALID | 400 | Sticker file invalid |
209 | STICKER_ID_INVALID | 400 | The provided sticker ID is invalid |
210 | STICKER_INVALID | 400 | The provided sticker is invalid |
211 | STICKER_PNG_DIMENSIONS | 400 | Sticker png dimensions invalid |
212 | STORAGE_CHECK_FAILED | 500 | Server storage check failed |
213 | STORE_INVALID_SCALAR_TYPE | 500 | |
214 | TAKEOUT_INIT_DELAY_X | 420 | A wait of {seconds} seconds is required before being able to initiate the takeout |
215 | TAKEOUT_INVALID | 400 | The takeout session has been invalidated by another data export session |
216 | TAKEOUT_REQUIRED | 400 | You must initialize a takeout request first |
217 | TEMP_AUTH_KEY_EMPTY | 400 | No temporary auth key provided |
218 | Timeout | -503 | A timeout occurred while fetching data from the bot |
219 | TMP_PASSWORD_DISABLED | 400 | The temporary password is disabled |
220 | TOKEN_INVALID | 400 | The provided token is invalid |
221 | TTL_DAYS_INVALID | 400 | The provided TTL is invalid |
222 | TYPES_EMPTY | 400 | The types field is empty |
223 | TYPE_CONSTRUCTOR_INVALID | The type constructor is invalid | |
224 | UNKNOWN_METHOD | 500 | The method you tried to call cannot be called on non-CDN DCs |
225 | URL_INVALID | 400 | The URL used was invalid (e.g. when answering a callback with an URL that's not t.me/yourbot or your game's URL) |
226 | USERNAME_INVALID | 400 | Nobody is using this username, or the username is unacceptable. If the latter, it must match r"[a-zA-Z][\w\d]{3,30}[a-zA-Z\d]" |
227 | USERNAME_NOT_MODIFIED | 400 | The username is not different from the current username |
228 | USERNAME_NOT_OCCUPIED | 400 | The username is not in use by anyone else yet |
229 | USERNAME_OCCUPIED | 400 | The username is already taken |
230 | USERS_TOO_FEW | 400 | Not enough users (to create a chat, for example) |
231 | USERS_TOO_MUCH | 400 | The maximum number of users has been exceeded (to create a chat, for example) |
232 | USER_ADMIN_INVALID | 400 | You're not an admin |
233 | USER_ALREADY_PARTICIPANT | 400 | The authenticated user is already a participant of the chat |
234 | USER_BANNED_IN_CHANNEL | 400 | You're banned from sending messages in supergroups/channels |
235 | USER_BLOCKED | 400 | User blocked |
236 | USER_BOT | 400 | Bots can only be admins in channels. |
237 | USER_BOT_INVALID | 400 403 | This method can only be called by a bot |
238 | USER_BOT_REQUIRED | 400 | This method can only be called by a bot |
239 | USER_CHANNELS_TOO_MUCH | 403 | One of the users you tried to add is already in too many channels/supergroups |
240 | USER_CREATOR | 400 | You can't leave this channel, because you're its creator |
241 | USER_DEACTIVATED | 401 | The user has been deleted/deactivated |
242 | USER_ID_INVALID | 400 | Invalid object ID for a user. Make sure to pass the right types, for instance making sure that the request is designed for users or otherwise look for a different one more suited |
243 | USER_IS_BLOCKED | 400 403 | User is blocked |
244 | USER_IS_BOT | 400 | Bots can't send messages to other bots |
245 | USER_KICKED | 400 | This user was kicked from this supergroup/channel |
246 | USER_MIGRATE_X | 303 | The user whose identity is being used to execute queries is associated with DC {new_dc} |
247 | USER_NOT_MUTUAL_CONTACT | 400 403 | The provided user is not a mutual contact |
248 | USER_NOT_PARTICIPANT | 400 | The target user is not a member of the specified megagroup or channel |
249 | USER_PRIVACY_RESTRICTED | 403 | The user's privacy settings do not allow you to do this |
250 | USER_RESTRICTED | 403 | You're spamreported, you can't create channels or chats. |
251 | VIDEO_CONTENT_TYPE_INVALID | 400 | The video content type is not supported with the given parameters (i.e. supports_streaming) |
252 | WC_CONVERT_URL_INVALID | 400 | WC convert URL invalid |
253 | WEBPAGE_CURL_FAILED | 400 | Failure while fetching the webpage with cURL |
254 | WEBPAGE_MEDIA_EMPTY | 400 | Webpage media empty |
255 | YOU_BLOCKED_USER | 400 | You blocked this user |