ChatPermissions constructor

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

Creates a new ChatPermissions object.

Implementation

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