Chat constructor
const
Chat({
- required int id,
- required ChatType type,
- required String title,
- ChatPhotoInfo? photo,
- required ChatPermissions permissions,
- Message? lastMessage,
- required List<
ChatPosition> positions, - MessageSender? messageSenderId,
- required bool hasProtectedContent,
- required bool isMarkedAsUnread,
- required bool isBlocked,
- required bool hasScheduledMessages,
- required bool canBeDeletedOnlyForSelf,
- required bool canBeDeletedForAllUsers,
- required bool canBeReported,
- required bool defaultDisableNotification,
- required int unreadCount,
- required int lastReadInboxMessageId,
- required int lastReadOutboxMessageId,
- required int unreadMentionCount,
- required ChatNotificationSettings notificationSettings,
- required int messageTtl,
- required String themeName,
- ChatActionBar? actionBar,
- required VideoChat videoChat,
- ChatJoinRequestsInfo? pendingJoinRequests,
- required int replyMarkupMessageId,
- DraftMessage? draftMessage,
- required String clientData,
- dynamic extra,
- int? clientId,
A chat. (Can be a private chat, basic group, supergroup, or secret chat)
Implementation
const Chat({
required this.id,
required this.type,
required this.title,
this.photo,
required this.permissions,
this.lastMessage,
required this.positions,
this.messageSenderId,
required this.hasProtectedContent,
required this.isMarkedAsUnread,
required this.isBlocked,
required this.hasScheduledMessages,
required this.canBeDeletedOnlyForSelf,
required this.canBeDeletedForAllUsers,
required this.canBeReported,
required this.defaultDisableNotification,
required this.unreadCount,
required this.lastReadInboxMessageId,
required this.lastReadOutboxMessageId,
required this.unreadMentionCount,
required this.notificationSettings,
required this.messageTtl,
required this.themeName,
this.actionBar,
required this.videoChat,
this.pendingJoinRequests,
required this.replyMarkupMessageId,
this.draftMessage,
required this.clientData,
this.extra,
this.clientId,
});