ChatMemberRestricted constructor

ChatMemberRestricted({
  1. required String status,
  2. required User user,
  3. bool isMember = false,
  4. bool canChangeInfo = false,
  5. bool canInviteUsers = false,
  6. bool canPinMessages = false,
  7. bool canManageTopics = false,
  8. bool canSendMessages = false,
  9. bool? canSendAudios = false,
  10. bool? canSendDocuments = false,
  11. bool? canSendPhotos = false,
  12. bool? canSendVideos = false,
  13. bool? canSendVideoNotes = false,
  14. bool? canSendVoiceNotes = false,
  15. bool canSendPolls = false,
  16. bool canSendOtherMessages = false,
  17. bool canAddWebPagePreviews = false,
  18. required int untilDate,
})

Implementation

ChatMemberRestricted({
  required this.status,
  required this.user,
  this.isMember = false,
  this.canChangeInfo = false,
  this.canInviteUsers = false,
  this.canPinMessages = false,
  this.canManageTopics = false,
  this.canSendMessages = false,
  this.canSendAudios = false,
  this.canSendDocuments = false,
  this.canSendPhotos = false,
  this.canSendVideos = false,
  this.canSendVideoNotes = false,
  this.canSendVoiceNotes = false,
  this.canSendPolls = false,
  this.canSendOtherMessages = false,
  this.canAddWebPagePreviews = false,
  required this.untilDate,
});