Message constructor

const Message({
  1. required int id,
  2. required MessageSender senderId,
  3. required int chatId,
  4. MessageSendingState? sendingState,
  5. MessageSchedulingState? schedulingState,
  6. required bool isOutgoing,
  7. required bool isPinned,
  8. required bool canBeEdited,
  9. required bool canBeForwarded,
  10. required bool canBeSaved,
  11. required bool canBeDeletedOnlyForSelf,
  12. required bool canBeDeletedForAllUsers,
  13. required bool canGetAddedReactions,
  14. required bool canGetStatistics,
  15. required bool canGetMessageThread,
  16. required bool canGetViewers,
  17. required bool canGetMediaTimestampLinks,
  18. required bool canReportReactions,
  19. required bool hasTimestampedMedia,
  20. required bool isChannelPost,
  21. required bool isTopicMessage,
  22. required bool containsUnreadMention,
  23. required int date,
  24. required int editDate,
  25. MessageForwardInfo? forwardInfo,
  26. MessageInteractionInfo? interactionInfo,
  27. required List<UnreadReaction> unreadReactions,
  28. MessageReplyTo? replyTo,
  29. required int messageThreadId,
  30. required int selfDestructTime,
  31. required double selfDestructIn,
  32. required double autoDeleteIn,
  33. required int viaBotUserId,
  34. required String authorSignature,
  35. required int mediaAlbumId,
  36. required String restrictionReason,
  37. required MessageContent content,
  38. ReplyMarkup? replyMarkup,
  39. dynamic extra,
  40. int? clientId,
})

Describes a message

Implementation

const Message({
  required this.id,
  required this.senderId,
  required this.chatId,
  this.sendingState,
  this.schedulingState,
  required this.isOutgoing,
  required this.isPinned,
  required this.canBeEdited,
  required this.canBeForwarded,
  required this.canBeSaved,
  required this.canBeDeletedOnlyForSelf,
  required this.canBeDeletedForAllUsers,
  required this.canGetAddedReactions,
  required this.canGetStatistics,
  required this.canGetMessageThread,
  required this.canGetViewers,
  required this.canGetMediaTimestampLinks,
  required this.canReportReactions,
  required this.hasTimestampedMedia,
  required this.isChannelPost,
  required this.isTopicMessage,
  required this.containsUnreadMention,
  required this.date,
  required this.editDate,
  this.forwardInfo,
  this.interactionInfo,
  required this.unreadReactions,
  this.replyTo,
  required this.messageThreadId,
  required this.selfDestructTime,
  required this.selfDestructIn,
  required this.autoDeleteIn,
  required this.viaBotUserId,
  required this.authorSignature,
  required this.mediaAlbumId,
  required this.restrictionReason,
  required this.content,
  this.replyMarkup,
  this.extra,
  this.clientId,
});