mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-02 19:20:09 +03:00
Spaces
This commit is contained in:
parent
37c3c8a85e
commit
251e8227eb
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user