From 251e8227ebd9a9fae5e9c494ddfc2176ab49b8ea Mon Sep 17 00:00:00 2001 From: Lonami Date: Fri, 5 Jul 2019 10:46:19 +0200 Subject: [PATCH] Spaces --- telethon/client/chats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(