Message constructor

const Message({
  1. User? from,
  2. Chat? senderChat,
  3. Message? replyToMessage,
  4. User? viaBot,
  5. int? editDate,
  6. String? mediaGroupId,
  7. String? authorSignature,
  8. String? text,
  9. List<MessageEntity>? entities,
  10. Animation? animation,
  11. Audio? audio,
  12. Document? document,
  13. List<PhotoSize>? photo,
  14. Sticker? sticker,
  15. Video? video,
  16. VideoNote? videoNote,
  17. Voice? voice,
  18. String? caption,
  19. List<MessageEntity>? captionEntities,
  20. Contact? contact,
  21. Dice? dice,
  22. Game? game,
  23. Poll? poll,
  24. Venue? venue,
  25. Location? location,
  26. List<User>? newChatMembers,
  27. User? leftChatMember,
  28. String? newChatTitle,
  29. List<PhotoSize>? newChatPhoto,
  30. bool? deleteChatPhoto,
  31. bool? groupChatCreated,
  32. bool? supergroupChatCreated,
  33. bool? channelChatCreated,
  34. MessageAutoDeleteTimerChanged? messageAutoDeleteTimerChanged,
  35. int? migrateToChatId,
  36. int? migrateFromChatId,
  37. Message? pinnedMessage,
  38. Invoice? invoice,
  39. SuccessfulPayment? successfulPayment,
  40. String? connectedWebsite,
  41. PassportData? passportData,
  42. ProximityAlertTriggered? proximityAlertTriggered,
  43. ForumTopicCreated? forumTopicCreated,
  44. ForumTopicClosed? forumTopicClosed,
  45. ForumTopicReopened? forumTopicReopened,
  46. VideoChatScheduled? videoChatScheduled,
  47. VideoChatStarted? videoChatStarted,
  48. VideoChatEnded? videoChatEnded,
  49. VideoChatParticipantsInvited? videoChatParticipantsInvited,
  50. WebAppData? webAppData,
  51. InlineKeyboardMarkup? replyMarkup,
  52. bool? hasProtectedContent,
  53. bool? isAutomaticForward,
  54. bool? isTopicMessage,
  55. int? messageThreadId,
  56. UsersShared? usersShared,
  57. ChatShared? chatShared,
  58. bool? hasMediaSpoiler,
  59. ForumTopicEdited? forumTopicEdited,
  60. GeneralForumTopicHidden? generalForumTopicHidden,
  61. GeneralForumTopicUnhidden? generalForumTopicUnhidden,
  62. WriteAccessAllowed? writeAccessAllowed,
  63. Story? story,
  64. ExternalReplyInfo? externalReply,
  65. TextQuote? quote,
  66. LinkPreviewOptions? linkPreviewOptions,
  67. Giveaway? giveaway,
  68. GiveawayCreated? giveawayCreated,
  69. GiveawayWinners? giveawayWinners,
  70. GiveawayCompleted? giveawayCompleted,
  71. MessageOrigin? forwardOrigin,
  72. required Chat chat,
  73. required int date,
  74. required int messageId,
  75. ChatBoostAdded? boostAdded,
  76. int? senderBoostCount,
  77. Story? replyToStory,
  78. String? businessConnectionId,
  79. User? senderBusinessBot,
  80. bool? isFromOffline,
  81. ChatBackground? chatBackgroundSet,
  82. String? effectId,
  83. bool? showCaptionAboveMedia,
  84. PaidMediaInfo? paidMedia,
  85. RefundedPayment? refundedPayment,
})

Creates a Message object.

Implementation

const Message({
  this.from,
  this.senderChat,
  this.replyToMessage,
  this.viaBot,
  this.editDate,
  this.mediaGroupId,
  this.authorSignature,
  this.text,
  this.entities,
  this.animation,
  this.audio,
  this.document,
  this.photo,
  this.sticker,
  this.video,
  this.videoNote,
  this.voice,
  this.caption,
  this.captionEntities,
  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.connectedWebsite,
  this.passportData,
  this.proximityAlertTriggered,
  this.forumTopicCreated,
  this.forumTopicClosed,
  this.forumTopicReopened,
  this.videoChatScheduled,
  this.videoChatStarted,
  this.videoChatEnded,
  this.videoChatParticipantsInvited,
  this.webAppData,
  this.replyMarkup,
  this.hasProtectedContent,
  this.isAutomaticForward,
  this.isTopicMessage,
  this.messageThreadId,
  this.usersShared,
  this.chatShared,
  this.hasMediaSpoiler,
  this.forumTopicEdited,
  this.generalForumTopicHidden,
  this.generalForumTopicUnhidden,
  this.writeAccessAllowed,
  this.story,
  this.externalReply,
  this.quote,
  this.linkPreviewOptions,
  this.giveaway,
  this.giveawayCreated,
  this.giveawayWinners,
  this.giveawayCompleted,
  this.forwardOrigin,
  required this.chat,
  required this.date,
  required this.messageId,
  this.boostAdded,
  this.senderBoostCount,
  this.replyToStory,
  this.businessConnectionId,
  this.senderBusinessBot,
  this.isFromOffline,
  this.chatBackgroundSet,
  this.effectId,
  this.showCaptionAboveMedia,
  this.paidMedia,
  this.refundedPayment,
});