Add new errors

This commit is contained in:
Devesh Pal 2021-09-18 01:50:25 +05:30 committed by GitHub
parent 2e1be01ad4
commit 93ff434ec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -305,6 +305,7 @@ RESULTS_TOO_MUCH,400,"You sent too many results, see https://core.telegram.org/b
RESULT_ID_DUPLICATE,400,Duplicated IDs on the sent results. Make sure to use unique IDs RESULT_ID_DUPLICATE,400,Duplicated IDs on the sent results. Make sure to use unique IDs
RESULT_ID_INVALID,400,The given result cannot be used to send the selection to the bot RESULT_ID_INVALID,400,The given result cannot be used to send the selection to the bot
RESULT_TYPE_INVALID,400,Result type invalid RESULT_TYPE_INVALID,400,Result type invalid
REVOTE_NOT_ALLOWED,400,
RIGHT_FORBIDDEN,403,Either your admin rights do not allow you to do this or you passed the wrong rights combination (some rights only apply to channels and vice versa) RIGHT_FORBIDDEN,403,Either your admin rights do not allow you to do this or you passed the wrong rights combination (some rights only apply to channels and vice versa)
RPC_CALL_FAIL,500,"Telegram is having internal issues, please try again later." RPC_CALL_FAIL,500,"Telegram is having internal issues, please try again later."
RPC_MCGET_FAIL,500,"Telegram is having internal issues, please try again later." RPC_MCGET_FAIL,500,"Telegram is having internal issues, please try again later."
@ -327,6 +328,7 @@ SHA256_HASH_INVALID,400,The provided SHA256 hash is invalid
SHORTNAME_OCCUPY_FAILED,400,An error occurred when trying to register the short-name used for the sticker pack. Try a different name SHORTNAME_OCCUPY_FAILED,400,An error occurred when trying to register the short-name used for the sticker pack. Try a different name
SHORT_NAME_INVALID,400, SHORT_NAME_INVALID,400,
SHORT_NAME_OCCUPIED,400, SHORT_NAME_OCCUPIED,400,
SLOWMODE_MULTI_MSGS_DISABLED,400,
SLOWMODE_WAIT_X,420,A wait of {seconds} seconds is required before sending another message in this chat SLOWMODE_WAIT_X,420,A wait of {seconds} seconds is required before sending another message in this chat
SRP_ID_INVALID,400, SRP_ID_INVALID,400,
START_PARAM_EMPTY,400,The start parameter is empty START_PARAM_EMPTY,400,The start parameter is empty

1 name codes description
305 RESULT_ID_DUPLICATE 400 Duplicated IDs on the sent results. Make sure to use unique IDs
306 RESULT_ID_INVALID 400 The given result cannot be used to send the selection to the bot
307 RESULT_TYPE_INVALID 400 Result type invalid
308 REVOTE_NOT_ALLOWED 400
309 RIGHT_FORBIDDEN 403 Either your admin rights do not allow you to do this or you passed the wrong rights combination (some rights only apply to channels and vice versa)
310 RPC_CALL_FAIL 500 Telegram is having internal issues, please try again later.
311 RPC_MCGET_FAIL 500 Telegram is having internal issues, please try again later.
328 SHORTNAME_OCCUPY_FAILED 400 An error occurred when trying to register the short-name used for the sticker pack. Try a different name
329 SHORT_NAME_INVALID 400
330 SHORT_NAME_OCCUPIED 400
331 SLOWMODE_MULTI_MSGS_DISABLED 400
332 SLOWMODE_WAIT_X 420 A wait of {seconds} seconds is required before sending another message in this chat
333 SRP_ID_INVALID 400
334 START_PARAM_EMPTY 400 The start parameter is empty