Update list of RPC errors

This commit is contained in:
Lonami Exo
2021-01-28 21:18:14 +01:00
parent ea57db7aad
commit 584e2b3743
3 changed files with 32 additions and 26 deletions

View File

@@ -145,6 +145,9 @@ GROUP_CALL_INVALID,400,Group call invalid
HASH_INVALID,400,The provided hash is invalid
HISTORY_GET_FAILED,500,Fetching of history failed
IMAGE_PROCESS_FAILED,400,Failure while processing image
IMPORT_FILE_INVALID,400,The file is too large to be imported
IMPORT_FORMAT_UNRECOGNIZED,400,Unknown import format
IMPORT_ID_INVALID,400,
INLINE_BOT_REQUIRED,403,The action must be performed through an inline bot callback
INLINE_RESULT_EXPIRED,400,The inline query expired
INPUT_CONSTRUCTOR_INVALID,400,The provided constructor is invalid
@@ -247,6 +250,7 @@ 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
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
@@ -313,7 +317,7 @@ TAKEOUT_INIT_DELAY_X,420,A wait of {seconds} seconds is required before being ab
TAKEOUT_INVALID,400,The takeout session has been invalidated by another data export session
TAKEOUT_REQUIRED,400,You must initialize a takeout request first
TEMP_AUTH_KEY_EMPTY,400,No temporary auth key provided
Timeout,-503,A timeout occurred while fetching data from the worker
TIMEOUT,500,A timeout occurred while fetching data from the worker
THEME_INVALID,400,Theme invalid
THEME_MIME_INVALID,400,"You cannot create this theme, the mime-type is invalid"
TMP_PASSWORD_DISABLED,400,The temporary password is disabled
1 name codes description
145 HASH_INVALID 400 The provided hash is invalid
146 HISTORY_GET_FAILED 500 Fetching of history failed
147 IMAGE_PROCESS_FAILED 400 Failure while processing image
148 IMPORT_FILE_INVALID 400 The file is too large to be imported
149 IMPORT_FORMAT_UNRECOGNIZED 400 Unknown import format
150 IMPORT_ID_INVALID 400
151 INLINE_BOT_REQUIRED 403 The action must be performed through an inline bot callback
152 INLINE_RESULT_EXPIRED 400 The inline query expired
153 INPUT_CONSTRUCTOR_INVALID 400 The provided constructor is invalid
250 POLL_OPTION_INVALID 400 A poll option used invalid data (the data may be too long)
251 POLL_QUESTION_INVALID 400 The poll question was either empty or too long
252 POLL_UNSUPPORTED 400 This layer does not support polls in the issued method
253 PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_XMIN 406 Similar to a flood wait, must wait {minutes} minutes
254 PRIVACY_KEY_INVALID 400 The privacy key is invalid
255 PRIVACY_TOO_LONG 400 Cannot add that many entities in a single request
256 PRIVACY_VALUE_INVALID 400 The privacy value is invalid
317 TAKEOUT_INVALID 400 The takeout session has been invalidated by another data export session
318 TAKEOUT_REQUIRED 400 You must initialize a takeout request first
319 TEMP_AUTH_KEY_EMPTY 400 No temporary auth key provided
320 Timeout TIMEOUT -503 500 A timeout occurred while fetching data from the worker
321 THEME_INVALID 400 Theme invalid
322 THEME_MIME_INVALID 400 You cannot create this theme, the mime-type is invalid
323 TMP_PASSWORD_DISABLED 400 The temporary password is disabled