Adding new errors

This commit is contained in:
Devesh Pal 2021-08-20 13:10:13 +05:30 committed by Shrimadhav U K
parent 0fb374143d
commit 93dbf1b94a

View File

@ -133,6 +133,7 @@ FILE_PART_X_MISSING,400,Part {which} of the file is missing from storage
FILE_REFERENCE_EMPTY,400,The file reference must exist to access the media and it cannot be empty
FILE_REFERENCE_EXPIRED,400,The file reference has expired and is no longer valid or it belongs to self-destructing media and cannot be resent
FILE_REFERENCE_INVALID,400,The file reference is invalid or you can't do that operation on such message
FILE_TITLE_EMPTY,400,
FIRSTNAME_INVALID,400,The first name is invalid
FLOOD_TEST_PHONE_WAIT_X,420,A wait of {seconds} seconds is required in the test servers
FLOOD_WAIT_X,420,A wait of {seconds} seconds is required
@ -264,16 +265,19 @@ 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
PINNED_DIALOGS_TOO_MUCH,400,
POLL_ANSWERS_INVALID,400,The poll did not have enough answers or had too many
POLL_OPTION_DUPLICATE,400,A duplicate option was sent in the same poll
POLL_OPTION_INVALID,400,A poll option used invalid data (the data may be too long)
POLL_QUESTION_INVALID,400,The poll question was either empty or too long
POLL_UNSUPPORTED,400,This layer does not support polls in the issued method
POLL_VOTE_REQUIRED,403,
PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_XMIN,406,"Similar to a flood wait, must wait {minutes} minutes"
PRIVACY_KEY_INVALID,400,The privacy key is invalid
PRIVACY_TOO_LONG,400,Cannot add that many entities in a single request
PRIVACY_VALUE_INVALID,400,The privacy value is invalid
PTS_CHANGE_EMPTY,500,No PTS change
PUBLIC_KEY_REQUIRED,400,
QUERY_ID_EMPTY,400,The query ID is empty
QUERY_ID_INVALID,400,The query ID is invalid
QUERY_TOO_SHORT,400,The query string is too short

1 name codes description
133 FILE_REFERENCE_EMPTY 400 The file reference must exist to access the media and it cannot be empty
134 FILE_REFERENCE_EXPIRED 400 The file reference has expired and is no longer valid or it belongs to self-destructing media and cannot be resent
135 FILE_REFERENCE_INVALID 400 The file reference is invalid or you can't do that operation on such message
136 FILE_TITLE_EMPTY 400
137 FIRSTNAME_INVALID 400 The first name is invalid
138 FLOOD_TEST_PHONE_WAIT_X 420 A wait of {seconds} seconds is required in the test servers
139 FLOOD_WAIT_X 420 A wait of {seconds} seconds is required
265 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
266 PHOTO_THUMB_URL_EMPTY 400 The URL used as a thumbnail appears to be empty or has caused another HTTP error
267 PIN_RESTRICTED 400 You can't pin messages in private chats with other people
268 PINNED_DIALOGS_TOO_MUCH 400
269 POLL_ANSWERS_INVALID 400 The poll did not have enough answers or had too many
270 POLL_OPTION_DUPLICATE 400 A duplicate option was sent in the same poll
271 POLL_OPTION_INVALID 400 A poll option used invalid data (the data may be too long)
272 POLL_QUESTION_INVALID 400 The poll question was either empty or too long
273 POLL_UNSUPPORTED 400 This layer does not support polls in the issued method
274 POLL_VOTE_REQUIRED 403
275 PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_XMIN 406 Similar to a flood wait, must wait {minutes} minutes
276 PRIVACY_KEY_INVALID 400 The privacy key is invalid
277 PRIVACY_TOO_LONG 400 Cannot add that many entities in a single request
278 PRIVACY_VALUE_INVALID 400 The privacy value is invalid
279 PTS_CHANGE_EMPTY 500 No PTS change
280 PUBLIC_KEY_REQUIRED 400
281 QUERY_ID_EMPTY 400 The query ID is empty
282 QUERY_ID_INVALID 400 The query ID is invalid
283 QUERY_TOO_SHORT 400 The query string is too short