From 33742c809acd82cdbb87c95c0907a0240edf1c95 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Wed, 23 Jan 2019 13:40:19 +0100 Subject: [PATCH] Document BANNED_RIGHTS_INVALID --- telethon_generator/data/errors.csv | 1 + telethon_generator/data/methods.csv | 1 + 2 files changed, 2 insertions(+) diff --git a/telethon_generator/data/errors.csv b/telethon_generator/data/errors.csv index 3c703de1..13ffa0c4 100644 --- a/telethon_generator/data/errors.csv +++ b/telethon_generator/data/errors.csv @@ -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 diff --git a/telethon_generator/data/methods.csv b/telethon_generator/data/methods.csv index e90f3bfc..a854a032 100644 --- a/telethon_generator/data/methods.csv +++ b/telethon_generator/data/methods.csv @@ -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