Raw.channels.EditAdmin
Modify the admin rights of a user in a supergroup/channel.
channels.editAdmin#d33c8902 channel:InputChannel user_id:InputUser admin_rights:ChatAdminRights rank:string = Updates;
export namespace Raw {
export namespace channels {
export class EditAdmin {
constructor(params: {
channel: Raw.TypeInputChannel;
userId: Raw.TypeInputUser;
adminRights: Raw.TypeChatAdminRights;
rank: string;
}) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 185
Constructor ID: 0xd33c8902
Property
channel
: Raw.TypeInputChannelThe supergroup/channel.
userId
: Raw.TypeInputUserThe id of the user whose admin rights should be modified
adminRights
: Raw.TypeChatAdminRightsThe admin rights
rank
: stringIndicates the role (rank) of the admin in the group: just an arbitrary string