Raw.ChatAdminRights

Raw.ChatAdminRights

Represents the rights of an admin in a channel/supergroup.

chatAdminRights#5fb224d5 flags:# change_info:flags.0?true post_messages:flags.1?true edit_messages:flags.2?true delete_messages:flags.3?true ban_users:flags.4?true invite_users:flags.5?true pin_messages:flags.7?true add_admins:flags.9?true anonymous:flags.10?true manage_call:flags.11?true other:flags.12?true manage_topics:flags.13?true post_stories:flags.14?true edit_stories:flags.15?true delete_stories:flags.16?true = ChatAdminRights;
export namespace Raw {
  export class ChatAdminRights {
    constructor(params: {
      changeInfo?: boolean;
      postMessages?: boolean;
      editMessages?: boolean;
      deleteMessages?: boolean;
      banUsers?: boolean;
      inviteUsers?: boolean;
      pinMessages?: boolean;
      addAdmins?: boolean;
      anonymous?: boolean;
      manageCall?: boolean;
      other?: boolean;
      manageTopics?: boolean;
      postStories?: boolean;
      editStories?: boolean;
      deleteStories?: boolean;
    }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0x5fb224d5

Property

  • changeInfo : boolean or undefined

    If set, allows the admin to modify the description of the channel/supergroup

  • postMessages : boolean or undefined

    If set, allows the admin to post messages in the channel

  • editMessages : boolean or undefined

    If set, allows the admin to also edit messages from other admins in the channel

  • deleteMessages : boolean or undefined

    If set, allows the admin to also delete messages from other admins in the channel

  • banUsers : boolean or undefined

    If set, allows the admin to ban users from the channel/supergroup

  • inviteUsers : boolean or undefined

    If set, allows the admin to invite users in the channel/supergroup

  • pinMessages : boolean or undefined

    If set, allows the admin to pin messages in the channel/supergroup

  • addAdmins : boolean or undefined

    If set, allows the admin to add other admins with the same (or more limited) permissions in the channel/supergroup

  • anonymous : boolean or undefined

    Whether this admin is anonymous

  • manageCall : boolean or undefined

    If set, allows the admin to change group call/livestream settings

  • other : boolean or undefined

    Set this flag if none of the other flags are set, but you still want the user to be an admin: if this or any of the other flags are set, the admin can get the chat admin log, get chat statistics, get message statistics in channels, get channel members, see anonymous administrators in supergroups and ignore slow mode.

  • manageTopics : boolean or undefined

    If set, allows the admin to create, delete or modify forum topics.

  • postStories : boolean or undefined

    If set, allows the admin to post stories as the channel.

  • editStories : boolean or undefined

    If set, allows the admin to edit stories posted by the other admins of the channel.

  • deleteStories : boolean or undefined

    If set, allows the admin to delete stories posted by the other admins of the channel.