Skip to content

Commit 77ab7bf

Browse files
authored
Fix Layer 126 changes [user_id -> participant] (pyrogram#648)
1 parent a86656a commit 77ab7bf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pyrogram/methods/chats/restrict_chat_member.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async def restrict_chat_member(
7474
r = await self.send(
7575
raw.functions.channels.EditBanned(
7676
channel=await self.resolve_peer(chat_id),
77-
user_id=await self.resolve_peer(user_id),
77+
participant=await self.resolve_peer(user_id),
7878
banned_rights=raw.types.ChatBannedRights(
7979
until_date=until_date,
8080
send_messages=True if not permissions.can_send_messages else None,

pyrogram/methods/chats/set_administrator_title.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ async def set_administrator_title(
6060
r = (await self.send(
6161
raw.functions.channels.GetParticipant(
6262
channel=chat_id,
63-
user_id=user_id
63+
participant=user_id
6464
)
6565
)).participant
6666

0 commit comments

Comments
 (0)