mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 01:16:35 +03:00
Fix edit_admin failing on small Chat
This commit is contained in:
parent
b6d8311a55
commit
949b54fdb0
|
@ -966,7 +966,7 @@ class ChatMethods:
|
|||
is_admin = any(locals()[x] for x in perm_names)
|
||||
|
||||
return await self(functions.messages.EditChatAdminRequest(
|
||||
entity, user, is_admin=is_admin))
|
||||
entity.chat_id, user, is_admin=is_admin))
|
||||
|
||||
else:
|
||||
raise ValueError(
|
||||
|
|
Loading…
Reference in New Issue
Block a user