Fix Layer 126 changes [user_id -> participant] (#648)

This commit is contained in:
Leorio Paradinight 2021-03-25 20:01:31 +05:30 committed by GitHub
parent a86656aefc
commit 77ab7bffe7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

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