@mtcute/core 0.29.1 → 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.
- package/highlevel/base.cjs +0 -1
- package/highlevel/base.js +0 -1
- package/highlevel/methods/chats/get-creator-after-leave.cjs +4 -14
- package/highlevel/methods/chats/get-creator-after-leave.js +5 -15
- package/highlevel/methods/files/normalize-input-media.cjs +16 -14
- package/highlevel/methods/files/normalize-input-media.js +16 -14
- package/highlevel/methods/messages/close-poll.cjs +2 -1
- package/highlevel/methods/messages/close-poll.js +2 -1
- package/highlevel/methods/messages/send-vote.cjs +3 -1
- package/highlevel/methods/messages/send-vote.js +4 -2
- package/highlevel/storage/service/peers.cjs +1 -0
- package/highlevel/storage/service/peers.js +1 -0
- package/highlevel/types/media/input-media/types.d.cts +10 -13
- package/highlevel/types/media/input-media/types.d.ts +10 -13
- package/highlevel/types/media/poll.cjs +4 -1
- package/highlevel/types/media/poll.d.cts +2 -2
- package/highlevel/types/media/poll.d.ts +2 -2
- package/highlevel/types/media/poll.js +4 -1
- package/highlevel/types/messages/dialog.cjs +4 -0
- package/highlevel/types/messages/dialog.d.cts +2 -0
- package/highlevel/types/messages/dialog.d.ts +2 -0
- package/highlevel/types/messages/dialog.js +4 -0
- package/highlevel/types/messages/message-action.cjs +18 -0
- package/highlevel/types/messages/message-action.d.cts +19 -1
- package/highlevel/types/messages/message-action.d.ts +19 -1
- package/highlevel/types/messages/message-action.js +18 -0
- package/highlevel/types/peers/forum-topic.cjs +4 -0
- package/highlevel/types/peers/forum-topic.d.cts +2 -0
- package/highlevel/types/peers/forum-topic.d.ts +2 -0
- package/highlevel/types/peers/forum-topic.js +4 -0
- package/highlevel/types/peers/full-user.cjs +8 -0
- package/highlevel/types/peers/full-user.d.cts +4 -0
- package/highlevel/types/peers/full-user.d.ts +4 -0
- package/highlevel/types/peers/full-user.js +8 -0
- package/highlevel/types/peers/user.cjs +4 -0
- package/highlevel/types/peers/user.d.cts +2 -0
- package/highlevel/types/peers/user.d.ts +2 -0
- package/highlevel/types/peers/user.js +4 -0
- package/highlevel/types/updates/poll-update.cjs +8 -2
- package/highlevel/types/updates/poll-update.js +8 -2
- package/highlevel/updates/manager.cjs +7 -0
- package/highlevel/updates/manager.js +7 -0
- package/highlevel/worker/worker.cjs +6 -1
- package/highlevel/worker/worker.d.cts +2 -1
- package/highlevel/worker/worker.d.ts +2 -1
- package/highlevel/worker/worker.js +6 -1
- package/network/middlewares/flood-waiter.cjs +2 -1
- package/network/middlewares/flood-waiter.js +2 -1
- package/network/network-manager.cjs +1 -1
- package/network/network-manager.js +1 -1
- package/package.json +1 -1
- package/tl/api-schema.json +1 -1
- package/tl/binary/reader.cjs +86 -39
- package/tl/binary/reader.js +86 -39
- package/tl/binary/writer.cjs +308 -32
- package/tl/binary/writer.js +308 -32
- package/tl/compat/reader.cjs +34 -0
- package/tl/compat/reader.js +34 -0
- package/tl/index.d.cts +295 -25
- package/tl/index.d.ts +295 -25
- package/tl/inner-tl.cjs +20 -11
- package/tl/inner-tl.js +20 -11
- package/utils/binary/compat.cjs +41 -0
- 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 =
|
|
16
|
+
const LAYER = 224;
|
|
17
17
|
class RpcError extends Error {
|
|
18
18
|
constructor(code, text) {
|
|
19
19
|
super("Telegram API error " + code + ": " + text);
|
|
@@ -28,8 +28,8 @@ class RpcError extends Error {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
RpcError.fromTl = function(obj) {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
const err = new RpcError(obj.errorCode, obj.errorMessage);
|
|
32
|
+
let match;
|
|
33
33
|
if ((match = err.text.match(/^FLOOD_WAIT_(\d+)$/)) != null) {
|
|
34
34
|
err.text = "FLOOD_WAIT_%d";
|
|
35
35
|
err.seconds = parseInt(match[1]);
|
|
@@ -81,7 +81,8 @@ RpcError.fromTl = function(obj) {
|
|
|
81
81
|
} else if ((match = err.text.match(/^USER_MIGRATE_(\d+)$/)) != null) {
|
|
82
82
|
err.text = "USER_MIGRATE_%d";
|
|
83
83
|
err.newDc = parseInt(match[1]);
|
|
84
|
-
}
|
|
84
|
+
}
|
|
85
|
+
return err;
|
|
85
86
|
};
|
|
86
87
|
RpcError.BAD_REQUEST = 400;
|
|
87
88
|
RpcError.UNAUTHORIZED = 401;
|
|
@@ -112,7 +113,7 @@ const isAnyChatParticipants = /* @__PURE__ */ _isAny("chatParticipantsForbidden"
|
|
|
112
113
|
const isAnyChatPhoto = /* @__PURE__ */ _isAny("chatPhotoEmpty", "chatPhoto");
|
|
113
114
|
const isAnyMessage = /* @__PURE__ */ _isAny("messageEmpty", "message", "messageService");
|
|
114
115
|
const isAnyMessageMedia = /* @__PURE__ */ _isAny("messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream");
|
|
115
|
-
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");
|
|
116
117
|
const isAnyDialog = /* @__PURE__ */ _isAny("dialog", "dialogFolder");
|
|
117
118
|
const isAnyPhoto = /* @__PURE__ */ _isAny("photoEmpty", "photo");
|
|
118
119
|
const isAnyPhotoSize = /* @__PURE__ */ _isAny("photoSizeEmpty", "photoSize", "photoCachedSize", "photoStrippedSize", "photoSizeProgressive", "photoPathSize");
|
|
@@ -127,8 +128,8 @@ const isAnyUserFull = /* @__PURE__ */ _isAny("userFull");
|
|
|
127
128
|
const isAnyContact = /* @__PURE__ */ _isAny("contact");
|
|
128
129
|
const isAnyImportedContact = /* @__PURE__ */ _isAny("importedContact");
|
|
129
130
|
const isAnyContactStatus = /* @__PURE__ */ _isAny("contactStatus");
|
|
130
|
-
const isAnyMessagesFilter = /* @__PURE__ */ _isAny("inputMessagesFilterEmpty", "inputMessagesFilterPhotos", "inputMessagesFilterVideo", "inputMessagesFilterPhotoVideo", "inputMessagesFilterDocument", "inputMessagesFilterUrl", "inputMessagesFilterGif", "inputMessagesFilterVoice", "inputMessagesFilterMusic", "inputMessagesFilterChatPhotos", "inputMessagesFilterPhoneCalls", "inputMessagesFilterRoundVoice", "inputMessagesFilterRoundVideo", "inputMessagesFilterMyMentions", "inputMessagesFilterGeo", "inputMessagesFilterContacts", "inputMessagesFilterPinned");
|
|
131
|
-
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");
|
|
132
133
|
const isAnyUpdates = /* @__PURE__ */ _isAny("updatesTooLong", "updateShortMessage", "updateShortChatMessage", "updateShort", "updatesCombined", "updates", "updateShortSentMessage");
|
|
133
134
|
const isAnyDcOption = /* @__PURE__ */ _isAny("dcOption");
|
|
134
135
|
const isAnyConfig = /* @__PURE__ */ _isAny("config");
|
|
@@ -161,7 +162,7 @@ const isAnyBotInfo = /* @__PURE__ */ _isAny("botInfo");
|
|
|
161
162
|
const isAnyKeyboardButton = /* @__PURE__ */ _isAny("keyboardButton", "keyboardButtonUrl", "keyboardButtonCallback", "keyboardButtonRequestPhone", "keyboardButtonRequestGeoLocation", "keyboardButtonSwitchInline", "keyboardButtonGame", "keyboardButtonBuy", "keyboardButtonUrlAuth", "inputKeyboardButtonUrlAuth", "keyboardButtonRequestPoll", "inputKeyboardButtonUserProfile", "keyboardButtonUserProfile", "keyboardButtonWebView", "keyboardButtonSimpleWebView", "keyboardButtonRequestPeer", "inputKeyboardButtonRequestPeer", "keyboardButtonCopy");
|
|
162
163
|
const isAnyKeyboardButtonRow = /* @__PURE__ */ _isAny("keyboardButtonRow");
|
|
163
164
|
const isAnyReplyMarkup = /* @__PURE__ */ _isAny("replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup");
|
|
164
|
-
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");
|
|
165
166
|
const isAnyInputChannel = /* @__PURE__ */ _isAny("inputChannelEmpty", "inputChannel", "inputChannelFromMessage");
|
|
166
167
|
const isAnyMessageRange = /* @__PURE__ */ _isAny("messageRange");
|
|
167
168
|
const isAnyChannelMessagesFilter = /* @__PURE__ */ _isAny("channelMessagesFilterEmpty", "channelMessagesFilter");
|
|
@@ -248,7 +249,7 @@ const isAnyPageListItem = /* @__PURE__ */ _isAny("pageListItemText", "pageListIt
|
|
|
248
249
|
const isAnyPageListOrderedItem = /* @__PURE__ */ _isAny("pageListOrderedItemText", "pageListOrderedItemBlocks");
|
|
249
250
|
const isAnyPageRelatedArticle = /* @__PURE__ */ _isAny("pageRelatedArticle");
|
|
250
251
|
const isAnyPage = /* @__PURE__ */ _isAny("page");
|
|
251
|
-
const isAnyPollAnswer = /* @__PURE__ */ _isAny("pollAnswer");
|
|
252
|
+
const isAnyPollAnswer = /* @__PURE__ */ _isAny("pollAnswer", "inputPollAnswer");
|
|
252
253
|
const isAnyPoll = /* @__PURE__ */ _isAny("poll");
|
|
253
254
|
const isAnyPollAnswerVoters = /* @__PURE__ */ _isAny("pollAnswerVoters");
|
|
254
255
|
const isAnyPollResults = /* @__PURE__ */ _isAny("pollResults");
|
|
@@ -337,7 +338,7 @@ const isAnyUsername = /* @__PURE__ */ _isAny("username");
|
|
|
337
338
|
const isAnyForumTopic = /* @__PURE__ */ _isAny("forumTopicDeleted", "forumTopic");
|
|
338
339
|
const isAnyDefaultHistoryTTL = /* @__PURE__ */ _isAny("defaultHistoryTTL");
|
|
339
340
|
const isAnyExportedContactToken = /* @__PURE__ */ _isAny("exportedContactToken");
|
|
340
|
-
const isAnyRequestPeerType = /* @__PURE__ */ _isAny("requestPeerTypeUser", "requestPeerTypeChat", "requestPeerTypeBroadcast");
|
|
341
|
+
const isAnyRequestPeerType = /* @__PURE__ */ _isAny("requestPeerTypeUser", "requestPeerTypeChat", "requestPeerTypeBroadcast", "requestPeerTypeCreateBot");
|
|
341
342
|
const isAnyEmojiList = /* @__PURE__ */ _isAny("emojiListNotModified", "emojiList");
|
|
342
343
|
const isAnyEmojiGroup = /* @__PURE__ */ _isAny("emojiGroup", "emojiGroupGreeting", "emojiGroupPremium");
|
|
343
344
|
const isAnyTextWithEntities = /* @__PURE__ */ _isAny("textWithEntities");
|
|
@@ -464,6 +465,7 @@ const isAnyStarGiftBackground = /* @__PURE__ */ _isAny("starGiftBackground");
|
|
|
464
465
|
const isAnyStarGiftAuctionRound = /* @__PURE__ */ _isAny("starGiftAuctionRound", "starGiftAuctionRoundExtendable");
|
|
465
466
|
const isAnyStarGiftAttributeRarity = /* @__PURE__ */ _isAny("starGiftAttributeRarity", "starGiftAttributeRarityUncommon", "starGiftAttributeRarityRare", "starGiftAttributeRarityEpic", "starGiftAttributeRarityLegendary");
|
|
466
467
|
const isAnyKeyboardButtonStyle = /* @__PURE__ */ _isAny("keyboardButtonStyle");
|
|
468
|
+
const isAnyInputMessageReadMetric = /* @__PURE__ */ _isAny("inputMessageReadMetric");
|
|
467
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");
|
|
468
470
|
const isAnyAuth_SentCode = /* @__PURE__ */ _isAny("auth.sentCode", "auth.sentCodeSuccess", "auth.sentCodePaymentRequired");
|
|
469
471
|
const isAnyAuth_Authorization = /* @__PURE__ */ _isAny("auth.authorization", "auth.authorizationSignUpRequired");
|
|
@@ -544,6 +546,7 @@ const isAnyMessages_FoundStickers = /* @__PURE__ */ _isAny("messages.foundSticke
|
|
|
544
546
|
const isAnyMessages_WebPagePreview = /* @__PURE__ */ _isAny("messages.webPagePreview");
|
|
545
547
|
const isAnyMessages_EmojiGameOutcome = /* @__PURE__ */ _isAny("messages.emojiGameOutcome");
|
|
546
548
|
const isAnyMessages_EmojiGameInfo = /* @__PURE__ */ _isAny("messages.emojiGameUnavailable", "messages.emojiGameDiceInfo");
|
|
549
|
+
const isAnyMessages_ComposedMessageWithAI = /* @__PURE__ */ _isAny("messages.composedMessageWithAI");
|
|
547
550
|
const isAnyUpdates_State = /* @__PURE__ */ _isAny("updates.state");
|
|
548
551
|
const isAnyUpdates_Difference = /* @__PURE__ */ _isAny("updates.differenceEmpty", "updates.difference", "updates.differenceSlice", "updates.differenceTooLong");
|
|
549
552
|
const isAnyUpdates_ChannelDifference = /* @__PURE__ */ _isAny("updates.channelDifferenceEmpty", "updates.channelDifferenceTooLong", "updates.channelDifference");
|
|
@@ -657,6 +660,8 @@ const isAnyChatlists_ChatlistUpdates = /* @__PURE__ */ _isAny("chatlists.chatlis
|
|
|
657
660
|
const isAnyBots_BotInfo = /* @__PURE__ */ _isAny("bots.botInfo");
|
|
658
661
|
const isAnyBots_PopularAppBots = /* @__PURE__ */ _isAny("bots.popularAppBots");
|
|
659
662
|
const isAnyBots_PreviewInfo = /* @__PURE__ */ _isAny("bots.previewInfo");
|
|
663
|
+
const isAnyBots_ExportedBotToken = /* @__PURE__ */ _isAny("bots.exportedBotToken");
|
|
664
|
+
const isAnyBots_RequestedButton = /* @__PURE__ */ _isAny("bots.requestedButton");
|
|
660
665
|
const isAnyStories_AllStories = /* @__PURE__ */ _isAny("stories.allStoriesNotModified", "stories.allStories");
|
|
661
666
|
const isAnyStories_Stories = /* @__PURE__ */ _isAny("stories.stories");
|
|
662
667
|
const isAnyStories_StoryViewsList = /* @__PURE__ */ _isAny("stories.storyViewsList");
|
|
@@ -672,7 +677,7 @@ const isAnyPremium_BoostsStatus = /* @__PURE__ */ _isAny("premium.boostsStatus")
|
|
|
672
677
|
const isAnySmsjobs_EligibilityToJoin = /* @__PURE__ */ _isAny("smsjobs.eligibleToJoin");
|
|
673
678
|
const isAnySmsjobs_Status = /* @__PURE__ */ _isAny("smsjobs.status");
|
|
674
679
|
const isAnyFragment_CollectibleInfo = /* @__PURE__ */ _isAny("fragment.collectibleInfo");
|
|
675
|
-
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");
|
|
676
681
|
const isAnyMtcute_InputPeer = /* @__PURE__ */ _isAny("inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage", "mtcute.dummyInputPeerMinUser", "mtcute.dummyInputPeerMinChannel");
|
|
677
682
|
exports.LAYER = LAYER;
|
|
678
683
|
exports.RpcError = RpcError;
|
|
@@ -744,8 +749,10 @@ exports.isAnyBotPreviewMedia = isAnyBotPreviewMedia;
|
|
|
744
749
|
exports.isAnyBotVerification = isAnyBotVerification;
|
|
745
750
|
exports.isAnyBotVerifierSettings = isAnyBotVerifierSettings;
|
|
746
751
|
exports.isAnyBots_BotInfo = isAnyBots_BotInfo;
|
|
752
|
+
exports.isAnyBots_ExportedBotToken = isAnyBots_ExportedBotToken;
|
|
747
753
|
exports.isAnyBots_PopularAppBots = isAnyBots_PopularAppBots;
|
|
748
754
|
exports.isAnyBots_PreviewInfo = isAnyBots_PreviewInfo;
|
|
755
|
+
exports.isAnyBots_RequestedButton = isAnyBots_RequestedButton;
|
|
749
756
|
exports.isAnyBusinessAwayMessage = isAnyBusinessAwayMessage;
|
|
750
757
|
exports.isAnyBusinessAwayMessageSchedule = isAnyBusinessAwayMessageSchedule;
|
|
751
758
|
exports.isAnyBusinessBotRecipients = isAnyBusinessBotRecipients;
|
|
@@ -907,6 +914,7 @@ exports.isAnyInputGroupCall = isAnyInputGroupCall;
|
|
|
907
914
|
exports.isAnyInputInvoice = isAnyInputInvoice;
|
|
908
915
|
exports.isAnyInputMedia = isAnyInputMedia;
|
|
909
916
|
exports.isAnyInputMessage = isAnyInputMessage;
|
|
917
|
+
exports.isAnyInputMessageReadMetric = isAnyInputMessageReadMetric;
|
|
910
918
|
exports.isAnyInputNotifyPeer = isAnyInputNotifyPeer;
|
|
911
919
|
exports.isAnyInputPasskeyCredential = isAnyInputPasskeyCredential;
|
|
912
920
|
exports.isAnyInputPasskeyResponse = isAnyInputPasskeyResponse;
|
|
@@ -980,6 +988,7 @@ exports.isAnyMessages_ChatFull = isAnyMessages_ChatFull;
|
|
|
980
988
|
exports.isAnyMessages_ChatInviteImporters = isAnyMessages_ChatInviteImporters;
|
|
981
989
|
exports.isAnyMessages_Chats = isAnyMessages_Chats;
|
|
982
990
|
exports.isAnyMessages_CheckedHistoryImportPeer = isAnyMessages_CheckedHistoryImportPeer;
|
|
991
|
+
exports.isAnyMessages_ComposedMessageWithAI = isAnyMessages_ComposedMessageWithAI;
|
|
983
992
|
exports.isAnyMessages_DhConfig = isAnyMessages_DhConfig;
|
|
984
993
|
exports.isAnyMessages_DialogFilters = isAnyMessages_DialogFilters;
|
|
985
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 =
|
|
9
|
+
const LAYER = 224;
|
|
10
10
|
class RpcError extends Error {
|
|
11
11
|
constructor(code, text) {
|
|
12
12
|
super("Telegram API error " + code + ": " + text);
|
|
@@ -21,8 +21,8 @@ class RpcError extends Error {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
RpcError.fromTl = function(obj) {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
const err = new RpcError(obj.errorCode, obj.errorMessage);
|
|
25
|
+
let match;
|
|
26
26
|
if ((match = err.text.match(/^FLOOD_WAIT_(\d+)$/)) != null) {
|
|
27
27
|
err.text = "FLOOD_WAIT_%d";
|
|
28
28
|
err.seconds = parseInt(match[1]);
|
|
@@ -74,7 +74,8 @@ RpcError.fromTl = function(obj) {
|
|
|
74
74
|
} else if ((match = err.text.match(/^USER_MIGRATE_(\d+)$/)) != null) {
|
|
75
75
|
err.text = "USER_MIGRATE_%d";
|
|
76
76
|
err.newDc = parseInt(match[1]);
|
|
77
|
-
}
|
|
77
|
+
}
|
|
78
|
+
return err;
|
|
78
79
|
};
|
|
79
80
|
RpcError.BAD_REQUEST = 400;
|
|
80
81
|
RpcError.UNAUTHORIZED = 401;
|
|
@@ -105,7 +106,7 @@ const isAnyChatParticipants = /* @__PURE__ */ _isAny("chatParticipantsForbidden"
|
|
|
105
106
|
const isAnyChatPhoto = /* @__PURE__ */ _isAny("chatPhotoEmpty", "chatPhoto");
|
|
106
107
|
const isAnyMessage = /* @__PURE__ */ _isAny("messageEmpty", "message", "messageService");
|
|
107
108
|
const isAnyMessageMedia = /* @__PURE__ */ _isAny("messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream");
|
|
108
|
-
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");
|
|
109
110
|
const isAnyDialog = /* @__PURE__ */ _isAny("dialog", "dialogFolder");
|
|
110
111
|
const isAnyPhoto = /* @__PURE__ */ _isAny("photoEmpty", "photo");
|
|
111
112
|
const isAnyPhotoSize = /* @__PURE__ */ _isAny("photoSizeEmpty", "photoSize", "photoCachedSize", "photoStrippedSize", "photoSizeProgressive", "photoPathSize");
|
|
@@ -120,8 +121,8 @@ const isAnyUserFull = /* @__PURE__ */ _isAny("userFull");
|
|
|
120
121
|
const isAnyContact = /* @__PURE__ */ _isAny("contact");
|
|
121
122
|
const isAnyImportedContact = /* @__PURE__ */ _isAny("importedContact");
|
|
122
123
|
const isAnyContactStatus = /* @__PURE__ */ _isAny("contactStatus");
|
|
123
|
-
const isAnyMessagesFilter = /* @__PURE__ */ _isAny("inputMessagesFilterEmpty", "inputMessagesFilterPhotos", "inputMessagesFilterVideo", "inputMessagesFilterPhotoVideo", "inputMessagesFilterDocument", "inputMessagesFilterUrl", "inputMessagesFilterGif", "inputMessagesFilterVoice", "inputMessagesFilterMusic", "inputMessagesFilterChatPhotos", "inputMessagesFilterPhoneCalls", "inputMessagesFilterRoundVoice", "inputMessagesFilterRoundVideo", "inputMessagesFilterMyMentions", "inputMessagesFilterGeo", "inputMessagesFilterContacts", "inputMessagesFilterPinned");
|
|
124
|
-
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");
|
|
125
126
|
const isAnyUpdates = /* @__PURE__ */ _isAny("updatesTooLong", "updateShortMessage", "updateShortChatMessage", "updateShort", "updatesCombined", "updates", "updateShortSentMessage");
|
|
126
127
|
const isAnyDcOption = /* @__PURE__ */ _isAny("dcOption");
|
|
127
128
|
const isAnyConfig = /* @__PURE__ */ _isAny("config");
|
|
@@ -154,7 +155,7 @@ const isAnyBotInfo = /* @__PURE__ */ _isAny("botInfo");
|
|
|
154
155
|
const isAnyKeyboardButton = /* @__PURE__ */ _isAny("keyboardButton", "keyboardButtonUrl", "keyboardButtonCallback", "keyboardButtonRequestPhone", "keyboardButtonRequestGeoLocation", "keyboardButtonSwitchInline", "keyboardButtonGame", "keyboardButtonBuy", "keyboardButtonUrlAuth", "inputKeyboardButtonUrlAuth", "keyboardButtonRequestPoll", "inputKeyboardButtonUserProfile", "keyboardButtonUserProfile", "keyboardButtonWebView", "keyboardButtonSimpleWebView", "keyboardButtonRequestPeer", "inputKeyboardButtonRequestPeer", "keyboardButtonCopy");
|
|
155
156
|
const isAnyKeyboardButtonRow = /* @__PURE__ */ _isAny("keyboardButtonRow");
|
|
156
157
|
const isAnyReplyMarkup = /* @__PURE__ */ _isAny("replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup");
|
|
157
|
-
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");
|
|
158
159
|
const isAnyInputChannel = /* @__PURE__ */ _isAny("inputChannelEmpty", "inputChannel", "inputChannelFromMessage");
|
|
159
160
|
const isAnyMessageRange = /* @__PURE__ */ _isAny("messageRange");
|
|
160
161
|
const isAnyChannelMessagesFilter = /* @__PURE__ */ _isAny("channelMessagesFilterEmpty", "channelMessagesFilter");
|
|
@@ -241,7 +242,7 @@ const isAnyPageListItem = /* @__PURE__ */ _isAny("pageListItemText", "pageListIt
|
|
|
241
242
|
const isAnyPageListOrderedItem = /* @__PURE__ */ _isAny("pageListOrderedItemText", "pageListOrderedItemBlocks");
|
|
242
243
|
const isAnyPageRelatedArticle = /* @__PURE__ */ _isAny("pageRelatedArticle");
|
|
243
244
|
const isAnyPage = /* @__PURE__ */ _isAny("page");
|
|
244
|
-
const isAnyPollAnswer = /* @__PURE__ */ _isAny("pollAnswer");
|
|
245
|
+
const isAnyPollAnswer = /* @__PURE__ */ _isAny("pollAnswer", "inputPollAnswer");
|
|
245
246
|
const isAnyPoll = /* @__PURE__ */ _isAny("poll");
|
|
246
247
|
const isAnyPollAnswerVoters = /* @__PURE__ */ _isAny("pollAnswerVoters");
|
|
247
248
|
const isAnyPollResults = /* @__PURE__ */ _isAny("pollResults");
|
|
@@ -330,7 +331,7 @@ const isAnyUsername = /* @__PURE__ */ _isAny("username");
|
|
|
330
331
|
const isAnyForumTopic = /* @__PURE__ */ _isAny("forumTopicDeleted", "forumTopic");
|
|
331
332
|
const isAnyDefaultHistoryTTL = /* @__PURE__ */ _isAny("defaultHistoryTTL");
|
|
332
333
|
const isAnyExportedContactToken = /* @__PURE__ */ _isAny("exportedContactToken");
|
|
333
|
-
const isAnyRequestPeerType = /* @__PURE__ */ _isAny("requestPeerTypeUser", "requestPeerTypeChat", "requestPeerTypeBroadcast");
|
|
334
|
+
const isAnyRequestPeerType = /* @__PURE__ */ _isAny("requestPeerTypeUser", "requestPeerTypeChat", "requestPeerTypeBroadcast", "requestPeerTypeCreateBot");
|
|
334
335
|
const isAnyEmojiList = /* @__PURE__ */ _isAny("emojiListNotModified", "emojiList");
|
|
335
336
|
const isAnyEmojiGroup = /* @__PURE__ */ _isAny("emojiGroup", "emojiGroupGreeting", "emojiGroupPremium");
|
|
336
337
|
const isAnyTextWithEntities = /* @__PURE__ */ _isAny("textWithEntities");
|
|
@@ -457,6 +458,7 @@ const isAnyStarGiftBackground = /* @__PURE__ */ _isAny("starGiftBackground");
|
|
|
457
458
|
const isAnyStarGiftAuctionRound = /* @__PURE__ */ _isAny("starGiftAuctionRound", "starGiftAuctionRoundExtendable");
|
|
458
459
|
const isAnyStarGiftAttributeRarity = /* @__PURE__ */ _isAny("starGiftAttributeRarity", "starGiftAttributeRarityUncommon", "starGiftAttributeRarityRare", "starGiftAttributeRarityEpic", "starGiftAttributeRarityLegendary");
|
|
459
460
|
const isAnyKeyboardButtonStyle = /* @__PURE__ */ _isAny("keyboardButtonStyle");
|
|
461
|
+
const isAnyInputMessageReadMetric = /* @__PURE__ */ _isAny("inputMessageReadMetric");
|
|
460
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");
|
|
461
463
|
const isAnyAuth_SentCode = /* @__PURE__ */ _isAny("auth.sentCode", "auth.sentCodeSuccess", "auth.sentCodePaymentRequired");
|
|
462
464
|
const isAnyAuth_Authorization = /* @__PURE__ */ _isAny("auth.authorization", "auth.authorizationSignUpRequired");
|
|
@@ -537,6 +539,7 @@ const isAnyMessages_FoundStickers = /* @__PURE__ */ _isAny("messages.foundSticke
|
|
|
537
539
|
const isAnyMessages_WebPagePreview = /* @__PURE__ */ _isAny("messages.webPagePreview");
|
|
538
540
|
const isAnyMessages_EmojiGameOutcome = /* @__PURE__ */ _isAny("messages.emojiGameOutcome");
|
|
539
541
|
const isAnyMessages_EmojiGameInfo = /* @__PURE__ */ _isAny("messages.emojiGameUnavailable", "messages.emojiGameDiceInfo");
|
|
542
|
+
const isAnyMessages_ComposedMessageWithAI = /* @__PURE__ */ _isAny("messages.composedMessageWithAI");
|
|
540
543
|
const isAnyUpdates_State = /* @__PURE__ */ _isAny("updates.state");
|
|
541
544
|
const isAnyUpdates_Difference = /* @__PURE__ */ _isAny("updates.differenceEmpty", "updates.difference", "updates.differenceSlice", "updates.differenceTooLong");
|
|
542
545
|
const isAnyUpdates_ChannelDifference = /* @__PURE__ */ _isAny("updates.channelDifferenceEmpty", "updates.channelDifferenceTooLong", "updates.channelDifference");
|
|
@@ -650,6 +653,8 @@ const isAnyChatlists_ChatlistUpdates = /* @__PURE__ */ _isAny("chatlists.chatlis
|
|
|
650
653
|
const isAnyBots_BotInfo = /* @__PURE__ */ _isAny("bots.botInfo");
|
|
651
654
|
const isAnyBots_PopularAppBots = /* @__PURE__ */ _isAny("bots.popularAppBots");
|
|
652
655
|
const isAnyBots_PreviewInfo = /* @__PURE__ */ _isAny("bots.previewInfo");
|
|
656
|
+
const isAnyBots_ExportedBotToken = /* @__PURE__ */ _isAny("bots.exportedBotToken");
|
|
657
|
+
const isAnyBots_RequestedButton = /* @__PURE__ */ _isAny("bots.requestedButton");
|
|
653
658
|
const isAnyStories_AllStories = /* @__PURE__ */ _isAny("stories.allStoriesNotModified", "stories.allStories");
|
|
654
659
|
const isAnyStories_Stories = /* @__PURE__ */ _isAny("stories.stories");
|
|
655
660
|
const isAnyStories_StoryViewsList = /* @__PURE__ */ _isAny("stories.storyViewsList");
|
|
@@ -665,7 +670,7 @@ const isAnyPremium_BoostsStatus = /* @__PURE__ */ _isAny("premium.boostsStatus")
|
|
|
665
670
|
const isAnySmsjobs_EligibilityToJoin = /* @__PURE__ */ _isAny("smsjobs.eligibleToJoin");
|
|
666
671
|
const isAnySmsjobs_Status = /* @__PURE__ */ _isAny("smsjobs.status");
|
|
667
672
|
const isAnyFragment_CollectibleInfo = /* @__PURE__ */ _isAny("fragment.collectibleInfo");
|
|
668
|
-
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");
|
|
669
674
|
const isAnyMtcute_InputPeer = /* @__PURE__ */ _isAny("inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage", "mtcute.dummyInputPeerMinUser", "mtcute.dummyInputPeerMinChannel");
|
|
670
675
|
export {
|
|
671
676
|
LAYER,
|
|
@@ -738,8 +743,10 @@ export {
|
|
|
738
743
|
isAnyBotVerification,
|
|
739
744
|
isAnyBotVerifierSettings,
|
|
740
745
|
isAnyBots_BotInfo,
|
|
746
|
+
isAnyBots_ExportedBotToken,
|
|
741
747
|
isAnyBots_PopularAppBots,
|
|
742
748
|
isAnyBots_PreviewInfo,
|
|
749
|
+
isAnyBots_RequestedButton,
|
|
743
750
|
isAnyBusinessAwayMessage,
|
|
744
751
|
isAnyBusinessAwayMessageSchedule,
|
|
745
752
|
isAnyBusinessBotRecipients,
|
|
@@ -901,6 +908,7 @@ export {
|
|
|
901
908
|
isAnyInputInvoice,
|
|
902
909
|
isAnyInputMedia,
|
|
903
910
|
isAnyInputMessage,
|
|
911
|
+
isAnyInputMessageReadMetric,
|
|
904
912
|
isAnyInputNotifyPeer,
|
|
905
913
|
isAnyInputPasskeyCredential,
|
|
906
914
|
isAnyInputPasskeyResponse,
|
|
@@ -974,6 +982,7 @@ export {
|
|
|
974
982
|
isAnyMessages_ChatInviteImporters,
|
|
975
983
|
isAnyMessages_Chats,
|
|
976
984
|
isAnyMessages_CheckedHistoryImportPeer,
|
|
985
|
+
isAnyMessages_ComposedMessageWithAI,
|
|
977
986
|
isAnyMessages_DhConfig,
|
|
978
987
|
isAnyMessages_DialogFilters,
|
|
979
988
|
isAnyMessages_Dialogs,
|
package/utils/binary/compat.cjs
CHANGED
|
@@ -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":
|
package/utils/binary/compat.js
CHANGED
|
@@ -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":
|