Link Search Menu Expand Document

danog\MadelineProto\EventHandler\Participant\Rights\Admin

Back to index

Author: Daniil Gentili daniil@daniil.it

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

Properties

  • $changeInfo: bool If set, allows the admin to modify the description of the channel/supergroup
  • $postMessages: bool If set, allows the admin to post messages in the channel
  • $editMessages: bool If set, allows the admin to also edit messages from other admins in the channel
  • $deleteMessages: bool If set, allows the admin to also delete messages from other admins in the channel
  • $banUsers: bool If set, allows the admin to ban users from the channel/supergroup
  • $inviteUsers: bool If set, allows the admin to invite users in the channel/supergroup
  • $pinMessages: bool If set, allows the admin to pin messages in the channel/supergroup
  • $addAdmins: bool If set, allows the admin to add other admins with the same (or more limited) permissions in the channel/supergroup
  • $anonymous: bool Whether this admin is anonymous
  • $manageCall: bool If set, allows the admin to change group call/livestream settings
  • $other: bool 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: bool If set, allows the admin to create, delete or modify forum topics ». — Generated by danog/phpdoc