Document two new RPC errors (#1591)

This commit is contained in:
Andrew Lane 2020-10-13 04:50:05 -04:00 committed by GitHub
parent adf52a1b74
commit 7de1c0e237
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -88,6 +88,7 @@ EMAIL_INVALID,400,The given email is invalid
EMAIL_UNCONFIRMED_X,400,"Email unconfirmed, the length of the code must be {code_length}"
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
ENCRYPTED_MESSAGE_INVALID,400,Encrypted message invalid
ENCRYPTION_ALREADY_ACCEPTED,400,Secret chat already accepted
ENCRYPTION_ALREADY_DECLINED,400,The secret chat was already declined
@ -272,6 +273,7 @@ START_PARAM_EMPTY,400,The start parameter is empty
START_PARAM_INVALID,400,Start parameter invalid
STATS_MIGRATE_X,303,The channel statistics must be fetched from DC {dc}
STICKERSET_INVALID,400,The provided sticker set is invalid
STICKERSET_OWNER_ANONYMOUS,406,This sticker set can't be used as the group's official stickers because it was created by one of its anonymous admins
STICKERS_EMPTY,400,No sticker provided
STICKER_DOCUMENT_INVALID,400,"The sticker file was invalid (this file has failed Telegram internal checks, make sure to use the correct format and comply with https://core.telegram.org/animated_stickers)"
STICKER_EMOJI_INVALID,400,Sticker emoji invalid

1 name codes description
88 EMAIL_UNCONFIRMED_X 400 Email unconfirmed, the length of the code must be {code_length}
89 EMOTICON_EMPTY 400 The emoticon field cannot be empty
90 EMOTICON_INVALID 400 The specified emoticon cannot be used or was not a emoticon
91 EMOTICON_STICKERPACK_MISSING 400 The emoticon sticker pack you are trying to get is missing
92 ENCRYPTED_MESSAGE_INVALID 400 Encrypted message invalid
93 ENCRYPTION_ALREADY_ACCEPTED 400 Secret chat already accepted
94 ENCRYPTION_ALREADY_DECLINED 400 The secret chat was already declined
273 START_PARAM_INVALID 400 Start parameter invalid
274 STATS_MIGRATE_X 303 The channel statistics must be fetched from DC {dc}
275 STICKERSET_INVALID 400 The provided sticker set is invalid
276 STICKERSET_OWNER_ANONYMOUS 406 This sticker set can't be used as the group's official stickers because it was created by one of its anonymous admins
277 STICKERS_EMPTY 400 No sticker provided
278 STICKER_DOCUMENT_INVALID 400 The sticker file was invalid (this file has failed Telegram internal checks, make sure to use the correct format and comply with https://core.telegram.org/animated_stickers)
279 STICKER_EMOJI_INVALID 400 Sticker emoji invalid

View File

@ -114,7 +114,7 @@ channels.readHistory,user,CHANNEL_INVALID CHANNEL_PRIVATE
channels.readMessageContents,user,CHANNEL_INVALID CHANNEL_PRIVATE
channels.reportSpam,user,CHANNEL_INVALID INPUT_USER_DEACTIVATED
channels.setDiscussionGroup,user,BROADCAST_ID_INVALID LINK_NOT_MODIFIED MEGAGROUP_ID_INVALID MEGAGROUP_PREHISTORY_HIDDEN
channels.setStickers,both,CHANNEL_INVALID PARTICIPANTS_TOO_FEW
channels.setStickers,both,CHANNEL_INVALID PARTICIPANTS_TOO_FEW STICKERSET_OWNER_ANONYMOUS
channels.togglePreHistoryHidden,user,CHAT_LINK_EXISTS
channels.toggleSignatures,user,CHANNEL_INVALID
channels.toggleSlowMode,user,SECONDS_INVALID
@ -236,7 +236,7 @@ messages.getScheduledMessages,user,
messages.getSearchCounters,user,
messages.getSplitRanges,user,
messages.getStatsURL,user,
messages.getStickerSet,both,STICKERSET_INVALID
messages.getStickerSet,both,EMOTICON_STICKERPACK_MISSING STICKERSET_INVALID
messages.getStickers,user,EMOTICON_EMPTY
messages.getSuggestedDialogFilters,user,
messages.getUnreadMentions,user,PEER_ID_INVALID

1 method usability errors
114 channels.readMessageContents user CHANNEL_INVALID CHANNEL_PRIVATE
115 channels.reportSpam user CHANNEL_INVALID INPUT_USER_DEACTIVATED
116 channels.setDiscussionGroup user BROADCAST_ID_INVALID LINK_NOT_MODIFIED MEGAGROUP_ID_INVALID MEGAGROUP_PREHISTORY_HIDDEN
117 channels.setStickers both CHANNEL_INVALID PARTICIPANTS_TOO_FEW CHANNEL_INVALID PARTICIPANTS_TOO_FEW STICKERSET_OWNER_ANONYMOUS
118 channels.togglePreHistoryHidden user CHAT_LINK_EXISTS
119 channels.toggleSignatures user CHANNEL_INVALID
120 channels.toggleSlowMode user SECONDS_INVALID
236 messages.getSearchCounters user
237 messages.getSplitRanges user
238 messages.getStatsURL user
239 messages.getStickerSet both STICKERSET_INVALID EMOTICON_STICKERPACK_MISSING STICKERSET_INVALID
240 messages.getStickers user EMOTICON_EMPTY
241 messages.getSuggestedDialogFilters user
242 messages.getUnreadMentions user PEER_ID_INVALID