ChatMemberStatusAdministrator constructor

ChatMemberStatusAdministrator(
  1. {String customTitle,
  2. bool canBeEdited,
  3. bool canChangeInfo,
  4. bool canPostMessages,
  5. bool canEditMessages,
  6. bool canDeleteMessages,
  7. bool canInviteUsers,
  8. bool canRestrictMembers,
  9. bool canPinMessages,
  10. bool canPromoteMembers}
)

The user is a member of a chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, and ban unprivileged members. In supergroups and channels, there are more detailed options for administrator privileges. customTitle A custom title of the administrator; 0-16 characters without emojis; applicable to supergroups only. canBeEdited True, if the current user can edit the administrator privileges for the called user. canChangeInfo True, if the administrator can change the chat title, photo, and other settings. canPostMessages True, if the administrator can create channel posts; applicable to channels only. canEditMessages True, if the administrator can edit messages of other users and pin messages; applicable to channels only. canDeleteMessages True, if the administrator can delete messages of other users. canInviteUsers True, if the administrator can invite new users to the chat. canRestrictMembers True, if the administrator can restrict, ban, or unban chat members. canPinMessages True, if the administrator can pin messages; applicable to groups only. canPromoteMembers True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that were directly or indirectly promoted by them

Implementation

ChatMemberStatusAdministrator(
    {this.customTitle,
    this.canBeEdited,
    this.canChangeInfo,
    this.canPostMessages,
    this.canEditMessages,
    this.canDeleteMessages,
    this.canInviteUsers,
    this.canRestrictMembers,
    this.canPinMessages,
    this.canPromoteMembers});