maybeMap<TResult extends Object?> method

TResult maybeMap<TResult extends Object?>({
  1. TResult authorizationState(
    1. UpdateAuthorizationState value
    )?,
  2. TResult newMessage(
    1. UpdateNewMessage value
    )?,
  3. TResult messageSendAcknowledged(
    1. UpdateMessageSendAcknowledged value
    )?,
  4. TResult messageSendSucceeded(
    1. UpdateMessageSendSucceeded value
    )?,
  5. TResult messageSendFailed(
    1. UpdateMessageSendFailed value
    )?,
  6. TResult messageContent(
    1. UpdateMessageContent value
    )?,
  7. TResult messageEphemeralContent(
    1. UpdateMessageEphemeralContent value
    )?,
  8. TResult messageEdited(
    1. UpdateMessageEdited value
    )?,
  9. TResult messageIsPinned(
    1. UpdateMessageIsPinned value
    )?,
  10. TResult messageInteractionInfo(
    1. UpdateMessageInteractionInfo value
    )?,
  11. TResult messageContentOpened(
    1. UpdateMessageContentOpened value
    )?,
  12. TResult messageMentionRead(
    1. UpdateMessageMentionRead value
    )?,
  13. TResult messageUnreadReactions(
    1. UpdateMessageUnreadReactions value
    )?,
  14. TResult messageContainsUnreadPollVotes(
    1. UpdateMessageContainsUnreadPollVotes value
    )?,
  15. TResult messageFactCheck(
    1. UpdateMessageFactCheck value
    )?,
  16. TResult messageSuggestedPostInfo(
    1. UpdateMessageSuggestedPostInfo value
    )?,
  17. TResult messageLiveLocationViewed(
    1. UpdateMessageLiveLocationViewed value
    )?,
  18. TResult videoPublished(
    1. UpdateVideoPublished value
    )?,
  19. TResult newChat(
    1. UpdateNewChat value
    )?,
  20. TResult chatTitle(
    1. UpdateChatTitle value
    )?,
  21. TResult chatPhoto(
    1. UpdateChatPhoto value
    )?,
  22. TResult chatAccentColors(
    1. UpdateChatAccentColors value
    )?,
  23. TResult chatPermissions(
    1. UpdateChatPermissions value
    )?,
  24. TResult chatLastMessage(
    1. UpdateChatLastMessage value
    )?,
  25. TResult chatPosition(
    1. UpdateChatPosition value
    )?,
  26. TResult chatAddedToList(
    1. UpdateChatAddedToList value
    )?,
  27. TResult chatRemovedFromList(
    1. UpdateChatRemovedFromList value
    )?,
  28. TResult chatReadInbox(
    1. UpdateChatReadInbox value
    )?,
  29. TResult chatReadOutbox(
    1. UpdateChatReadOutbox value
    )?,
  30. TResult chatActionBar(
    1. UpdateChatActionBar value
    )?,
  31. TResult chatBusinessBotManageBar(
    1. UpdateChatBusinessBotManageBar value
    )?,
  32. TResult chatAvailableReactions(
    1. UpdateChatAvailableReactions value
    )?,
  33. TResult chatDraftMessage(
    1. UpdateChatDraftMessage value
    )?,
  34. TResult chatEmojiStatus(
    1. UpdateChatEmojiStatus value
    )?,
  35. TResult chatMessageSender(
    1. UpdateChatMessageSender value
    )?,
  36. TResult chatMessageAutoDeleteTime(
    1. UpdateChatMessageAutoDeleteTime value
    )?,
  37. TResult chatNotificationSettings(
    1. UpdateChatNotificationSettings value
    )?,
  38. TResult chatPendingJoinRequests(
    1. UpdateChatPendingJoinRequests value
    )?,
  39. TResult chatReplyMarkup(
    1. UpdateChatReplyMarkup value
    )?,
  40. TResult chatBackground(
    1. UpdateChatBackground value
    )?,
  41. TResult chatTheme(
    1. UpdateChatTheme value
    )?,
  42. TResult chatUnreadMentionCount(
    1. UpdateChatUnreadMentionCount value
    )?,
  43. TResult chatUnreadReactionCount(
    1. UpdateChatUnreadReactionCount value
    )?,
  44. TResult chatUnreadPollVoteCount(
    1. UpdateChatUnreadPollVoteCount value
    )?,
  45. TResult chatVideoChat(
    1. UpdateChatVideoChat value
    )?,
  46. TResult chatDefaultDisableNotification(
    1. UpdateChatDefaultDisableNotification value
    )?,
  47. TResult chatHasProtectedContent(
    1. UpdateChatHasProtectedContent value
    )?,
  48. TResult chatIsTranslatable(
    1. UpdateChatIsTranslatable value
    )?,
  49. TResult chatIsMarkedAsUnread(
    1. UpdateChatIsMarkedAsUnread value
    )?,
  50. TResult chatViewAsTopics(
    1. UpdateChatViewAsTopics value
    )?,
  51. TResult chatBlockList(
    1. UpdateChatBlockList value
    )?,
  52. TResult chatHasScheduledMessages(
    1. UpdateChatHasScheduledMessages value
    )?,
  53. TResult chatHasWelcomeMessages(
    1. UpdateChatHasWelcomeMessages value
    )?,
  54. TResult chatFolders(
    1. UpdateChatFolders value
    )?,
  55. TResult chatOnlineMemberCount(
    1. UpdateChatOnlineMemberCount value
    )?,
  56. TResult savedMessagesTopic(
    1. UpdateSavedMessagesTopic value
    )?,
  57. TResult savedMessagesTopicCount(
    1. UpdateSavedMessagesTopicCount value
    )?,
  58. TResult directMessagesChatTopic(
    1. UpdateDirectMessagesChatTopic value
    )?,
  59. TResult topicMessageCount(
    1. UpdateTopicMessageCount value
    )?,
  60. TResult quickReplyShortcut(
    1. UpdateQuickReplyShortcut value
    )?,
  61. TResult quickReplyShortcutDeleted(
    1. UpdateQuickReplyShortcutDeleted value
    )?,
  62. TResult quickReplyShortcuts(
    1. UpdateQuickReplyShortcuts value
    )?,
  63. TResult quickReplyShortcutMessages(
    1. UpdateQuickReplyShortcutMessages value
    )?,
  64. TResult chatWelcomeMessages(
    1. UpdateChatWelcomeMessages value
    )?,
  65. TResult forumTopicInfo(
    1. UpdateForumTopicInfo value
    )?,
  66. TResult forumTopic(
    1. UpdateForumTopic value
    )?,
  67. TResult scopeNotificationSettings(
    1. UpdateScopeNotificationSettings value
    )?,
  68. TResult reactionNotificationSettings(
    1. UpdateReactionNotificationSettings value
    )?,
  69. TResult notification(
    1. UpdateNotification value
    )?,
  70. TResult notificationGroup(
    1. UpdateNotificationGroup value
    )?,
  71. TResult activeNotifications(
    1. UpdateActiveNotifications value
    )?,
  72. TResult havePendingNotifications(
    1. UpdateHavePendingNotifications value
    )?,
  73. TResult deleteMessages(
    1. UpdateDeleteMessages value
    )?,
  74. TResult chatAction(
    1. UpdateChatAction value
    )?,
  75. TResult pendingMessage(
    1. UpdatePendingMessage value
    )?,
  76. TResult stopMessageDraft(
    1. UpdateStopMessageDraft value
    )?,
  77. TResult community(
    1. UpdateCommunity value
    )?,
  78. TResult userStatus(
    1. UpdateUserStatus value
    )?,
  79. TResult user(
    1. UpdateUser value
    )?,
  80. TResult basicGroup(
    1. UpdateBasicGroup value
    )?,
  81. TResult supergroup(
    1. UpdateSupergroup value
    )?,
  82. TResult secretChat(
    1. UpdateSecretChat value
    )?,
  83. TResult userFullInfo(
    1. UpdateUserFullInfo value
    )?,
  84. TResult basicGroupFullInfo(
    1. UpdateBasicGroupFullInfo value
    )?,
  85. TResult supergroupFullInfo(
    1. UpdateSupergroupFullInfo value
    )?,
  86. TResult communityFullInfo(
    1. UpdateCommunityFullInfo value
    )?,
  87. TResult serviceNotification(
    1. UpdateServiceNotification value
    )?,
  88. TResult newOauthRequest(
    1. UpdateNewOauthRequest value
    )?,
  89. TResult file(
    1. UpdateFile value
    )?,
  90. TResult fileGenerationStart(
    1. UpdateFileGenerationStart value
    )?,
  91. TResult fileGenerationStop(
    1. UpdateFileGenerationStop value
    )?,
  92. TResult fileDownloads(
    1. UpdateFileDownloads value
    )?,
  93. TResult fileAddedToDownloads(
    1. UpdateFileAddedToDownloads value
    )?,
  94. TResult fileDownload(
    1. UpdateFileDownload value
    )?,
  95. TResult fileRemovedFromDownloads(
    1. UpdateFileRemovedFromDownloads value
    )?,
  96. TResult applicationVerificationRequired(
    1. UpdateApplicationVerificationRequired value
    )?,
  97. TResult applicationRecaptchaVerificationRequired(
    1. UpdateApplicationRecaptchaVerificationRequired value
    )?,
  98. TResult call(
    1. UpdateCall value
    )?,
  99. TResult groupCall(
    1. UpdateGroupCall value
    )?,
  100. TResult groupCallParticipant(
    1. UpdateGroupCallParticipant value
    )?,
  101. TResult groupCallParticipants(
    1. UpdateGroupCallParticipants value
    )?,
  102. TResult groupCallVerificationState(
    1. UpdateGroupCallVerificationState value
    )?,
  103. TResult newGroupCallMessage(
    1. UpdateNewGroupCallMessage value
    )?,
  104. TResult newGroupCallPaidReaction(
    1. UpdateNewGroupCallPaidReaction value
    )?,
  105. TResult groupCallMessageSendFailed(
    1. UpdateGroupCallMessageSendFailed value
    )?,
  106. TResult groupCallMessagesDeleted(
    1. UpdateGroupCallMessagesDeleted value
    )?,
  107. TResult liveStoryTopDonors(
    1. UpdateLiveStoryTopDonors value
    )?,
  108. TResult newCallSignalingData(
    1. UpdateNewCallSignalingData value
    )?,
  109. TResult giftAuctionState(
    1. UpdateGiftAuctionState value
    )?,
  110. TResult activeGiftAuctions(
    1. UpdateActiveGiftAuctions value
    )?,
  111. TResult userPrivacySettingRules(
    1. UpdateUserPrivacySettingRules value
    )?,
  112. TResult unreadMessageCount(
    1. UpdateUnreadMessageCount value
    )?,
  113. TResult unreadChatCount(
    1. UpdateUnreadChatCount value
    )?,
  114. TResult chatJoinResult(
    1. UpdateChatJoinResult value
    )?,
  115. TResult story(
    1. UpdateStory value
    )?,
  116. TResult storyDeleted(
    1. UpdateStoryDeleted value
    )?,
  117. TResult storyPostSucceeded(
    1. UpdateStoryPostSucceeded value
    )?,
  118. TResult storyPostFailed(
    1. UpdateStoryPostFailed value
    )?,
  119. TResult chatActiveStories(
    1. UpdateChatActiveStories value
    )?,
  120. TResult storyListChatCount(
    1. UpdateStoryListChatCount value
    )?,
  121. TResult storyStealthMode(
    1. UpdateStoryStealthMode value
    )?,
  122. TResult allowedBotUsernamePremiumSuffixes(
    1. UpdateAllowedBotUsernamePremiumSuffixes value
    )?,
  123. TResult trustedMiniAppBots(
    1. UpdateTrustedMiniAppBots value
    )?,
  124. TResult option(
    1. UpdateOption value
    )?,
  125. TResult stickerSet(
    1. UpdateStickerSet value
    )?,
  126. TResult installedStickerSets(
    1. UpdateInstalledStickerSets value
    )?,
  127. TResult trendingStickerSets(
    1. UpdateTrendingStickerSets value
    )?,
  128. TResult recentStickers(
    1. UpdateRecentStickers value
    )?,
  129. TResult favoriteStickers(
    1. UpdateFavoriteStickers value
    )?,
  130. TResult savedAnimations(
    1. UpdateSavedAnimations value
    )?,
  131. TResult savedNotificationSounds(
    1. UpdateSavedNotificationSounds value
    )?,
  132. TResult defaultBackground(
    1. UpdateDefaultBackground value
    )?,
  133. TResult emojiChatThemes(
    1. UpdateEmojiChatThemes value
    )?,
  134. TResult accentColors(
    1. UpdateAccentColors value
    )?,
  135. TResult profileAccentColors(
    1. UpdateProfileAccentColors value
    )?,
  136. TResult webBrowserSettings(
    1. UpdateWebBrowserSettings value
    )?,
  137. TResult languagePackStrings(
    1. UpdateLanguagePackStrings value
    )?,
  138. TResult connectionState(
    1. UpdateConnectionState value
    )?,
  139. TResult webProxyCarrierOpened(
    1. UpdateWebProxyCarrierOpened value
    )?,
  140. TResult webProxyCarrierData(
    1. UpdateWebProxyCarrierData value
    )?,
  141. TResult webProxyCarrierClosed(
    1. UpdateWebProxyCarrierClosed value
    )?,
  142. TResult freezeState(
    1. UpdateFreezeState value
    )?,
  143. TResult ageVerificationParameters(
    1. UpdateAgeVerificationParameters value
    )?,
  144. TResult termsOfService(
    1. UpdateTermsOfService value
    )?,
  145. TResult unconfirmedSession(
    1. UpdateUnconfirmedSession value
    )?,
  146. TResult attachmentMenuBots(
    1. UpdateAttachmentMenuBots value
    )?,
  147. TResult webAppMessageSent(
    1. UpdateWebAppMessageSent value
    )?,
  148. TResult activeEmojiReactions(
    1. UpdateActiveEmojiReactions value
    )?,
  149. TResult availableMessageEffects(
    1. UpdateAvailableMessageEffects value
    )?,
  150. TResult defaultReactionType(
    1. UpdateDefaultReactionType value
    )?,
  151. TResult defaultPaidReactionType(
    1. UpdateDefaultPaidReactionType value
    )?,
  152. TResult savedMessagesTags(
    1. UpdateSavedMessagesTags value
    )?,
  153. TResult activeLiveLocationMessages(
    1. UpdateActiveLiveLocationMessages value
    )?,
  154. TResult ownedStarCount(
    1. UpdateOwnedStarCount value
    )?,
  155. TResult ownedGramCount(
    1. UpdateOwnedGramCount value
    )?,
  156. TResult tonWalletState(
    1. UpdateTonWalletState value
    )?,
  157. TResult tonWalletGaslessTransfersInfo(
    1. UpdateTonWalletGaslessTransfersInfo value
    )?,
  158. TResult tonWalletTonConnectSession(
    1. UpdateTonWalletTonConnectSession value
    )?,
  159. TResult tonWalletTonConnectSessionDisconnectRequired(
    1. UpdateTonWalletTonConnectSessionDisconnectRequired value
    )?,
  160. TResult chatRevenueAmount(
    1. UpdateChatRevenueAmount value
    )?,
  161. TResult starRevenueStatus(
    1. UpdateStarRevenueStatus value
    )?,
  162. TResult gramRevenueStatus(
    1. UpdateGramRevenueStatus value
    )?,
  163. TResult speechRecognitionTrial(
    1. UpdateSpeechRecognitionTrial value
    )?,
  164. TResult speechRecognitionInFile(
    1. UpdateSpeechRecognitionInFile value
    )?,
  165. TResult groupCallMessageLevels(
    1. UpdateGroupCallMessageLevels value
    )?,
  166. TResult diceEmojis(
    1. UpdateDiceEmojis value
    )?,
  167. TResult stakeDiceState(
    1. UpdateStakeDiceState value
    )?,
  168. TResult animatedEmojiMessageClicked(
    1. UpdateAnimatedEmojiMessageClicked value
    )?,
  169. TResult animationSearchParameters(
    1. UpdateAnimationSearchParameters value
    )?,
  170. TResult textCompositionStyles(
    1. UpdateTextCompositionStyles value
    )?,
  171. TResult suggestedActions(
    1. UpdateSuggestedActions value
    )?,
  172. TResult speedLimitNotification(
    1. UpdateSpeedLimitNotification value
    )?,
  173. TResult contactCloseBirthdays(
    1. UpdateContactCloseBirthdays value
    )?,
  174. TResult autosaveSettings(
    1. UpdateAutosaveSettings value
    )?,
  175. TResult businessConnection(
    1. UpdateBusinessConnection value
    )?,
  176. TResult newBusinessMessage(
    1. UpdateNewBusinessMessage value
    )?,
  177. TResult businessMessageEdited(
    1. UpdateBusinessMessageEdited value
    )?,
  178. TResult businessMessagesDeleted(
    1. UpdateBusinessMessagesDeleted value
    )?,
  179. TResult newInlineQuery(
    1. UpdateNewInlineQuery value
    )?,
  180. TResult newChosenInlineResult(
    1. UpdateNewChosenInlineResult value
    )?,
  181. TResult newGuestQuery(
    1. UpdateNewGuestQuery value
    )?,
  182. TResult newCallbackQuery(
    1. UpdateNewCallbackQuery value
    )?,
  183. TResult newInlineCallbackQuery(
    1. UpdateNewInlineCallbackQuery value
    )?,
  184. TResult newBusinessCallbackQuery(
    1. UpdateNewBusinessCallbackQuery value
    )?,
  185. TResult newWidgetQuery(
    1. UpdateNewWidgetQuery value
    )?,
  186. TResult newInlineWidgetQuery(
    1. UpdateNewInlineWidgetQuery value
    )?,
  187. TResult newWidgetCopyQuery(
    1. UpdateNewWidgetCopyQuery value
    )?,
  188. TResult newShippingQuery(
    1. UpdateNewShippingQuery value
    )?,
  189. TResult newPreCheckoutQuery(
    1. UpdateNewPreCheckoutQuery value
    )?,
  190. TResult newCustomEvent(
    1. UpdateNewCustomEvent value
    )?,
  191. TResult newCustomQuery(
    1. UpdateNewCustomQuery value
    )?,
  192. TResult userSubscription(
    1. UpdateUserSubscription value
    )?,
  193. TResult poll(
    1. UpdatePoll value
    )?,
  194. TResult pollAnswer(
    1. UpdatePollAnswer value
    )?,
  195. TResult managedBot(
    1. UpdateManagedBot value
    )?,
  196. TResult chatMember(
    1. UpdateChatMember value
    )?,
  197. TResult newChatJoinRequest(
    1. UpdateNewChatJoinRequest value
    )?,
  198. TResult chatBoost(
    1. UpdateChatBoost value
    )?,
  199. TResult messageReaction(
    1. UpdateMessageReaction value
    )?,
  200. TResult messageReactions(
    1. UpdateMessageReactions value
    )?,
  201. TResult paidMediaPurchased(
    1. UpdatePaidMediaPurchased value
    )?,
  202. required TResult orElse(),
})

Implementation

TResult maybeMap<TResult extends Object?>({
  TResult Function(UpdateAuthorizationState value)? authorizationState,
  TResult Function(UpdateNewMessage value)? newMessage,
  TResult Function(UpdateMessageSendAcknowledged value)?
      messageSendAcknowledged,
  TResult Function(UpdateMessageSendSucceeded value)? messageSendSucceeded,
  TResult Function(UpdateMessageSendFailed value)? messageSendFailed,
  TResult Function(UpdateMessageContent value)? messageContent,
  TResult Function(UpdateMessageEphemeralContent value)?
      messageEphemeralContent,
  TResult Function(UpdateMessageEdited value)? messageEdited,
  TResult Function(UpdateMessageIsPinned value)? messageIsPinned,
  TResult Function(UpdateMessageInteractionInfo value)?
      messageInteractionInfo,
  TResult Function(UpdateMessageContentOpened value)? messageContentOpened,
  TResult Function(UpdateMessageMentionRead value)? messageMentionRead,
  TResult Function(UpdateMessageUnreadReactions value)?
      messageUnreadReactions,
  TResult Function(UpdateMessageContainsUnreadPollVotes value)?
      messageContainsUnreadPollVotes,
  TResult Function(UpdateMessageFactCheck value)? messageFactCheck,
  TResult Function(UpdateMessageSuggestedPostInfo value)?
      messageSuggestedPostInfo,
  TResult Function(UpdateMessageLiveLocationViewed value)?
      messageLiveLocationViewed,
  TResult Function(UpdateVideoPublished value)? videoPublished,
  TResult Function(UpdateNewChat value)? newChat,
  TResult Function(UpdateChatTitle value)? chatTitle,
  TResult Function(UpdateChatPhoto value)? chatPhoto,
  TResult Function(UpdateChatAccentColors value)? chatAccentColors,
  TResult Function(UpdateChatPermissions value)? chatPermissions,
  TResult Function(UpdateChatLastMessage value)? chatLastMessage,
  TResult Function(UpdateChatPosition value)? chatPosition,
  TResult Function(UpdateChatAddedToList value)? chatAddedToList,
  TResult Function(UpdateChatRemovedFromList value)? chatRemovedFromList,
  TResult Function(UpdateChatReadInbox value)? chatReadInbox,
  TResult Function(UpdateChatReadOutbox value)? chatReadOutbox,
  TResult Function(UpdateChatActionBar value)? chatActionBar,
  TResult Function(UpdateChatBusinessBotManageBar value)?
      chatBusinessBotManageBar,
  TResult Function(UpdateChatAvailableReactions value)?
      chatAvailableReactions,
  TResult Function(UpdateChatDraftMessage value)? chatDraftMessage,
  TResult Function(UpdateChatEmojiStatus value)? chatEmojiStatus,
  TResult Function(UpdateChatMessageSender value)? chatMessageSender,
  TResult Function(UpdateChatMessageAutoDeleteTime value)?
      chatMessageAutoDeleteTime,
  TResult Function(UpdateChatNotificationSettings value)?
      chatNotificationSettings,
  TResult Function(UpdateChatPendingJoinRequests value)?
      chatPendingJoinRequests,
  TResult Function(UpdateChatReplyMarkup value)? chatReplyMarkup,
  TResult Function(UpdateChatBackground value)? chatBackground,
  TResult Function(UpdateChatTheme value)? chatTheme,
  TResult Function(UpdateChatUnreadMentionCount value)?
      chatUnreadMentionCount,
  TResult Function(UpdateChatUnreadReactionCount value)?
      chatUnreadReactionCount,
  TResult Function(UpdateChatUnreadPollVoteCount value)?
      chatUnreadPollVoteCount,
  TResult Function(UpdateChatVideoChat value)? chatVideoChat,
  TResult Function(UpdateChatDefaultDisableNotification value)?
      chatDefaultDisableNotification,
  TResult Function(UpdateChatHasProtectedContent value)?
      chatHasProtectedContent,
  TResult Function(UpdateChatIsTranslatable value)? chatIsTranslatable,
  TResult Function(UpdateChatIsMarkedAsUnread value)? chatIsMarkedAsUnread,
  TResult Function(UpdateChatViewAsTopics value)? chatViewAsTopics,
  TResult Function(UpdateChatBlockList value)? chatBlockList,
  TResult Function(UpdateChatHasScheduledMessages value)?
      chatHasScheduledMessages,
  TResult Function(UpdateChatHasWelcomeMessages value)?
      chatHasWelcomeMessages,
  TResult Function(UpdateChatFolders value)? chatFolders,
  TResult Function(UpdateChatOnlineMemberCount value)? chatOnlineMemberCount,
  TResult Function(UpdateSavedMessagesTopic value)? savedMessagesTopic,
  TResult Function(UpdateSavedMessagesTopicCount value)?
      savedMessagesTopicCount,
  TResult Function(UpdateDirectMessagesChatTopic value)?
      directMessagesChatTopic,
  TResult Function(UpdateTopicMessageCount value)? topicMessageCount,
  TResult Function(UpdateQuickReplyShortcut value)? quickReplyShortcut,
  TResult Function(UpdateQuickReplyShortcutDeleted value)?
      quickReplyShortcutDeleted,
  TResult Function(UpdateQuickReplyShortcuts value)? quickReplyShortcuts,
  TResult Function(UpdateQuickReplyShortcutMessages value)?
      quickReplyShortcutMessages,
  TResult Function(UpdateChatWelcomeMessages value)? chatWelcomeMessages,
  TResult Function(UpdateForumTopicInfo value)? forumTopicInfo,
  TResult Function(UpdateForumTopic value)? forumTopic,
  TResult Function(UpdateScopeNotificationSettings value)?
      scopeNotificationSettings,
  TResult Function(UpdateReactionNotificationSettings value)?
      reactionNotificationSettings,
  TResult Function(UpdateNotification value)? notification,
  TResult Function(UpdateNotificationGroup value)? notificationGroup,
  TResult Function(UpdateActiveNotifications value)? activeNotifications,
  TResult Function(UpdateHavePendingNotifications value)?
      havePendingNotifications,
  TResult Function(UpdateDeleteMessages value)? deleteMessages,
  TResult Function(UpdateChatAction value)? chatAction,
  TResult Function(UpdatePendingMessage value)? pendingMessage,
  TResult Function(UpdateStopMessageDraft value)? stopMessageDraft,
  TResult Function(UpdateCommunity value)? community,
  TResult Function(UpdateUserStatus value)? userStatus,
  TResult Function(UpdateUser value)? user,
  TResult Function(UpdateBasicGroup value)? basicGroup,
  TResult Function(UpdateSupergroup value)? supergroup,
  TResult Function(UpdateSecretChat value)? secretChat,
  TResult Function(UpdateUserFullInfo value)? userFullInfo,
  TResult Function(UpdateBasicGroupFullInfo value)? basicGroupFullInfo,
  TResult Function(UpdateSupergroupFullInfo value)? supergroupFullInfo,
  TResult Function(UpdateCommunityFullInfo value)? communityFullInfo,
  TResult Function(UpdateServiceNotification value)? serviceNotification,
  TResult Function(UpdateNewOauthRequest value)? newOauthRequest,
  TResult Function(UpdateFile value)? file,
  TResult Function(UpdateFileGenerationStart value)? fileGenerationStart,
  TResult Function(UpdateFileGenerationStop value)? fileGenerationStop,
  TResult Function(UpdateFileDownloads value)? fileDownloads,
  TResult Function(UpdateFileAddedToDownloads value)? fileAddedToDownloads,
  TResult Function(UpdateFileDownload value)? fileDownload,
  TResult Function(UpdateFileRemovedFromDownloads value)?
      fileRemovedFromDownloads,
  TResult Function(UpdateApplicationVerificationRequired value)?
      applicationVerificationRequired,
  TResult Function(UpdateApplicationRecaptchaVerificationRequired value)?
      applicationRecaptchaVerificationRequired,
  TResult Function(UpdateCall value)? call,
  TResult Function(UpdateGroupCall value)? groupCall,
  TResult Function(UpdateGroupCallParticipant value)? groupCallParticipant,
  TResult Function(UpdateGroupCallParticipants value)? groupCallParticipants,
  TResult Function(UpdateGroupCallVerificationState value)?
      groupCallVerificationState,
  TResult Function(UpdateNewGroupCallMessage value)? newGroupCallMessage,
  TResult Function(UpdateNewGroupCallPaidReaction value)?
      newGroupCallPaidReaction,
  TResult Function(UpdateGroupCallMessageSendFailed value)?
      groupCallMessageSendFailed,
  TResult Function(UpdateGroupCallMessagesDeleted value)?
      groupCallMessagesDeleted,
  TResult Function(UpdateLiveStoryTopDonors value)? liveStoryTopDonors,
  TResult Function(UpdateNewCallSignalingData value)? newCallSignalingData,
  TResult Function(UpdateGiftAuctionState value)? giftAuctionState,
  TResult Function(UpdateActiveGiftAuctions value)? activeGiftAuctions,
  TResult Function(UpdateUserPrivacySettingRules value)?
      userPrivacySettingRules,
  TResult Function(UpdateUnreadMessageCount value)? unreadMessageCount,
  TResult Function(UpdateUnreadChatCount value)? unreadChatCount,
  TResult Function(UpdateChatJoinResult value)? chatJoinResult,
  TResult Function(UpdateStory value)? story,
  TResult Function(UpdateStoryDeleted value)? storyDeleted,
  TResult Function(UpdateStoryPostSucceeded value)? storyPostSucceeded,
  TResult Function(UpdateStoryPostFailed value)? storyPostFailed,
  TResult Function(UpdateChatActiveStories value)? chatActiveStories,
  TResult Function(UpdateStoryListChatCount value)? storyListChatCount,
  TResult Function(UpdateStoryStealthMode value)? storyStealthMode,
  TResult Function(UpdateAllowedBotUsernamePremiumSuffixes value)?
      allowedBotUsernamePremiumSuffixes,
  TResult Function(UpdateTrustedMiniAppBots value)? trustedMiniAppBots,
  TResult Function(UpdateOption value)? option,
  TResult Function(UpdateStickerSet value)? stickerSet,
  TResult Function(UpdateInstalledStickerSets value)? installedStickerSets,
  TResult Function(UpdateTrendingStickerSets value)? trendingStickerSets,
  TResult Function(UpdateRecentStickers value)? recentStickers,
  TResult Function(UpdateFavoriteStickers value)? favoriteStickers,
  TResult Function(UpdateSavedAnimations value)? savedAnimations,
  TResult Function(UpdateSavedNotificationSounds value)?
      savedNotificationSounds,
  TResult Function(UpdateDefaultBackground value)? defaultBackground,
  TResult Function(UpdateEmojiChatThemes value)? emojiChatThemes,
  TResult Function(UpdateAccentColors value)? accentColors,
  TResult Function(UpdateProfileAccentColors value)? profileAccentColors,
  TResult Function(UpdateWebBrowserSettings value)? webBrowserSettings,
  TResult Function(UpdateLanguagePackStrings value)? languagePackStrings,
  TResult Function(UpdateConnectionState value)? connectionState,
  TResult Function(UpdateWebProxyCarrierOpened value)? webProxyCarrierOpened,
  TResult Function(UpdateWebProxyCarrierData value)? webProxyCarrierData,
  TResult Function(UpdateWebProxyCarrierClosed value)? webProxyCarrierClosed,
  TResult Function(UpdateFreezeState value)? freezeState,
  TResult Function(UpdateAgeVerificationParameters value)?
      ageVerificationParameters,
  TResult Function(UpdateTermsOfService value)? termsOfService,
  TResult Function(UpdateUnconfirmedSession value)? unconfirmedSession,
  TResult Function(UpdateAttachmentMenuBots value)? attachmentMenuBots,
  TResult Function(UpdateWebAppMessageSent value)? webAppMessageSent,
  TResult Function(UpdateActiveEmojiReactions value)? activeEmojiReactions,
  TResult Function(UpdateAvailableMessageEffects value)?
      availableMessageEffects,
  TResult Function(UpdateDefaultReactionType value)? defaultReactionType,
  TResult Function(UpdateDefaultPaidReactionType value)?
      defaultPaidReactionType,
  TResult Function(UpdateSavedMessagesTags value)? savedMessagesTags,
  TResult Function(UpdateActiveLiveLocationMessages value)?
      activeLiveLocationMessages,
  TResult Function(UpdateOwnedStarCount value)? ownedStarCount,
  TResult Function(UpdateOwnedGramCount value)? ownedGramCount,
  TResult Function(UpdateTonWalletState value)? tonWalletState,
  TResult Function(UpdateTonWalletGaslessTransfersInfo value)?
      tonWalletGaslessTransfersInfo,
  TResult Function(UpdateTonWalletTonConnectSession value)?
      tonWalletTonConnectSession,
  TResult Function(UpdateTonWalletTonConnectSessionDisconnectRequired value)?
      tonWalletTonConnectSessionDisconnectRequired,
  TResult Function(UpdateChatRevenueAmount value)? chatRevenueAmount,
  TResult Function(UpdateStarRevenueStatus value)? starRevenueStatus,
  TResult Function(UpdateGramRevenueStatus value)? gramRevenueStatus,
  TResult Function(UpdateSpeechRecognitionTrial value)?
      speechRecognitionTrial,
  TResult Function(UpdateSpeechRecognitionInFile value)?
      speechRecognitionInFile,
  TResult Function(UpdateGroupCallMessageLevels value)?
      groupCallMessageLevels,
  TResult Function(UpdateDiceEmojis value)? diceEmojis,
  TResult Function(UpdateStakeDiceState value)? stakeDiceState,
  TResult Function(UpdateAnimatedEmojiMessageClicked value)?
      animatedEmojiMessageClicked,
  TResult Function(UpdateAnimationSearchParameters value)?
      animationSearchParameters,
  TResult Function(UpdateTextCompositionStyles value)? textCompositionStyles,
  TResult Function(UpdateSuggestedActions value)? suggestedActions,
  TResult Function(UpdateSpeedLimitNotification value)?
      speedLimitNotification,
  TResult Function(UpdateContactCloseBirthdays value)? contactCloseBirthdays,
  TResult Function(UpdateAutosaveSettings value)? autosaveSettings,
  TResult Function(UpdateBusinessConnection value)? businessConnection,
  TResult Function(UpdateNewBusinessMessage value)? newBusinessMessage,
  TResult Function(UpdateBusinessMessageEdited value)? businessMessageEdited,
  TResult Function(UpdateBusinessMessagesDeleted value)?
      businessMessagesDeleted,
  TResult Function(UpdateNewInlineQuery value)? newInlineQuery,
  TResult Function(UpdateNewChosenInlineResult value)? newChosenInlineResult,
  TResult Function(UpdateNewGuestQuery value)? newGuestQuery,
  TResult Function(UpdateNewCallbackQuery value)? newCallbackQuery,
  TResult Function(UpdateNewInlineCallbackQuery value)?
      newInlineCallbackQuery,
  TResult Function(UpdateNewBusinessCallbackQuery value)?
      newBusinessCallbackQuery,
  TResult Function(UpdateNewWidgetQuery value)? newWidgetQuery,
  TResult Function(UpdateNewInlineWidgetQuery value)? newInlineWidgetQuery,
  TResult Function(UpdateNewWidgetCopyQuery value)? newWidgetCopyQuery,
  TResult Function(UpdateNewShippingQuery value)? newShippingQuery,
  TResult Function(UpdateNewPreCheckoutQuery value)? newPreCheckoutQuery,
  TResult Function(UpdateNewCustomEvent value)? newCustomEvent,
  TResult Function(UpdateNewCustomQuery value)? newCustomQuery,
  TResult Function(UpdateUserSubscription value)? userSubscription,
  TResult Function(UpdatePoll value)? poll,
  TResult Function(UpdatePollAnswer value)? pollAnswer,
  TResult Function(UpdateManagedBot value)? managedBot,
  TResult Function(UpdateChatMember value)? chatMember,
  TResult Function(UpdateNewChatJoinRequest value)? newChatJoinRequest,
  TResult Function(UpdateChatBoost value)? chatBoost,
  TResult Function(UpdateMessageReaction value)? messageReaction,
  TResult Function(UpdateMessageReactions value)? messageReactions,
  TResult Function(UpdatePaidMediaPurchased value)? paidMediaPurchased,
  required TResult Function() orElse,
}) {
  switch (getConstructor()) {
    case UpdateAuthorizationState.constructor:
      if (authorizationState != null) {
        return authorizationState.call(this as UpdateAuthorizationState);
      }
      break;
    case UpdateNewMessage.constructor:
      if (newMessage != null) {
        return newMessage.call(this as UpdateNewMessage);
      }
      break;
    case UpdateMessageSendAcknowledged.constructor:
      if (messageSendAcknowledged != null) {
        return messageSendAcknowledged
            .call(this as UpdateMessageSendAcknowledged);
      }
      break;
    case UpdateMessageSendSucceeded.constructor:
      if (messageSendSucceeded != null) {
        return messageSendSucceeded.call(this as UpdateMessageSendSucceeded);
      }
      break;
    case UpdateMessageSendFailed.constructor:
      if (messageSendFailed != null) {
        return messageSendFailed.call(this as UpdateMessageSendFailed);
      }
      break;
    case UpdateMessageContent.constructor:
      if (messageContent != null) {
        return messageContent.call(this as UpdateMessageContent);
      }
      break;
    case UpdateMessageEphemeralContent.constructor:
      if (messageEphemeralContent != null) {
        return messageEphemeralContent
            .call(this as UpdateMessageEphemeralContent);
      }
      break;
    case UpdateMessageEdited.constructor:
      if (messageEdited != null) {
        return messageEdited.call(this as UpdateMessageEdited);
      }
      break;
    case UpdateMessageIsPinned.constructor:
      if (messageIsPinned != null) {
        return messageIsPinned.call(this as UpdateMessageIsPinned);
      }
      break;
    case UpdateMessageInteractionInfo.constructor:
      if (messageInteractionInfo != null) {
        return messageInteractionInfo
            .call(this as UpdateMessageInteractionInfo);
      }
      break;
    case UpdateMessageContentOpened.constructor:
      if (messageContentOpened != null) {
        return messageContentOpened.call(this as UpdateMessageContentOpened);
      }
      break;
    case UpdateMessageMentionRead.constructor:
      if (messageMentionRead != null) {
        return messageMentionRead.call(this as UpdateMessageMentionRead);
      }
      break;
    case UpdateMessageUnreadReactions.constructor:
      if (messageUnreadReactions != null) {
        return messageUnreadReactions
            .call(this as UpdateMessageUnreadReactions);
      }
      break;
    case UpdateMessageContainsUnreadPollVotes.constructor:
      if (messageContainsUnreadPollVotes != null) {
        return messageContainsUnreadPollVotes
            .call(this as UpdateMessageContainsUnreadPollVotes);
      }
      break;
    case UpdateMessageFactCheck.constructor:
      if (messageFactCheck != null) {
        return messageFactCheck.call(this as UpdateMessageFactCheck);
      }
      break;
    case UpdateMessageSuggestedPostInfo.constructor:
      if (messageSuggestedPostInfo != null) {
        return messageSuggestedPostInfo
            .call(this as UpdateMessageSuggestedPostInfo);
      }
      break;
    case UpdateMessageLiveLocationViewed.constructor:
      if (messageLiveLocationViewed != null) {
        return messageLiveLocationViewed
            .call(this as UpdateMessageLiveLocationViewed);
      }
      break;
    case UpdateVideoPublished.constructor:
      if (videoPublished != null) {
        return videoPublished.call(this as UpdateVideoPublished);
      }
      break;
    case UpdateNewChat.constructor:
      if (newChat != null) {
        return newChat.call(this as UpdateNewChat);
      }
      break;
    case UpdateChatTitle.constructor:
      if (chatTitle != null) {
        return chatTitle.call(this as UpdateChatTitle);
      }
      break;
    case UpdateChatPhoto.constructor:
      if (chatPhoto != null) {
        return chatPhoto.call(this as UpdateChatPhoto);
      }
      break;
    case UpdateChatAccentColors.constructor:
      if (chatAccentColors != null) {
        return chatAccentColors.call(this as UpdateChatAccentColors);
      }
      break;
    case UpdateChatPermissions.constructor:
      if (chatPermissions != null) {
        return chatPermissions.call(this as UpdateChatPermissions);
      }
      break;
    case UpdateChatLastMessage.constructor:
      if (chatLastMessage != null) {
        return chatLastMessage.call(this as UpdateChatLastMessage);
      }
      break;
    case UpdateChatPosition.constructor:
      if (chatPosition != null) {
        return chatPosition.call(this as UpdateChatPosition);
      }
      break;
    case UpdateChatAddedToList.constructor:
      if (chatAddedToList != null) {
        return chatAddedToList.call(this as UpdateChatAddedToList);
      }
      break;
    case UpdateChatRemovedFromList.constructor:
      if (chatRemovedFromList != null) {
        return chatRemovedFromList.call(this as UpdateChatRemovedFromList);
      }
      break;
    case UpdateChatReadInbox.constructor:
      if (chatReadInbox != null) {
        return chatReadInbox.call(this as UpdateChatReadInbox);
      }
      break;
    case UpdateChatReadOutbox.constructor:
      if (chatReadOutbox != null) {
        return chatReadOutbox.call(this as UpdateChatReadOutbox);
      }
      break;
    case UpdateChatActionBar.constructor:
      if (chatActionBar != null) {
        return chatActionBar.call(this as UpdateChatActionBar);
      }
      break;
    case UpdateChatBusinessBotManageBar.constructor:
      if (chatBusinessBotManageBar != null) {
        return chatBusinessBotManageBar
            .call(this as UpdateChatBusinessBotManageBar);
      }
      break;
    case UpdateChatAvailableReactions.constructor:
      if (chatAvailableReactions != null) {
        return chatAvailableReactions
            .call(this as UpdateChatAvailableReactions);
      }
      break;
    case UpdateChatDraftMessage.constructor:
      if (chatDraftMessage != null) {
        return chatDraftMessage.call(this as UpdateChatDraftMessage);
      }
      break;
    case UpdateChatEmojiStatus.constructor:
      if (chatEmojiStatus != null) {
        return chatEmojiStatus.call(this as UpdateChatEmojiStatus);
      }
      break;
    case UpdateChatMessageSender.constructor:
      if (chatMessageSender != null) {
        return chatMessageSender.call(this as UpdateChatMessageSender);
      }
      break;
    case UpdateChatMessageAutoDeleteTime.constructor:
      if (chatMessageAutoDeleteTime != null) {
        return chatMessageAutoDeleteTime
            .call(this as UpdateChatMessageAutoDeleteTime);
      }
      break;
    case UpdateChatNotificationSettings.constructor:
      if (chatNotificationSettings != null) {
        return chatNotificationSettings
            .call(this as UpdateChatNotificationSettings);
      }
      break;
    case UpdateChatPendingJoinRequests.constructor:
      if (chatPendingJoinRequests != null) {
        return chatPendingJoinRequests
            .call(this as UpdateChatPendingJoinRequests);
      }
      break;
    case UpdateChatReplyMarkup.constructor:
      if (chatReplyMarkup != null) {
        return chatReplyMarkup.call(this as UpdateChatReplyMarkup);
      }
      break;
    case UpdateChatBackground.constructor:
      if (chatBackground != null) {
        return chatBackground.call(this as UpdateChatBackground);
      }
      break;
    case UpdateChatTheme.constructor:
      if (chatTheme != null) {
        return chatTheme.call(this as UpdateChatTheme);
      }
      break;
    case UpdateChatUnreadMentionCount.constructor:
      if (chatUnreadMentionCount != null) {
        return chatUnreadMentionCount
            .call(this as UpdateChatUnreadMentionCount);
      }
      break;
    case UpdateChatUnreadReactionCount.constructor:
      if (chatUnreadReactionCount != null) {
        return chatUnreadReactionCount
            .call(this as UpdateChatUnreadReactionCount);
      }
      break;
    case UpdateChatUnreadPollVoteCount.constructor:
      if (chatUnreadPollVoteCount != null) {
        return chatUnreadPollVoteCount
            .call(this as UpdateChatUnreadPollVoteCount);
      }
      break;
    case UpdateChatVideoChat.constructor:
      if (chatVideoChat != null) {
        return chatVideoChat.call(this as UpdateChatVideoChat);
      }
      break;
    case UpdateChatDefaultDisableNotification.constructor:
      if (chatDefaultDisableNotification != null) {
        return chatDefaultDisableNotification
            .call(this as UpdateChatDefaultDisableNotification);
      }
      break;
    case UpdateChatHasProtectedContent.constructor:
      if (chatHasProtectedContent != null) {
        return chatHasProtectedContent
            .call(this as UpdateChatHasProtectedContent);
      }
      break;
    case UpdateChatIsTranslatable.constructor:
      if (chatIsTranslatable != null) {
        return chatIsTranslatable.call(this as UpdateChatIsTranslatable);
      }
      break;
    case UpdateChatIsMarkedAsUnread.constructor:
      if (chatIsMarkedAsUnread != null) {
        return chatIsMarkedAsUnread.call(this as UpdateChatIsMarkedAsUnread);
      }
      break;
    case UpdateChatViewAsTopics.constructor:
      if (chatViewAsTopics != null) {
        return chatViewAsTopics.call(this as UpdateChatViewAsTopics);
      }
      break;
    case UpdateChatBlockList.constructor:
      if (chatBlockList != null) {
        return chatBlockList.call(this as UpdateChatBlockList);
      }
      break;
    case UpdateChatHasScheduledMessages.constructor:
      if (chatHasScheduledMessages != null) {
        return chatHasScheduledMessages
            .call(this as UpdateChatHasScheduledMessages);
      }
      break;
    case UpdateChatHasWelcomeMessages.constructor:
      if (chatHasWelcomeMessages != null) {
        return chatHasWelcomeMessages
            .call(this as UpdateChatHasWelcomeMessages);
      }
      break;
    case UpdateChatFolders.constructor:
      if (chatFolders != null) {
        return chatFolders.call(this as UpdateChatFolders);
      }
      break;
    case UpdateChatOnlineMemberCount.constructor:
      if (chatOnlineMemberCount != null) {
        return chatOnlineMemberCount
            .call(this as UpdateChatOnlineMemberCount);
      }
      break;
    case UpdateSavedMessagesTopic.constructor:
      if (savedMessagesTopic != null) {
        return savedMessagesTopic.call(this as UpdateSavedMessagesTopic);
      }
      break;
    case UpdateSavedMessagesTopicCount.constructor:
      if (savedMessagesTopicCount != null) {
        return savedMessagesTopicCount
            .call(this as UpdateSavedMessagesTopicCount);
      }
      break;
    case UpdateDirectMessagesChatTopic.constructor:
      if (directMessagesChatTopic != null) {
        return directMessagesChatTopic
            .call(this as UpdateDirectMessagesChatTopic);
      }
      break;
    case UpdateTopicMessageCount.constructor:
      if (topicMessageCount != null) {
        return topicMessageCount.call(this as UpdateTopicMessageCount);
      }
      break;
    case UpdateQuickReplyShortcut.constructor:
      if (quickReplyShortcut != null) {
        return quickReplyShortcut.call(this as UpdateQuickReplyShortcut);
      }
      break;
    case UpdateQuickReplyShortcutDeleted.constructor:
      if (quickReplyShortcutDeleted != null) {
        return quickReplyShortcutDeleted
            .call(this as UpdateQuickReplyShortcutDeleted);
      }
      break;
    case UpdateQuickReplyShortcuts.constructor:
      if (quickReplyShortcuts != null) {
        return quickReplyShortcuts.call(this as UpdateQuickReplyShortcuts);
      }
      break;
    case UpdateQuickReplyShortcutMessages.constructor:
      if (quickReplyShortcutMessages != null) {
        return quickReplyShortcutMessages
            .call(this as UpdateQuickReplyShortcutMessages);
      }
      break;
    case UpdateChatWelcomeMessages.constructor:
      if (chatWelcomeMessages != null) {
        return chatWelcomeMessages.call(this as UpdateChatWelcomeMessages);
      }
      break;
    case UpdateForumTopicInfo.constructor:
      if (forumTopicInfo != null) {
        return forumTopicInfo.call(this as UpdateForumTopicInfo);
      }
      break;
    case UpdateForumTopic.constructor:
      if (forumTopic != null) {
        return forumTopic.call(this as UpdateForumTopic);
      }
      break;
    case UpdateScopeNotificationSettings.constructor:
      if (scopeNotificationSettings != null) {
        return scopeNotificationSettings
            .call(this as UpdateScopeNotificationSettings);
      }
      break;
    case UpdateReactionNotificationSettings.constructor:
      if (reactionNotificationSettings != null) {
        return reactionNotificationSettings
            .call(this as UpdateReactionNotificationSettings);
      }
      break;
    case UpdateNotification.constructor:
      if (notification != null) {
        return notification.call(this as UpdateNotification);
      }
      break;
    case UpdateNotificationGroup.constructor:
      if (notificationGroup != null) {
        return notificationGroup.call(this as UpdateNotificationGroup);
      }
      break;
    case UpdateActiveNotifications.constructor:
      if (activeNotifications != null) {
        return activeNotifications.call(this as UpdateActiveNotifications);
      }
      break;
    case UpdateHavePendingNotifications.constructor:
      if (havePendingNotifications != null) {
        return havePendingNotifications
            .call(this as UpdateHavePendingNotifications);
      }
      break;
    case UpdateDeleteMessages.constructor:
      if (deleteMessages != null) {
        return deleteMessages.call(this as UpdateDeleteMessages);
      }
      break;
    case UpdateChatAction.constructor:
      if (chatAction != null) {
        return chatAction.call(this as UpdateChatAction);
      }
      break;
    case UpdatePendingMessage.constructor:
      if (pendingMessage != null) {
        return pendingMessage.call(this as UpdatePendingMessage);
      }
      break;
    case UpdateStopMessageDraft.constructor:
      if (stopMessageDraft != null) {
        return stopMessageDraft.call(this as UpdateStopMessageDraft);
      }
      break;
    case UpdateCommunity.constructor:
      if (community != null) {
        return community.call(this as UpdateCommunity);
      }
      break;
    case UpdateUserStatus.constructor:
      if (userStatus != null) {
        return userStatus.call(this as UpdateUserStatus);
      }
      break;
    case UpdateUser.constructor:
      if (user != null) {
        return user.call(this as UpdateUser);
      }
      break;
    case UpdateBasicGroup.constructor:
      if (basicGroup != null) {
        return basicGroup.call(this as UpdateBasicGroup);
      }
      break;
    case UpdateSupergroup.constructor:
      if (supergroup != null) {
        return supergroup.call(this as UpdateSupergroup);
      }
      break;
    case UpdateSecretChat.constructor:
      if (secretChat != null) {
        return secretChat.call(this as UpdateSecretChat);
      }
      break;
    case UpdateUserFullInfo.constructor:
      if (userFullInfo != null) {
        return userFullInfo.call(this as UpdateUserFullInfo);
      }
      break;
    case UpdateBasicGroupFullInfo.constructor:
      if (basicGroupFullInfo != null) {
        return basicGroupFullInfo.call(this as UpdateBasicGroupFullInfo);
      }
      break;
    case UpdateSupergroupFullInfo.constructor:
      if (supergroupFullInfo != null) {
        return supergroupFullInfo.call(this as UpdateSupergroupFullInfo);
      }
      break;
    case UpdateCommunityFullInfo.constructor:
      if (communityFullInfo != null) {
        return communityFullInfo.call(this as UpdateCommunityFullInfo);
      }
      break;
    case UpdateServiceNotification.constructor:
      if (serviceNotification != null) {
        return serviceNotification.call(this as UpdateServiceNotification);
      }
      break;
    case UpdateNewOauthRequest.constructor:
      if (newOauthRequest != null) {
        return newOauthRequest.call(this as UpdateNewOauthRequest);
      }
      break;
    case UpdateFile.constructor:
      if (file != null) {
        return file.call(this as UpdateFile);
      }
      break;
    case UpdateFileGenerationStart.constructor:
      if (fileGenerationStart != null) {
        return fileGenerationStart.call(this as UpdateFileGenerationStart);
      }
      break;
    case UpdateFileGenerationStop.constructor:
      if (fileGenerationStop != null) {
        return fileGenerationStop.call(this as UpdateFileGenerationStop);
      }
      break;
    case UpdateFileDownloads.constructor:
      if (fileDownloads != null) {
        return fileDownloads.call(this as UpdateFileDownloads);
      }
      break;
    case UpdateFileAddedToDownloads.constructor:
      if (fileAddedToDownloads != null) {
        return fileAddedToDownloads.call(this as UpdateFileAddedToDownloads);
      }
      break;
    case UpdateFileDownload.constructor:
      if (fileDownload != null) {
        return fileDownload.call(this as UpdateFileDownload);
      }
      break;
    case UpdateFileRemovedFromDownloads.constructor:
      if (fileRemovedFromDownloads != null) {
        return fileRemovedFromDownloads
            .call(this as UpdateFileRemovedFromDownloads);
      }
      break;
    case UpdateApplicationVerificationRequired.constructor:
      if (applicationVerificationRequired != null) {
        return applicationVerificationRequired
            .call(this as UpdateApplicationVerificationRequired);
      }
      break;
    case UpdateApplicationRecaptchaVerificationRequired.constructor:
      if (applicationRecaptchaVerificationRequired != null) {
        return applicationRecaptchaVerificationRequired
            .call(this as UpdateApplicationRecaptchaVerificationRequired);
      }
      break;
    case UpdateCall.constructor:
      if (call != null) {
        return call.call(this as UpdateCall);
      }
      break;
    case UpdateGroupCall.constructor:
      if (groupCall != null) {
        return groupCall.call(this as UpdateGroupCall);
      }
      break;
    case UpdateGroupCallParticipant.constructor:
      if (groupCallParticipant != null) {
        return groupCallParticipant.call(this as UpdateGroupCallParticipant);
      }
      break;
    case UpdateGroupCallParticipants.constructor:
      if (groupCallParticipants != null) {
        return groupCallParticipants
            .call(this as UpdateGroupCallParticipants);
      }
      break;
    case UpdateGroupCallVerificationState.constructor:
      if (groupCallVerificationState != null) {
        return groupCallVerificationState
            .call(this as UpdateGroupCallVerificationState);
      }
      break;
    case UpdateNewGroupCallMessage.constructor:
      if (newGroupCallMessage != null) {
        return newGroupCallMessage.call(this as UpdateNewGroupCallMessage);
      }
      break;
    case UpdateNewGroupCallPaidReaction.constructor:
      if (newGroupCallPaidReaction != null) {
        return newGroupCallPaidReaction
            .call(this as UpdateNewGroupCallPaidReaction);
      }
      break;
    case UpdateGroupCallMessageSendFailed.constructor:
      if (groupCallMessageSendFailed != null) {
        return groupCallMessageSendFailed
            .call(this as UpdateGroupCallMessageSendFailed);
      }
      break;
    case UpdateGroupCallMessagesDeleted.constructor:
      if (groupCallMessagesDeleted != null) {
        return groupCallMessagesDeleted
            .call(this as UpdateGroupCallMessagesDeleted);
      }
      break;
    case UpdateLiveStoryTopDonors.constructor:
      if (liveStoryTopDonors != null) {
        return liveStoryTopDonors.call(this as UpdateLiveStoryTopDonors);
      }
      break;
    case UpdateNewCallSignalingData.constructor:
      if (newCallSignalingData != null) {
        return newCallSignalingData.call(this as UpdateNewCallSignalingData);
      }
      break;
    case UpdateGiftAuctionState.constructor:
      if (giftAuctionState != null) {
        return giftAuctionState.call(this as UpdateGiftAuctionState);
      }
      break;
    case UpdateActiveGiftAuctions.constructor:
      if (activeGiftAuctions != null) {
        return activeGiftAuctions.call(this as UpdateActiveGiftAuctions);
      }
      break;
    case UpdateUserPrivacySettingRules.constructor:
      if (userPrivacySettingRules != null) {
        return userPrivacySettingRules
            .call(this as UpdateUserPrivacySettingRules);
      }
      break;
    case UpdateUnreadMessageCount.constructor:
      if (unreadMessageCount != null) {
        return unreadMessageCount.call(this as UpdateUnreadMessageCount);
      }
      break;
    case UpdateUnreadChatCount.constructor:
      if (unreadChatCount != null) {
        return unreadChatCount.call(this as UpdateUnreadChatCount);
      }
      break;
    case UpdateChatJoinResult.constructor:
      if (chatJoinResult != null) {
        return chatJoinResult.call(this as UpdateChatJoinResult);
      }
      break;
    case UpdateStory.constructor:
      if (story != null) {
        return story.call(this as UpdateStory);
      }
      break;
    case UpdateStoryDeleted.constructor:
      if (storyDeleted != null) {
        return storyDeleted.call(this as UpdateStoryDeleted);
      }
      break;
    case UpdateStoryPostSucceeded.constructor:
      if (storyPostSucceeded != null) {
        return storyPostSucceeded.call(this as UpdateStoryPostSucceeded);
      }
      break;
    case UpdateStoryPostFailed.constructor:
      if (storyPostFailed != null) {
        return storyPostFailed.call(this as UpdateStoryPostFailed);
      }
      break;
    case UpdateChatActiveStories.constructor:
      if (chatActiveStories != null) {
        return chatActiveStories.call(this as UpdateChatActiveStories);
      }
      break;
    case UpdateStoryListChatCount.constructor:
      if (storyListChatCount != null) {
        return storyListChatCount.call(this as UpdateStoryListChatCount);
      }
      break;
    case UpdateStoryStealthMode.constructor:
      if (storyStealthMode != null) {
        return storyStealthMode.call(this as UpdateStoryStealthMode);
      }
      break;
    case UpdateAllowedBotUsernamePremiumSuffixes.constructor:
      if (allowedBotUsernamePremiumSuffixes != null) {
        return allowedBotUsernamePremiumSuffixes
            .call(this as UpdateAllowedBotUsernamePremiumSuffixes);
      }
      break;
    case UpdateTrustedMiniAppBots.constructor:
      if (trustedMiniAppBots != null) {
        return trustedMiniAppBots.call(this as UpdateTrustedMiniAppBots);
      }
      break;
    case UpdateOption.constructor:
      if (option != null) {
        return option.call(this as UpdateOption);
      }
      break;
    case UpdateStickerSet.constructor:
      if (stickerSet != null) {
        return stickerSet.call(this as UpdateStickerSet);
      }
      break;
    case UpdateInstalledStickerSets.constructor:
      if (installedStickerSets != null) {
        return installedStickerSets.call(this as UpdateInstalledStickerSets);
      }
      break;
    case UpdateTrendingStickerSets.constructor:
      if (trendingStickerSets != null) {
        return trendingStickerSets.call(this as UpdateTrendingStickerSets);
      }
      break;
    case UpdateRecentStickers.constructor:
      if (recentStickers != null) {
        return recentStickers.call(this as UpdateRecentStickers);
      }
      break;
    case UpdateFavoriteStickers.constructor:
      if (favoriteStickers != null) {
        return favoriteStickers.call(this as UpdateFavoriteStickers);
      }
      break;
    case UpdateSavedAnimations.constructor:
      if (savedAnimations != null) {
        return savedAnimations.call(this as UpdateSavedAnimations);
      }
      break;
    case UpdateSavedNotificationSounds.constructor:
      if (savedNotificationSounds != null) {
        return savedNotificationSounds
            .call(this as UpdateSavedNotificationSounds);
      }
      break;
    case UpdateDefaultBackground.constructor:
      if (defaultBackground != null) {
        return defaultBackground.call(this as UpdateDefaultBackground);
      }
      break;
    case UpdateEmojiChatThemes.constructor:
      if (emojiChatThemes != null) {
        return emojiChatThemes.call(this as UpdateEmojiChatThemes);
      }
      break;
    case UpdateAccentColors.constructor:
      if (accentColors != null) {
        return accentColors.call(this as UpdateAccentColors);
      }
      break;
    case UpdateProfileAccentColors.constructor:
      if (profileAccentColors != null) {
        return profileAccentColors.call(this as UpdateProfileAccentColors);
      }
      break;
    case UpdateWebBrowserSettings.constructor:
      if (webBrowserSettings != null) {
        return webBrowserSettings.call(this as UpdateWebBrowserSettings);
      }
      break;
    case UpdateLanguagePackStrings.constructor:
      if (languagePackStrings != null) {
        return languagePackStrings.call(this as UpdateLanguagePackStrings);
      }
      break;
    case UpdateConnectionState.constructor:
      if (connectionState != null) {
        return connectionState.call(this as UpdateConnectionState);
      }
      break;
    case UpdateWebProxyCarrierOpened.constructor:
      if (webProxyCarrierOpened != null) {
        return webProxyCarrierOpened
            .call(this as UpdateWebProxyCarrierOpened);
      }
      break;
    case UpdateWebProxyCarrierData.constructor:
      if (webProxyCarrierData != null) {
        return webProxyCarrierData.call(this as UpdateWebProxyCarrierData);
      }
      break;
    case UpdateWebProxyCarrierClosed.constructor:
      if (webProxyCarrierClosed != null) {
        return webProxyCarrierClosed
            .call(this as UpdateWebProxyCarrierClosed);
      }
      break;
    case UpdateFreezeState.constructor:
      if (freezeState != null) {
        return freezeState.call(this as UpdateFreezeState);
      }
      break;
    case UpdateAgeVerificationParameters.constructor:
      if (ageVerificationParameters != null) {
        return ageVerificationParameters
            .call(this as UpdateAgeVerificationParameters);
      }
      break;
    case UpdateTermsOfService.constructor:
      if (termsOfService != null) {
        return termsOfService.call(this as UpdateTermsOfService);
      }
      break;
    case UpdateUnconfirmedSession.constructor:
      if (unconfirmedSession != null) {
        return unconfirmedSession.call(this as UpdateUnconfirmedSession);
      }
      break;
    case UpdateAttachmentMenuBots.constructor:
      if (attachmentMenuBots != null) {
        return attachmentMenuBots.call(this as UpdateAttachmentMenuBots);
      }
      break;
    case UpdateWebAppMessageSent.constructor:
      if (webAppMessageSent != null) {
        return webAppMessageSent.call(this as UpdateWebAppMessageSent);
      }
      break;
    case UpdateActiveEmojiReactions.constructor:
      if (activeEmojiReactions != null) {
        return activeEmojiReactions.call(this as UpdateActiveEmojiReactions);
      }
      break;
    case UpdateAvailableMessageEffects.constructor:
      if (availableMessageEffects != null) {
        return availableMessageEffects
            .call(this as UpdateAvailableMessageEffects);
      }
      break;
    case UpdateDefaultReactionType.constructor:
      if (defaultReactionType != null) {
        return defaultReactionType.call(this as UpdateDefaultReactionType);
      }
      break;
    case UpdateDefaultPaidReactionType.constructor:
      if (defaultPaidReactionType != null) {
        return defaultPaidReactionType
            .call(this as UpdateDefaultPaidReactionType);
      }
      break;
    case UpdateSavedMessagesTags.constructor:
      if (savedMessagesTags != null) {
        return savedMessagesTags.call(this as UpdateSavedMessagesTags);
      }
      break;
    case UpdateActiveLiveLocationMessages.constructor:
      if (activeLiveLocationMessages != null) {
        return activeLiveLocationMessages
            .call(this as UpdateActiveLiveLocationMessages);
      }
      break;
    case UpdateOwnedStarCount.constructor:
      if (ownedStarCount != null) {
        return ownedStarCount.call(this as UpdateOwnedStarCount);
      }
      break;
    case UpdateOwnedGramCount.constructor:
      if (ownedGramCount != null) {
        return ownedGramCount.call(this as UpdateOwnedGramCount);
      }
      break;
    case UpdateTonWalletState.constructor:
      if (tonWalletState != null) {
        return tonWalletState.call(this as UpdateTonWalletState);
      }
      break;
    case UpdateTonWalletGaslessTransfersInfo.constructor:
      if (tonWalletGaslessTransfersInfo != null) {
        return tonWalletGaslessTransfersInfo
            .call(this as UpdateTonWalletGaslessTransfersInfo);
      }
      break;
    case UpdateTonWalletTonConnectSession.constructor:
      if (tonWalletTonConnectSession != null) {
        return tonWalletTonConnectSession
            .call(this as UpdateTonWalletTonConnectSession);
      }
      break;
    case UpdateTonWalletTonConnectSessionDisconnectRequired.constructor:
      if (tonWalletTonConnectSessionDisconnectRequired != null) {
        return tonWalletTonConnectSessionDisconnectRequired
            .call(this as UpdateTonWalletTonConnectSessionDisconnectRequired);
      }
      break;
    case UpdateChatRevenueAmount.constructor:
      if (chatRevenueAmount != null) {
        return chatRevenueAmount.call(this as UpdateChatRevenueAmount);
      }
      break;
    case UpdateStarRevenueStatus.constructor:
      if (starRevenueStatus != null) {
        return starRevenueStatus.call(this as UpdateStarRevenueStatus);
      }
      break;
    case UpdateGramRevenueStatus.constructor:
      if (gramRevenueStatus != null) {
        return gramRevenueStatus.call(this as UpdateGramRevenueStatus);
      }
      break;
    case UpdateSpeechRecognitionTrial.constructor:
      if (speechRecognitionTrial != null) {
        return speechRecognitionTrial
            .call(this as UpdateSpeechRecognitionTrial);
      }
      break;
    case UpdateSpeechRecognitionInFile.constructor:
      if (speechRecognitionInFile != null) {
        return speechRecognitionInFile
            .call(this as UpdateSpeechRecognitionInFile);
      }
      break;
    case UpdateGroupCallMessageLevels.constructor:
      if (groupCallMessageLevels != null) {
        return groupCallMessageLevels
            .call(this as UpdateGroupCallMessageLevels);
      }
      break;
    case UpdateDiceEmojis.constructor:
      if (diceEmojis != null) {
        return diceEmojis.call(this as UpdateDiceEmojis);
      }
      break;
    case UpdateStakeDiceState.constructor:
      if (stakeDiceState != null) {
        return stakeDiceState.call(this as UpdateStakeDiceState);
      }
      break;
    case UpdateAnimatedEmojiMessageClicked.constructor:
      if (animatedEmojiMessageClicked != null) {
        return animatedEmojiMessageClicked
            .call(this as UpdateAnimatedEmojiMessageClicked);
      }
      break;
    case UpdateAnimationSearchParameters.constructor:
      if (animationSearchParameters != null) {
        return animationSearchParameters
            .call(this as UpdateAnimationSearchParameters);
      }
      break;
    case UpdateTextCompositionStyles.constructor:
      if (textCompositionStyles != null) {
        return textCompositionStyles
            .call(this as UpdateTextCompositionStyles);
      }
      break;
    case UpdateSuggestedActions.constructor:
      if (suggestedActions != null) {
        return suggestedActions.call(this as UpdateSuggestedActions);
      }
      break;
    case UpdateSpeedLimitNotification.constructor:
      if (speedLimitNotification != null) {
        return speedLimitNotification
            .call(this as UpdateSpeedLimitNotification);
      }
      break;
    case UpdateContactCloseBirthdays.constructor:
      if (contactCloseBirthdays != null) {
        return contactCloseBirthdays
            .call(this as UpdateContactCloseBirthdays);
      }
      break;
    case UpdateAutosaveSettings.constructor:
      if (autosaveSettings != null) {
        return autosaveSettings.call(this as UpdateAutosaveSettings);
      }
      break;
    case UpdateBusinessConnection.constructor:
      if (businessConnection != null) {
        return businessConnection.call(this as UpdateBusinessConnection);
      }
      break;
    case UpdateNewBusinessMessage.constructor:
      if (newBusinessMessage != null) {
        return newBusinessMessage.call(this as UpdateNewBusinessMessage);
      }
      break;
    case UpdateBusinessMessageEdited.constructor:
      if (businessMessageEdited != null) {
        return businessMessageEdited
            .call(this as UpdateBusinessMessageEdited);
      }
      break;
    case UpdateBusinessMessagesDeleted.constructor:
      if (businessMessagesDeleted != null) {
        return businessMessagesDeleted
            .call(this as UpdateBusinessMessagesDeleted);
      }
      break;
    case UpdateNewInlineQuery.constructor:
      if (newInlineQuery != null) {
        return newInlineQuery.call(this as UpdateNewInlineQuery);
      }
      break;
    case UpdateNewChosenInlineResult.constructor:
      if (newChosenInlineResult != null) {
        return newChosenInlineResult
            .call(this as UpdateNewChosenInlineResult);
      }
      break;
    case UpdateNewGuestQuery.constructor:
      if (newGuestQuery != null) {
        return newGuestQuery.call(this as UpdateNewGuestQuery);
      }
      break;
    case UpdateNewCallbackQuery.constructor:
      if (newCallbackQuery != null) {
        return newCallbackQuery.call(this as UpdateNewCallbackQuery);
      }
      break;
    case UpdateNewInlineCallbackQuery.constructor:
      if (newInlineCallbackQuery != null) {
        return newInlineCallbackQuery
            .call(this as UpdateNewInlineCallbackQuery);
      }
      break;
    case UpdateNewBusinessCallbackQuery.constructor:
      if (newBusinessCallbackQuery != null) {
        return newBusinessCallbackQuery
            .call(this as UpdateNewBusinessCallbackQuery);
      }
      break;
    case UpdateNewWidgetQuery.constructor:
      if (newWidgetQuery != null) {
        return newWidgetQuery.call(this as UpdateNewWidgetQuery);
      }
      break;
    case UpdateNewInlineWidgetQuery.constructor:
      if (newInlineWidgetQuery != null) {
        return newInlineWidgetQuery.call(this as UpdateNewInlineWidgetQuery);
      }
      break;
    case UpdateNewWidgetCopyQuery.constructor:
      if (newWidgetCopyQuery != null) {
        return newWidgetCopyQuery.call(this as UpdateNewWidgetCopyQuery);
      }
      break;
    case UpdateNewShippingQuery.constructor:
      if (newShippingQuery != null) {
        return newShippingQuery.call(this as UpdateNewShippingQuery);
      }
      break;
    case UpdateNewPreCheckoutQuery.constructor:
      if (newPreCheckoutQuery != null) {
        return newPreCheckoutQuery.call(this as UpdateNewPreCheckoutQuery);
      }
      break;
    case UpdateNewCustomEvent.constructor:
      if (newCustomEvent != null) {
        return newCustomEvent.call(this as UpdateNewCustomEvent);
      }
      break;
    case UpdateNewCustomQuery.constructor:
      if (newCustomQuery != null) {
        return newCustomQuery.call(this as UpdateNewCustomQuery);
      }
      break;
    case UpdateUserSubscription.constructor:
      if (userSubscription != null) {
        return userSubscription.call(this as UpdateUserSubscription);
      }
      break;
    case UpdatePoll.constructor:
      if (poll != null) {
        return poll.call(this as UpdatePoll);
      }
      break;
    case UpdatePollAnswer.constructor:
      if (pollAnswer != null) {
        return pollAnswer.call(this as UpdatePollAnswer);
      }
      break;
    case UpdateManagedBot.constructor:
      if (managedBot != null) {
        return managedBot.call(this as UpdateManagedBot);
      }
      break;
    case UpdateChatMember.constructor:
      if (chatMember != null) {
        return chatMember.call(this as UpdateChatMember);
      }
      break;
    case UpdateNewChatJoinRequest.constructor:
      if (newChatJoinRequest != null) {
        return newChatJoinRequest.call(this as UpdateNewChatJoinRequest);
      }
      break;
    case UpdateChatBoost.constructor:
      if (chatBoost != null) {
        return chatBoost.call(this as UpdateChatBoost);
      }
      break;
    case UpdateMessageReaction.constructor:
      if (messageReaction != null) {
        return messageReaction.call(this as UpdateMessageReaction);
      }
      break;
    case UpdateMessageReactions.constructor:
      if (messageReactions != null) {
        return messageReactions.call(this as UpdateMessageReactions);
      }
      break;
    case UpdatePaidMediaPurchased.constructor:
      if (paidMediaPurchased != null) {
        return paidMediaPurchased.call(this as UpdatePaidMediaPurchased);
      }
      break;
  }
  return orElse.call();
}