Add new known RPC errors (#3134)

This commit is contained in:
Shrimadhav U K
2021-08-20 15:19:12 +05:30
committed by GitHub
parent 45ed6658fe
commit 6a1f29d953
2 changed files with 11 additions and 5 deletions

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
@@ -231,6 +232,7 @@ PASSWORD_EMPTY,400,The provided password is empty
PASSWORD_HASH_INVALID,400,The password (and thus its hash value) you entered is invalid
PASSWORD_MISSING,400,The account must have 2-factor authentication enabled (a password) before this method can be used
PASSWORD_RECOVERY_EXPIRED,400,
PASSWORD_RECOVERY_NA,400,
PASSWORD_REQUIRED,400,The account must have 2-factor authentication enabled (a password) before this method can be used
PASSWORD_TOO_FRESH_X,400,The password was added too recently and {seconds} seconds must pass before using the method
PAYMENT_PROVIDER_INVALID,400,The payment provider was not recognised or its token was invalid
@@ -263,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
232 PASSWORD_HASH_INVALID 400 The password (and thus its hash value) you entered is invalid
233 PASSWORD_MISSING 400 The account must have 2-factor authentication enabled (a password) before this method can be used
234 PASSWORD_RECOVERY_EXPIRED 400
235 PASSWORD_RECOVERY_NA 400
236 PASSWORD_REQUIRED 400 The account must have 2-factor authentication enabled (a password) before this method can be used
237 PASSWORD_TOO_FRESH_X 400 The password was added too recently and {seconds} seconds must pass before using the method
238 PAYMENT_PROVIDER_INVALID 400 The payment provider was not recognised or its token was invalid
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