ChatMemberStatusAdministrator constructor

const ChatMemberStatusAdministrator({
  1. required String customTitle,
  2. required bool canBeEdited,
  3. required bool canManageChat,
  4. required bool canChangeInfo,
  5. required bool canPostMessages,
  6. required bool canEditMessages,
  7. required bool canDeleteMessages,
  8. required bool canInviteUsers,
  9. required bool canRestrictMembers,
  10. required bool canPinMessages,
  11. required bool canPromoteMembers,
  12. required bool canManageVideoChats,
  13. required bool isAnonymous,
})

The user is a member of the chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, ban unprivileged members, and manage video chats. In supergroups and channels, there are more detailed options for administrator privileges

Implementation

const ChatMemberStatusAdministrator({
  required this.customTitle,
  required this.canBeEdited,
  required this.canManageChat,
  required this.canChangeInfo,
  required this.canPostMessages,
  required this.canEditMessages,
  required this.canDeleteMessages,
  required this.canInviteUsers,
  required this.canRestrictMembers,
  required this.canPinMessages,
  required this.canPromoteMembers,
  required this.canManageVideoChats,
  required this.isAnonymous,
});