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 canGetStatistics,
  14. required bool canGetMessageThread,
  15. required bool canGetViewers,
  16. required bool canGetMediaTimestampLinks,
  17. required bool hasTimestampedMedia,
  18. required bool isChannelPost,
  19. required bool containsUnreadMention,
  20. required int date,
  21. required int editDate,
  22. MessageForwardInfo? forwardInfo,
  23. MessageInteractionInfo? interactionInfo,
  24. required int replyInChatId,
  25. required int replyToMessageId,
  26. required int messageThreadId,
  27. required int ttl,
  28. required double ttlExpiresIn,
  29. required int viaBotUserId,
  30. required String authorSignature,
  31. required int mediaAlbumId,
  32. required String restrictionReason,
  33. required MessageContent content,
  34. ReplyMarkup? replyMarkup,
  35. dynamic extra,
  36. 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.canGetStatistics,
  required this.canGetMessageThread,
  required this.canGetViewers,
  required this.canGetMediaTimestampLinks,
  required this.hasTimestampedMedia,
  required this.isChannelPost,
  required this.containsUnreadMention,
  required this.date,
  required this.editDate,
  this.forwardInfo,
  this.interactionInfo,
  required this.replyInChatId,
  required this.replyToMessageId,
  required this.messageThreadId,
  required this.ttl,
  required this.ttlExpiresIn,
  required this.viaBotUserId,
  required this.authorSignature,
  required this.mediaAlbumId,
  required this.restrictionReason,
  required this.content,
  this.replyMarkup,
  this.extra,
  this.clientId,
});