@mtcute/core 0.29.4 → 0.29.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/highlevel/base.cjs +0 -1
  2. package/highlevel/base.js +0 -1
  3. package/highlevel/methods/chats/get-creator-after-leave.cjs +4 -14
  4. package/highlevel/methods/chats/get-creator-after-leave.js +5 -15
  5. package/highlevel/methods/files/normalize-input-media.cjs +16 -14
  6. package/highlevel/methods/files/normalize-input-media.js +16 -14
  7. package/highlevel/methods/messages/close-poll.cjs +2 -1
  8. package/highlevel/methods/messages/close-poll.js +2 -1
  9. package/highlevel/methods/messages/send-vote.cjs +3 -1
  10. package/highlevel/methods/messages/send-vote.js +4 -2
  11. package/highlevel/storage/service/peers.cjs +1 -0
  12. package/highlevel/storage/service/peers.js +1 -0
  13. package/highlevel/types/media/input-media/types.d.cts +10 -13
  14. package/highlevel/types/media/input-media/types.d.ts +10 -13
  15. package/highlevel/types/media/poll.cjs +4 -1
  16. package/highlevel/types/media/poll.d.cts +2 -2
  17. package/highlevel/types/media/poll.d.ts +2 -2
  18. package/highlevel/types/media/poll.js +4 -1
  19. package/highlevel/types/messages/dialog.cjs +4 -0
  20. package/highlevel/types/messages/dialog.d.cts +2 -0
  21. package/highlevel/types/messages/dialog.d.ts +2 -0
  22. package/highlevel/types/messages/dialog.js +4 -0
  23. package/highlevel/types/messages/message-action.cjs +18 -0
  24. package/highlevel/types/messages/message-action.d.cts +19 -1
  25. package/highlevel/types/messages/message-action.d.ts +19 -1
  26. package/highlevel/types/messages/message-action.js +18 -0
  27. package/highlevel/types/peers/forum-topic.cjs +4 -0
  28. package/highlevel/types/peers/forum-topic.d.cts +2 -0
  29. package/highlevel/types/peers/forum-topic.d.ts +2 -0
  30. package/highlevel/types/peers/forum-topic.js +4 -0
  31. package/highlevel/types/peers/full-user.cjs +8 -0
  32. package/highlevel/types/peers/full-user.d.cts +4 -0
  33. package/highlevel/types/peers/full-user.d.ts +4 -0
  34. package/highlevel/types/peers/full-user.js +8 -0
  35. package/highlevel/types/peers/user.cjs +4 -0
  36. package/highlevel/types/peers/user.d.cts +2 -0
  37. package/highlevel/types/peers/user.d.ts +2 -0
  38. package/highlevel/types/peers/user.js +4 -0
  39. package/highlevel/types/updates/poll-update.cjs +8 -2
  40. package/highlevel/types/updates/poll-update.js +8 -2
  41. package/highlevel/updates/manager.cjs +7 -0
  42. package/highlevel/updates/manager.js +7 -0
  43. package/highlevel/worker/worker.cjs +6 -1
  44. package/highlevel/worker/worker.d.cts +2 -1
  45. package/highlevel/worker/worker.d.ts +2 -1
  46. package/highlevel/worker/worker.js +6 -1
  47. package/network/middlewares/flood-waiter.cjs +2 -1
  48. package/network/middlewares/flood-waiter.js +2 -1
  49. package/network/network-manager.cjs +1 -1
  50. package/network/network-manager.js +1 -1
  51. package/package.json +1 -1
  52. package/tl/api-schema.json +1 -1
  53. package/tl/binary/reader.cjs +86 -39
  54. package/tl/binary/reader.js +86 -39
  55. package/tl/binary/writer.cjs +308 -32
  56. package/tl/binary/writer.js +308 -32
  57. package/tl/compat/reader.cjs +34 -0
  58. package/tl/compat/reader.js +34 -0
  59. package/tl/index.d.cts +295 -25
  60. package/tl/index.d.ts +295 -25
  61. package/tl/inner-tl.cjs +16 -8
  62. package/tl/inner-tl.js +16 -8
  63. package/utils/binary/compat.cjs +41 -0
  64. package/utils/binary/compat.js +41 -0
package/tl/inner-tl.cjs CHANGED
@@ -13,7 +13,7 @@ function _isAny() {
13
13
  return false;
14
14
  };
15
15
  }
16
- const LAYER = 223;
16
+ const LAYER = 224;
17
17
  class RpcError extends Error {
18
18
  constructor(code, text) {
19
19
  super("Telegram API error " + code + ": " + text);
@@ -113,7 +113,7 @@ const isAnyChatParticipants = /* @__PURE__ */ _isAny("chatParticipantsForbidden"
113
113
  const isAnyChatPhoto = /* @__PURE__ */ _isAny("chatPhotoEmpty", "chatPhoto");
114
114
  const isAnyMessage = /* @__PURE__ */ _isAny("messageEmpty", "message", "messageService");
115
115
  const isAnyMessageMedia = /* @__PURE__ */ _isAny("messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream");
116
- const isAnyMessageAction = /* @__PURE__ */ _isAny("messageActionEmpty", "messageActionChatCreate", "messageActionChatEditTitle", "messageActionChatEditPhoto", "messageActionChatDeletePhoto", "messageActionChatAddUser", "messageActionChatDeleteUser", "messageActionChatJoinedByLink", "messageActionChannelCreate", "messageActionChatMigrateTo", "messageActionChannelMigrateFrom", "messageActionPinMessage", "messageActionHistoryClear", "messageActionGameScore", "messageActionPaymentSentMe", "messageActionPaymentSent", "messageActionPhoneCall", "messageActionScreenshotTaken", "messageActionCustomAction", "messageActionBotAllowed", "messageActionSecureValuesSentMe", "messageActionSecureValuesSent", "messageActionContactSignUp", "messageActionGeoProximityReached", "messageActionGroupCall", "messageActionInviteToGroupCall", "messageActionSetMessagesTTL", "messageActionGroupCallScheduled", "messageActionSetChatTheme", "messageActionChatJoinedByRequest", "messageActionWebViewDataSentMe", "messageActionWebViewDataSent", "messageActionGiftPremium", "messageActionTopicCreate", "messageActionTopicEdit", "messageActionSuggestProfilePhoto", "messageActionRequestedPeer", "messageActionSetChatWallPaper", "messageActionGiftCode", "messageActionGiveawayLaunch", "messageActionGiveawayResults", "messageActionBoostApply", "messageActionRequestedPeerSentMe", "messageActionPaymentRefunded", "messageActionGiftStars", "messageActionPrizeStars", "messageActionStarGift", "messageActionStarGiftUnique", "messageActionPaidMessagesRefunded", "messageActionPaidMessagesPrice", "messageActionConferenceCall", "messageActionTodoCompletions", "messageActionTodoAppendTasks", "messageActionSuggestedPostApproval", "messageActionSuggestedPostSuccess", "messageActionSuggestedPostRefund", "messageActionGiftTon", "messageActionSuggestBirthday", "messageActionStarGiftPurchaseOffer", "messageActionStarGiftPurchaseOfferDeclined", "messageActionNewCreatorPending", "messageActionChangeCreator", "messageActionNoForwardsToggle", "messageActionNoForwardsRequest");
116
+ const isAnyMessageAction = /* @__PURE__ */ _isAny("messageActionEmpty", "messageActionChatCreate", "messageActionChatEditTitle", "messageActionChatEditPhoto", "messageActionChatDeletePhoto", "messageActionChatAddUser", "messageActionChatDeleteUser", "messageActionChatJoinedByLink", "messageActionChannelCreate", "messageActionChatMigrateTo", "messageActionChannelMigrateFrom", "messageActionPinMessage", "messageActionHistoryClear", "messageActionGameScore", "messageActionPaymentSentMe", "messageActionPaymentSent", "messageActionPhoneCall", "messageActionScreenshotTaken", "messageActionCustomAction", "messageActionBotAllowed", "messageActionSecureValuesSentMe", "messageActionSecureValuesSent", "messageActionContactSignUp", "messageActionGeoProximityReached", "messageActionGroupCall", "messageActionInviteToGroupCall", "messageActionSetMessagesTTL", "messageActionGroupCallScheduled", "messageActionSetChatTheme", "messageActionChatJoinedByRequest", "messageActionWebViewDataSentMe", "messageActionWebViewDataSent", "messageActionGiftPremium", "messageActionTopicCreate", "messageActionTopicEdit", "messageActionSuggestProfilePhoto", "messageActionRequestedPeer", "messageActionSetChatWallPaper", "messageActionGiftCode", "messageActionGiveawayLaunch", "messageActionGiveawayResults", "messageActionBoostApply", "messageActionRequestedPeerSentMe", "messageActionPaymentRefunded", "messageActionGiftStars", "messageActionPrizeStars", "messageActionStarGift", "messageActionStarGiftUnique", "messageActionPaidMessagesRefunded", "messageActionPaidMessagesPrice", "messageActionConferenceCall", "messageActionTodoCompletions", "messageActionTodoAppendTasks", "messageActionSuggestedPostApproval", "messageActionSuggestedPostSuccess", "messageActionSuggestedPostRefund", "messageActionGiftTon", "messageActionSuggestBirthday", "messageActionStarGiftPurchaseOffer", "messageActionStarGiftPurchaseOfferDeclined", "messageActionNewCreatorPending", "messageActionChangeCreator", "messageActionNoForwardsToggle", "messageActionNoForwardsRequest", "messageActionPollAppendAnswer", "messageActionPollDeleteAnswer", "messageActionManagedBotCreated");
117
117
  const isAnyDialog = /* @__PURE__ */ _isAny("dialog", "dialogFolder");
118
118
  const isAnyPhoto = /* @__PURE__ */ _isAny("photoEmpty", "photo");
119
119
  const isAnyPhotoSize = /* @__PURE__ */ _isAny("photoSizeEmpty", "photoSize", "photoCachedSize", "photoStrippedSize", "photoSizeProgressive", "photoPathSize");
@@ -128,8 +128,8 @@ const isAnyUserFull = /* @__PURE__ */ _isAny("userFull");
128
128
  const isAnyContact = /* @__PURE__ */ _isAny("contact");
129
129
  const isAnyImportedContact = /* @__PURE__ */ _isAny("importedContact");
130
130
  const isAnyContactStatus = /* @__PURE__ */ _isAny("contactStatus");
131
- const isAnyMessagesFilter = /* @__PURE__ */ _isAny("inputMessagesFilterEmpty", "inputMessagesFilterPhotos", "inputMessagesFilterVideo", "inputMessagesFilterPhotoVideo", "inputMessagesFilterDocument", "inputMessagesFilterUrl", "inputMessagesFilterGif", "inputMessagesFilterVoice", "inputMessagesFilterMusic", "inputMessagesFilterChatPhotos", "inputMessagesFilterPhoneCalls", "inputMessagesFilterRoundVoice", "inputMessagesFilterRoundVideo", "inputMessagesFilterMyMentions", "inputMessagesFilterGeo", "inputMessagesFilterContacts", "inputMessagesFilterPinned");
132
- const isAnyUpdate = /* @__PURE__ */ _isAny("updateNewMessage", "updateMessageID", "updateDeleteMessages", "updateUserTyping", "updateChatUserTyping", "updateChatParticipants", "updateUserStatus", "updateUserName", "updateNewAuthorization", "updateNewEncryptedMessage", "updateEncryptedChatTyping", "updateEncryption", "updateEncryptedMessagesRead", "updateChatParticipantAdd", "updateChatParticipantDelete", "updateDcOptions", "updateNotifySettings", "updateServiceNotification", "updatePrivacy", "updateUserPhone", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updateWebPage", "updateReadMessagesContents", "updateChannelTooLong", "updateChannel", "updateNewChannelMessage", "updateReadChannelInbox", "updateDeleteChannelMessages", "updateChannelMessageViews", "updateChatParticipantAdmin", "updateNewStickerSet", "updateStickerSetsOrder", "updateStickerSets", "updateSavedGifs", "updateBotInlineQuery", "updateBotInlineSend", "updateEditChannelMessage", "updateBotCallbackQuery", "updateEditMessage", "updateInlineBotCallbackQuery", "updateReadChannelOutbox", "updateDraftMessage", "updateReadFeaturedStickers", "updateRecentStickers", "updateConfig", "updatePtsChanged", "updateChannelWebPage", "updateDialogPinned", "updatePinnedDialogs", "updateBotWebhookJSON", "updateBotWebhookJSONQuery", "updateBotShippingQuery", "updateBotPrecheckoutQuery", "updatePhoneCall", "updateLangPackTooLong", "updateLangPack", "updateFavedStickers", "updateChannelReadMessagesContents", "updateContactsReset", "updateChannelAvailableMessages", "updateDialogUnreadMark", "updateMessagePoll", "updateChatDefaultBannedRights", "updateFolderPeers", "updatePeerSettings", "updatePeerLocated", "updateNewScheduledMessage", "updateDeleteScheduledMessages", "updateTheme", "updateGeoLiveViewed", "updateLoginToken", "updateMessagePollVote", "updateDialogFilter", "updateDialogFilterOrder", "updateDialogFilters", "updatePhoneCallSignalingData", "updateChannelMessageForwards", "updateReadChannelDiscussionInbox", "updateReadChannelDiscussionOutbox", "updatePeerBlocked", "updateChannelUserTyping", "updatePinnedMessages", "updatePinnedChannelMessages", "updateChat", "updateGroupCallParticipants", "updateGroupCall", "updatePeerHistoryTTL", "updateChatParticipant", "updateChannelParticipant", "updateBotStopped", "updateGroupCallConnection", "updateBotCommands", "updatePendingJoinRequests", "updateBotChatInviteRequester", "updateMessageReactions", "updateAttachMenuBots", "updateWebViewResultSent", "updateBotMenuButton", "updateSavedRingtones", "updateTranscribedAudio", "updateReadFeaturedEmojiStickers", "updateUserEmojiStatus", "updateRecentEmojiStatuses", "updateRecentReactions", "updateMoveStickerSetToTop", "updateMessageExtendedMedia", "updateUser", "updateAutoSaveSettings", "updateStory", "updateReadStories", "updateStoryID", "updateStoriesStealthMode", "updateSentStoryReaction", "updateBotChatBoost", "updateChannelViewForumAsMessages", "updatePeerWallpaper", "updateBotMessageReaction", "updateBotMessageReactions", "updateSavedDialogPinned", "updatePinnedSavedDialogs", "updateSavedReactionTags", "updateSmsJob", "updateQuickReplies", "updateNewQuickReply", "updateDeleteQuickReply", "updateQuickReplyMessage", "updateDeleteQuickReplyMessages", "updateBotBusinessConnect", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateNewStoryReaction", "updateStarsBalance", "updateBusinessBotCallbackQuery", "updateStarsRevenueStatus", "updateBotPurchasedPaidMedia", "updatePaidReactionPrivacy", "updateSentPhoneCode", "updateGroupCallChainBlocks", "updateReadMonoForumInbox", "updateReadMonoForumOutbox", "updateMonoForumNoPaidException", "updateGroupCallMessage", "updateGroupCallEncryptedMessage", "updatePinnedForumTopic", "updatePinnedForumTopics", "updateDeleteGroupCallMessages", "updateStarGiftAuctionState", "updateStarGiftAuctionUserState", "updateEmojiGameInfo", "updateStarGiftCraftFail", "updateChatParticipantRank", "updateChannelPinnedTopic", "updateChannelPinnedTopics", "mtcute.dummyUpdate");
131
+ const isAnyMessagesFilter = /* @__PURE__ */ _isAny("inputMessagesFilterEmpty", "inputMessagesFilterPhotos", "inputMessagesFilterVideo", "inputMessagesFilterPhotoVideo", "inputMessagesFilterDocument", "inputMessagesFilterUrl", "inputMessagesFilterGif", "inputMessagesFilterVoice", "inputMessagesFilterMusic", "inputMessagesFilterChatPhotos", "inputMessagesFilterPhoneCalls", "inputMessagesFilterRoundVoice", "inputMessagesFilterRoundVideo", "inputMessagesFilterMyMentions", "inputMessagesFilterGeo", "inputMessagesFilterContacts", "inputMessagesFilterPinned", "inputMessagesFilterPoll");
132
+ const isAnyUpdate = /* @__PURE__ */ _isAny("updateNewMessage", "updateMessageID", "updateDeleteMessages", "updateUserTyping", "updateChatUserTyping", "updateChatParticipants", "updateUserStatus", "updateUserName", "updateNewAuthorization", "updateNewEncryptedMessage", "updateEncryptedChatTyping", "updateEncryption", "updateEncryptedMessagesRead", "updateChatParticipantAdd", "updateChatParticipantDelete", "updateDcOptions", "updateNotifySettings", "updateServiceNotification", "updatePrivacy", "updateUserPhone", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updateWebPage", "updateReadMessagesContents", "updateChannelTooLong", "updateChannel", "updateNewChannelMessage", "updateReadChannelInbox", "updateDeleteChannelMessages", "updateChannelMessageViews", "updateChatParticipantAdmin", "updateNewStickerSet", "updateStickerSetsOrder", "updateStickerSets", "updateSavedGifs", "updateBotInlineQuery", "updateBotInlineSend", "updateEditChannelMessage", "updateBotCallbackQuery", "updateEditMessage", "updateInlineBotCallbackQuery", "updateReadChannelOutbox", "updateDraftMessage", "updateReadFeaturedStickers", "updateRecentStickers", "updateConfig", "updatePtsChanged", "updateChannelWebPage", "updateDialogPinned", "updatePinnedDialogs", "updateBotWebhookJSON", "updateBotWebhookJSONQuery", "updateBotShippingQuery", "updateBotPrecheckoutQuery", "updatePhoneCall", "updateLangPackTooLong", "updateLangPack", "updateFavedStickers", "updateChannelReadMessagesContents", "updateContactsReset", "updateChannelAvailableMessages", "updateDialogUnreadMark", "updateMessagePoll", "updateChatDefaultBannedRights", "updateFolderPeers", "updatePeerSettings", "updatePeerLocated", "updateNewScheduledMessage", "updateDeleteScheduledMessages", "updateTheme", "updateGeoLiveViewed", "updateLoginToken", "updateMessagePollVote", "updateDialogFilter", "updateDialogFilterOrder", "updateDialogFilters", "updatePhoneCallSignalingData", "updateChannelMessageForwards", "updateReadChannelDiscussionInbox", "updateReadChannelDiscussionOutbox", "updatePeerBlocked", "updateChannelUserTyping", "updatePinnedMessages", "updatePinnedChannelMessages", "updateChat", "updateGroupCallParticipants", "updateGroupCall", "updatePeerHistoryTTL", "updateChatParticipant", "updateChannelParticipant", "updateBotStopped", "updateGroupCallConnection", "updateBotCommands", "updatePendingJoinRequests", "updateBotChatInviteRequester", "updateMessageReactions", "updateAttachMenuBots", "updateWebViewResultSent", "updateBotMenuButton", "updateSavedRingtones", "updateTranscribedAudio", "updateReadFeaturedEmojiStickers", "updateUserEmojiStatus", "updateRecentEmojiStatuses", "updateRecentReactions", "updateMoveStickerSetToTop", "updateMessageExtendedMedia", "updateUser", "updateAutoSaveSettings", "updateStory", "updateReadStories", "updateStoryID", "updateStoriesStealthMode", "updateSentStoryReaction", "updateBotChatBoost", "updateChannelViewForumAsMessages", "updatePeerWallpaper", "updateBotMessageReaction", "updateBotMessageReactions", "updateSavedDialogPinned", "updatePinnedSavedDialogs", "updateSavedReactionTags", "updateSmsJob", "updateQuickReplies", "updateNewQuickReply", "updateDeleteQuickReply", "updateQuickReplyMessage", "updateDeleteQuickReplyMessages", "updateBotBusinessConnect", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateNewStoryReaction", "updateStarsBalance", "updateBusinessBotCallbackQuery", "updateStarsRevenueStatus", "updateBotPurchasedPaidMedia", "updatePaidReactionPrivacy", "updateSentPhoneCode", "updateGroupCallChainBlocks", "updateReadMonoForumInbox", "updateReadMonoForumOutbox", "updateMonoForumNoPaidException", "updateGroupCallMessage", "updateGroupCallEncryptedMessage", "updatePinnedForumTopic", "updatePinnedForumTopics", "updateDeleteGroupCallMessages", "updateStarGiftAuctionState", "updateStarGiftAuctionUserState", "updateEmojiGameInfo", "updateStarGiftCraftFail", "updateChatParticipantRank", "updateManagedBot", "updateChannelPinnedTopic", "updateChannelPinnedTopics", "mtcute.dummyUpdate");
133
133
  const isAnyUpdates = /* @__PURE__ */ _isAny("updatesTooLong", "updateShortMessage", "updateShortChatMessage", "updateShort", "updatesCombined", "updates", "updateShortSentMessage");
134
134
  const isAnyDcOption = /* @__PURE__ */ _isAny("dcOption");
135
135
  const isAnyConfig = /* @__PURE__ */ _isAny("config");
@@ -162,7 +162,7 @@ const isAnyBotInfo = /* @__PURE__ */ _isAny("botInfo");
162
162
  const isAnyKeyboardButton = /* @__PURE__ */ _isAny("keyboardButton", "keyboardButtonUrl", "keyboardButtonCallback", "keyboardButtonRequestPhone", "keyboardButtonRequestGeoLocation", "keyboardButtonSwitchInline", "keyboardButtonGame", "keyboardButtonBuy", "keyboardButtonUrlAuth", "inputKeyboardButtonUrlAuth", "keyboardButtonRequestPoll", "inputKeyboardButtonUserProfile", "keyboardButtonUserProfile", "keyboardButtonWebView", "keyboardButtonSimpleWebView", "keyboardButtonRequestPeer", "inputKeyboardButtonRequestPeer", "keyboardButtonCopy");
163
163
  const isAnyKeyboardButtonRow = /* @__PURE__ */ _isAny("keyboardButtonRow");
164
164
  const isAnyReplyMarkup = /* @__PURE__ */ _isAny("replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup");
165
- const isAnyMessageEntity = /* @__PURE__ */ _isAny("messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate");
165
+ const isAnyMessageEntity = /* @__PURE__ */ _isAny("messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete");
166
166
  const isAnyInputChannel = /* @__PURE__ */ _isAny("inputChannelEmpty", "inputChannel", "inputChannelFromMessage");
167
167
  const isAnyMessageRange = /* @__PURE__ */ _isAny("messageRange");
168
168
  const isAnyChannelMessagesFilter = /* @__PURE__ */ _isAny("channelMessagesFilterEmpty", "channelMessagesFilter");
@@ -249,7 +249,7 @@ const isAnyPageListItem = /* @__PURE__ */ _isAny("pageListItemText", "pageListIt
249
249
  const isAnyPageListOrderedItem = /* @__PURE__ */ _isAny("pageListOrderedItemText", "pageListOrderedItemBlocks");
250
250
  const isAnyPageRelatedArticle = /* @__PURE__ */ _isAny("pageRelatedArticle");
251
251
  const isAnyPage = /* @__PURE__ */ _isAny("page");
252
- const isAnyPollAnswer = /* @__PURE__ */ _isAny("pollAnswer");
252
+ const isAnyPollAnswer = /* @__PURE__ */ _isAny("pollAnswer", "inputPollAnswer");
253
253
  const isAnyPoll = /* @__PURE__ */ _isAny("poll");
254
254
  const isAnyPollAnswerVoters = /* @__PURE__ */ _isAny("pollAnswerVoters");
255
255
  const isAnyPollResults = /* @__PURE__ */ _isAny("pollResults");
@@ -338,7 +338,7 @@ const isAnyUsername = /* @__PURE__ */ _isAny("username");
338
338
  const isAnyForumTopic = /* @__PURE__ */ _isAny("forumTopicDeleted", "forumTopic");
339
339
  const isAnyDefaultHistoryTTL = /* @__PURE__ */ _isAny("defaultHistoryTTL");
340
340
  const isAnyExportedContactToken = /* @__PURE__ */ _isAny("exportedContactToken");
341
- const isAnyRequestPeerType = /* @__PURE__ */ _isAny("requestPeerTypeUser", "requestPeerTypeChat", "requestPeerTypeBroadcast");
341
+ const isAnyRequestPeerType = /* @__PURE__ */ _isAny("requestPeerTypeUser", "requestPeerTypeChat", "requestPeerTypeBroadcast", "requestPeerTypeCreateBot");
342
342
  const isAnyEmojiList = /* @__PURE__ */ _isAny("emojiListNotModified", "emojiList");
343
343
  const isAnyEmojiGroup = /* @__PURE__ */ _isAny("emojiGroup", "emojiGroupGreeting", "emojiGroupPremium");
344
344
  const isAnyTextWithEntities = /* @__PURE__ */ _isAny("textWithEntities");
@@ -465,6 +465,7 @@ const isAnyStarGiftBackground = /* @__PURE__ */ _isAny("starGiftBackground");
465
465
  const isAnyStarGiftAuctionRound = /* @__PURE__ */ _isAny("starGiftAuctionRound", "starGiftAuctionRoundExtendable");
466
466
  const isAnyStarGiftAttributeRarity = /* @__PURE__ */ _isAny("starGiftAttributeRarity", "starGiftAttributeRarityUncommon", "starGiftAttributeRarityRare", "starGiftAttributeRarityEpic", "starGiftAttributeRarityLegendary");
467
467
  const isAnyKeyboardButtonStyle = /* @__PURE__ */ _isAny("keyboardButtonStyle");
468
+ const isAnyInputMessageReadMetric = /* @__PURE__ */ _isAny("inputMessageReadMetric");
468
469
  const isAnyStorage_FileType = /* @__PURE__ */ _isAny("storage.fileUnknown", "storage.filePartial", "storage.fileJpeg", "storage.fileGif", "storage.filePng", "storage.filePdf", "storage.fileMp3", "storage.fileMov", "storage.fileMp4", "storage.fileWebp");
469
470
  const isAnyAuth_SentCode = /* @__PURE__ */ _isAny("auth.sentCode", "auth.sentCodeSuccess", "auth.sentCodePaymentRequired");
470
471
  const isAnyAuth_Authorization = /* @__PURE__ */ _isAny("auth.authorization", "auth.authorizationSignUpRequired");
@@ -545,6 +546,7 @@ const isAnyMessages_FoundStickers = /* @__PURE__ */ _isAny("messages.foundSticke
545
546
  const isAnyMessages_WebPagePreview = /* @__PURE__ */ _isAny("messages.webPagePreview");
546
547
  const isAnyMessages_EmojiGameOutcome = /* @__PURE__ */ _isAny("messages.emojiGameOutcome");
547
548
  const isAnyMessages_EmojiGameInfo = /* @__PURE__ */ _isAny("messages.emojiGameUnavailable", "messages.emojiGameDiceInfo");
549
+ const isAnyMessages_ComposedMessageWithAI = /* @__PURE__ */ _isAny("messages.composedMessageWithAI");
548
550
  const isAnyUpdates_State = /* @__PURE__ */ _isAny("updates.state");
549
551
  const isAnyUpdates_Difference = /* @__PURE__ */ _isAny("updates.differenceEmpty", "updates.difference", "updates.differenceSlice", "updates.differenceTooLong");
550
552
  const isAnyUpdates_ChannelDifference = /* @__PURE__ */ _isAny("updates.channelDifferenceEmpty", "updates.channelDifferenceTooLong", "updates.channelDifference");
@@ -658,6 +660,8 @@ const isAnyChatlists_ChatlistUpdates = /* @__PURE__ */ _isAny("chatlists.chatlis
658
660
  const isAnyBots_BotInfo = /* @__PURE__ */ _isAny("bots.botInfo");
659
661
  const isAnyBots_PopularAppBots = /* @__PURE__ */ _isAny("bots.popularAppBots");
660
662
  const isAnyBots_PreviewInfo = /* @__PURE__ */ _isAny("bots.previewInfo");
663
+ const isAnyBots_ExportedBotToken = /* @__PURE__ */ _isAny("bots.exportedBotToken");
664
+ const isAnyBots_RequestedButton = /* @__PURE__ */ _isAny("bots.requestedButton");
661
665
  const isAnyStories_AllStories = /* @__PURE__ */ _isAny("stories.allStoriesNotModified", "stories.allStories");
662
666
  const isAnyStories_Stories = /* @__PURE__ */ _isAny("stories.stories");
663
667
  const isAnyStories_StoryViewsList = /* @__PURE__ */ _isAny("stories.storyViewsList");
@@ -673,7 +677,7 @@ const isAnyPremium_BoostsStatus = /* @__PURE__ */ _isAny("premium.boostsStatus")
673
677
  const isAnySmsjobs_EligibilityToJoin = /* @__PURE__ */ _isAny("smsjobs.eligibleToJoin");
674
678
  const isAnySmsjobs_Status = /* @__PURE__ */ _isAny("smsjobs.status");
675
679
  const isAnyFragment_CollectibleInfo = /* @__PURE__ */ _isAny("fragment.collectibleInfo");
676
- const isAnyMtcute_Update = /* @__PURE__ */ _isAny("updateNewMessage", "updateMessageID", "updateDeleteMessages", "updateUserTyping", "updateChatUserTyping", "updateChatParticipants", "updateUserStatus", "updateUserName", "updateNewAuthorization", "updateNewEncryptedMessage", "updateEncryptedChatTyping", "updateEncryption", "updateEncryptedMessagesRead", "updateChatParticipantAdd", "updateChatParticipantDelete", "updateDcOptions", "updateNotifySettings", "updateServiceNotification", "updatePrivacy", "updateUserPhone", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updateWebPage", "updateReadMessagesContents", "updateChannelTooLong", "updateChannel", "updateNewChannelMessage", "updateReadChannelInbox", "updateDeleteChannelMessages", "updateChannelMessageViews", "updateChatParticipantAdmin", "updateNewStickerSet", "updateStickerSetsOrder", "updateStickerSets", "updateSavedGifs", "updateBotInlineQuery", "updateBotInlineSend", "updateEditChannelMessage", "updateBotCallbackQuery", "updateEditMessage", "updateInlineBotCallbackQuery", "updateReadChannelOutbox", "updateDraftMessage", "updateReadFeaturedStickers", "updateRecentStickers", "updateConfig", "updatePtsChanged", "updateChannelWebPage", "updateDialogPinned", "updatePinnedDialogs", "updateBotWebhookJSON", "updateBotWebhookJSONQuery", "updateBotShippingQuery", "updateBotPrecheckoutQuery", "updatePhoneCall", "updateLangPackTooLong", "updateLangPack", "updateFavedStickers", "updateChannelReadMessagesContents", "updateContactsReset", "updateChannelAvailableMessages", "updateDialogUnreadMark", "updateMessagePoll", "updateChatDefaultBannedRights", "updateFolderPeers", "updatePeerSettings", "updatePeerLocated", "updateNewScheduledMessage", "updateDeleteScheduledMessages", "updateTheme", "updateGeoLiveViewed", "updateLoginToken", "updateMessagePollVote", "updateDialogFilter", "updateDialogFilterOrder", "updateDialogFilters", "updatePhoneCallSignalingData", "updateChannelMessageForwards", "updateReadChannelDiscussionInbox", "updateReadChannelDiscussionOutbox", "updatePeerBlocked", "updateChannelUserTyping", "updatePinnedMessages", "updatePinnedChannelMessages", "updateChat", "updateGroupCallParticipants", "updateGroupCall", "updatePeerHistoryTTL", "updateChatParticipant", "updateChannelParticipant", "updateBotStopped", "updateGroupCallConnection", "updateBotCommands", "updatePendingJoinRequests", "updateBotChatInviteRequester", "updateMessageReactions", "updateAttachMenuBots", "updateWebViewResultSent", "updateBotMenuButton", "updateSavedRingtones", "updateTranscribedAudio", "updateReadFeaturedEmojiStickers", "updateUserEmojiStatus", "updateRecentEmojiStatuses", "updateRecentReactions", "updateMoveStickerSetToTop", "updateMessageExtendedMedia", "updateUser", "updateAutoSaveSettings", "updateStory", "updateReadStories", "updateStoryID", "updateStoriesStealthMode", "updateSentStoryReaction", "updateBotChatBoost", "updateChannelViewForumAsMessages", "updatePeerWallpaper", "updateBotMessageReaction", "updateBotMessageReactions", "updateSavedDialogPinned", "updatePinnedSavedDialogs", "updateSavedReactionTags", "updateSmsJob", "updateQuickReplies", "updateNewQuickReply", "updateDeleteQuickReply", "updateQuickReplyMessage", "updateDeleteQuickReplyMessages", "updateBotBusinessConnect", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateNewStoryReaction", "updateStarsBalance", "updateBusinessBotCallbackQuery", "updateStarsRevenueStatus", "updateBotPurchasedPaidMedia", "updatePaidReactionPrivacy", "updateSentPhoneCode", "updateGroupCallChainBlocks", "updateReadMonoForumInbox", "updateReadMonoForumOutbox", "updateMonoForumNoPaidException", "updateGroupCallMessage", "updateGroupCallEncryptedMessage", "updatePinnedForumTopic", "updatePinnedForumTopics", "updateDeleteGroupCallMessages", "updateStarGiftAuctionState", "updateStarGiftAuctionUserState", "updateEmojiGameInfo", "updateStarGiftCraftFail", "updateChatParticipantRank", "updateChannelPinnedTopic", "updateChannelPinnedTopics", "mtcute.dummyUpdate");
680
+ const isAnyMtcute_Update = /* @__PURE__ */ _isAny("updateNewMessage", "updateMessageID", "updateDeleteMessages", "updateUserTyping", "updateChatUserTyping", "updateChatParticipants", "updateUserStatus", "updateUserName", "updateNewAuthorization", "updateNewEncryptedMessage", "updateEncryptedChatTyping", "updateEncryption", "updateEncryptedMessagesRead", "updateChatParticipantAdd", "updateChatParticipantDelete", "updateDcOptions", "updateNotifySettings", "updateServiceNotification", "updatePrivacy", "updateUserPhone", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updateWebPage", "updateReadMessagesContents", "updateChannelTooLong", "updateChannel", "updateNewChannelMessage", "updateReadChannelInbox", "updateDeleteChannelMessages", "updateChannelMessageViews", "updateChatParticipantAdmin", "updateNewStickerSet", "updateStickerSetsOrder", "updateStickerSets", "updateSavedGifs", "updateBotInlineQuery", "updateBotInlineSend", "updateEditChannelMessage", "updateBotCallbackQuery", "updateEditMessage", "updateInlineBotCallbackQuery", "updateReadChannelOutbox", "updateDraftMessage", "updateReadFeaturedStickers", "updateRecentStickers", "updateConfig", "updatePtsChanged", "updateChannelWebPage", "updateDialogPinned", "updatePinnedDialogs", "updateBotWebhookJSON", "updateBotWebhookJSONQuery", "updateBotShippingQuery", "updateBotPrecheckoutQuery", "updatePhoneCall", "updateLangPackTooLong", "updateLangPack", "updateFavedStickers", "updateChannelReadMessagesContents", "updateContactsReset", "updateChannelAvailableMessages", "updateDialogUnreadMark", "updateMessagePoll", "updateChatDefaultBannedRights", "updateFolderPeers", "updatePeerSettings", "updatePeerLocated", "updateNewScheduledMessage", "updateDeleteScheduledMessages", "updateTheme", "updateGeoLiveViewed", "updateLoginToken", "updateMessagePollVote", "updateDialogFilter", "updateDialogFilterOrder", "updateDialogFilters", "updatePhoneCallSignalingData", "updateChannelMessageForwards", "updateReadChannelDiscussionInbox", "updateReadChannelDiscussionOutbox", "updatePeerBlocked", "updateChannelUserTyping", "updatePinnedMessages", "updatePinnedChannelMessages", "updateChat", "updateGroupCallParticipants", "updateGroupCall", "updatePeerHistoryTTL", "updateChatParticipant", "updateChannelParticipant", "updateBotStopped", "updateGroupCallConnection", "updateBotCommands", "updatePendingJoinRequests", "updateBotChatInviteRequester", "updateMessageReactions", "updateAttachMenuBots", "updateWebViewResultSent", "updateBotMenuButton", "updateSavedRingtones", "updateTranscribedAudio", "updateReadFeaturedEmojiStickers", "updateUserEmojiStatus", "updateRecentEmojiStatuses", "updateRecentReactions", "updateMoveStickerSetToTop", "updateMessageExtendedMedia", "updateUser", "updateAutoSaveSettings", "updateStory", "updateReadStories", "updateStoryID", "updateStoriesStealthMode", "updateSentStoryReaction", "updateBotChatBoost", "updateChannelViewForumAsMessages", "updatePeerWallpaper", "updateBotMessageReaction", "updateBotMessageReactions", "updateSavedDialogPinned", "updatePinnedSavedDialogs", "updateSavedReactionTags", "updateSmsJob", "updateQuickReplies", "updateNewQuickReply", "updateDeleteQuickReply", "updateQuickReplyMessage", "updateDeleteQuickReplyMessages", "updateBotBusinessConnect", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateNewStoryReaction", "updateStarsBalance", "updateBusinessBotCallbackQuery", "updateStarsRevenueStatus", "updateBotPurchasedPaidMedia", "updatePaidReactionPrivacy", "updateSentPhoneCode", "updateGroupCallChainBlocks", "updateReadMonoForumInbox", "updateReadMonoForumOutbox", "updateMonoForumNoPaidException", "updateGroupCallMessage", "updateGroupCallEncryptedMessage", "updatePinnedForumTopic", "updatePinnedForumTopics", "updateDeleteGroupCallMessages", "updateStarGiftAuctionState", "updateStarGiftAuctionUserState", "updateEmojiGameInfo", "updateStarGiftCraftFail", "updateChatParticipantRank", "updateManagedBot", "updateChannelPinnedTopic", "updateChannelPinnedTopics", "mtcute.dummyUpdate");
677
681
  const isAnyMtcute_InputPeer = /* @__PURE__ */ _isAny("inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage", "mtcute.dummyInputPeerMinUser", "mtcute.dummyInputPeerMinChannel");
678
682
  exports.LAYER = LAYER;
679
683
  exports.RpcError = RpcError;
@@ -745,8 +749,10 @@ exports.isAnyBotPreviewMedia = isAnyBotPreviewMedia;
745
749
  exports.isAnyBotVerification = isAnyBotVerification;
746
750
  exports.isAnyBotVerifierSettings = isAnyBotVerifierSettings;
747
751
  exports.isAnyBots_BotInfo = isAnyBots_BotInfo;
752
+ exports.isAnyBots_ExportedBotToken = isAnyBots_ExportedBotToken;
748
753
  exports.isAnyBots_PopularAppBots = isAnyBots_PopularAppBots;
749
754
  exports.isAnyBots_PreviewInfo = isAnyBots_PreviewInfo;
755
+ exports.isAnyBots_RequestedButton = isAnyBots_RequestedButton;
750
756
  exports.isAnyBusinessAwayMessage = isAnyBusinessAwayMessage;
751
757
  exports.isAnyBusinessAwayMessageSchedule = isAnyBusinessAwayMessageSchedule;
752
758
  exports.isAnyBusinessBotRecipients = isAnyBusinessBotRecipients;
@@ -908,6 +914,7 @@ exports.isAnyInputGroupCall = isAnyInputGroupCall;
908
914
  exports.isAnyInputInvoice = isAnyInputInvoice;
909
915
  exports.isAnyInputMedia = isAnyInputMedia;
910
916
  exports.isAnyInputMessage = isAnyInputMessage;
917
+ exports.isAnyInputMessageReadMetric = isAnyInputMessageReadMetric;
911
918
  exports.isAnyInputNotifyPeer = isAnyInputNotifyPeer;
912
919
  exports.isAnyInputPasskeyCredential = isAnyInputPasskeyCredential;
913
920
  exports.isAnyInputPasskeyResponse = isAnyInputPasskeyResponse;
@@ -981,6 +988,7 @@ exports.isAnyMessages_ChatFull = isAnyMessages_ChatFull;
981
988
  exports.isAnyMessages_ChatInviteImporters = isAnyMessages_ChatInviteImporters;
982
989
  exports.isAnyMessages_Chats = isAnyMessages_Chats;
983
990
  exports.isAnyMessages_CheckedHistoryImportPeer = isAnyMessages_CheckedHistoryImportPeer;
991
+ exports.isAnyMessages_ComposedMessageWithAI = isAnyMessages_ComposedMessageWithAI;
984
992
  exports.isAnyMessages_DhConfig = isAnyMessages_DhConfig;
985
993
  exports.isAnyMessages_DialogFilters = isAnyMessages_DialogFilters;
986
994
  exports.isAnyMessages_Dialogs = isAnyMessages_Dialogs;
package/tl/inner-tl.js CHANGED
@@ -6,7 +6,7 @@ function _isAny() {
6
6
  return false;
7
7
  };
8
8
  }
9
- const LAYER = 223;
9
+ const LAYER = 224;
10
10
  class RpcError extends Error {
11
11
  constructor(code, text) {
12
12
  super("Telegram API error " + code + ": " + text);
@@ -106,7 +106,7 @@ const isAnyChatParticipants = /* @__PURE__ */ _isAny("chatParticipantsForbidden"
106
106
  const isAnyChatPhoto = /* @__PURE__ */ _isAny("chatPhotoEmpty", "chatPhoto");
107
107
  const isAnyMessage = /* @__PURE__ */ _isAny("messageEmpty", "message", "messageService");
108
108
  const isAnyMessageMedia = /* @__PURE__ */ _isAny("messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream");
109
- const isAnyMessageAction = /* @__PURE__ */ _isAny("messageActionEmpty", "messageActionChatCreate", "messageActionChatEditTitle", "messageActionChatEditPhoto", "messageActionChatDeletePhoto", "messageActionChatAddUser", "messageActionChatDeleteUser", "messageActionChatJoinedByLink", "messageActionChannelCreate", "messageActionChatMigrateTo", "messageActionChannelMigrateFrom", "messageActionPinMessage", "messageActionHistoryClear", "messageActionGameScore", "messageActionPaymentSentMe", "messageActionPaymentSent", "messageActionPhoneCall", "messageActionScreenshotTaken", "messageActionCustomAction", "messageActionBotAllowed", "messageActionSecureValuesSentMe", "messageActionSecureValuesSent", "messageActionContactSignUp", "messageActionGeoProximityReached", "messageActionGroupCall", "messageActionInviteToGroupCall", "messageActionSetMessagesTTL", "messageActionGroupCallScheduled", "messageActionSetChatTheme", "messageActionChatJoinedByRequest", "messageActionWebViewDataSentMe", "messageActionWebViewDataSent", "messageActionGiftPremium", "messageActionTopicCreate", "messageActionTopicEdit", "messageActionSuggestProfilePhoto", "messageActionRequestedPeer", "messageActionSetChatWallPaper", "messageActionGiftCode", "messageActionGiveawayLaunch", "messageActionGiveawayResults", "messageActionBoostApply", "messageActionRequestedPeerSentMe", "messageActionPaymentRefunded", "messageActionGiftStars", "messageActionPrizeStars", "messageActionStarGift", "messageActionStarGiftUnique", "messageActionPaidMessagesRefunded", "messageActionPaidMessagesPrice", "messageActionConferenceCall", "messageActionTodoCompletions", "messageActionTodoAppendTasks", "messageActionSuggestedPostApproval", "messageActionSuggestedPostSuccess", "messageActionSuggestedPostRefund", "messageActionGiftTon", "messageActionSuggestBirthday", "messageActionStarGiftPurchaseOffer", "messageActionStarGiftPurchaseOfferDeclined", "messageActionNewCreatorPending", "messageActionChangeCreator", "messageActionNoForwardsToggle", "messageActionNoForwardsRequest");
109
+ const isAnyMessageAction = /* @__PURE__ */ _isAny("messageActionEmpty", "messageActionChatCreate", "messageActionChatEditTitle", "messageActionChatEditPhoto", "messageActionChatDeletePhoto", "messageActionChatAddUser", "messageActionChatDeleteUser", "messageActionChatJoinedByLink", "messageActionChannelCreate", "messageActionChatMigrateTo", "messageActionChannelMigrateFrom", "messageActionPinMessage", "messageActionHistoryClear", "messageActionGameScore", "messageActionPaymentSentMe", "messageActionPaymentSent", "messageActionPhoneCall", "messageActionScreenshotTaken", "messageActionCustomAction", "messageActionBotAllowed", "messageActionSecureValuesSentMe", "messageActionSecureValuesSent", "messageActionContactSignUp", "messageActionGeoProximityReached", "messageActionGroupCall", "messageActionInviteToGroupCall", "messageActionSetMessagesTTL", "messageActionGroupCallScheduled", "messageActionSetChatTheme", "messageActionChatJoinedByRequest", "messageActionWebViewDataSentMe", "messageActionWebViewDataSent", "messageActionGiftPremium", "messageActionTopicCreate", "messageActionTopicEdit", "messageActionSuggestProfilePhoto", "messageActionRequestedPeer", "messageActionSetChatWallPaper", "messageActionGiftCode", "messageActionGiveawayLaunch", "messageActionGiveawayResults", "messageActionBoostApply", "messageActionRequestedPeerSentMe", "messageActionPaymentRefunded", "messageActionGiftStars", "messageActionPrizeStars", "messageActionStarGift", "messageActionStarGiftUnique", "messageActionPaidMessagesRefunded", "messageActionPaidMessagesPrice", "messageActionConferenceCall", "messageActionTodoCompletions", "messageActionTodoAppendTasks", "messageActionSuggestedPostApproval", "messageActionSuggestedPostSuccess", "messageActionSuggestedPostRefund", "messageActionGiftTon", "messageActionSuggestBirthday", "messageActionStarGiftPurchaseOffer", "messageActionStarGiftPurchaseOfferDeclined", "messageActionNewCreatorPending", "messageActionChangeCreator", "messageActionNoForwardsToggle", "messageActionNoForwardsRequest", "messageActionPollAppendAnswer", "messageActionPollDeleteAnswer", "messageActionManagedBotCreated");
110
110
  const isAnyDialog = /* @__PURE__ */ _isAny("dialog", "dialogFolder");
111
111
  const isAnyPhoto = /* @__PURE__ */ _isAny("photoEmpty", "photo");
112
112
  const isAnyPhotoSize = /* @__PURE__ */ _isAny("photoSizeEmpty", "photoSize", "photoCachedSize", "photoStrippedSize", "photoSizeProgressive", "photoPathSize");
@@ -121,8 +121,8 @@ const isAnyUserFull = /* @__PURE__ */ _isAny("userFull");
121
121
  const isAnyContact = /* @__PURE__ */ _isAny("contact");
122
122
  const isAnyImportedContact = /* @__PURE__ */ _isAny("importedContact");
123
123
  const isAnyContactStatus = /* @__PURE__ */ _isAny("contactStatus");
124
- const isAnyMessagesFilter = /* @__PURE__ */ _isAny("inputMessagesFilterEmpty", "inputMessagesFilterPhotos", "inputMessagesFilterVideo", "inputMessagesFilterPhotoVideo", "inputMessagesFilterDocument", "inputMessagesFilterUrl", "inputMessagesFilterGif", "inputMessagesFilterVoice", "inputMessagesFilterMusic", "inputMessagesFilterChatPhotos", "inputMessagesFilterPhoneCalls", "inputMessagesFilterRoundVoice", "inputMessagesFilterRoundVideo", "inputMessagesFilterMyMentions", "inputMessagesFilterGeo", "inputMessagesFilterContacts", "inputMessagesFilterPinned");
125
- const isAnyUpdate = /* @__PURE__ */ _isAny("updateNewMessage", "updateMessageID", "updateDeleteMessages", "updateUserTyping", "updateChatUserTyping", "updateChatParticipants", "updateUserStatus", "updateUserName", "updateNewAuthorization", "updateNewEncryptedMessage", "updateEncryptedChatTyping", "updateEncryption", "updateEncryptedMessagesRead", "updateChatParticipantAdd", "updateChatParticipantDelete", "updateDcOptions", "updateNotifySettings", "updateServiceNotification", "updatePrivacy", "updateUserPhone", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updateWebPage", "updateReadMessagesContents", "updateChannelTooLong", "updateChannel", "updateNewChannelMessage", "updateReadChannelInbox", "updateDeleteChannelMessages", "updateChannelMessageViews", "updateChatParticipantAdmin", "updateNewStickerSet", "updateStickerSetsOrder", "updateStickerSets", "updateSavedGifs", "updateBotInlineQuery", "updateBotInlineSend", "updateEditChannelMessage", "updateBotCallbackQuery", "updateEditMessage", "updateInlineBotCallbackQuery", "updateReadChannelOutbox", "updateDraftMessage", "updateReadFeaturedStickers", "updateRecentStickers", "updateConfig", "updatePtsChanged", "updateChannelWebPage", "updateDialogPinned", "updatePinnedDialogs", "updateBotWebhookJSON", "updateBotWebhookJSONQuery", "updateBotShippingQuery", "updateBotPrecheckoutQuery", "updatePhoneCall", "updateLangPackTooLong", "updateLangPack", "updateFavedStickers", "updateChannelReadMessagesContents", "updateContactsReset", "updateChannelAvailableMessages", "updateDialogUnreadMark", "updateMessagePoll", "updateChatDefaultBannedRights", "updateFolderPeers", "updatePeerSettings", "updatePeerLocated", "updateNewScheduledMessage", "updateDeleteScheduledMessages", "updateTheme", "updateGeoLiveViewed", "updateLoginToken", "updateMessagePollVote", "updateDialogFilter", "updateDialogFilterOrder", "updateDialogFilters", "updatePhoneCallSignalingData", "updateChannelMessageForwards", "updateReadChannelDiscussionInbox", "updateReadChannelDiscussionOutbox", "updatePeerBlocked", "updateChannelUserTyping", "updatePinnedMessages", "updatePinnedChannelMessages", "updateChat", "updateGroupCallParticipants", "updateGroupCall", "updatePeerHistoryTTL", "updateChatParticipant", "updateChannelParticipant", "updateBotStopped", "updateGroupCallConnection", "updateBotCommands", "updatePendingJoinRequests", "updateBotChatInviteRequester", "updateMessageReactions", "updateAttachMenuBots", "updateWebViewResultSent", "updateBotMenuButton", "updateSavedRingtones", "updateTranscribedAudio", "updateReadFeaturedEmojiStickers", "updateUserEmojiStatus", "updateRecentEmojiStatuses", "updateRecentReactions", "updateMoveStickerSetToTop", "updateMessageExtendedMedia", "updateUser", "updateAutoSaveSettings", "updateStory", "updateReadStories", "updateStoryID", "updateStoriesStealthMode", "updateSentStoryReaction", "updateBotChatBoost", "updateChannelViewForumAsMessages", "updatePeerWallpaper", "updateBotMessageReaction", "updateBotMessageReactions", "updateSavedDialogPinned", "updatePinnedSavedDialogs", "updateSavedReactionTags", "updateSmsJob", "updateQuickReplies", "updateNewQuickReply", "updateDeleteQuickReply", "updateQuickReplyMessage", "updateDeleteQuickReplyMessages", "updateBotBusinessConnect", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateNewStoryReaction", "updateStarsBalance", "updateBusinessBotCallbackQuery", "updateStarsRevenueStatus", "updateBotPurchasedPaidMedia", "updatePaidReactionPrivacy", "updateSentPhoneCode", "updateGroupCallChainBlocks", "updateReadMonoForumInbox", "updateReadMonoForumOutbox", "updateMonoForumNoPaidException", "updateGroupCallMessage", "updateGroupCallEncryptedMessage", "updatePinnedForumTopic", "updatePinnedForumTopics", "updateDeleteGroupCallMessages", "updateStarGiftAuctionState", "updateStarGiftAuctionUserState", "updateEmojiGameInfo", "updateStarGiftCraftFail", "updateChatParticipantRank", "updateChannelPinnedTopic", "updateChannelPinnedTopics", "mtcute.dummyUpdate");
124
+ const isAnyMessagesFilter = /* @__PURE__ */ _isAny("inputMessagesFilterEmpty", "inputMessagesFilterPhotos", "inputMessagesFilterVideo", "inputMessagesFilterPhotoVideo", "inputMessagesFilterDocument", "inputMessagesFilterUrl", "inputMessagesFilterGif", "inputMessagesFilterVoice", "inputMessagesFilterMusic", "inputMessagesFilterChatPhotos", "inputMessagesFilterPhoneCalls", "inputMessagesFilterRoundVoice", "inputMessagesFilterRoundVideo", "inputMessagesFilterMyMentions", "inputMessagesFilterGeo", "inputMessagesFilterContacts", "inputMessagesFilterPinned", "inputMessagesFilterPoll");
125
+ const isAnyUpdate = /* @__PURE__ */ _isAny("updateNewMessage", "updateMessageID", "updateDeleteMessages", "updateUserTyping", "updateChatUserTyping", "updateChatParticipants", "updateUserStatus", "updateUserName", "updateNewAuthorization", "updateNewEncryptedMessage", "updateEncryptedChatTyping", "updateEncryption", "updateEncryptedMessagesRead", "updateChatParticipantAdd", "updateChatParticipantDelete", "updateDcOptions", "updateNotifySettings", "updateServiceNotification", "updatePrivacy", "updateUserPhone", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updateWebPage", "updateReadMessagesContents", "updateChannelTooLong", "updateChannel", "updateNewChannelMessage", "updateReadChannelInbox", "updateDeleteChannelMessages", "updateChannelMessageViews", "updateChatParticipantAdmin", "updateNewStickerSet", "updateStickerSetsOrder", "updateStickerSets", "updateSavedGifs", "updateBotInlineQuery", "updateBotInlineSend", "updateEditChannelMessage", "updateBotCallbackQuery", "updateEditMessage", "updateInlineBotCallbackQuery", "updateReadChannelOutbox", "updateDraftMessage", "updateReadFeaturedStickers", "updateRecentStickers", "updateConfig", "updatePtsChanged", "updateChannelWebPage", "updateDialogPinned", "updatePinnedDialogs", "updateBotWebhookJSON", "updateBotWebhookJSONQuery", "updateBotShippingQuery", "updateBotPrecheckoutQuery", "updatePhoneCall", "updateLangPackTooLong", "updateLangPack", "updateFavedStickers", "updateChannelReadMessagesContents", "updateContactsReset", "updateChannelAvailableMessages", "updateDialogUnreadMark", "updateMessagePoll", "updateChatDefaultBannedRights", "updateFolderPeers", "updatePeerSettings", "updatePeerLocated", "updateNewScheduledMessage", "updateDeleteScheduledMessages", "updateTheme", "updateGeoLiveViewed", "updateLoginToken", "updateMessagePollVote", "updateDialogFilter", "updateDialogFilterOrder", "updateDialogFilters", "updatePhoneCallSignalingData", "updateChannelMessageForwards", "updateReadChannelDiscussionInbox", "updateReadChannelDiscussionOutbox", "updatePeerBlocked", "updateChannelUserTyping", "updatePinnedMessages", "updatePinnedChannelMessages", "updateChat", "updateGroupCallParticipants", "updateGroupCall", "updatePeerHistoryTTL", "updateChatParticipant", "updateChannelParticipant", "updateBotStopped", "updateGroupCallConnection", "updateBotCommands", "updatePendingJoinRequests", "updateBotChatInviteRequester", "updateMessageReactions", "updateAttachMenuBots", "updateWebViewResultSent", "updateBotMenuButton", "updateSavedRingtones", "updateTranscribedAudio", "updateReadFeaturedEmojiStickers", "updateUserEmojiStatus", "updateRecentEmojiStatuses", "updateRecentReactions", "updateMoveStickerSetToTop", "updateMessageExtendedMedia", "updateUser", "updateAutoSaveSettings", "updateStory", "updateReadStories", "updateStoryID", "updateStoriesStealthMode", "updateSentStoryReaction", "updateBotChatBoost", "updateChannelViewForumAsMessages", "updatePeerWallpaper", "updateBotMessageReaction", "updateBotMessageReactions", "updateSavedDialogPinned", "updatePinnedSavedDialogs", "updateSavedReactionTags", "updateSmsJob", "updateQuickReplies", "updateNewQuickReply", "updateDeleteQuickReply", "updateQuickReplyMessage", "updateDeleteQuickReplyMessages", "updateBotBusinessConnect", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateNewStoryReaction", "updateStarsBalance", "updateBusinessBotCallbackQuery", "updateStarsRevenueStatus", "updateBotPurchasedPaidMedia", "updatePaidReactionPrivacy", "updateSentPhoneCode", "updateGroupCallChainBlocks", "updateReadMonoForumInbox", "updateReadMonoForumOutbox", "updateMonoForumNoPaidException", "updateGroupCallMessage", "updateGroupCallEncryptedMessage", "updatePinnedForumTopic", "updatePinnedForumTopics", "updateDeleteGroupCallMessages", "updateStarGiftAuctionState", "updateStarGiftAuctionUserState", "updateEmojiGameInfo", "updateStarGiftCraftFail", "updateChatParticipantRank", "updateManagedBot", "updateChannelPinnedTopic", "updateChannelPinnedTopics", "mtcute.dummyUpdate");
126
126
  const isAnyUpdates = /* @__PURE__ */ _isAny("updatesTooLong", "updateShortMessage", "updateShortChatMessage", "updateShort", "updatesCombined", "updates", "updateShortSentMessage");
127
127
  const isAnyDcOption = /* @__PURE__ */ _isAny("dcOption");
128
128
  const isAnyConfig = /* @__PURE__ */ _isAny("config");
@@ -155,7 +155,7 @@ const isAnyBotInfo = /* @__PURE__ */ _isAny("botInfo");
155
155
  const isAnyKeyboardButton = /* @__PURE__ */ _isAny("keyboardButton", "keyboardButtonUrl", "keyboardButtonCallback", "keyboardButtonRequestPhone", "keyboardButtonRequestGeoLocation", "keyboardButtonSwitchInline", "keyboardButtonGame", "keyboardButtonBuy", "keyboardButtonUrlAuth", "inputKeyboardButtonUrlAuth", "keyboardButtonRequestPoll", "inputKeyboardButtonUserProfile", "keyboardButtonUserProfile", "keyboardButtonWebView", "keyboardButtonSimpleWebView", "keyboardButtonRequestPeer", "inputKeyboardButtonRequestPeer", "keyboardButtonCopy");
156
156
  const isAnyKeyboardButtonRow = /* @__PURE__ */ _isAny("keyboardButtonRow");
157
157
  const isAnyReplyMarkup = /* @__PURE__ */ _isAny("replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup");
158
- const isAnyMessageEntity = /* @__PURE__ */ _isAny("messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate");
158
+ const isAnyMessageEntity = /* @__PURE__ */ _isAny("messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete");
159
159
  const isAnyInputChannel = /* @__PURE__ */ _isAny("inputChannelEmpty", "inputChannel", "inputChannelFromMessage");
160
160
  const isAnyMessageRange = /* @__PURE__ */ _isAny("messageRange");
161
161
  const isAnyChannelMessagesFilter = /* @__PURE__ */ _isAny("channelMessagesFilterEmpty", "channelMessagesFilter");
@@ -242,7 +242,7 @@ const isAnyPageListItem = /* @__PURE__ */ _isAny("pageListItemText", "pageListIt
242
242
  const isAnyPageListOrderedItem = /* @__PURE__ */ _isAny("pageListOrderedItemText", "pageListOrderedItemBlocks");
243
243
  const isAnyPageRelatedArticle = /* @__PURE__ */ _isAny("pageRelatedArticle");
244
244
  const isAnyPage = /* @__PURE__ */ _isAny("page");
245
- const isAnyPollAnswer = /* @__PURE__ */ _isAny("pollAnswer");
245
+ const isAnyPollAnswer = /* @__PURE__ */ _isAny("pollAnswer", "inputPollAnswer");
246
246
  const isAnyPoll = /* @__PURE__ */ _isAny("poll");
247
247
  const isAnyPollAnswerVoters = /* @__PURE__ */ _isAny("pollAnswerVoters");
248
248
  const isAnyPollResults = /* @__PURE__ */ _isAny("pollResults");
@@ -331,7 +331,7 @@ const isAnyUsername = /* @__PURE__ */ _isAny("username");
331
331
  const isAnyForumTopic = /* @__PURE__ */ _isAny("forumTopicDeleted", "forumTopic");
332
332
  const isAnyDefaultHistoryTTL = /* @__PURE__ */ _isAny("defaultHistoryTTL");
333
333
  const isAnyExportedContactToken = /* @__PURE__ */ _isAny("exportedContactToken");
334
- const isAnyRequestPeerType = /* @__PURE__ */ _isAny("requestPeerTypeUser", "requestPeerTypeChat", "requestPeerTypeBroadcast");
334
+ const isAnyRequestPeerType = /* @__PURE__ */ _isAny("requestPeerTypeUser", "requestPeerTypeChat", "requestPeerTypeBroadcast", "requestPeerTypeCreateBot");
335
335
  const isAnyEmojiList = /* @__PURE__ */ _isAny("emojiListNotModified", "emojiList");
336
336
  const isAnyEmojiGroup = /* @__PURE__ */ _isAny("emojiGroup", "emojiGroupGreeting", "emojiGroupPremium");
337
337
  const isAnyTextWithEntities = /* @__PURE__ */ _isAny("textWithEntities");
@@ -458,6 +458,7 @@ const isAnyStarGiftBackground = /* @__PURE__ */ _isAny("starGiftBackground");
458
458
  const isAnyStarGiftAuctionRound = /* @__PURE__ */ _isAny("starGiftAuctionRound", "starGiftAuctionRoundExtendable");
459
459
  const isAnyStarGiftAttributeRarity = /* @__PURE__ */ _isAny("starGiftAttributeRarity", "starGiftAttributeRarityUncommon", "starGiftAttributeRarityRare", "starGiftAttributeRarityEpic", "starGiftAttributeRarityLegendary");
460
460
  const isAnyKeyboardButtonStyle = /* @__PURE__ */ _isAny("keyboardButtonStyle");
461
+ const isAnyInputMessageReadMetric = /* @__PURE__ */ _isAny("inputMessageReadMetric");
461
462
  const isAnyStorage_FileType = /* @__PURE__ */ _isAny("storage.fileUnknown", "storage.filePartial", "storage.fileJpeg", "storage.fileGif", "storage.filePng", "storage.filePdf", "storage.fileMp3", "storage.fileMov", "storage.fileMp4", "storage.fileWebp");
462
463
  const isAnyAuth_SentCode = /* @__PURE__ */ _isAny("auth.sentCode", "auth.sentCodeSuccess", "auth.sentCodePaymentRequired");
463
464
  const isAnyAuth_Authorization = /* @__PURE__ */ _isAny("auth.authorization", "auth.authorizationSignUpRequired");
@@ -538,6 +539,7 @@ const isAnyMessages_FoundStickers = /* @__PURE__ */ _isAny("messages.foundSticke
538
539
  const isAnyMessages_WebPagePreview = /* @__PURE__ */ _isAny("messages.webPagePreview");
539
540
  const isAnyMessages_EmojiGameOutcome = /* @__PURE__ */ _isAny("messages.emojiGameOutcome");
540
541
  const isAnyMessages_EmojiGameInfo = /* @__PURE__ */ _isAny("messages.emojiGameUnavailable", "messages.emojiGameDiceInfo");
542
+ const isAnyMessages_ComposedMessageWithAI = /* @__PURE__ */ _isAny("messages.composedMessageWithAI");
541
543
  const isAnyUpdates_State = /* @__PURE__ */ _isAny("updates.state");
542
544
  const isAnyUpdates_Difference = /* @__PURE__ */ _isAny("updates.differenceEmpty", "updates.difference", "updates.differenceSlice", "updates.differenceTooLong");
543
545
  const isAnyUpdates_ChannelDifference = /* @__PURE__ */ _isAny("updates.channelDifferenceEmpty", "updates.channelDifferenceTooLong", "updates.channelDifference");
@@ -651,6 +653,8 @@ const isAnyChatlists_ChatlistUpdates = /* @__PURE__ */ _isAny("chatlists.chatlis
651
653
  const isAnyBots_BotInfo = /* @__PURE__ */ _isAny("bots.botInfo");
652
654
  const isAnyBots_PopularAppBots = /* @__PURE__ */ _isAny("bots.popularAppBots");
653
655
  const isAnyBots_PreviewInfo = /* @__PURE__ */ _isAny("bots.previewInfo");
656
+ const isAnyBots_ExportedBotToken = /* @__PURE__ */ _isAny("bots.exportedBotToken");
657
+ const isAnyBots_RequestedButton = /* @__PURE__ */ _isAny("bots.requestedButton");
654
658
  const isAnyStories_AllStories = /* @__PURE__ */ _isAny("stories.allStoriesNotModified", "stories.allStories");
655
659
  const isAnyStories_Stories = /* @__PURE__ */ _isAny("stories.stories");
656
660
  const isAnyStories_StoryViewsList = /* @__PURE__ */ _isAny("stories.storyViewsList");
@@ -666,7 +670,7 @@ const isAnyPremium_BoostsStatus = /* @__PURE__ */ _isAny("premium.boostsStatus")
666
670
  const isAnySmsjobs_EligibilityToJoin = /* @__PURE__ */ _isAny("smsjobs.eligibleToJoin");
667
671
  const isAnySmsjobs_Status = /* @__PURE__ */ _isAny("smsjobs.status");
668
672
  const isAnyFragment_CollectibleInfo = /* @__PURE__ */ _isAny("fragment.collectibleInfo");
669
- const isAnyMtcute_Update = /* @__PURE__ */ _isAny("updateNewMessage", "updateMessageID", "updateDeleteMessages", "updateUserTyping", "updateChatUserTyping", "updateChatParticipants", "updateUserStatus", "updateUserName", "updateNewAuthorization", "updateNewEncryptedMessage", "updateEncryptedChatTyping", "updateEncryption", "updateEncryptedMessagesRead", "updateChatParticipantAdd", "updateChatParticipantDelete", "updateDcOptions", "updateNotifySettings", "updateServiceNotification", "updatePrivacy", "updateUserPhone", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updateWebPage", "updateReadMessagesContents", "updateChannelTooLong", "updateChannel", "updateNewChannelMessage", "updateReadChannelInbox", "updateDeleteChannelMessages", "updateChannelMessageViews", "updateChatParticipantAdmin", "updateNewStickerSet", "updateStickerSetsOrder", "updateStickerSets", "updateSavedGifs", "updateBotInlineQuery", "updateBotInlineSend", "updateEditChannelMessage", "updateBotCallbackQuery", "updateEditMessage", "updateInlineBotCallbackQuery", "updateReadChannelOutbox", "updateDraftMessage", "updateReadFeaturedStickers", "updateRecentStickers", "updateConfig", "updatePtsChanged", "updateChannelWebPage", "updateDialogPinned", "updatePinnedDialogs", "updateBotWebhookJSON", "updateBotWebhookJSONQuery", "updateBotShippingQuery", "updateBotPrecheckoutQuery", "updatePhoneCall", "updateLangPackTooLong", "updateLangPack", "updateFavedStickers", "updateChannelReadMessagesContents", "updateContactsReset", "updateChannelAvailableMessages", "updateDialogUnreadMark", "updateMessagePoll", "updateChatDefaultBannedRights", "updateFolderPeers", "updatePeerSettings", "updatePeerLocated", "updateNewScheduledMessage", "updateDeleteScheduledMessages", "updateTheme", "updateGeoLiveViewed", "updateLoginToken", "updateMessagePollVote", "updateDialogFilter", "updateDialogFilterOrder", "updateDialogFilters", "updatePhoneCallSignalingData", "updateChannelMessageForwards", "updateReadChannelDiscussionInbox", "updateReadChannelDiscussionOutbox", "updatePeerBlocked", "updateChannelUserTyping", "updatePinnedMessages", "updatePinnedChannelMessages", "updateChat", "updateGroupCallParticipants", "updateGroupCall", "updatePeerHistoryTTL", "updateChatParticipant", "updateChannelParticipant", "updateBotStopped", "updateGroupCallConnection", "updateBotCommands", "updatePendingJoinRequests", "updateBotChatInviteRequester", "updateMessageReactions", "updateAttachMenuBots", "updateWebViewResultSent", "updateBotMenuButton", "updateSavedRingtones", "updateTranscribedAudio", "updateReadFeaturedEmojiStickers", "updateUserEmojiStatus", "updateRecentEmojiStatuses", "updateRecentReactions", "updateMoveStickerSetToTop", "updateMessageExtendedMedia", "updateUser", "updateAutoSaveSettings", "updateStory", "updateReadStories", "updateStoryID", "updateStoriesStealthMode", "updateSentStoryReaction", "updateBotChatBoost", "updateChannelViewForumAsMessages", "updatePeerWallpaper", "updateBotMessageReaction", "updateBotMessageReactions", "updateSavedDialogPinned", "updatePinnedSavedDialogs", "updateSavedReactionTags", "updateSmsJob", "updateQuickReplies", "updateNewQuickReply", "updateDeleteQuickReply", "updateQuickReplyMessage", "updateDeleteQuickReplyMessages", "updateBotBusinessConnect", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateNewStoryReaction", "updateStarsBalance", "updateBusinessBotCallbackQuery", "updateStarsRevenueStatus", "updateBotPurchasedPaidMedia", "updatePaidReactionPrivacy", "updateSentPhoneCode", "updateGroupCallChainBlocks", "updateReadMonoForumInbox", "updateReadMonoForumOutbox", "updateMonoForumNoPaidException", "updateGroupCallMessage", "updateGroupCallEncryptedMessage", "updatePinnedForumTopic", "updatePinnedForumTopics", "updateDeleteGroupCallMessages", "updateStarGiftAuctionState", "updateStarGiftAuctionUserState", "updateEmojiGameInfo", "updateStarGiftCraftFail", "updateChatParticipantRank", "updateChannelPinnedTopic", "updateChannelPinnedTopics", "mtcute.dummyUpdate");
673
+ const isAnyMtcute_Update = /* @__PURE__ */ _isAny("updateNewMessage", "updateMessageID", "updateDeleteMessages", "updateUserTyping", "updateChatUserTyping", "updateChatParticipants", "updateUserStatus", "updateUserName", "updateNewAuthorization", "updateNewEncryptedMessage", "updateEncryptedChatTyping", "updateEncryption", "updateEncryptedMessagesRead", "updateChatParticipantAdd", "updateChatParticipantDelete", "updateDcOptions", "updateNotifySettings", "updateServiceNotification", "updatePrivacy", "updateUserPhone", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updateWebPage", "updateReadMessagesContents", "updateChannelTooLong", "updateChannel", "updateNewChannelMessage", "updateReadChannelInbox", "updateDeleteChannelMessages", "updateChannelMessageViews", "updateChatParticipantAdmin", "updateNewStickerSet", "updateStickerSetsOrder", "updateStickerSets", "updateSavedGifs", "updateBotInlineQuery", "updateBotInlineSend", "updateEditChannelMessage", "updateBotCallbackQuery", "updateEditMessage", "updateInlineBotCallbackQuery", "updateReadChannelOutbox", "updateDraftMessage", "updateReadFeaturedStickers", "updateRecentStickers", "updateConfig", "updatePtsChanged", "updateChannelWebPage", "updateDialogPinned", "updatePinnedDialogs", "updateBotWebhookJSON", "updateBotWebhookJSONQuery", "updateBotShippingQuery", "updateBotPrecheckoutQuery", "updatePhoneCall", "updateLangPackTooLong", "updateLangPack", "updateFavedStickers", "updateChannelReadMessagesContents", "updateContactsReset", "updateChannelAvailableMessages", "updateDialogUnreadMark", "updateMessagePoll", "updateChatDefaultBannedRights", "updateFolderPeers", "updatePeerSettings", "updatePeerLocated", "updateNewScheduledMessage", "updateDeleteScheduledMessages", "updateTheme", "updateGeoLiveViewed", "updateLoginToken", "updateMessagePollVote", "updateDialogFilter", "updateDialogFilterOrder", "updateDialogFilters", "updatePhoneCallSignalingData", "updateChannelMessageForwards", "updateReadChannelDiscussionInbox", "updateReadChannelDiscussionOutbox", "updatePeerBlocked", "updateChannelUserTyping", "updatePinnedMessages", "updatePinnedChannelMessages", "updateChat", "updateGroupCallParticipants", "updateGroupCall", "updatePeerHistoryTTL", "updateChatParticipant", "updateChannelParticipant", "updateBotStopped", "updateGroupCallConnection", "updateBotCommands", "updatePendingJoinRequests", "updateBotChatInviteRequester", "updateMessageReactions", "updateAttachMenuBots", "updateWebViewResultSent", "updateBotMenuButton", "updateSavedRingtones", "updateTranscribedAudio", "updateReadFeaturedEmojiStickers", "updateUserEmojiStatus", "updateRecentEmojiStatuses", "updateRecentReactions", "updateMoveStickerSetToTop", "updateMessageExtendedMedia", "updateUser", "updateAutoSaveSettings", "updateStory", "updateReadStories", "updateStoryID", "updateStoriesStealthMode", "updateSentStoryReaction", "updateBotChatBoost", "updateChannelViewForumAsMessages", "updatePeerWallpaper", "updateBotMessageReaction", "updateBotMessageReactions", "updateSavedDialogPinned", "updatePinnedSavedDialogs", "updateSavedReactionTags", "updateSmsJob", "updateQuickReplies", "updateNewQuickReply", "updateDeleteQuickReply", "updateQuickReplyMessage", "updateDeleteQuickReplyMessages", "updateBotBusinessConnect", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateNewStoryReaction", "updateStarsBalance", "updateBusinessBotCallbackQuery", "updateStarsRevenueStatus", "updateBotPurchasedPaidMedia", "updatePaidReactionPrivacy", "updateSentPhoneCode", "updateGroupCallChainBlocks", "updateReadMonoForumInbox", "updateReadMonoForumOutbox", "updateMonoForumNoPaidException", "updateGroupCallMessage", "updateGroupCallEncryptedMessage", "updatePinnedForumTopic", "updatePinnedForumTopics", "updateDeleteGroupCallMessages", "updateStarGiftAuctionState", "updateStarGiftAuctionUserState", "updateEmojiGameInfo", "updateStarGiftCraftFail", "updateChatParticipantRank", "updateManagedBot", "updateChannelPinnedTopic", "updateChannelPinnedTopics", "mtcute.dummyUpdate");
670
674
  const isAnyMtcute_InputPeer = /* @__PURE__ */ _isAny("inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage", "mtcute.dummyInputPeerMinUser", "mtcute.dummyInputPeerMinChannel");
671
675
  export {
672
676
  LAYER,
@@ -739,8 +743,10 @@ export {
739
743
  isAnyBotVerification,
740
744
  isAnyBotVerifierSettings,
741
745
  isAnyBots_BotInfo,
746
+ isAnyBots_ExportedBotToken,
742
747
  isAnyBots_PopularAppBots,
743
748
  isAnyBots_PreviewInfo,
749
+ isAnyBots_RequestedButton,
744
750
  isAnyBusinessAwayMessage,
745
751
  isAnyBusinessAwayMessageSchedule,
746
752
  isAnyBusinessBotRecipients,
@@ -902,6 +908,7 @@ export {
902
908
  isAnyInputInvoice,
903
909
  isAnyInputMedia,
904
910
  isAnyInputMessage,
911
+ isAnyInputMessageReadMetric,
905
912
  isAnyInputNotifyPeer,
906
913
  isAnyInputPasskeyCredential,
907
914
  isAnyInputPasskeyResponse,
@@ -975,6 +982,7 @@ export {
975
982
  isAnyMessages_ChatInviteImporters,
976
983
  isAnyMessages_Chats,
977
984
  isAnyMessages_CheckedHistoryImportPeer,
985
+ isAnyMessages_ComposedMessageWithAI,
978
986
  isAnyMessages_DhConfig,
979
987
  isAnyMessages_DialogFilters,
980
988
  isAnyMessages_Dialogs,
@@ -121,12 +121,34 @@ function mapCompatEmojiStatus(obj) {
121
121
  return obj;
122
122
  }
123
123
  }
124
+ function mapCompatPoll(obj) {
125
+ switch (obj._) {
126
+ case "poll_layer223":
127
+ return {
128
+ ...obj,
129
+ _: "poll",
130
+ hash: Long.ZERO,
131
+ // answers are mapped at runtime by wrapped compat readers
132
+ answers: obj.answers
133
+ };
134
+ default:
135
+ return obj;
136
+ }
137
+ }
124
138
  function mapCompatMessageMedia(obj) {
125
139
  switch (obj._) {
126
140
  case "messageMediaDocument_layer197":
127
141
  return replaceType(obj, "messageMediaDocument");
128
142
  case "messageMediaDice_layer220":
129
143
  return replaceType(obj, "messageMediaDice");
144
+ case "messageMediaPhoto_layer223":
145
+ return replaceType(obj, "messageMediaPhoto");
146
+ case "messageMediaPoll_layer223":
147
+ return {
148
+ _: "messageMediaPoll",
149
+ poll: mapCompatPoll(obj.poll),
150
+ results: obj.results
151
+ };
130
152
  default:
131
153
  return obj;
132
154
  }
@@ -196,6 +218,12 @@ function mapMessageReplyHeader(obj) {
196
218
  _: "messageReplyHeader",
197
219
  replyMedia: obj.replyMedia ? mapCompatMessageMedia(obj.replyMedia) : void 0
198
220
  };
221
+ case "messageReplyHeader_layer223":
222
+ return {
223
+ ...obj,
224
+ _: "messageReplyHeader",
225
+ replyMedia: obj.replyMedia ? mapCompatMessageMedia(obj.replyMedia) : void 0
226
+ };
199
227
  default:
200
228
  return obj;
201
229
  }
@@ -289,6 +317,8 @@ function mapCompatObject(obj) {
289
317
  return mapCompatEmojiStatus(obj);
290
318
  case "messageMediaDocument_layer197":
291
319
  case "messageMediaDice_layer220":
320
+ case "messageMediaPhoto_layer223":
321
+ case "messageMediaPoll_layer223":
292
322
  return mapCompatMessageMedia(obj);
293
323
  case "channelFull_layer197":
294
324
  case "channelFull_layer204":
@@ -314,6 +344,7 @@ function mapCompatObject(obj) {
314
344
  case "userFull_layer210":
315
345
  case "userFull_layer211":
316
346
  case "userFull_layer214":
347
+ case "userFull_layer223":
317
348
  return replaceType(obj, "userFull");
318
349
  case "user_layer199":
319
350
  case "user_layer216":
@@ -344,8 +375,10 @@ function mapCompatObject(obj) {
344
375
  case "messageService_layer204":
345
376
  return mapCompatMessage(obj);
346
377
  case "messageReplyHeader_layer206":
378
+ case "messageReplyHeader_layer223":
347
379
  return mapMessageReplyHeader(obj);
348
380
  case "storyItem_layer210":
381
+ case "storyItem_layer223":
349
382
  return {
350
383
  ...obj,
351
384
  _: "storyItem",
@@ -376,6 +409,14 @@ function mapCompatObject(obj) {
376
409
  return replaceType(obj, "chatParticipantCreator");
377
410
  case "chatParticipantAdmin_layer222":
378
411
  return replaceType(obj, "chatParticipantAdmin");
412
+ case "pollResults_layer223":
413
+ return replaceType(obj, "pollResults");
414
+ case "pollAnswerVoters_layer223":
415
+ return replaceType(obj, "pollAnswerVoters");
416
+ case "poll_layer223":
417
+ return mapCompatPoll(obj);
418
+ case "pollAnswer_layer223":
419
+ return replaceType(obj, "pollAnswer");
379
420
  case "keyboardButton_layer221":
380
421
  case "keyboardButtonUrl_layer221":
381
422
  case "keyboardButtonCallback_layer221":
@@ -114,12 +114,34 @@ function mapCompatEmojiStatus(obj) {
114
114
  return obj;
115
115
  }
116
116
  }
117
+ function mapCompatPoll(obj) {
118
+ switch (obj._) {
119
+ case "poll_layer223":
120
+ return {
121
+ ...obj,
122
+ _: "poll",
123
+ hash: Long.ZERO,
124
+ // answers are mapped at runtime by wrapped compat readers
125
+ answers: obj.answers
126
+ };
127
+ default:
128
+ return obj;
129
+ }
130
+ }
117
131
  function mapCompatMessageMedia(obj) {
118
132
  switch (obj._) {
119
133
  case "messageMediaDocument_layer197":
120
134
  return replaceType(obj, "messageMediaDocument");
121
135
  case "messageMediaDice_layer220":
122
136
  return replaceType(obj, "messageMediaDice");
137
+ case "messageMediaPhoto_layer223":
138
+ return replaceType(obj, "messageMediaPhoto");
139
+ case "messageMediaPoll_layer223":
140
+ return {
141
+ _: "messageMediaPoll",
142
+ poll: mapCompatPoll(obj.poll),
143
+ results: obj.results
144
+ };
123
145
  default:
124
146
  return obj;
125
147
  }
@@ -189,6 +211,12 @@ function mapMessageReplyHeader(obj) {
189
211
  _: "messageReplyHeader",
190
212
  replyMedia: obj.replyMedia ? mapCompatMessageMedia(obj.replyMedia) : void 0
191
213
  };
214
+ case "messageReplyHeader_layer223":
215
+ return {
216
+ ...obj,
217
+ _: "messageReplyHeader",
218
+ replyMedia: obj.replyMedia ? mapCompatMessageMedia(obj.replyMedia) : void 0
219
+ };
192
220
  default:
193
221
  return obj;
194
222
  }
@@ -282,6 +310,8 @@ function mapCompatObject(obj) {
282
310
  return mapCompatEmojiStatus(obj);
283
311
  case "messageMediaDocument_layer197":
284
312
  case "messageMediaDice_layer220":
313
+ case "messageMediaPhoto_layer223":
314
+ case "messageMediaPoll_layer223":
285
315
  return mapCompatMessageMedia(obj);
286
316
  case "channelFull_layer197":
287
317
  case "channelFull_layer204":
@@ -307,6 +337,7 @@ function mapCompatObject(obj) {
307
337
  case "userFull_layer210":
308
338
  case "userFull_layer211":
309
339
  case "userFull_layer214":
340
+ case "userFull_layer223":
310
341
  return replaceType(obj, "userFull");
311
342
  case "user_layer199":
312
343
  case "user_layer216":
@@ -337,8 +368,10 @@ function mapCompatObject(obj) {
337
368
  case "messageService_layer204":
338
369
  return mapCompatMessage(obj);
339
370
  case "messageReplyHeader_layer206":
371
+ case "messageReplyHeader_layer223":
340
372
  return mapMessageReplyHeader(obj);
341
373
  case "storyItem_layer210":
374
+ case "storyItem_layer223":
342
375
  return {
343
376
  ...obj,
344
377
  _: "storyItem",
@@ -369,6 +402,14 @@ function mapCompatObject(obj) {
369
402
  return replaceType(obj, "chatParticipantCreator");
370
403
  case "chatParticipantAdmin_layer222":
371
404
  return replaceType(obj, "chatParticipantAdmin");
405
+ case "pollResults_layer223":
406
+ return replaceType(obj, "pollResults");
407
+ case "pollAnswerVoters_layer223":
408
+ return replaceType(obj, "pollAnswerVoters");
409
+ case "poll_layer223":
410
+ return mapCompatPoll(obj);
411
+ case "pollAnswer_layer223":
412
+ return replaceType(obj, "pollAnswer");
372
413
  case "keyboardButton_layer221":
373
414
  case "keyboardButtonUrl_layer221":
374
415
  case "keyboardButtonCallback_layer221":