This commit is contained in:
Lonami 2019-07-05 10:46:19 +02:00 committed by GitHub
parent 37c3c8a85e
commit 251e8227eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(