Chat constructor

const Chat(
  1. {required int id,
  2. required ChatType type,
  3. required String title,
  4. ChatPhotoInfo? photo,
  5. required ChatPermissions permissions,
  6. Message? lastMessage,
  7. required List<ChatPosition> positions,
  8. MessageSender? messageSenderId,
  9. required bool hasProtectedContent,
  10. required bool isTranslatable,
  11. required bool isMarkedAsUnread,
  12. required bool isBlocked,
  13. required bool hasScheduledMessages,
  14. required bool canBeDeletedOnlyForSelf,
  15. required bool canBeDeletedForAllUsers,
  16. required bool canBeReported,
  17. required bool defaultDisableNotification,
  18. required int unreadCount,
  19. required int lastReadInboxMessageId,
  20. required int lastReadOutboxMessageId,
  21. required int unreadMentionCount,
  22. required int unreadReactionCount,
  23. required ChatNotificationSettings notificationSettings,
  24. required ChatAvailableReactions availableReactions,
  25. required int messageAutoDeleteTime,
  26. ChatBackground? background,
  27. required String themeName,
  28. ChatActionBar? actionBar,
  29. required VideoChat videoChat,
  30. ChatJoinRequestsInfo? pendingJoinRequests,
  31. required int replyMarkupMessageId,
  32. DraftMessage? draftMessage,
  33. required String clientData,
  34. dynamic extra,
  35. 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.isTranslatable,
  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.unreadReactionCount,
  required this.notificationSettings,
  required this.availableReactions,
  required this.messageAutoDeleteTime,
  this.background,
  required this.themeName,
  this.actionBar,
  required this.videoChat,
  this.pendingJoinRequests,
  required this.replyMarkupMessageId,
  this.draftMessage,
  required this.clientData,
  this.extra,
  this.clientId,
});