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