Raw.ChannelParticipantAdmin

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 undefined

    Can this admin promote other admins with the same permissions?

  • self : boolean or undefined

    Is this the current user

  • userId : bigint

    Admin user id

  • inviterId : bigint or undefined

    User that invited the admin to the channel/group

  • promotedBy : bigint

    User that promoted the user to admin

  • date : number

    When did the user join

  • adminRights : Raw.TypeChatAdminRights

    Admin rights

  • rank : string or undefined

    The role (rank) of the admin in the group: just an arbitrary string, admin by default