Chat constructor

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

Basic constructor

Implementation

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