ChatPermissions constructor

const ChatPermissions({
  1. required bool canSendBasicMessages,
  2. required bool canSendAudios,
  3. required bool canSendDocuments,
  4. required bool canSendPhotos,
  5. required bool canSendVideos,
  6. required bool canSendVideoNotes,
  7. required bool canSendVoiceNotes,
  8. required bool canSendPolls,
  9. required bool canSendOtherMessages,
  10. required bool canAddWebPagePreviews,
  11. required bool canChangeInfo,
  12. required bool canInviteUsers,
  13. required bool canPinMessages,
  14. required bool canManageTopics,
})

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

Implementation

const ChatPermissions({
  required this.canSendBasicMessages,
  required this.canSendAudios,
  required this.canSendDocuments,
  required this.canSendPhotos,
  required this.canSendVideos,
  required this.canSendVideoNotes,
  required this.canSendVoiceNotes,
  required this.canSendPolls,
  required this.canSendOtherMessages,
  required this.canAddWebPagePreviews,
  required this.canChangeInfo,
  required this.canInviteUsers,
  required this.canPinMessages,
  required this.canManageTopics,
});