Update constructor

const Update({
  1. required int updateId,
  2. Message? message,
  3. Message? editedMessage,
  4. Message? channelPost,
  5. Message? editedChannelPost,
  6. InlineQuery? inlineQuery,
  7. ChosenInlineResult? chosenInlineResult,
  8. CallbackQuery? callbackQuery,
  9. ShippingQuery? shippingQuery,
  10. PreCheckoutQuery? preCheckoutQuery,
  11. Poll? poll,
  12. PollAnswer? pollAnswer,
  13. ChatMemberUpdated? myChatMember,
  14. ChatMemberUpdated? chatMember,
  15. ChatJoinRequest? chatJoinRequest,
  16. MessageReactionUpdated? messageReaction,
  17. MessageReactionCountUpdated? messageReactionCount,
  18. ChatBoostUpdated? chatBoost,
  19. ChatBoostRemoved? removedChatBoost,
  20. BusinessConnection? businessConnection,
  21. Message? businessMessage,
  22. Message? editedBusinessMessage,
  23. BusinessMessagesDeleted? deletedBusinessMessages,
  24. PaidMediaPurchased? purchasedPaidMedia,
})

Update Constructor

Implementation

const Update({
  required this.updateId,
  this.message,
  this.editedMessage,
  this.channelPost,
  this.editedChannelPost,
  this.inlineQuery,
  this.chosenInlineResult,
  this.callbackQuery,
  this.shippingQuery,
  this.preCheckoutQuery,
  this.poll,
  this.pollAnswer,
  this.myChatMember,
  this.chatMember,
  this.chatJoinRequest,
  this.messageReaction,
  this.messageReactionCount,
  this.chatBoost,
  this.removedChatBoost,
  this.businessConnection,
  this.businessMessage,
  this.editedBusinessMessage,
  this.deletedBusinessMessages,
  this.purchasedPaidMedia,
});