Document new known RPC error

This commit is contained in:
Lonami Exo 2020-08-23 11:37:59 +02:00
parent 26ff92caa9
commit accb2142e7
2 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@ BOT_MISSING,400,This method can only be run by a bot
BOT_PAYMENTS_DISABLED,400,This method can only be run by a bot
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_FORBIDDEN,403,The request cannot be used in broadcast channels
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

1 name codes description
30 BOT_PAYMENTS_DISABLED 400 This method can only be run by a bot
31 BOT_POLLS_DISABLED 400 You cannot create polls under a bot account
32 BOT_RESPONSE_TIMEOUT 400 The bot did not answer to the callback query in time
33 BROADCAST_FORBIDDEN 403 The request cannot be used in broadcast channels
34 BROADCAST_ID_INVALID 400 The channel is invalid
35 BROADCAST_PUBLIC_VOTERS_FORBIDDEN 400 You cannot broadcast polls where the voters are public
36 BROADCAST_REQUIRED 400 The request can only be used with a broadcast channel

View File

@ -227,7 +227,7 @@ messages.getPeerDialogs,user,CHANNEL_PRIVATE PEER_ID_INVALID
messages.getPeerSettings,user,CHANNEL_INVALID PEER_ID_INVALID
messages.getPinnedDialogs,user,
messages.getPollResults,user,
messages.getPollVotes,user,
messages.getPollVotes,user,BROADCAST_FORBIDDEN
messages.getRecentLocations,user,
messages.getRecentStickers,user,
messages.getSavedGifs,user,

1 method usability errors
227 messages.getPeerSettings user CHANNEL_INVALID PEER_ID_INVALID
228 messages.getPinnedDialogs user
229 messages.getPollResults user
230 messages.getPollVotes user BROADCAST_FORBIDDEN
231 messages.getRecentLocations user
232 messages.getRecentStickers user
233 messages.getSavedGifs user