Message constructor

Message({
  1. required int messageId,
  2. int? messageThreadId,
  3. User? from,
  4. Chat? senderChat,
  5. required int date,
  6. required Chat chat,
  7. User? forwardFrom,
  8. Chat? forwardFromChat,
  9. int? forwardFromMessageId,
  10. String? forwardSignature,
  11. String? forwardSenderName,
  12. int? forwardDate,
  13. bool? isTopicMessage,
  14. bool? isAutomaticForward,
  15. Message? replyToMessage,
  16. User? viaBot,
  17. int? editDate,
  18. bool? hasProtectedContent,
  19. String? mediaGroupId,
  20. String? authorSignature,
  21. String? text,
  22. List<MessageEntity>? entities,
  23. Animation? animation,
  24. Audio? audio,
  25. Document? document,
  26. List<PhotoSize>? photo,
  27. Sticker? sticker,
  28. Story? story,
  29. Video? video,
  30. VideoNote? videoNote,
  31. Voice? voice,
  32. String? caption,
  33. List<MessageEntity>? captionEntities,
  34. bool? hasMediaSpoiler,
  35. Contact? contact,
  36. Dice? dice,
  37. Game? game,
  38. Poll? poll,
  39. Venue? venue,
  40. Location? location,
  41. List<User>? newChatMembers,
  42. User? leftChatMember,
  43. String? newChatTitle,
  44. List<PhotoSize>? newChatPhoto,
  45. bool? deleteChatPhoto,
  46. bool? groupChatCreated,
  47. bool? supergroupChatCreated,
  48. bool? channelChatCreated,
  49. MessageAutoDeleteTimerChanged? messageAutoDeleteTimerChanged,
  50. int? migrateToChatId,
  51. int? migrateFromChatId,
  52. Message? pinnedMessage,
  53. Invoice? invoice,
  54. SuccessfulPayment? successfulPayment,
  55. UserShared? userShared,
  56. ChatShared? chatShared,
  57. String? connectedWebsite,
  58. PassportData? passportData,
  59. ProximityAlertTriggered? proximityAlertTriggered,
  60. ForumTopicCreated? forumTopicCreated,
  61. ForumTopicClosed? forumTopicClosed,
  62. ForumTopicReopened? forumTopicReopened,
  63. VideoChatScheduled? videoChatScheduled,
  64. VideoChatStarted? videoChatStarted,
  65. VideoChatEnded? videoChatEnded,
  66. VideoChatParticipantsInvited? videoChatParticipantsInvited,
  67. WebAppData? webAppData,
  68. ReplyMarkup? replyMarkup,
})

Basic constructor

Implementation

Message({
  required this.messageId,
  this.messageThreadId,
  this.from,
  this.senderChat,
  required this.date,
  required this.chat,
  this.forwardFrom,
  this.forwardFromChat,
  this.forwardFromMessageId,
  this.forwardSignature,
  this.forwardSenderName,
  this.forwardDate,
  this.isTopicMessage,
  this.isAutomaticForward,
  this.replyToMessage,
  this.viaBot,
  this.editDate,
  this.hasProtectedContent,
  this.mediaGroupId,
  this.authorSignature,
  this.text,
  this.entities,
  this.animation,
  this.audio,
  this.document,
  this.photo,
  this.sticker,
  this.story,
  this.video,
  this.videoNote,
  this.voice,
  this.caption,
  this.captionEntities,
  this.hasMediaSpoiler,
  this.contact,
  this.dice,
  this.game,
  this.poll,
  this.venue,
  this.location,
  this.newChatMembers,
  this.leftChatMember,
  this.newChatTitle,
  this.newChatPhoto,
  this.deleteChatPhoto,
  this.groupChatCreated,
  this.supergroupChatCreated,
  this.channelChatCreated,
  this.messageAutoDeleteTimerChanged,
  this.migrateToChatId,
  this.migrateFromChatId,
  this.pinnedMessage,
  this.invoice,
  this.successfulPayment,
  this.userShared,
  this.chatShared,
  this.connectedWebsite,
  this.passportData,
  this.proximityAlertTriggered,
  this.forumTopicCreated,
  this.forumTopicClosed,
  this.forumTopicReopened,
  this.videoChatScheduled,
  this.videoChatStarted,
  this.videoChatEnded,
  this.videoChatParticipantsInvited,
  this.webAppData,
  this.replyMarkup,
});