Update errors list

This commit is contained in:
Dan 2021-03-14 12:37:13 +01:00
parent 2db8256276
commit 4afedd7ba6
2 changed files with 9 additions and 1 deletions

View File

@ -55,6 +55,7 @@ CHAT_ADMIN_REQUIRED The method requires chat admin privileges
CHAT_ID_EMPTY The provided chat id is empty CHAT_ID_EMPTY The provided chat id is empty
CHAT_ID_INVALID The chat id being used is invalid or not known yet. Make sure you see the chat before interacting with it CHAT_ID_INVALID The chat id being used is invalid or not known yet. Make sure you see the chat before interacting with it
CHAT_INVALID The chat is invalid CHAT_INVALID The chat is invalid
CHAT_INVITE_PERMANENT The chat invite link is primary
CHAT_LINK_EXISTS The action failed because the supergroup is linked to a channel CHAT_LINK_EXISTS The action failed because the supergroup is linked to a channel
CHAT_NOT_MODIFIED The chat settings (title, permissions, photo, etc..) were not modified because you tried to edit them using the same content CHAT_NOT_MODIFIED The chat settings (title, permissions, photo, etc..) were not modified because you tried to edit them using the same content
CHAT_RESTRICTED The chat is restricted and cannot be used CHAT_RESTRICTED The chat is restricted and cannot be used
@ -98,6 +99,7 @@ ENCRYPTION_ID_INVALID The provided secret chat id is invalid
ENTITIES_TOO_LONG The entity provided contains data that is too long, or you passed too many entities to this message ENTITIES_TOO_LONG The entity provided contains data that is too long, or you passed too many entities to this message
ENTITY_MENTION_USER_INVALID The mentioned entity is not an user ENTITY_MENTION_USER_INVALID The mentioned entity is not an user
ERROR_TEXT_EMPTY The provided error message is empty ERROR_TEXT_EMPTY The provided error message is empty
EXPIRE_DATE_INVALID The expiration date is invalid
EXPORT_CARD_INVALID The provided card is invalid EXPORT_CARD_INVALID The provided card is invalid
EXTERNAL_URL_INVALID The external media URL is invalid EXTERNAL_URL_INVALID The external media URL is invalid
FIELD_NAME_EMPTY The field with the name FIELD_NAME is missing FIELD_NAME_EMPTY The field with the name FIELD_NAME is missing
@ -133,6 +135,9 @@ GROUPED_MEDIA_INVALID The album contains invalid media
GROUP_CALL_INVALID The group call is invalid GROUP_CALL_INVALID The group call is invalid
HASH_INVALID The provided hash is invalid HASH_INVALID The provided hash is invalid
IMAGE_PROCESS_FAILED The server failed to process your image IMAGE_PROCESS_FAILED The server failed to process your image
IMPORT_FILE_INVALID The imported file is invalid
IMPORT_FORMAT_UNRECOGNIZED The imported format is unrecognized
IMPORT_ID_INVALID The import id is invalid
INLINE_RESULT_EXPIRED The inline bot query expired INLINE_RESULT_EXPIRED The inline bot query expired
INPUT_CONSTRUCTOR_INVALID The provided constructor is invalid INPUT_CONSTRUCTOR_INVALID The provided constructor is invalid
INPUT_FETCH_ERROR An error occurred while deserializing TL parameters INPUT_FETCH_ERROR An error occurred while deserializing TL parameters
@ -145,6 +150,7 @@ INPUT_USER_DEACTIVATED The target user has been deleted/deactivated
INVITE_HASH_EMPTY The invite hash is empty INVITE_HASH_EMPTY The invite hash is empty
INVITE_HASH_EXPIRED The chat invite link is no longer valid INVITE_HASH_EXPIRED The chat invite link is no longer valid
INVITE_HASH_INVALID The invite link hash is invalid INVITE_HASH_INVALID The invite link hash is invalid
INVITE_REVOKED_MISSING The action required a chat invite link to be revoked first
LANG_PACK_INVALID The provided language pack is invalid LANG_PACK_INVALID The provided language pack is invalid
LASTNAME_INVALID The last name is invalid LASTNAME_INVALID The last name is invalid
LIMIT_INVALID The limit parameter is invalid LIMIT_INVALID The limit parameter is invalid
@ -299,6 +305,7 @@ TYPES_EMPTY The types parameter is empty
TYPE_CONSTRUCTOR_INVALID The type constructor is invalid TYPE_CONSTRUCTOR_INVALID The type constructor is invalid
UNTIL_DATE_INVALID That date parameter is invalid UNTIL_DATE_INVALID That date parameter is invalid
URL_INVALID The URL provided is invalid URL_INVALID The URL provided is invalid
USAGE_LIMIT_INVALID The usage limit is invalid
USERNAME_INVALID The username is invalid USERNAME_INVALID The username is invalid
USERNAME_NOT_MODIFIED The username was not modified because you tried to edit it using the same one USERNAME_NOT_MODIFIED The username was not modified because you tried to edit it using the same one
USERNAME_NOT_OCCUPIED The username is not occupied by anyone USERNAME_NOT_OCCUPIED The username is not occupied by anyone

1 id message
55 CHAT_ID_EMPTY The provided chat id is empty
56 CHAT_ID_INVALID The chat id being used is invalid or not known yet. Make sure you see the chat before interacting with it
57 CHAT_INVALID The chat is invalid
58 CHAT_INVITE_PERMANENT The chat invite link is primary
59 CHAT_LINK_EXISTS The action failed because the supergroup is linked to a channel
60 CHAT_NOT_MODIFIED The chat settings (title, permissions, photo, etc..) were not modified because you tried to edit them using the same content
61 CHAT_RESTRICTED The chat is restricted and cannot be used
99 ENTITIES_TOO_LONG The entity provided contains data that is too long, or you passed too many entities to this message
100 ENTITY_MENTION_USER_INVALID The mentioned entity is not an user
101 ERROR_TEXT_EMPTY The provided error message is empty
102 EXPIRE_DATE_INVALID The expiration date is invalid
103 EXPORT_CARD_INVALID The provided card is invalid
104 EXTERNAL_URL_INVALID The external media URL is invalid
105 FIELD_NAME_EMPTY The field with the name FIELD_NAME is missing
135 GROUP_CALL_INVALID The group call is invalid
136 HASH_INVALID The provided hash is invalid
137 IMAGE_PROCESS_FAILED The server failed to process your image
138 IMPORT_FILE_INVALID The imported file is invalid
139 IMPORT_FORMAT_UNRECOGNIZED The imported format is unrecognized
140 IMPORT_ID_INVALID The import id is invalid
141 INLINE_RESULT_EXPIRED The inline bot query expired
142 INPUT_CONSTRUCTOR_INVALID The provided constructor is invalid
143 INPUT_FETCH_ERROR An error occurred while deserializing TL parameters
150 INVITE_HASH_EMPTY The invite hash is empty
151 INVITE_HASH_EXPIRED The chat invite link is no longer valid
152 INVITE_HASH_INVALID The invite link hash is invalid
153 INVITE_REVOKED_MISSING The action required a chat invite link to be revoked first
154 LANG_PACK_INVALID The provided language pack is invalid
155 LASTNAME_INVALID The last name is invalid
156 LIMIT_INVALID The limit parameter is invalid
305 TYPE_CONSTRUCTOR_INVALID The type constructor is invalid
306 UNTIL_DATE_INVALID That date parameter is invalid
307 URL_INVALID The URL provided is invalid
308 USAGE_LIMIT_INVALID The usage limit is invalid
309 USERNAME_INVALID The username is invalid
310 USERNAME_NOT_MODIFIED The username was not modified because you tried to edit it using the same one
311 USERNAME_NOT_OCCUPIED The username is not occupied by anyone

View File

@ -10,6 +10,7 @@ CHAT_SEND_MEDIA_FORBIDDEN You can't send media messages in this chat
CHAT_SEND_POLL_FORBIDDEN You can't send polls in this chat CHAT_SEND_POLL_FORBIDDEN You can't send polls in this chat
CHAT_SEND_STICKERS_FORBIDDEN You can't send stickers in this chat CHAT_SEND_STICKERS_FORBIDDEN You can't send stickers in this chat
CHAT_WRITE_FORBIDDEN You don't have rights to send messages in this chat CHAT_WRITE_FORBIDDEN You don't have rights to send messages in this chat
EDIT_BOT_INVITE_FORBIDDEN Bots' chat invite links can't be edited
INLINE_BOT_REQUIRED The action must be performed through an inline bot callback INLINE_BOT_REQUIRED The action must be performed through an inline bot callback
MESSAGE_AUTHOR_REQUIRED You are not the author of this message MESSAGE_AUTHOR_REQUIRED You are not the author of this message
MESSAGE_DELETE_FORBIDDEN You don't have rights to delete messages in this chat, most likely because you are not the author of them MESSAGE_DELETE_FORBIDDEN You don't have rights to delete messages in this chat, most likely because you are not the author of them
@ -23,4 +24,4 @@ USER_INVALID The provided user is invalid
USER_IS_BLOCKED The user is blocked USER_IS_BLOCKED The user is blocked
USER_NOT_MUTUAL_CONTACT The provided user is not a mutual contact USER_NOT_MUTUAL_CONTACT The provided user is not a mutual contact
USER_PRIVACY_RESTRICTED The user's privacy settings is preventing you to perform this action USER_PRIVACY_RESTRICTED The user's privacy settings is preventing you to perform this action
USER_RESTRICTED You are limited/restricted. You can't perform this action. USER_RESTRICTED You are limited/restricted. You can't perform this action
1 id message
10 CHAT_SEND_POLL_FORBIDDEN You can't send polls in this chat
11 CHAT_SEND_STICKERS_FORBIDDEN You can't send stickers in this chat
12 CHAT_WRITE_FORBIDDEN You don't have rights to send messages in this chat
13 EDIT_BOT_INVITE_FORBIDDEN Bots' chat invite links can't be edited
14 INLINE_BOT_REQUIRED The action must be performed through an inline bot callback
15 MESSAGE_AUTHOR_REQUIRED You are not the author of this message
16 MESSAGE_DELETE_FORBIDDEN You don't have rights to delete messages in this chat, most likely because you are not the author of them
24 USER_IS_BLOCKED The user is blocked
25 USER_NOT_MUTUAL_CONTACT The provided user is not a mutual contact
26 USER_PRIVACY_RESTRICTED The user's privacy settings is preventing you to perform this action
27 USER_RESTRICTED You are limited/restricted. You can't perform this action. You are limited/restricted. You can't perform this action