Add new errors to the list of known ones

This commit is contained in:
Lonami Exo
2019-04-05 21:38:17 +04:00
parent 29b21209bf
commit 68291c7b3d
2 changed files with 5 additions and 2 deletions

View File

@@ -76,7 +76,8 @@ ENCRYPTION_ALREADY_ACCEPTED,400,Secret chat already accepted
ENCRYPTION_ALREADY_DECLINED,400,The secret chat was already declined
ENCRYPTION_DECLINED,400,The secret chat was declined
ENCRYPTION_ID_INVALID,400,The provided secret chat ID is invalid
ENCRYPTION_OCCUPY_FAILED,500,Internal server error while accepting secret chat
ENCRYPTION_OCCUPY_FAILED,500,TDLib developer claimed it is not an error while accepting secret chats and 500 is used instead of 420
ENTITIES_TOO_LONG,400,It is no longer possible to send such long data inside entity tags (for example inline text URLs)
ENTITY_MENTION_USER_INVALID,400,You can't use this entity
ERROR_TEXT_EMPTY,400,The provided error message is empty
EXPORT_CARD_INVALID,400,Provided card is invalid
@@ -138,6 +139,7 @@ MESSAGE_ID_INVALID,400,The specified message ID is invalid
MESSAGE_NOT_MODIFIED,400,Content of the message was not modified
MESSAGE_TOO_LONG,400,Message was too long. Current maximum length is 4096 UTF-8 characters
MSG_WAIT_FAILED,400,A waiting call returned an error
MT_SEND_QUEUE_TOO_LONG,500,
NEED_CHAT_INVALID,500,The provided chat is invalid
NEED_MEMBER_INVALID,500,The provided member is invalid
NETWORK_MIGRATE_X,303,The source IP address is associated with DC {new_dc}
@@ -181,6 +183,7 @@ PHOTO_INVALID_DIMENSIONS,400,The photo dimensions are invalid (hint: `pip instal
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
PHOTO_THUMB_URL_EMPTY,400,The URL used as a thumbnail appears to be empty or has caused another HTTP error
PIN_RESTRICTED,400,You can't pin messages in private chats with other people
POLL_UNSUPPORTED,400,This layer does not support polls in the issued method
PRIVACY_KEY_INVALID,400,The privacy key is invalid
PTS_CHANGE_EMPTY,500,No PTS change
QUERY_ID_EMPTY,400,The query ID is empty
1 name codes description
76 ENCRYPTION_ALREADY_DECLINED 400 The secret chat was already declined
77 ENCRYPTION_DECLINED 400 The secret chat was declined
78 ENCRYPTION_ID_INVALID 400 The provided secret chat ID is invalid
79 ENCRYPTION_OCCUPY_FAILED 500 Internal server error while accepting secret chat TDLib developer claimed it is not an error while accepting secret chats and 500 is used instead of 420
80 ENTITIES_TOO_LONG 400 It is no longer possible to send such long data inside entity tags (for example inline text URLs)
81 ENTITY_MENTION_USER_INVALID 400 You can't use this entity
82 ERROR_TEXT_EMPTY 400 The provided error message is empty
83 EXPORT_CARD_INVALID 400 Provided card is invalid
139 MESSAGE_NOT_MODIFIED 400 Content of the message was not modified
140 MESSAGE_TOO_LONG 400 Message was too long. Current maximum length is 4096 UTF-8 characters
141 MSG_WAIT_FAILED 400 A waiting call returned an error
142 MT_SEND_QUEUE_TOO_LONG 500
143 NEED_CHAT_INVALID 500 The provided chat is invalid
144 NEED_MEMBER_INVALID 500 The provided member is invalid
145 NETWORK_MIGRATE_X 303 The source IP address is associated with DC {new_dc}
183 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
184 PHOTO_THUMB_URL_EMPTY 400 The URL used as a thumbnail appears to be empty or has caused another HTTP error
185 PIN_RESTRICTED 400 You can't pin messages in private chats with other people
186 POLL_UNSUPPORTED 400 This layer does not support polls in the issued method
187 PRIVACY_KEY_INVALID 400 The privacy key is invalid
188 PTS_CHANGE_EMPTY 500 No PTS change
189 QUERY_ID_EMPTY 400 The query ID is empty