Fix Layer 126 changes [user_id -> participant] (#648)
This commit is contained in:
parent
a86656aefc
commit
77ab7bffe7
@ -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,
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user