Message constructor

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

Basic constructor

Implementation

Message({
  required this.messageId,
  this.from,
  this.senderChat,
  required this.date,
  required this.chat,
  this.forwardFrom,
  this.forwardFromChat,
  this.forwardFromMessageId,
  this.forwardSignature,
  this.forwardSenderName,
  this.forwardDate,
  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.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.videoChatScheduled,
  this.videoChatStarted,
  this.videoChatEnded,
  this.videoChatParticipantsInvited,
  this.webAppData,
  this.replyMarkup,
});