Skip to content

Commit

Permalink
Fix edit_admin failing on small Chat
Browse files Browse the repository at this point in the history
  • Loading branch information
Lonami committed Oct 13, 2022
1 parent b6d8311 commit 949b54f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telethon/client/chats.py
Expand Up @@ -966,7 +966,7 @@ async def edit_admin(
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(
Expand Down

0 comments on commit 949b54f

Please sign in to comment.