Raw.ChannelParticipantAdmin
Admin
channelParticipantAdmin#34c3bb53 flags:# can_edit:flags.0?true self:flags.1?true user_id:long inviter_id:flags.1?long promoted_by:long date:int admin_rights:ChatAdminRights rank:flags.2?string = ChannelParticipant;
export namespace Raw {
export class ChannelParticipantAdmin {
constructor(params: {
canEdit?: boolean;
self?: boolean;
userId: bigint;
inviterId?: bigint;
promotedBy: bigint;
date: number;
adminRights: Raw.TypeChatAdminRights;
rank?: string;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x34c3bb53
Property
canEdit
: boolean or undefinedCan this admin promote other admins with the same permissions?
self
: boolean or undefinedIs this the current user
userId
: bigintAdmin user id
inviterId
: bigint or undefinedUser that invited the admin to the channel/group
promotedBy
: bigintUser that promoted the user to admin
date
: numberWhen did the user join
adminRights
: Raw.TypeChatAdminRightsAdmin rights
rank
: string or undefinedThe role (rank) of the admin in the group: just an arbitrary string, admin by default