Document new rpc errors in layer 116

This commit is contained in:
Lonami Exo 2020-07-26 13:27:45 +02:00
parent e12f6c747f
commit b1ea7572dd
2 changed files with 6 additions and 2 deletions

View File

@ -32,6 +32,7 @@ BOT_POLLS_DISABLED,400,You cannot create polls under a bot account
BOT_RESPONSE_TIMEOUT,400,The bot did not answer to the callback query in time
BROADCAST_ID_INVALID,400,The channel is invalid
BROADCAST_PUBLIC_VOTERS_FORBIDDEN,400,You cannot broadcast polls where the voters are public
BROADCAST_REQUIRED,400,The request can only be used with a broadcast channel
BUTTON_DATA_INVALID,400,The provided button data is invalid
BUTTON_TYPE_INVALID,400,The type of one of the buttons you provided is invalid
BUTTON_URL_INVALID,400,Button URL invalid
@ -154,6 +155,7 @@ MEDIA_NEW_INVALID,400,The new media to edit the message with is invalid (such as
MEDIA_PREV_INVALID,400,The old media cannot be edited with anything else (such as stickers or voice notes)
MEGAGROUP_ID_INVALID,400,The group is invalid
MEGAGROUP_PREHISTORY_HIDDEN,400,You can't set this discussion group because it's history is hidden
MEGAGROUP_REQUIRED,400,The request can only be used with a megagroup channel
MEMBER_NO_LOCATION,500,An internal failure occurred while fetching user info (couldn't find location)
MEMBER_OCCUPY_PRIMARY_LOC_FAILED,500,Occupation of primary member location failed
MESSAGE_AUTHOR_REQUIRED,403,Message author required
@ -317,6 +319,7 @@ USER_NOT_PARTICIPANT,400,The target user is not a member of the specified megagr
USER_PRIVACY_RESTRICTED,403,The user's privacy settings do not allow you to do this
USER_RESTRICTED,403,"You're spamreported, you can't create channels or chats."
VIDEO_CONTENT_TYPE_INVALID,400,The video content type is not supported with the given parameters (i.e. supports_streaming)
VIDEO_FILE_INVALID,400,The given video cannot be used
WALLPAPER_FILE_INVALID,400,The given file cannot be used as a wallpaper
WALLPAPER_INVALID,400,The input wallpaper was not valid
WC_CONVERT_URL_INVALID,400,WC convert URL invalid

1 name codes description
32 BOT_RESPONSE_TIMEOUT 400 The bot did not answer to the callback query in time
33 BROADCAST_ID_INVALID 400 The channel is invalid
34 BROADCAST_PUBLIC_VOTERS_FORBIDDEN 400 You cannot broadcast polls where the voters are public
35 BROADCAST_REQUIRED 400 The request can only be used with a broadcast channel
36 BUTTON_DATA_INVALID 400 The provided button data is invalid
37 BUTTON_TYPE_INVALID 400 The type of one of the buttons you provided is invalid
38 BUTTON_URL_INVALID 400 Button URL invalid
155 MEDIA_PREV_INVALID 400 The old media cannot be edited with anything else (such as stickers or voice notes)
156 MEGAGROUP_ID_INVALID 400 The group is invalid
157 MEGAGROUP_PREHISTORY_HIDDEN 400 You can't set this discussion group because it's history is hidden
158 MEGAGROUP_REQUIRED 400 The request can only be used with a megagroup channel
159 MEMBER_NO_LOCATION 500 An internal failure occurred while fetching user info (couldn't find location)
160 MEMBER_OCCUPY_PRIMARY_LOC_FAILED 500 Occupation of primary member location failed
161 MESSAGE_AUTHOR_REQUIRED 403 Message author required
319 USER_PRIVACY_RESTRICTED 403 The user's privacy settings do not allow you to do this
320 USER_RESTRICTED 403 You're spamreported, you can't create channels or chats.
321 VIDEO_CONTENT_TYPE_INVALID 400 The video content type is not supported with the given parameters (i.e. supports_streaming)
322 VIDEO_FILE_INVALID 400 The given video cannot be used
323 WALLPAPER_FILE_INVALID 400 The given file cannot be used as a wallpaper
324 WALLPAPER_INVALID 400 The input wallpaper was not valid
325 WC_CONVERT_URL_INVALID 400 WC convert URL invalid

View File

@ -312,14 +312,15 @@ phone.setCallRating,user,CALL_PEER_INVALID
photos.deletePhotos,user,
photos.getUserPhotos,both,MAX_ID_INVALID USER_ID_INVALID
photos.updateProfilePhoto,user,
photos.uploadProfilePhoto,user,FILE_PARTS_INVALID IMAGE_PROCESS_FAILED PHOTO_CROP_SIZE_SMALL PHOTO_EXT_INVALID
photos.uploadProfilePhoto,user,FILE_PARTS_INVALID IMAGE_PROCESS_FAILED PHOTO_CROP_SIZE_SMALL PHOTO_EXT_INVALID VIDEO_FILE_INVALID
ping,both,
reqDHParams,both,
reqPq,both,
reqPqMulti,both,
rpcDropAnswer,both,
setClientDHParams,both,
stats.getBroadcastStats,user,
stats.getBroadcastStats,user,BROADCAST_REQUIRED CHAT_ADMIN_REQUIRED STATS_MIGRATE_X
stats.getMegagroupStats,user,CHAT_ADMIN_REQUIRED MEGAGROUP_REQUIRED STATS_MIGRATE_X
stats.loadAsyncGraph,user,
stickers.addStickerToSet,bot,BOT_MISSING STICKERSET_INVALID
stickers.changeStickerPosition,bot,BOT_MISSING STICKER_INVALID

1 method usability errors
312 photos.deletePhotos user
313 photos.getUserPhotos both MAX_ID_INVALID USER_ID_INVALID
314 photos.updateProfilePhoto user
315 photos.uploadProfilePhoto user FILE_PARTS_INVALID IMAGE_PROCESS_FAILED PHOTO_CROP_SIZE_SMALL PHOTO_EXT_INVALID FILE_PARTS_INVALID IMAGE_PROCESS_FAILED PHOTO_CROP_SIZE_SMALL PHOTO_EXT_INVALID VIDEO_FILE_INVALID
316 ping both
317 reqDHParams both
318 reqPq both
319 reqPqMulti both
320 rpcDropAnswer both
321 setClientDHParams both
322 stats.getBroadcastStats user BROADCAST_REQUIRED CHAT_ADMIN_REQUIRED STATS_MIGRATE_X
323 stats.getMegagroupStats user CHAT_ADMIN_REQUIRED MEGAGROUP_REQUIRED STATS_MIGRATE_X
324 stats.loadAsyncGraph user
325 stickers.addStickerToSet bot BOT_MISSING STICKERSET_INVALID
326 stickers.changeStickerPosition bot BOT_MISSING STICKER_INVALID