Message constructor

Message({
  1. required MessageId? id,
  2. required String body,
  3. required String type,
  4. required int t,
  5. required String notifyName,
  6. required String from,
  7. required String to,
  8. required String self,
  9. required bool isNewMsg,
  10. required bool star,
  11. required bool kicNotified,
  12. required bool recvFresh,
  13. required bool isFromTemplate,
  14. required bool pollInvalidated,
  15. required bool broadcast,
  16. required bool isForwarded,
  17. required bool hasReaction,
  18. required bool ephemeralOutOfSync,
  19. required bool productHeaderImageRejected,
  20. required int lastPlaybackProgress,
  21. required bool isDynamicReplyButtonsMsg,
  22. required bool isMdHistoryMsg,
  23. required int stickerSentTs,
  24. required bool requiresDirectConnection,
  25. required bool pttForwardedFeaturesEnabled,
  26. required String caption,
})

Implementation

Message({
  required this.id,
  required this.body,
  required this.type,
  required this.t,
  required this.notifyName,
  required this.from,
  required this.to,
  required this.self,
  required this.isNewMsg,
  required this.star,
  required this.kicNotified,
  required this.recvFresh,
  required this.isFromTemplate,
  required this.pollInvalidated,
  required this.broadcast,
  required this.isForwarded,
  required this.hasReaction,
  required this.ephemeralOutOfSync,
  required this.productHeaderImageRejected,
  required this.lastPlaybackProgress,
  required this.isDynamicReplyButtonsMsg,
  required this.isMdHistoryMsg,
  required this.stickerSentTs,
  required this.requiresDirectConnection,
  required this.pttForwardedFeaturesEnabled,
  required this.caption,
});