ChatPermissions constructor

const ChatPermissions({
  1. required bool canSendMessages,
  2. required bool canSendMediaMessages,
  3. required bool canSendPolls,
  4. required bool canSendOtherMessages,
  5. required bool canAddWebPagePreviews,
  6. required bool canChangeInfo,
  7. required bool canInviteUsers,
  8. required bool canPinMessages,
})

Describes actions that a user is allowed to take in a chat

Implementation

const ChatPermissions({
  required this.canSendMessages,
  required this.canSendMediaMessages,
  required this.canSendPolls,
  required this.canSendOtherMessages,
  required this.canAddWebPagePreviews,
  required this.canChangeInfo,
  required this.canInviteUsers,
  required this.canPinMessages,
});