Document new known RPC errors (#3137)

This commit is contained in:
Shrimadhav U K 2021-08-28 03:48:37 +05:30 committed by GitHub
parent 2ea3153cd5
commit 0a4b827d8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -101,6 +101,8 @@ DOCUMENT_INVALID,400,The document file was invalid and can't be used in inline m
EMAIL_HASH_EXPIRED,400,The email hash expired and cannot be used to verify it
EMAIL_INVALID,400,The given email is invalid
EMAIL_UNCONFIRMED_X,400,"Email unconfirmed, the length of the code must be {code_length}"
EMOJI_INVALID,400,
EMOJI_NOT_MODIFIED,400,
EMOTICON_EMPTY,400,The emoticon field cannot be empty
EMOTICON_INVALID,400,The specified emoticon cannot be used or was not a emoticon
EMOTICON_STICKERPACK_MISSING,400,The emoticon sticker pack you are trying to get is missing

1 name codes description
101 EMAIL_HASH_EXPIRED 400 The email hash expired and cannot be used to verify it
102 EMAIL_INVALID 400 The given email is invalid
103 EMAIL_UNCONFIRMED_X 400 Email unconfirmed, the length of the code must be {code_length}
104 EMOJI_INVALID 400
105 EMOJI_NOT_MODIFIED 400
106 EMOTICON_EMPTY 400 The emoticon field cannot be empty
107 EMOTICON_INVALID 400 The specified emoticon cannot be used or was not a emoticon
108 EMOTICON_STICKERPACK_MISSING 400 The emoticon sticker pack you are trying to get is missing

View File

@ -286,6 +286,7 @@ messages.sendVote,user,MESSAGE_POLL_CLOSED OPTION_INVALID
messages.setBotCallbackAnswer,both,QUERY_ID_INVALID URL_INVALID
messages.setBotPrecheckoutResults,both,ERROR_TEXT_EMPTY
messages.setBotShippingResults,both,QUERY_ID_INVALID
messages.setChatTheme,user,EMOJI_INVALID EMOJI_NOT_MODIFIED
messages.setEncryptedTyping,user,CHAT_ID_INVALID
messages.setGameScore,bot,PEER_ID_INVALID USER_BOT_REQUIRED
messages.setHistoryTTL,user,CHAT_NOT_MODIFIED TTL_PERIOD_INVALID

1 method usability errors
286 messages.setBotCallbackAnswer both QUERY_ID_INVALID URL_INVALID
287 messages.setBotPrecheckoutResults both ERROR_TEXT_EMPTY
288 messages.setBotShippingResults both QUERY_ID_INVALID
289 messages.setChatTheme user EMOJI_INVALID EMOJI_NOT_MODIFIED
290 messages.setEncryptedTyping user CHAT_ID_INVALID
291 messages.setGameScore bot PEER_ID_INVALID USER_BOT_REQUIRED
292 messages.setHistoryTTL user CHAT_NOT_MODIFIED TTL_PERIOD_INVALID