diff --git a/pyrogram/methods/chats/restrict_chat_member.py b/pyrogram/methods/chats/restrict_chat_member.py index a7071bab..f8a05a0f 100644 --- a/pyrogram/methods/chats/restrict_chat_member.py +++ b/pyrogram/methods/chats/restrict_chat_member.py @@ -74,7 +74,7 @@ class RestrictChatMember(Scaffold): r = await self.send( raw.functions.channels.EditBanned( channel=await self.resolve_peer(chat_id), - user_id=await self.resolve_peer(user_id), + participant=await self.resolve_peer(user_id), banned_rights=raw.types.ChatBannedRights( until_date=until_date, send_messages=True if not permissions.can_send_messages else None, diff --git a/pyrogram/methods/chats/set_administrator_title.py b/pyrogram/methods/chats/set_administrator_title.py index 8fd1338b..fff4d617 100644 --- a/pyrogram/methods/chats/set_administrator_title.py +++ b/pyrogram/methods/chats/set_administrator_title.py @@ -60,7 +60,7 @@ class SetAdministratorTitle(Scaffold): r = (await self.send( raw.functions.channels.GetParticipant( channel=chat_id, - user_id=user_id + participant=user_id ) )).participant