Document BANNED_RIGHTS_INVALID

This commit is contained in:
Lonami Exo 2019-01-23 13:40:19 +01:00
parent 747caf1652
commit 33742c809a
2 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ AUTH_KEY_INVALID,401,The key is invalid
AUTH_KEY_PERM_EMPTY,401,"The method is unavailable for temporary authorization key, not bound to permanent"
AUTH_KEY_UNREGISTERED,401,The key is not registered in the system
AUTH_RESTART,500,Restart the authorization process
BANNED_RIGHTS_INVALID,400,You cannot use that set of permissions in this request, i.e. restricting view_messages as a default
BOTS_TOO_MUCH,400,There are too many bots in this chat/channel
BOT_CHANNELS_NA,400,Bots can't edit admin privileges
BOT_GROUPS_BLOCKED,400,This bot can't be added to groups

Can't render this file because it has a wrong number of fields in line 16.

View File

@ -92,6 +92,7 @@ messages.deleteHistory,user,PEER_ID_INVALID
messages.deleteMessages,unknown,MESSAGE_DELETE_FORBIDDEN
messages.discardEncryption,user,CHAT_ID_EMPTY ENCRYPTION_ALREADY_DECLINED ENCRYPTION_ID_INVALID
messages.editChatAdmin,user,CHAT_ID_INVALID
messages.editChatDefaultBannedRights,unknown,BANNED_RIGHTS_INVALID
messages.editChatPhoto,unknown,CHAT_ID_INVALID INPUT_CONSTRUCTOR_INVALID INPUT_FETCH_FAIL PEER_ID_INVALID PHOTO_EXT_INVALID
messages.editChatTitle,unknown,CHAT_ID_INVALID NEED_CHAT_INVALID
messages.editInlineBotMessage,unknown,MESSAGE_ID_INVALID MESSAGE_NOT_MODIFIED

1 method usability errors
92 messages.deleteMessages unknown MESSAGE_DELETE_FORBIDDEN
93 messages.discardEncryption user CHAT_ID_EMPTY ENCRYPTION_ALREADY_DECLINED ENCRYPTION_ID_INVALID
94 messages.editChatAdmin user CHAT_ID_INVALID
95 messages.editChatDefaultBannedRights unknown BANNED_RIGHTS_INVALID
96 messages.editChatPhoto unknown CHAT_ID_INVALID INPUT_CONSTRUCTOR_INVALID INPUT_FETCH_FAIL PEER_ID_INVALID PHOTO_EXT_INVALID
97 messages.editChatTitle unknown CHAT_ID_INVALID NEED_CHAT_INVALID
98 messages.editInlineBotMessage unknown MESSAGE_ID_INVALID MESSAGE_NOT_MODIFIED