Fix edit_admin failing on small Chat

This commit is contained in:
Lonami Exo 2022-10-13 17:56:47 +02:00
parent b6d8311a55
commit 949b54fdb0

View File

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