@mtcute/core 0.29.6 → 0.29.7

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 (62) hide show
  1. package/client.cjs +8 -0
  2. package/client.js +8 -0
  3. package/highlevel/client.d.cts +19 -1
  4. package/highlevel/client.d.ts +19 -1
  5. package/highlevel/methods/bots/answer-bot-guest-chat-query.cjs +26 -0
  6. package/highlevel/methods/bots/answer-bot-guest-chat-query.d.cts +12 -0
  7. package/highlevel/methods/bots/answer-bot-guest-chat-query.d.ts +12 -0
  8. package/highlevel/methods/bots/answer-bot-guest-chat-query.js +21 -0
  9. package/highlevel/methods/messages/send-copy-group.cjs +5 -9
  10. package/highlevel/methods/messages/send-copy-group.js +5 -9
  11. package/highlevel/methods.d.cts +1 -0
  12. package/highlevel/methods.d.ts +1 -0
  13. package/highlevel/storage/service/peers.cjs +1 -0
  14. package/highlevel/storage/service/peers.js +1 -0
  15. package/highlevel/types/media/poll.cjs +14 -0
  16. package/highlevel/types/media/poll.d.cts +6 -0
  17. package/highlevel/types/media/poll.d.ts +6 -0
  18. package/highlevel/types/media/poll.js +14 -0
  19. package/highlevel/types/messages/message.cjs +10 -1
  20. package/highlevel/types/messages/message.d.cts +5 -0
  21. package/highlevel/types/messages/message.d.ts +5 -0
  22. package/highlevel/types/messages/message.js +10 -1
  23. package/highlevel/types/peers/chat-permissions.cjs +6 -0
  24. package/highlevel/types/peers/chat-permissions.d.cts +4 -0
  25. package/highlevel/types/peers/chat-permissions.d.ts +4 -0
  26. package/highlevel/types/peers/chat-permissions.js +6 -0
  27. package/highlevel/types/peers/user.cjs +4 -0
  28. package/highlevel/types/peers/user.d.cts +2 -0
  29. package/highlevel/types/peers/user.d.ts +2 -0
  30. package/highlevel/types/peers/user.js +4 -0
  31. package/highlevel/types/updates/bot-guest-chat-query.cjs +39 -0
  32. package/highlevel/types/updates/bot-guest-chat-query.d.cts +21 -0
  33. package/highlevel/types/updates/bot-guest-chat-query.d.ts +21 -0
  34. package/highlevel/types/updates/bot-guest-chat-query.js +34 -0
  35. package/highlevel/types/updates/index.d.cts +5 -1
  36. package/highlevel/types/updates/index.d.ts +5 -1
  37. package/highlevel/types/updates/parse-update.cjs +3 -0
  38. package/highlevel/types/updates/parse-update.js +3 -0
  39. package/highlevel/updates/manager.cjs +23 -3
  40. package/highlevel/updates/manager.d.cts +1 -0
  41. package/highlevel/updates/manager.d.ts +1 -0
  42. package/highlevel/updates/manager.js +23 -3
  43. package/index.cjs +2 -0
  44. package/index.js +2 -0
  45. package/methods.cjs +2 -0
  46. package/methods.js +2 -0
  47. package/network/network-manager.cjs +1 -1
  48. package/network/network-manager.js +1 -1
  49. package/package.json +1 -1
  50. package/tl/api-schema.json +1 -1
  51. package/tl/binary/reader.cjs +85 -40
  52. package/tl/binary/reader.js +85 -40
  53. package/tl/binary/writer.cjs +349 -143
  54. package/tl/binary/writer.js +349 -143
  55. package/tl/compat/reader.cjs +8 -0
  56. package/tl/compat/reader.js +8 -0
  57. package/tl/index.d.cts +2071 -179
  58. package/tl/index.d.ts +2071 -179
  59. package/tl/inner-tl.cjs +17 -5
  60. package/tl/inner-tl.js +17 -5
  61. package/utils/binary/compat.cjs +5 -0
  62. package/utils/binary/compat.js +5 -0
package/tl/inner-tl.cjs CHANGED
@@ -13,7 +13,7 @@ function _isAny() {
13
13
  return false;
14
14
  };
15
15
  }
16
- const LAYER = 224;
16
+ const LAYER = 225;
17
17
  class RpcError extends Error {
18
18
  constructor(code, text) {
19
19
  super("Telegram API error " + code + ": " + text);
@@ -129,7 +129,7 @@ const isAnyContact = /* @__PURE__ */ _isAny("contact");
129
129
  const isAnyImportedContact = /* @__PURE__ */ _isAny("importedContact");
130
130
  const isAnyContactStatus = /* @__PURE__ */ _isAny("contactStatus");
131
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");
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", "updateBotGuestChatQuery", "updateAiComposeTones", "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");
@@ -177,7 +177,7 @@ const isAnyMessageFwdHeader = /* @__PURE__ */ _isAny("messageFwdHeader");
177
177
  const isAnyInputBotInlineMessageID = /* @__PURE__ */ _isAny("inputBotInlineMessageID", "inputBotInlineMessageID64");
178
178
  const isAnyInlineBotSwitchPM = /* @__PURE__ */ _isAny("inlineBotSwitchPM");
179
179
  const isAnyTopPeer = /* @__PURE__ */ _isAny("topPeer");
180
- const isAnyTopPeerCategory = /* @__PURE__ */ _isAny("topPeerCategoryBotsPM", "topPeerCategoryBotsInline", "topPeerCategoryCorrespondents", "topPeerCategoryGroups", "topPeerCategoryChannels", "topPeerCategoryPhoneCalls", "topPeerCategoryForwardUsers", "topPeerCategoryForwardChats", "topPeerCategoryBotsApp");
180
+ const isAnyTopPeerCategory = /* @__PURE__ */ _isAny("topPeerCategoryBotsPM", "topPeerCategoryBotsInline", "topPeerCategoryCorrespondents", "topPeerCategoryGroups", "topPeerCategoryChannels", "topPeerCategoryPhoneCalls", "topPeerCategoryForwardUsers", "topPeerCategoryForwardChats", "topPeerCategoryBotsApp", "topPeerCategoryBotsGuestChat");
181
181
  const isAnyTopPeerCategoryPeers = /* @__PURE__ */ _isAny("topPeerCategoryPeers");
182
182
  const isAnyDraftMessage = /* @__PURE__ */ _isAny("draftMessageEmpty", "draftMessage");
183
183
  const isAnyStickerSetCovered = /* @__PURE__ */ _isAny("stickerSetCovered", "stickerSetMultiCovered", "stickerSetFullCovered", "stickerSetNoCovered");
@@ -277,7 +277,7 @@ const isAnyTheme = /* @__PURE__ */ _isAny("theme");
277
277
  const isAnyBaseTheme = /* @__PURE__ */ _isAny("baseThemeClassic", "baseThemeDay", "baseThemeNight", "baseThemeTinted", "baseThemeArctic");
278
278
  const isAnyInputThemeSettings = /* @__PURE__ */ _isAny("inputThemeSettings");
279
279
  const isAnyThemeSettings = /* @__PURE__ */ _isAny("themeSettings");
280
- const isAnyWebPageAttribute = /* @__PURE__ */ _isAny("webPageAttributeTheme", "webPageAttributeStory", "webPageAttributeStickerSet", "webPageAttributeUniqueStarGift", "webPageAttributeStarGiftCollection", "webPageAttributeStarGiftAuction");
280
+ const isAnyWebPageAttribute = /* @__PURE__ */ _isAny("webPageAttributeTheme", "webPageAttributeStory", "webPageAttributeStickerSet", "webPageAttributeUniqueStarGift", "webPageAttributeStarGiftCollection", "webPageAttributeStarGiftAuction", "webPageAttributeAiComposeTone");
281
281
  const isAnyBankCardOpenUrl = /* @__PURE__ */ _isAny("bankCardOpenUrl");
282
282
  const isAnyDialogFilter = /* @__PURE__ */ _isAny("dialogFilter", "dialogFilterDefault", "dialogFilterChatlist");
283
283
  const isAnyDialogFilterSuggested = /* @__PURE__ */ _isAny("dialogFilterSuggested");
@@ -466,6 +466,9 @@ const isAnyStarGiftAuctionRound = /* @__PURE__ */ _isAny("starGiftAuctionRound",
466
466
  const isAnyStarGiftAttributeRarity = /* @__PURE__ */ _isAny("starGiftAttributeRarity", "starGiftAttributeRarityUncommon", "starGiftAttributeRarityRare", "starGiftAttributeRarityEpic", "starGiftAttributeRarityLegendary");
467
467
  const isAnyKeyboardButtonStyle = /* @__PURE__ */ _isAny("keyboardButtonStyle");
468
468
  const isAnyInputMessageReadMetric = /* @__PURE__ */ _isAny("inputMessageReadMetric");
469
+ const isAnyInputAiComposeTone = /* @__PURE__ */ _isAny("inputAiComposeToneDefault", "inputAiComposeToneID", "inputAiComposeToneSlug");
470
+ const isAnyAiComposeTone = /* @__PURE__ */ _isAny("aiComposeTone", "aiComposeToneDefault");
471
+ const isAnyAiComposeToneExample = /* @__PURE__ */ _isAny("aiComposeToneExample");
469
472
  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");
470
473
  const isAnyAuth_SentCode = /* @__PURE__ */ _isAny("auth.sentCode", "auth.sentCodeSuccess", "auth.sentCodePaymentRequired");
471
474
  const isAnyAuth_Authorization = /* @__PURE__ */ _isAny("auth.authorization", "auth.authorizationSignUpRequired");
@@ -649,6 +652,7 @@ const isAnyStats_MegagroupStats = /* @__PURE__ */ _isAny("stats.megagroupStats")
649
652
  const isAnyStats_MessageStats = /* @__PURE__ */ _isAny("stats.messageStats");
650
653
  const isAnyStats_StoryStats = /* @__PURE__ */ _isAny("stats.storyStats");
651
654
  const isAnyStats_PublicForwards = /* @__PURE__ */ _isAny("stats.publicForwards");
655
+ const isAnyStats_PollStats = /* @__PURE__ */ _isAny("stats.pollStats");
652
656
  const isAnyStickers_SuggestedShortName = /* @__PURE__ */ _isAny("stickers.suggestedShortName");
653
657
  const isAnyUsers_UserFull = /* @__PURE__ */ _isAny("users.userFull");
654
658
  const isAnyUsers_Users = /* @__PURE__ */ _isAny("users.users", "users.usersSlice");
@@ -662,6 +666,7 @@ const isAnyBots_PopularAppBots = /* @__PURE__ */ _isAny("bots.popularAppBots");
662
666
  const isAnyBots_PreviewInfo = /* @__PURE__ */ _isAny("bots.previewInfo");
663
667
  const isAnyBots_ExportedBotToken = /* @__PURE__ */ _isAny("bots.exportedBotToken");
664
668
  const isAnyBots_RequestedButton = /* @__PURE__ */ _isAny("bots.requestedButton");
669
+ const isAnyBots_AccessSettings = /* @__PURE__ */ _isAny("bots.accessSettings");
665
670
  const isAnyStories_AllStories = /* @__PURE__ */ _isAny("stories.allStoriesNotModified", "stories.allStories");
666
671
  const isAnyStories_Stories = /* @__PURE__ */ _isAny("stories.stories");
667
672
  const isAnyStories_StoryViewsList = /* @__PURE__ */ _isAny("stories.storyViewsList");
@@ -677,7 +682,8 @@ const isAnyPremium_BoostsStatus = /* @__PURE__ */ _isAny("premium.boostsStatus")
677
682
  const isAnySmsjobs_EligibilityToJoin = /* @__PURE__ */ _isAny("smsjobs.eligibleToJoin");
678
683
  const isAnySmsjobs_Status = /* @__PURE__ */ _isAny("smsjobs.status");
679
684
  const isAnyFragment_CollectibleInfo = /* @__PURE__ */ _isAny("fragment.collectibleInfo");
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");
685
+ const isAnyAicompose_Tones = /* @__PURE__ */ _isAny("aicompose.tonesNotModified", "aicompose.tones");
686
+ 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", "updateBotGuestChatQuery", "updateAiComposeTones", "updateChannelPinnedTopic", "updateChannelPinnedTopics", "mtcute.dummyUpdate");
681
687
  const isAnyMtcute_InputPeer = /* @__PURE__ */ _isAny("inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage", "mtcute.dummyInputPeerMinUser", "mtcute.dummyInputPeerMinChannel");
682
688
  exports.LAYER = LAYER;
683
689
  exports.RpcError = RpcError;
@@ -710,6 +716,9 @@ exports.isAnyAccount_Themes = isAnyAccount_Themes;
710
716
  exports.isAnyAccount_TmpPassword = isAnyAccount_TmpPassword;
711
717
  exports.isAnyAccount_WallPapers = isAnyAccount_WallPapers;
712
718
  exports.isAnyAccount_WebAuthorizations = isAnyAccount_WebAuthorizations;
719
+ exports.isAnyAiComposeTone = isAnyAiComposeTone;
720
+ exports.isAnyAiComposeToneExample = isAnyAiComposeToneExample;
721
+ exports.isAnyAicompose_Tones = isAnyAicompose_Tones;
713
722
  exports.isAnyAttachMenuBot = isAnyAttachMenuBot;
714
723
  exports.isAnyAttachMenuBotIcon = isAnyAttachMenuBotIcon;
715
724
  exports.isAnyAttachMenuBotIconColor = isAnyAttachMenuBotIconColor;
@@ -748,6 +757,7 @@ exports.isAnyBotMenuButton = isAnyBotMenuButton;
748
757
  exports.isAnyBotPreviewMedia = isAnyBotPreviewMedia;
749
758
  exports.isAnyBotVerification = isAnyBotVerification;
750
759
  exports.isAnyBotVerifierSettings = isAnyBotVerifierSettings;
760
+ exports.isAnyBots_AccessSettings = isAnyBots_AccessSettings;
751
761
  exports.isAnyBots_BotInfo = isAnyBots_BotInfo;
752
762
  exports.isAnyBots_ExportedBotToken = isAnyBots_ExportedBotToken;
753
763
  exports.isAnyBots_PopularAppBots = isAnyBots_PopularAppBots;
@@ -882,6 +892,7 @@ exports.isAnyImportedContact = isAnyImportedContact;
882
892
  exports.isAnyInlineBotSwitchPM = isAnyInlineBotSwitchPM;
883
893
  exports.isAnyInlineBotWebView = isAnyInlineBotWebView;
884
894
  exports.isAnyInlineQueryPeerType = isAnyInlineQueryPeerType;
895
+ exports.isAnyInputAiComposeTone = isAnyInputAiComposeTone;
885
896
  exports.isAnyInputAppEvent = isAnyInputAppEvent;
886
897
  exports.isAnyInputBotApp = isAnyInputBotApp;
887
898
  exports.isAnyInputBotInlineMessage = isAnyInputBotInlineMessage;
@@ -1207,6 +1218,7 @@ exports.isAnyStatsURL = isAnyStatsURL;
1207
1218
  exports.isAnyStats_BroadcastStats = isAnyStats_BroadcastStats;
1208
1219
  exports.isAnyStats_MegagroupStats = isAnyStats_MegagroupStats;
1209
1220
  exports.isAnyStats_MessageStats = isAnyStats_MessageStats;
1221
+ exports.isAnyStats_PollStats = isAnyStats_PollStats;
1210
1222
  exports.isAnyStats_PublicForwards = isAnyStats_PublicForwards;
1211
1223
  exports.isAnyStats_StoryStats = isAnyStats_StoryStats;
1212
1224
  exports.isAnyStickerKeyword = isAnyStickerKeyword;
package/tl/inner-tl.js CHANGED
@@ -6,7 +6,7 @@ function _isAny() {
6
6
  return false;
7
7
  };
8
8
  }
9
- const LAYER = 224;
9
+ const LAYER = 225;
10
10
  class RpcError extends Error {
11
11
  constructor(code, text) {
12
12
  super("Telegram API error " + code + ": " + text);
@@ -122,7 +122,7 @@ const isAnyContact = /* @__PURE__ */ _isAny("contact");
122
122
  const isAnyImportedContact = /* @__PURE__ */ _isAny("importedContact");
123
123
  const isAnyContactStatus = /* @__PURE__ */ _isAny("contactStatus");
124
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");
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", "updateBotGuestChatQuery", "updateAiComposeTones", "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");
@@ -170,7 +170,7 @@ const isAnyMessageFwdHeader = /* @__PURE__ */ _isAny("messageFwdHeader");
170
170
  const isAnyInputBotInlineMessageID = /* @__PURE__ */ _isAny("inputBotInlineMessageID", "inputBotInlineMessageID64");
171
171
  const isAnyInlineBotSwitchPM = /* @__PURE__ */ _isAny("inlineBotSwitchPM");
172
172
  const isAnyTopPeer = /* @__PURE__ */ _isAny("topPeer");
173
- const isAnyTopPeerCategory = /* @__PURE__ */ _isAny("topPeerCategoryBotsPM", "topPeerCategoryBotsInline", "topPeerCategoryCorrespondents", "topPeerCategoryGroups", "topPeerCategoryChannels", "topPeerCategoryPhoneCalls", "topPeerCategoryForwardUsers", "topPeerCategoryForwardChats", "topPeerCategoryBotsApp");
173
+ const isAnyTopPeerCategory = /* @__PURE__ */ _isAny("topPeerCategoryBotsPM", "topPeerCategoryBotsInline", "topPeerCategoryCorrespondents", "topPeerCategoryGroups", "topPeerCategoryChannels", "topPeerCategoryPhoneCalls", "topPeerCategoryForwardUsers", "topPeerCategoryForwardChats", "topPeerCategoryBotsApp", "topPeerCategoryBotsGuestChat");
174
174
  const isAnyTopPeerCategoryPeers = /* @__PURE__ */ _isAny("topPeerCategoryPeers");
175
175
  const isAnyDraftMessage = /* @__PURE__ */ _isAny("draftMessageEmpty", "draftMessage");
176
176
  const isAnyStickerSetCovered = /* @__PURE__ */ _isAny("stickerSetCovered", "stickerSetMultiCovered", "stickerSetFullCovered", "stickerSetNoCovered");
@@ -270,7 +270,7 @@ const isAnyTheme = /* @__PURE__ */ _isAny("theme");
270
270
  const isAnyBaseTheme = /* @__PURE__ */ _isAny("baseThemeClassic", "baseThemeDay", "baseThemeNight", "baseThemeTinted", "baseThemeArctic");
271
271
  const isAnyInputThemeSettings = /* @__PURE__ */ _isAny("inputThemeSettings");
272
272
  const isAnyThemeSettings = /* @__PURE__ */ _isAny("themeSettings");
273
- const isAnyWebPageAttribute = /* @__PURE__ */ _isAny("webPageAttributeTheme", "webPageAttributeStory", "webPageAttributeStickerSet", "webPageAttributeUniqueStarGift", "webPageAttributeStarGiftCollection", "webPageAttributeStarGiftAuction");
273
+ const isAnyWebPageAttribute = /* @__PURE__ */ _isAny("webPageAttributeTheme", "webPageAttributeStory", "webPageAttributeStickerSet", "webPageAttributeUniqueStarGift", "webPageAttributeStarGiftCollection", "webPageAttributeStarGiftAuction", "webPageAttributeAiComposeTone");
274
274
  const isAnyBankCardOpenUrl = /* @__PURE__ */ _isAny("bankCardOpenUrl");
275
275
  const isAnyDialogFilter = /* @__PURE__ */ _isAny("dialogFilter", "dialogFilterDefault", "dialogFilterChatlist");
276
276
  const isAnyDialogFilterSuggested = /* @__PURE__ */ _isAny("dialogFilterSuggested");
@@ -459,6 +459,9 @@ const isAnyStarGiftAuctionRound = /* @__PURE__ */ _isAny("starGiftAuctionRound",
459
459
  const isAnyStarGiftAttributeRarity = /* @__PURE__ */ _isAny("starGiftAttributeRarity", "starGiftAttributeRarityUncommon", "starGiftAttributeRarityRare", "starGiftAttributeRarityEpic", "starGiftAttributeRarityLegendary");
460
460
  const isAnyKeyboardButtonStyle = /* @__PURE__ */ _isAny("keyboardButtonStyle");
461
461
  const isAnyInputMessageReadMetric = /* @__PURE__ */ _isAny("inputMessageReadMetric");
462
+ const isAnyInputAiComposeTone = /* @__PURE__ */ _isAny("inputAiComposeToneDefault", "inputAiComposeToneID", "inputAiComposeToneSlug");
463
+ const isAnyAiComposeTone = /* @__PURE__ */ _isAny("aiComposeTone", "aiComposeToneDefault");
464
+ const isAnyAiComposeToneExample = /* @__PURE__ */ _isAny("aiComposeToneExample");
462
465
  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");
463
466
  const isAnyAuth_SentCode = /* @__PURE__ */ _isAny("auth.sentCode", "auth.sentCodeSuccess", "auth.sentCodePaymentRequired");
464
467
  const isAnyAuth_Authorization = /* @__PURE__ */ _isAny("auth.authorization", "auth.authorizationSignUpRequired");
@@ -642,6 +645,7 @@ const isAnyStats_MegagroupStats = /* @__PURE__ */ _isAny("stats.megagroupStats")
642
645
  const isAnyStats_MessageStats = /* @__PURE__ */ _isAny("stats.messageStats");
643
646
  const isAnyStats_StoryStats = /* @__PURE__ */ _isAny("stats.storyStats");
644
647
  const isAnyStats_PublicForwards = /* @__PURE__ */ _isAny("stats.publicForwards");
648
+ const isAnyStats_PollStats = /* @__PURE__ */ _isAny("stats.pollStats");
645
649
  const isAnyStickers_SuggestedShortName = /* @__PURE__ */ _isAny("stickers.suggestedShortName");
646
650
  const isAnyUsers_UserFull = /* @__PURE__ */ _isAny("users.userFull");
647
651
  const isAnyUsers_Users = /* @__PURE__ */ _isAny("users.users", "users.usersSlice");
@@ -655,6 +659,7 @@ const isAnyBots_PopularAppBots = /* @__PURE__ */ _isAny("bots.popularAppBots");
655
659
  const isAnyBots_PreviewInfo = /* @__PURE__ */ _isAny("bots.previewInfo");
656
660
  const isAnyBots_ExportedBotToken = /* @__PURE__ */ _isAny("bots.exportedBotToken");
657
661
  const isAnyBots_RequestedButton = /* @__PURE__ */ _isAny("bots.requestedButton");
662
+ const isAnyBots_AccessSettings = /* @__PURE__ */ _isAny("bots.accessSettings");
658
663
  const isAnyStories_AllStories = /* @__PURE__ */ _isAny("stories.allStoriesNotModified", "stories.allStories");
659
664
  const isAnyStories_Stories = /* @__PURE__ */ _isAny("stories.stories");
660
665
  const isAnyStories_StoryViewsList = /* @__PURE__ */ _isAny("stories.storyViewsList");
@@ -670,7 +675,8 @@ const isAnyPremium_BoostsStatus = /* @__PURE__ */ _isAny("premium.boostsStatus")
670
675
  const isAnySmsjobs_EligibilityToJoin = /* @__PURE__ */ _isAny("smsjobs.eligibleToJoin");
671
676
  const isAnySmsjobs_Status = /* @__PURE__ */ _isAny("smsjobs.status");
672
677
  const isAnyFragment_CollectibleInfo = /* @__PURE__ */ _isAny("fragment.collectibleInfo");
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");
678
+ const isAnyAicompose_Tones = /* @__PURE__ */ _isAny("aicompose.tonesNotModified", "aicompose.tones");
679
+ 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", "updateBotGuestChatQuery", "updateAiComposeTones", "updateChannelPinnedTopic", "updateChannelPinnedTopics", "mtcute.dummyUpdate");
674
680
  const isAnyMtcute_InputPeer = /* @__PURE__ */ _isAny("inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage", "mtcute.dummyInputPeerMinUser", "mtcute.dummyInputPeerMinChannel");
675
681
  export {
676
682
  LAYER,
@@ -704,6 +710,9 @@ export {
704
710
  isAnyAccount_TmpPassword,
705
711
  isAnyAccount_WallPapers,
706
712
  isAnyAccount_WebAuthorizations,
713
+ isAnyAiComposeTone,
714
+ isAnyAiComposeToneExample,
715
+ isAnyAicompose_Tones,
707
716
  isAnyAttachMenuBot,
708
717
  isAnyAttachMenuBotIcon,
709
718
  isAnyAttachMenuBotIconColor,
@@ -742,6 +751,7 @@ export {
742
751
  isAnyBotPreviewMedia,
743
752
  isAnyBotVerification,
744
753
  isAnyBotVerifierSettings,
754
+ isAnyBots_AccessSettings,
745
755
  isAnyBots_BotInfo,
746
756
  isAnyBots_ExportedBotToken,
747
757
  isAnyBots_PopularAppBots,
@@ -876,6 +886,7 @@ export {
876
886
  isAnyInlineBotSwitchPM,
877
887
  isAnyInlineBotWebView,
878
888
  isAnyInlineQueryPeerType,
889
+ isAnyInputAiComposeTone,
879
890
  isAnyInputAppEvent,
880
891
  isAnyInputBotApp,
881
892
  isAnyInputBotInlineMessage,
@@ -1201,6 +1212,7 @@ export {
1201
1212
  isAnyStats_BroadcastStats,
1202
1213
  isAnyStats_MegagroupStats,
1203
1214
  isAnyStats_MessageStats,
1215
+ isAnyStats_PollStats,
1204
1216
  isAnyStats_PublicForwards,
1205
1217
  isAnyStats_StoryStats,
1206
1218
  isAnyStickerKeyword,
@@ -124,6 +124,7 @@ function mapCompatEmojiStatus(obj) {
124
124
  function mapCompatPoll(obj) {
125
125
  switch (obj._) {
126
126
  case "poll_layer223":
127
+ case "poll_layer224":
127
128
  return {
128
129
  ...obj,
129
130
  _: "poll",
@@ -235,6 +236,7 @@ function mapCompatMessage(obj) {
235
236
  case "message_layer216":
236
237
  case "message_layer220":
237
238
  case "message_layer222":
239
+ case "message_layer224":
238
240
  return {
239
241
  ...obj,
240
242
  _: "message",
@@ -372,6 +374,7 @@ function mapCompatObject(obj) {
372
374
  case "message_layer216":
373
375
  case "message_layer220":
374
376
  case "message_layer222":
377
+ case "message_layer224":
375
378
  case "messageService_layer204":
376
379
  return mapCompatMessage(obj);
377
380
  case "messageReplyHeader_layer206":
@@ -417,6 +420,8 @@ function mapCompatObject(obj) {
417
420
  return mapCompatPoll(obj);
418
421
  case "pollAnswer_layer223":
419
422
  return replaceType(obj, "pollAnswer");
423
+ case "poll_layer224":
424
+ return mapCompatPoll(obj);
420
425
  case "keyboardButton_layer221":
421
426
  case "keyboardButtonUrl_layer221":
422
427
  case "keyboardButtonCallback_layer221":
@@ -117,6 +117,7 @@ function mapCompatEmojiStatus(obj) {
117
117
  function mapCompatPoll(obj) {
118
118
  switch (obj._) {
119
119
  case "poll_layer223":
120
+ case "poll_layer224":
120
121
  return {
121
122
  ...obj,
122
123
  _: "poll",
@@ -228,6 +229,7 @@ function mapCompatMessage(obj) {
228
229
  case "message_layer216":
229
230
  case "message_layer220":
230
231
  case "message_layer222":
232
+ case "message_layer224":
231
233
  return {
232
234
  ...obj,
233
235
  _: "message",
@@ -365,6 +367,7 @@ function mapCompatObject(obj) {
365
367
  case "message_layer216":
366
368
  case "message_layer220":
367
369
  case "message_layer222":
370
+ case "message_layer224":
368
371
  case "messageService_layer204":
369
372
  return mapCompatMessage(obj);
370
373
  case "messageReplyHeader_layer206":
@@ -410,6 +413,8 @@ function mapCompatObject(obj) {
410
413
  return mapCompatPoll(obj);
411
414
  case "pollAnswer_layer223":
412
415
  return replaceType(obj, "pollAnswer");
416
+ case "poll_layer224":
417
+ return mapCompatPoll(obj);
413
418
  case "keyboardButton_layer221":
414
419
  case "keyboardButtonUrl_layer221":
415
420
  case "keyboardButtonCallback_layer221":