Chat constructor

Chat({
  1. required int id,
  2. required String type,
  3. String? title,
  4. String? username,
  5. String? firstName,
  6. String? lastName,
  7. ChatPhoto? photo,
  8. String? bio,
  9. bool? hasPrivateForwards,
  10. bool? hasRestrictedVoiceAndVideoMessages,
  11. bool? joinToSendMessages,
  12. bool? joinByRequest,
  13. String? description,
  14. String? inviteLink,
  15. Message? pinnedMessage,
  16. ChatPermissions? permissions,
  17. int? slowModeDelay,
  18. int? messageAutoDeleteTime,
  19. bool? hasProtectedContent,
  20. String? stickerSetName,
  21. bool? canSetStickerSet,
  22. int? linkedChatId,
  23. ChatLocation? location,
})

Basic constructor

Implementation

Chat({
  required this.id,
  required this.type,
  this.title,
  this.username,
  this.firstName,
  this.lastName,
  this.photo,
  this.bio,
  this.hasPrivateForwards,
  this.hasRestrictedVoiceAndVideoMessages,
  this.joinToSendMessages,
  this.joinByRequest,
  this.description,
  this.inviteLink,
  this.pinnedMessage,
  this.permissions,
  this.slowModeDelay,
  this.messageAutoDeleteTime,
  this.hasProtectedContent,
  this.stickerSetName,
  this.canSetStickerSet,
  this.linkedChatId,
  this.location,
});