mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +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)
|
is_admin = any(locals()[x] for x in perm_names)
|
||||||
|
|
||||||
return await self(functions.messages.EditChatAdminRequest(
|
return await self(functions.messages.EditChatAdminRequest(
|
||||||
entity, user, is_admin=is_admin))
|
entity.chat_id, user, is_admin=is_admin))
|
||||||
|
|
||||||
else:
|
else:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user