ChatAdministratorRights constructor

const ChatAdministratorRights({
  1. required bool isAnonymous,
  2. required bool canManageChat,
  3. required bool canDeleteMessages,
  4. required bool canManageVideoChats,
  5. required bool canRestrictMembers,
  6. required bool canPromoteMembers,
  7. required bool canChangeInfo,
  8. required bool canInviteUsers,
  9. bool? canPostMessages,
  10. bool? canEditMessages,
  11. bool? canPinMessages,
  12. bool? canManageForum,
  13. bool? canPostStories,
  14. bool? canEditStories,
  15. bool? canDeleteStories,
})

Creates a new ChatAdministratorRights object.

Implementation

const ChatAdministratorRights({
  required this.isAnonymous,
  required this.canManageChat,
  required this.canDeleteMessages,
  required this.canManageVideoChats,
  required this.canRestrictMembers,
  required this.canPromoteMembers,
  required this.canChangeInfo,
  required this.canInviteUsers,
  this.canPostMessages,
  this.canEditMessages,
  this.canPinMessages,
  this.canManageForum,
  this.canPostStories,
  this.canEditStories,
  this.canDeleteStories,
});