Chat constructor
Chat({
- required int id,
- required String type,
- String? title,
- String? username,
- String? firstName,
- String? lastName,
- bool? isForum,
- ChatPhoto? photo,
- List<
String> ? activeUsernames, - String? emojiStatusCustomEmojiId,
- String? emojiStatusExpirationDate,
- String? bio,
- bool? hasPrivateForwards,
- bool? hasRestrictedVoiceAndVideoMessages,
- bool? joinToSendMessages,
- bool? joinByRequest,
- String? description,
- String? inviteLink,
- Message? pinnedMessage,
- ChatPermissions? permissions,
- int? slowModeDelay,
- int? messageAutoDeleteTime,
- bool? hasAggressiveAntiSpamEnabled,
- bool? hasHiddenMembers,
- bool? hasProtectedContent,
- String? stickerSetName,
- bool? canSetStickerSet,
- int? linkedChatId,
- ChatLocation? location,
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,
});