diff --git a/telethon/client/chats.py b/telethon/client/chats.py index b7610b6c..935ee20b 100644 --- a/telethon/client/chats.py +++ b/telethon/client/chats.py @@ -959,7 +959,7 @@ class ChatMethods(UserMethods): client.edit_permission(chat, user, view_messages=False) """ entity = await self.get_input_entity(entity) - if not isinstance(entity,types.InputPeerChannel): + if not isinstance(entity, types.InputPeerChannel): raise ValueError('You must pass either a channel or a supergroup') rights = types.ChatBannedRights(