Telethon/telethon_generator/data/errors.csv
2018-11-30 21:38:36 +01:00

17 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
7API_ID_INVALID400The api_id/api_hash combination is invalid
8API_ID_PUBLISHED_FLOOD400This API id was published somewhere, you can't use it now
9ARTICLE_TITLE_EMPTY400The title of the article is empty
10AUTH_BYTES_INVALID400The provided authorization is invalid
11AUTH_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
12AUTH_KEY_INVALID401The key is invalid
13AUTH_KEY_PERM_EMPTY401The method is unavailable for temporary authorization key, not bound to permanent
14AUTH_KEY_UNREGISTERED401The key is not registered in the system
15AUTH_RESTART500Restart the authorization process
16BOTS_TOO_MUCH400There are too many bots in this chat/channel
17BOT_CHANNELS_NA400Bots can't edit admin privileges
18BOT_GROUPS_BLOCKED400This bot can't be added to groups
19BOT_INLINE_DISABLED400This bot can't be used in inline mode
20BOT_INVALID400This is not a valid bot
21BOT_METHOD_INVALIDThe API access for bot users is restricted. The method you tried to invoke cannot be executed as a bot
22BOT_MISSING400This method can only be run by a bot
23BUTTON_DATA_INVALID400The provided button data is invalid
24BUTTON_TYPE_INVALID400The type of one of the buttons you provided is invalid
25BUTTON_URL_INVALID400Button URL invalid
26CALL_ALREADY_ACCEPTED400The call was already accepted
27CALL_ALREADY_DECLINED400The call was already declined
28CALL_OCCUPY_FAILED500The call failed because the user is already making another call
29CALL_PEER_INVALID400The provided call peer object is invalid
30CALL_PROTOCOL_FLAGS_INVALID400Call protocol flags invalid
31CDN_METHOD_INVALID400This method cannot be invoked on a CDN server. Refer to https://core.telegram.org/cdn#schema for available methods
32CHANNELS_ADMIN_PUBLIC_TOO_MUCH400You're admin of too many public channels, make some channels private to change the username of this channel
33CHANNELS_TOO_MUCH400You have joined too many channels/supergroups
34CHANNEL_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
35CHANNEL_PRIVATE400The channel specified is private and you lack permission to access it. Another reason may be that you were banned from it
36CHANNEL_PUBLIC_GROUP_NA403channel/supergroup not available
37CHAT_ABOUT_NOT_MODIFIED400About text has not changed
38CHAT_ABOUT_TOO_LONG400Chat about too long
39CHAT_ADMIN_INVITE_REQUIRED403You do not have the rights to do this
40CHAT_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)
41CHAT_FORBIDDENYou cannot write in this chat
42CHAT_ID_EMPTY400The provided chat ID is empty
43CHAT_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
44CHAT_NOT_MODIFIED400The chat or channel wasn't modified (title, invites, username, admins, etc. are the same)
45CHAT_RESTRICTED400The chat is restricted and cannot be used in that request
46CHAT_SEND_GIFS_FORBIDDEN403You can't send gifs in this chat
47CHAT_SEND_MEDIA_FORBIDDEN403You can't send media in this chat
48CHAT_SEND_STICKERS_FORBIDDEN403You can't send stickers in this chat.
49CHAT_TITLE_EMPTY400No chat title provided
50CHAT_WRITE_FORBIDDEN403You can't write in this chat
51CODE_EMPTY400The provided code is empty
52CODE_HASH_INVALID400Code hash invalid
53CONNECTION_API_ID_INVALID400The provided API id is invalid
54CONNECTION_DEVICE_MODEL_EMPTY400Device model empty
55CONNECTION_LANG_PACK_INVALID400The specified language pack is not valid. This is meant to be used by official applications only so far, leave it empty
56CONNECTION_LAYER_INVALID400The very first request must always be InvokeWithLayerRequest
57CONNECTION_NOT_INITED400Connection not initialized
58CONNECTION_SYSTEM_EMPTY400Connection system empty
59CONTACT_ID_INVALID400The provided contact ID is invalid
60DATA_INVALID400Encrypted data invalid
61DATA_JSON_INVALID400The provided JSON data is invalid
62DATE_EMPTY400Date empty
63DC_ID_INVALID400This occurs when an authorization is tried to be exported for the same data center one is currently connected to
64DH_G_A_INVALID400g_a invalid
65EMAIL_UNCONFIRMED400Email unconfirmed
66ENCRYPTED_MESSAGE_INVALID400Encrypted message invalid
67ENCRYPTION_ALREADY_ACCEPTED400Secret chat already accepted
68ENCRYPTION_ALREADY_DECLINED400The secret chat was already declined
69ENCRYPTION_DECLINED400The secret chat was declined
70ENCRYPTION_ID_INVALID400The provided secret chat ID is invalid
71ENCRYPTION_OCCUPY_FAILED500Internal server error while accepting secret chat
72ENTITY_MENTION_USER_INVALID400You can't use this entity
73ERROR_TEXT_EMPTY400The provided error message is empty
74EXPORT_CARD_INVALID400Provided card is invalid
75EXTERNAL_URL_INVALID400External URL invalid
76FIELD_NAME_EMPTYThe field with the name FIELD_NAME is missing
77FIELD_NAME_INVALIDThe field with the name FIELD_NAME is invalid
78FILE_ID_INVALID400The provided file id is invalid
79FILE_MIGRATE_X303The file to be accessed is currently stored in DC {}
80FILE_PARTS_INVALID400The number of file parts is invalid
81FILE_PART_0_MISSINGFile part 0 missing
82FILE_PART_EMPTY400The provided file part is empty
83FILE_PART_INVALID400The file part number is invalid
84FILE_PART_LENGTH_INVALID400The length of a file part is invalid
85FILE_PART_SIZE_INVALID400The provided file part size is invalid
86FILE_PART_X_MISSINGPart {} of the file is missing from storage
87FIRSTNAME_INVALID400The first name is invalid
88FLOOD_TEST_PHONE_WAIT_X420A wait of {} seconds is required in the test servers
89FLOOD_WAIT_X420A wait of {} seconds is required
90GIF_ID_INVALID400The provided GIF ID is invalid
91GROUPED_MEDIA_INVALID400Invalid grouped media
92HASH_INVALID400The provided hash is invalid
93HISTORY_GET_FAILED500Fetching of history failed
94IMAGE_PROCESS_FAILED400Failure while processing image
95INLINE_RESULT_EXPIRED400The inline query expired
96INPUT_CONSTRUCTOR_INVALID400The provided constructor is invalid
97INPUT_FETCH_ERRORAn error occurred while deserializing TL parameters
98INPUT_FETCH_FAIL400Failed deserializing TL payload
99INPUT_LAYER_INVALID400The provided layer is invalid
100INPUT_METHOD_INVALIDThe invoked method does not exist anymore or has never existed
101INPUT_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)
102INPUT_USER_DEACTIVATED400The specified user was deleted
103INTERDC_1_CALL_ERRORAn error occurred while communicating with DC 1
104INTERDC_1_CALL_RICH_ERRORA rich error occurred while communicating with DC 1
105INTERDC_2_CALL_ERRORAn error occurred while communicating with DC 2
106INTERDC_2_CALL_RICH_ERRORA rich error occurred while communicating with DC 2
107INTERDC_3_CALL_ERRORAn error occurred while communicating with DC 3
108INTERDC_3_CALL_RICH_ERRORA rich error occurred while communicating with DC 3
109INTERDC_4_CALL_ERRORAn error occurred while communicating with DC 4
110INTERDC_4_CALL_RICH_ERRORA rich error occurred while communicating with DC 4
111INTERDC_5_CALL_ERRORAn error occurred while communicating with DC 5
112INTERDC_5_CALL_RICH_ERRORA rich error occurred while communicating with DC 5
113INVITE_HASH_EMPTY400The invite hash is empty
114INVITE_HASH_EXPIRED400The chat the user tried to join has expired and is not valid anymore
115INVITE_HASH_INVALID400The invite hash is invalid
116LANG_PACK_INVALID400The provided language pack is invalid
117LASTNAME_INVALIDThe last name is invalid
118LIMIT_INVALID400An invalid limit was provided. See https://core.telegram.org/api/files#downloading-files
119LOCATION_INVALID400The location given for a file was invalid. See https://core.telegram.org/api/files#downloading-files
120MAX_ID_INVALID400The provided max ID is invalid
121MD5_CHECKSUM_INVALIDThe MD5 check-sums do not match
122MEDIA_CAPTION_TOO_LONG400The caption is too long
123MEDIA_EMPTY400The provided media object is invalid
124MEDIA_INVALID400Media invalid
125MEMBER_NO_LOCATION500An internal failure occurred while fetching user info (couldn't find location)
126MEMBER_OCCUPY_PRIMARY_LOC_FAILED500Occupation of primary member location failed
127MESSAGE_AUTHOR_REQUIRED403Message author required
128MESSAGE_DELETE_FORBIDDEN403You can't delete one of the messages you tried to delete, most likely because it is a service message.
129MESSAGE_EDIT_TIME_EXPIRED400You can't edit this message anymore, too much time has passed since its creation.
130MESSAGE_EMPTY400Empty or invalid UTF-8 message was sent
131MESSAGE_IDS_EMPTY400No message ids were provided
132MESSAGE_ID_INVALID400The specified message ID is invalid
133MESSAGE_NOT_MODIFIED400Content of the message was not modified
134MESSAGE_TOO_LONG400Message was too long. Current maximum length is 4096 UTF-8 characters
135MSG_WAIT_FAILED400A waiting call returned an error
136NEED_CHAT_INVALID500The provided chat is invalid
137NEED_MEMBER_INVALID500The provided member is invalid
138NETWORK_MIGRATE_X303The source IP address is associated with DC {}
139NEW_SALT_INVALID400The new salt is invalid
140NEW_SETTINGS_INVALID400The new settings are invalid
141OFFSET_INVALID400The given offset was invalid, it must be divisible by 1KB. See https://core.telegram.org/api/files#downloading-files
142OFFSET_PEER_ID_INVALID400The provided offset peer is invalid
143PACK_SHORT_NAME_INVALID400Invalid sticker pack name. It must begin with a letter, can't contain consecutive underscores and must end in "_by_<bot username>".
144PACK_SHORT_NAME_OCCUPIED400A stickerpack with this name already exists
145PARTICIPANTS_TOO_FEW400Not enough participants
146PARTICIPANT_CALL_FAILED500Failure while making call
147PARTICIPANT_VERSION_OUTDATED400The other participant does not use an up to date telegram client with support for calls
148PASSWORD_EMPTY400The provided password is empty
149PASSWORD_HASH_INVALID400The password (and thus its hash value) you entered is invalid
150PEER_FLOODToo many requests
151PEER_ID_INVALID400An invalid Peer was used. Make sure to pass the right peer type
152PEER_ID_NOT_SUPPORTED400The provided peer ID is not supported
153PERSISTENT_TIMESTAMP_EMPTY400Persistent timestamp empty
154PERSISTENT_TIMESTAMP_INVALID400Persistent timestamp invalid
155PERSISTENT_TIMESTAMP_OUTDATED500Persistent timestamp outdated
156PHONE_CODE_EMPTY400The phone code is missing
157PHONE_CODE_EXPIRED400The confirmation code has expired
158PHONE_CODE_HASH_EMPTYThe phone code hash is missing
159PHONE_CODE_INVALID400The phone code entered was invalid
160PHONE_MIGRATE_X303The phone number a user is trying to use for authorization is associated with DC {}
161PHONE_NUMBER_APP_SIGNUP_FORBIDDEN400
162PHONE_NUMBER_BANNED400The used phone number has been banned from Telegram and cannot be used anymore. Maybe check https://www.telegram.org/faq_spam
163PHONE_NUMBER_FLOOD400You asked for the code too many times.
164PHONE_NUMBER_INVALID400 406The phone number is invalid
165PHONE_NUMBER_OCCUPIED400The phone number is already in use
166PHONE_NUMBER_UNOCCUPIED400The phone number is not yet being used
167PHONE_PASSWORD_FLOOD406You have tried logging in too many times
168PHONE_PASSWORD_PROTECTED400This phone is password protected
169PHOTO_CROP_SIZE_SMALL400Photo is too small
170PHOTO_EXT_INVALID400The extension of the photo is invalid
171PHOTO_INVALID400Photo invalid
172PHOTO_INVALID_DIMENSIONS400The photo dimensions are invalid
173PHOTO_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
174PRIVACY_KEY_INVALID400The privacy key is invalid
175PTS_CHANGE_EMPTY500No PTS change
176QUERY_ID_EMPTY400The query ID is empty
177QUERY_ID_INVALID400The query ID is invalid
178QUERY_TOO_SHORT400The query string is too short
179RANDOM_ID_DUPLICATE500You provided a random ID that was already used
180RANDOM_ID_INVALID400A provided random ID is invalid
181RANDOM_LENGTH_INVALID400Random length invalid
182RANGES_INVALID400Invalid range provided
183REG_ID_GENERATE_FAILED500Failure while generating registration ID
184REPLY_MARKUP_INVALID400The provided reply markup is invalid
185REPLY_MARKUP_TOO_LONG400The data embedded in the reply markup buttons was too much
186RESULT_TYPE_INVALID400Result type invalid
187RIGHT_FORBIDDEN403Your admin rights do not allow you to do this
188RPC_CALL_FAILTelegram is having internal issues, please try again later.
189RPC_MCGET_FAILTelegram is having internal issues, please try again later.
190RSA_DECRYPT_FAILED400Internal RSA decryption failed
191SEARCH_QUERY_EMPTY400The search query is empty
192SEND_MESSAGE_TYPE_INVALID400The message type is invalid
193SESSION_EXPIRED401The authorization has expired
194SESSION_PASSWORD_NEEDED401Two-steps verification is enabled and a password is required
195SESSION_REVOKED401The authorization has been invalidated, because of the user terminating all sessions
196SHA256_HASH_INVALID400The provided SHA256 hash is invalid
197SHORTNAME_OCCUPY_FAILED400An error occurred when trying to register the short-name used for the sticker pack. Try a different name
198START_PARAM_EMPTY400The start parameter is empty
199START_PARAM_INVALID400Start parameter invalid
200STICKERSET_INVALID400The provided sticker set is invalid
201STICKERS_EMPTY400No sticker provided
202STICKER_EMOJI_INVALID400Sticker emoji invalid
203STICKER_FILE_INVALID400Sticker file invalid
204STICKER_ID_INVALID400The provided sticker ID is invalid
205STICKER_INVALID400The provided sticker is invalid
206STICKER_PNG_DIMENSIONS400Sticker png dimensions invalid
207STORAGE_CHECK_FAILED500Server storage check failed
208STORE_INVALID_SCALAR_TYPE500
209TAKEOUT_INIT_DELAY_X420A wait of {} seconds is required before being able to initiate the takeout
210TAKEOUT_REQUIRED400You must initialize a takeout request first
211TEMP_AUTH_KEY_EMPTY400No temporary auth key provided
212Timeout-503A timeout occurred while fetching data from the bot
213TMP_PASSWORD_DISABLED400The temporary password is disabled
214TOKEN_INVALID400The provided token is invalid
215TTL_DAYS_INVALID400The provided TTL is invalid
216TYPES_EMPTY400The types field is empty
217TYPE_CONSTRUCTOR_INVALIDThe type constructor is invalid
218UNKNOWN_METHOD500The method you tried to call cannot be called on non-CDN DCs
219URL_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)
220USERNAME_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]"
221USERNAME_NOT_MODIFIED400The username is not different from the current username
222USERNAME_NOT_OCCUPIED400The username is not in use by anyone else yet
223USERNAME_OCCUPIED400The username is already taken
224USERS_TOO_FEW400Not enough users (to create a chat, for example)
225USERS_TOO_MUCH400The maximum number of users has been exceeded (to create a chat, for example)
226USER_ADMIN_INVALID400You're not an admin
227USER_ALREADY_PARTICIPANT400The authenticated user is already a participant of the chat
228USER_BANNED_IN_CHANNEL400You're banned from sending messages in supergroups/channels
229USER_BLOCKED400User blocked
230USER_BOT400Bots can only be admins in channels.
231USER_BOT_INVALID400 403This method can only be called by a bot
232USER_BOT_REQUIRED400This method can only be called by a bot
233USER_CHANNELS_TOO_MUCH403One of the users you tried to add is already in too many channels/supergroups
234USER_CREATOR400You can't leave this channel, because you're its creator
235USER_DEACTIVATED401The user has been deleted/deactivated
236USER_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
237USER_IS_BLOCKED400 403User is blocked
238USER_IS_BOT400Bots can't send messages to other bots
239USER_KICKED400This user was kicked from this supergroup/channel
240USER_MIGRATE_X303The user whose identity is being used to execute queries is associated with DC {}
241USER_NOT_MUTUAL_CONTACT400 403The provided user is not a mutual contact
242USER_NOT_PARTICIPANT400The target user is not a member of the specified megagroup or channel
243USER_PRIVACY_RESTRICTED403The user's privacy settings do not allow you to do this
244USER_RESTRICTED403You're spamreported, you can't create channels or chats.
245WC_CONVERT_URL_INVALID400WC convert URL invalid
246WEBPAGE_CURL_FAILED400Failure while fetching the webpage with cURL
247WEBPAGE_MEDIA_EMPTY400Webpage media empty
248YOU_BLOCKED_USER400You blocked this user