Message constructor

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

Implementation

Message({
  required this.messageId,
  this.from,
  required this.date,
  required this.chat,
  this.forwardFrom,
  this.forwardFromChat,
  this.forwardFromMessageId,
  this.forwardSignature,
  this.forwardSenderName,
  this.forwardDate,
  this.replyToMessage,
  this.editDate,
  this.mediaGroupId,
  this.authorSignature,
  this.text,
  this.entities,
  this.captionEntities,
  this.audio,
  this.document,
  this.animation,
  this.game,
  this.photo,
  this.sticker,
  this.video,
  this.voice,
  this.videoNote,
  this.caption,
  this.contact,
  this.location,
  this.venue,
  this.poll,
  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.replyMarkup,
});