@mtcute/core 0.30.3 → 0.32.0
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/client.cjs +85 -0
- package/client.js +85 -0
- package/highlevel/client.d.cts +411 -116
- package/highlevel/client.d.ts +411 -116
- package/highlevel/methods/auth/sign-in-qr.cjs +2 -0
- package/highlevel/methods/auth/sign-in-qr.js +2 -0
- package/highlevel/methods/auth/sign-in-qr.test.d.cts +1 -0
- package/highlevel/methods/auth/sign-in-qr.test.d.ts +1 -0
- package/highlevel/methods/chats/build-peers-index.cjs +45 -0
- package/highlevel/methods/chats/build-peers-index.d.cts +13 -0
- package/highlevel/methods/chats/build-peers-index.d.ts +13 -0
- package/highlevel/methods/chats/build-peers-index.js +40 -0
- package/highlevel/methods/chats/join-chat.cjs +1 -1
- package/highlevel/methods/chats/join-chat.d.cts +2 -1
- package/highlevel/methods/chats/join-chat.d.ts +2 -1
- package/highlevel/methods/chats/join-chat.js +1 -1
- package/highlevel/methods/chats/transfer-chat-ownership.cjs +6 -17
- package/highlevel/methods/chats/transfer-chat-ownership.js +6 -17
- package/highlevel/methods/communities/ban-community-participant.cjs +30 -0
- package/highlevel/methods/communities/ban-community-participant.d.cts +20 -0
- package/highlevel/methods/communities/ban-community-participant.d.ts +20 -0
- package/highlevel/methods/communities/ban-community-participant.js +25 -0
- package/highlevel/methods/communities/create-community.cjs +29 -0
- package/highlevel/methods/communities/create-community.d.cts +22 -0
- package/highlevel/methods/communities/create-community.d.ts +22 -0
- package/highlevel/methods/communities/create-community.js +24 -0
- package/highlevel/methods/communities/get-community-link-requests.cjs +27 -0
- package/highlevel/methods/communities/get-community-link-requests.d.cts +17 -0
- package/highlevel/methods/communities/get-community-link-requests.d.ts +17 -0
- package/highlevel/methods/communities/get-community-link-requests.js +22 -0
- package/highlevel/methods/communities/get-community-participant-chats.cjs +24 -0
- package/highlevel/methods/communities/get-community-participant-chats.d.cts +17 -0
- package/highlevel/methods/communities/get-community-participant-chats.d.ts +17 -0
- package/highlevel/methods/communities/get-community-participant-chats.js +19 -0
- package/highlevel/methods/communities/get-joined-communities.cjs +21 -0
- package/highlevel/methods/communities/get-joined-communities.d.cts +6 -0
- package/highlevel/methods/communities/get-joined-communities.d.ts +6 -0
- package/highlevel/methods/communities/get-joined-communities.js +16 -0
- package/highlevel/methods/communities/hide-community-link-request.cjs +30 -0
- package/highlevel/methods/communities/hide-community-link-request.d.cts +22 -0
- package/highlevel/methods/communities/hide-community-link-request.d.ts +22 -0
- package/highlevel/methods/communities/hide-community-link-request.js +25 -0
- package/highlevel/methods/communities/link-community-peer.cjs +32 -0
- package/highlevel/methods/communities/link-community-peer.d.cts +22 -0
- package/highlevel/methods/communities/link-community-peer.d.ts +22 -0
- package/highlevel/methods/communities/link-community-peer.js +27 -0
- package/highlevel/methods/communities/toggle-community-collapsed.cjs +18 -0
- package/highlevel/methods/communities/toggle-community-collapsed.d.cts +16 -0
- package/highlevel/methods/communities/toggle-community-collapsed.d.ts +16 -0
- package/highlevel/methods/communities/toggle-community-collapsed.js +13 -0
- package/highlevel/methods/ephemeral/delete-all-welcome-messages.cjs +17 -0
- package/highlevel/methods/ephemeral/delete-all-welcome-messages.d.cts +8 -0
- package/highlevel/methods/ephemeral/delete-all-welcome-messages.d.ts +8 -0
- package/highlevel/methods/ephemeral/delete-all-welcome-messages.js +12 -0
- package/highlevel/methods/ephemeral/delete-ephemeral-message.cjs +20 -0
- package/highlevel/methods/ephemeral/delete-ephemeral-message.d.cts +13 -0
- package/highlevel/methods/ephemeral/delete-ephemeral-message.d.ts +13 -0
- package/highlevel/methods/ephemeral/delete-ephemeral-message.js +15 -0
- package/highlevel/methods/ephemeral/delete-welcome-message.cjs +18 -0
- package/highlevel/methods/ephemeral/delete-welcome-message.d.cts +9 -0
- package/highlevel/methods/ephemeral/delete-welcome-message.d.ts +9 -0
- package/highlevel/methods/ephemeral/delete-welcome-message.js +13 -0
- package/highlevel/methods/ephemeral/edit-ephemeral-message.cjs +41 -0
- package/highlevel/methods/ephemeral/edit-ephemeral-message.d.cts +39 -0
- package/highlevel/methods/ephemeral/edit-ephemeral-message.d.ts +39 -0
- package/highlevel/methods/ephemeral/edit-ephemeral-message.js +36 -0
- package/highlevel/methods/ephemeral/find-in-update.cjs +27 -0
- package/highlevel/methods/ephemeral/find-in-update.d.cts +8 -0
- package/highlevel/methods/ephemeral/find-in-update.d.ts +8 -0
- package/highlevel/methods/ephemeral/find-in-update.js +22 -0
- package/highlevel/methods/ephemeral/get-ephemeral-callback-answer.cjs +31 -0
- package/highlevel/methods/ephemeral/get-ephemeral-callback-answer.d.cts +29 -0
- package/highlevel/methods/ephemeral/get-ephemeral-callback-answer.d.ts +29 -0
- package/highlevel/methods/ephemeral/get-ephemeral-callback-answer.js +26 -0
- package/highlevel/methods/ephemeral/get-welcome-messages.cjs +29 -0
- package/highlevel/methods/ephemeral/get-welcome-messages.d.cts +8 -0
- package/highlevel/methods/ephemeral/get-welcome-messages.d.ts +8 -0
- package/highlevel/methods/ephemeral/get-welcome-messages.js +24 -0
- package/highlevel/methods/ephemeral/send-ephemeral-message.cjs +48 -0
- package/highlevel/methods/ephemeral/send-ephemeral-message.d.cts +47 -0
- package/highlevel/methods/ephemeral/send-ephemeral-message.d.ts +47 -0
- package/highlevel/methods/ephemeral/send-ephemeral-message.js +43 -0
- package/highlevel/methods/files/download-iterable.cjs +7 -2
- package/highlevel/methods/files/download-iterable.js +7 -2
- package/highlevel/methods/files/download-iterable.test.d.cts +1 -0
- package/highlevel/methods/files/download-iterable.test.d.ts +1 -0
- package/highlevel/methods/files/download-stream.cjs +5 -6
- package/highlevel/methods/files/download-stream.js +5 -6
- package/highlevel/methods/files/normalize-input-media.cjs +25 -4
- package/highlevel/methods/files/normalize-input-media.js +25 -4
- package/highlevel/methods/forums/create-forum-topic.d.cts +7 -0
- package/highlevel/methods/forums/create-forum-topic.d.ts +7 -0
- package/highlevel/methods/forums/delete-forum-topic-history.d.cts +1 -1
- package/highlevel/methods/forums/delete-forum-topic-history.d.ts +1 -1
- package/highlevel/methods/forums/edit-forum-topic.cjs +2 -2
- package/highlevel/methods/forums/edit-forum-topic.d.cts +2 -2
- package/highlevel/methods/forums/edit-forum-topic.d.ts +2 -2
- package/highlevel/methods/forums/edit-forum-topic.js +2 -2
- package/highlevel/methods/forums/get-forum-topics-by-id.cjs +5 -1
- package/highlevel/methods/forums/get-forum-topics-by-id.d.cts +9 -1
- package/highlevel/methods/forums/get-forum-topics-by-id.d.ts +9 -1
- package/highlevel/methods/forums/get-forum-topics-by-id.js +5 -1
- package/highlevel/methods/forums/get-forum-topics-by-id.test.d.cts +1 -0
- package/highlevel/methods/forums/get-forum-topics-by-id.test.d.ts +1 -0
- package/highlevel/methods/forums/get-forum-topics.cjs +1 -1
- package/highlevel/methods/forums/get-forum-topics.js +1 -1
- package/highlevel/methods/forums/toggle-forum-topic-closed.cjs +1 -1
- package/highlevel/methods/forums/toggle-forum-topic-closed.d.cts +1 -1
- package/highlevel/methods/forums/toggle-forum-topic-closed.d.ts +1 -1
- package/highlevel/methods/forums/toggle-forum-topic-closed.js +1 -1
- package/highlevel/methods/forums/toggle-forum-topic-pinned.d.cts +1 -1
- package/highlevel/methods/forums/toggle-forum-topic-pinned.d.ts +1 -1
- package/highlevel/methods/forums/toggle-general-topic-hidden.cjs +3 -3
- package/highlevel/methods/forums/toggle-general-topic-hidden.js +4 -4
- package/highlevel/methods/gifts/buy-resale-gift.cjs +5 -2
- package/highlevel/methods/gifts/buy-resale-gift.d.cts +11 -1
- package/highlevel/methods/gifts/buy-resale-gift.d.ts +11 -1
- package/highlevel/methods/gifts/buy-resale-gift.js +5 -2
- package/highlevel/methods/messages/forward-messages.cjs +1 -0
- package/highlevel/methods/messages/forward-messages.d.cts +2 -0
- package/highlevel/methods/messages/forward-messages.d.ts +2 -0
- package/highlevel/methods/messages/forward-messages.js +1 -0
- package/highlevel/methods/messages/normalize-rich-message.cjs +3 -0
- package/highlevel/methods/messages/normalize-rich-message.js +3 -0
- package/highlevel/methods/messages/send-common.d.cts +7 -1
- package/highlevel/methods/messages/send-common.d.ts +7 -1
- package/highlevel/methods/messages/send-text.cjs +70 -35
- package/highlevel/methods/messages/send-text.js +70 -35
- package/highlevel/methods/messages/send-typing.d.cts +3 -3
- package/highlevel/methods/messages/send-typing.d.ts +3 -3
- package/highlevel/methods/messages/set-typing.cjs +1 -1
- package/highlevel/methods/messages/set-typing.d.cts +2 -2
- package/highlevel/methods/messages/set-typing.d.ts +2 -2
- package/highlevel/methods/messages/set-typing.js +1 -1
- package/highlevel/methods/users/resolve-peer.cjs +11 -1
- package/highlevel/methods/users/resolve-peer.js +11 -1
- package/highlevel/methods.d.cts +19 -0
- package/highlevel/methods.d.ts +19 -0
- package/highlevel/storage/service/peers.cjs +25 -0
- package/highlevel/storage/service/peers.js +25 -0
- package/highlevel/storage/service/peers.test.d.cts +1 -0
- package/highlevel/storage/service/peers.test.d.ts +1 -0
- package/highlevel/types/bots/keyboards/builder.cjs +5 -5
- package/highlevel/types/bots/keyboards/builder.d.cts +8 -9
- package/highlevel/types/bots/keyboards/builder.d.ts +8 -9
- package/highlevel/types/bots/keyboards/builder.js +5 -5
- package/highlevel/types/bots/keyboards/factories.cjs +51 -103
- package/highlevel/types/bots/keyboards/factories.d.cts +58 -89
- package/highlevel/types/bots/keyboards/factories.d.ts +58 -89
- package/highlevel/types/bots/keyboards/factories.js +51 -103
- package/highlevel/types/bots/keyboards/index.d.cts +3 -3
- package/highlevel/types/bots/keyboards/index.d.ts +3 -3
- package/highlevel/types/bots/keyboards/normalize.cjs +131 -0
- package/highlevel/types/bots/keyboards/normalize.d.cts +10 -0
- package/highlevel/types/bots/keyboards/normalize.d.ts +10 -0
- package/highlevel/types/bots/keyboards/normalize.js +126 -0
- package/highlevel/types/bots/keyboards/types.d.cts +160 -4
- package/highlevel/types/bots/keyboards/types.d.ts +160 -4
- package/highlevel/types/conversation.cjs +8 -0
- package/highlevel/types/conversation.d.cts +1 -0
- package/highlevel/types/conversation.d.ts +1 -0
- package/highlevel/types/conversation.js +10 -2
- package/highlevel/types/conversation.test.d.cts +1 -0
- package/highlevel/types/conversation.test.d.ts +1 -0
- package/highlevel/types/messages/dialog.cjs +8 -1
- package/highlevel/types/messages/dialog.d.cts +3 -0
- package/highlevel/types/messages/dialog.d.ts +3 -0
- package/highlevel/types/messages/dialog.js +8 -1
- package/highlevel/types/messages/dialog.test.d.cts +1 -0
- package/highlevel/types/messages/dialog.test.d.ts +1 -0
- package/highlevel/types/messages/ephemeral-message.cjs +135 -0
- package/highlevel/types/messages/ephemeral-message.d.cts +75 -0
- package/highlevel/types/messages/ephemeral-message.d.ts +75 -0
- package/highlevel/types/messages/ephemeral-message.js +130 -0
- package/highlevel/types/messages/index.d.cts +1 -0
- package/highlevel/types/messages/index.d.ts +1 -0
- package/highlevel/types/messages/message-action.cjs +14 -1
- package/highlevel/types/messages/message-action.d.cts +18 -1
- package/highlevel/types/messages/message-action.d.ts +18 -1
- package/highlevel/types/messages/message-action.js +14 -1
- package/highlevel/types/messages/message.cjs +7 -2
- package/highlevel/types/messages/message.d.cts +2 -2
- package/highlevel/types/messages/message.d.ts +2 -2
- package/highlevel/types/messages/message.js +8 -3
- package/highlevel/types/messages/replied-message.cjs +5 -1
- package/highlevel/types/messages/replied-message.d.cts +5 -1
- package/highlevel/types/messages/replied-message.d.ts +5 -1
- package/highlevel/types/messages/replied-message.js +5 -1
- package/highlevel/types/messages/rich/inner.cjs +37 -0
- package/highlevel/types/messages/rich/inner.d.cts +19 -0
- package/highlevel/types/messages/rich/inner.d.ts +19 -0
- package/highlevel/types/messages/rich/inner.js +37 -0
- package/highlevel/types/peers/chat.cjs +23 -3
- package/highlevel/types/peers/chat.d.cts +8 -3
- package/highlevel/types/peers/chat.d.ts +8 -3
- package/highlevel/types/peers/chat.js +24 -4
- package/highlevel/types/peers/community-peer.cjs +60 -0
- package/highlevel/types/peers/community-peer.d.cts +37 -0
- package/highlevel/types/peers/community-peer.d.ts +37 -0
- package/highlevel/types/peers/community-peer.js +55 -0
- package/highlevel/types/peers/full-chat.cjs +24 -5
- package/highlevel/types/peers/full-chat.d.cts +7 -0
- package/highlevel/types/peers/full-chat.d.ts +7 -0
- package/highlevel/types/peers/full-chat.js +24 -5
- package/highlevel/types/peers/index.d.cts +1 -0
- package/highlevel/types/peers/index.d.ts +1 -0
- package/highlevel/types/peers/peer.cjs +2 -0
- package/highlevel/types/peers/peer.js +2 -0
- package/highlevel/types/peers/typing-status.d.cts +4 -1
- package/highlevel/types/peers/typing-status.d.ts +4 -1
- package/highlevel/types/peers/user.cjs +6 -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 +6 -0
- package/highlevel/types/updates/delete-ephemeral-messages-update.cjs +27 -0
- package/highlevel/types/updates/delete-ephemeral-messages-update.d.cts +15 -0
- package/highlevel/types/updates/delete-ephemeral-messages-update.d.ts +15 -0
- package/highlevel/types/updates/delete-ephemeral-messages-update.js +22 -0
- package/highlevel/types/updates/ephemeral-callback-query.cjs +69 -0
- package/highlevel/types/updates/ephemeral-callback-query.d.cts +44 -0
- package/highlevel/types/updates/ephemeral-callback-query.d.ts +44 -0
- package/highlevel/types/updates/ephemeral-callback-query.js +64 -0
- package/highlevel/types/updates/index.d.cts +16 -2
- package/highlevel/types/updates/index.d.ts +16 -2
- package/highlevel/types/updates/parse-update.cjs +12 -1
- package/highlevel/types/updates/parse-update.js +12 -1
- package/highlevel/types/updates/user-typing-update.cjs +18 -0
- package/highlevel/types/updates/user-typing-update.d.cts +9 -0
- package/highlevel/types/updates/user-typing-update.d.ts +9 -0
- package/highlevel/types/updates/user-typing-update.js +18 -0
- package/highlevel/updates/manager.cjs +71 -41
- package/highlevel/updates/manager.d.cts +1 -0
- package/highlevel/updates/manager.d.ts +1 -0
- package/highlevel/updates/manager.js +71 -41
- package/highlevel/updates/manager.test.d.cts +1 -0
- package/highlevel/updates/manager.test.d.ts +1 -0
- package/highlevel/utils/stream-utils.cjs +8 -4
- package/highlevel/utils/stream-utils.js +8 -4
- package/highlevel/utils/stream-utils.test.d.cts +1 -0
- package/highlevel/utils/stream-utils.test.d.ts +1 -0
- package/highlevel/utils/walk-page-blocks.cjs +9 -0
- package/highlevel/utils/walk-page-blocks.js +9 -0
- package/index.cjs +10 -0
- package/index.js +11 -1
- package/methods.cjs +33 -0
- package/methods.js +33 -0
- package/network/client.cjs +4 -3
- package/network/client.d.cts +1 -0
- package/network/client.d.ts +1 -0
- package/network/client.js +4 -3
- package/network/middlewares/flood-waiter.cjs +2 -2
- package/network/middlewares/flood-waiter.js +2 -2
- package/network/middlewares/internal-errors.cjs +1 -1
- package/network/middlewares/internal-errors.js +1 -1
- package/network/middlewares/media-throttle.cjs +1 -1
- package/network/middlewares/media-throttle.js +1 -1
- package/network/mtproto-session.cjs +9 -2
- package/network/mtproto-session.d.cts +3 -1
- package/network/mtproto-session.d.ts +3 -1
- package/network/mtproto-session.js +9 -2
- package/network/mtproxy/index.cjs +4 -3
- package/network/mtproxy/index.d.cts +2 -2
- package/network/mtproxy/index.d.ts +2 -2
- package/network/mtproxy/index.js +4 -3
- package/network/network-manager.cjs +44 -16
- package/network/network-manager.d.cts +10 -3
- package/network/network-manager.d.ts +10 -3
- package/network/network-manager.js +45 -17
- package/network/network-manager.test.d.cts +1 -0
- package/network/network-manager.test.d.ts +1 -0
- package/network/persistent-connection.cjs +10 -2
- package/network/persistent-connection.js +10 -2
- package/network/session-connection.cjs +15 -6
- package/network/session-connection.js +15 -6
- package/network/session-connection.test.d.cts +1 -0
- package/network/session-connection.test.d.ts +1 -0
- package/network/transports/abstract.cjs +16 -0
- package/network/transports/abstract.d.cts +8 -2
- package/network/transports/abstract.d.ts +8 -2
- package/network/transports/abstract.js +17 -1
- package/network/transports/obfuscated.cjs +3 -1
- package/network/transports/obfuscated.js +3 -1
- package/package.json +6 -6
- package/tl/api-schema.json +1 -1
- package/tl/binary/reader.cjs +221 -103
- package/tl/binary/reader.js +221 -103
- package/tl/binary/writer.cjs +693 -277
- package/tl/binary/writer.js +693 -277
- package/tl/compat/reader.cjs +93 -0
- package/tl/compat/reader.js +93 -0
- package/tl/index.d.cts +12529 -4762
- package/tl/index.d.ts +12529 -4762
- package/tl/inner-tl.cjs +90 -24
- package/tl/inner-tl.js +90 -24
- package/tl/raw-errors.json +1 -1
- package/tl/rpc-error.test.d.cts +1 -0
- package/tl/rpc-error.test.d.ts +1 -0
- package/utils/abort-signal.cjs +1 -12
- package/utils/abort-signal.js +1 -12
- package/utils/abort-signal.test.d.cts +1 -0
- package/utils/abort-signal.test.d.ts +1 -0
- package/utils/binary/compat.cjs +189 -29
- package/utils/binary/compat.js +189 -29
- package/utils/early-timer.cjs +3 -11
- package/utils/early-timer.js +3 -11
- package/utils/early-timer.test.d.cts +1 -0
- package/utils/early-timer.test.d.ts +1 -0
- package/utils/function-utils.cjs +9 -4
- package/utils/function-utils.js +9 -4
- package/utils/links/bots.cjs +10 -2
- package/utils/links/bots.js +10 -2
- package/utils/peer-utils.cjs +8 -0
- package/utils/peer-utils.js +8 -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 = 229;
|
|
17
17
|
class RpcError extends Error {
|
|
18
18
|
constructor(code, text) {
|
|
19
19
|
super("Telegram API error " + code + ": " + text);
|
|
@@ -21,7 +21,7 @@ class RpcError extends Error {
|
|
|
21
21
|
this.text = text;
|
|
22
22
|
}
|
|
23
23
|
static is(err, text) {
|
|
24
|
-
return err.constructor === RpcError && (!text || err.text === text);
|
|
24
|
+
return err != null && err.constructor === RpcError && (!text || err.text === text);
|
|
25
25
|
}
|
|
26
26
|
is(text) {
|
|
27
27
|
return this.text === text;
|
|
@@ -45,30 +45,69 @@ RpcError.fromTl = function(obj) {
|
|
|
45
45
|
} else if ((match = err.text.match(/^STATS_MIGRATE_(\d+)$/)) != null) {
|
|
46
46
|
err.text = "STATS_MIGRATE_%d";
|
|
47
47
|
err.dc = parseInt(match[1]);
|
|
48
|
+
} else if ((match = err.text.match(/^USER_MIGRATE_(\d+)$/)) != null) {
|
|
49
|
+
err.text = "USER_MIGRATE_%d";
|
|
50
|
+
err.newDc = parseInt(match[1]);
|
|
48
51
|
} else if ((match = err.text.match(/^EMAIL_UNCONFIRMED_(\d+)$/)) != null) {
|
|
49
52
|
err.text = "EMAIL_UNCONFIRMED_%d";
|
|
50
53
|
err.codeLength = parseInt(match[1]);
|
|
54
|
+
} else if ((match = err.text.match(/^FILE_REFERENCE_(\d+)_EMPTY$/)) != null) {
|
|
55
|
+
err.text = "FILE_REFERENCE_%d_EMPTY";
|
|
56
|
+
err.duration = parseInt(match[1]);
|
|
57
|
+
} else if ((match = err.text.match(/^FILE_REFERENCE_(\d+)_EXPIRED$/)) != null) {
|
|
58
|
+
err.text = "FILE_REFERENCE_%d_EXPIRED";
|
|
59
|
+
err.duration = parseInt(match[1]);
|
|
60
|
+
} else if ((match = err.text.match(/^FILE_REFERENCE_(\d+)_INVALID$/)) != null) {
|
|
61
|
+
err.text = "FILE_REFERENCE_%d_INVALID";
|
|
62
|
+
err.duration = parseInt(match[1]);
|
|
51
63
|
} else if ((match = err.text.match(/^PASSWORD_TOO_FRESH_(\d+)$/)) != null) {
|
|
52
64
|
err.text = "PASSWORD_TOO_FRESH_%d";
|
|
53
65
|
err.seconds = parseInt(match[1]);
|
|
54
66
|
} else if ((match = err.text.match(/^SESSION_TOO_FRESH_(\d+)$/)) != null) {
|
|
55
67
|
err.text = "SESSION_TOO_FRESH_%d";
|
|
56
68
|
err.seconds = parseInt(match[1]);
|
|
69
|
+
} else if ((match = err.text.match(/^STARGIFT_RESELL_TOO_EARLY_(\d+)$/)) != null) {
|
|
70
|
+
err.text = "STARGIFT_RESELL_TOO_EARLY_%d";
|
|
71
|
+
err.duration = parseInt(match[1]);
|
|
72
|
+
} else if ((match = err.text.match(/^STARGIFT_TRANSFER_TOO_EARLY_(\d+)$/)) != null) {
|
|
73
|
+
err.text = "STARGIFT_TRANSFER_TOO_EARLY_%d";
|
|
74
|
+
err.duration = parseInt(match[1]);
|
|
75
|
+
} else if ((match = err.text.match(/^STORY_LIVE_ALREADY_(\d+)$/)) != null) {
|
|
76
|
+
err.text = "STORY_LIVE_ALREADY_%d";
|
|
77
|
+
err.duration = parseInt(match[1]);
|
|
78
|
+
} else if ((match = err.text.match(/^STORY_SEND_FLOOD_MONTHLY_(\d+)$/)) != null) {
|
|
79
|
+
err.text = "STORY_SEND_FLOOD_MONTHLY_%d";
|
|
80
|
+
err.duration = parseInt(match[1]);
|
|
81
|
+
} else if ((match = err.text.match(/^STORY_SEND_FLOOD_WEEKLY_(\d+)$/)) != null) {
|
|
82
|
+
err.text = "STORY_SEND_FLOOD_WEEKLY_%d";
|
|
83
|
+
err.duration = parseInt(match[1]);
|
|
84
|
+
} else if ((match = err.text.match(/^FILE_PART_(\d+)_MISSING$/)) != null) {
|
|
85
|
+
err.text = "FILE_PART_%d_MISSING";
|
|
86
|
+
err.which = parseInt(match[1]);
|
|
87
|
+
} else if ((match = err.text.match(/^ALLOW_PAYMENT_REQUIRED_(\d+)$/)) != null) {
|
|
88
|
+
err.text = "ALLOW_PAYMENT_REQUIRED_%d";
|
|
89
|
+
err.duration = parseInt(match[1]);
|
|
57
90
|
} else if ((match = err.text.match(/^PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_(\d+)MIN$/)) != null) {
|
|
58
91
|
err.text = "PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_%dMIN";
|
|
59
92
|
err.minutes = parseInt(match[1]);
|
|
60
93
|
} else if ((match = err.text.match(/^2FA_CONFIRM_WAIT_(\d+)$/)) != null) {
|
|
61
94
|
err.text = "2FA_CONFIRM_WAIT_%d";
|
|
62
95
|
err.seconds = parseInt(match[1]);
|
|
96
|
+
} else if ((match = err.text.match(/^FLOOD_PREMIUM_WAIT_(\d+)$/)) != null) {
|
|
97
|
+
err.text = "FLOOD_PREMIUM_WAIT_%d";
|
|
98
|
+
err.seconds = parseInt(match[1]);
|
|
99
|
+
} else if ((match = err.text.match(/^PREMIUM_SUB_ACTIVE_UNTIL_(\d+)$/)) != null) {
|
|
100
|
+
err.text = "PREMIUM_SUB_ACTIVE_UNTIL_%d";
|
|
101
|
+
err.duration = parseInt(match[1]);
|
|
63
102
|
} else if ((match = err.text.match(/^SLOWMODE_WAIT_(\d+)$/)) != null) {
|
|
64
103
|
err.text = "SLOWMODE_WAIT_%d";
|
|
65
104
|
err.seconds = parseInt(match[1]);
|
|
66
105
|
} else if ((match = err.text.match(/^TAKEOUT_INIT_DELAY_(\d+)$/)) != null) {
|
|
67
106
|
err.text = "TAKEOUT_INIT_DELAY_%d";
|
|
68
107
|
err.seconds = parseInt(match[1]);
|
|
69
|
-
} else if ((match = err.text.match(/^
|
|
70
|
-
err.text = "
|
|
71
|
-
err.
|
|
108
|
+
} else if ((match = err.text.match(/^AUTH_RESTART_(\d+)$/)) != null) {
|
|
109
|
+
err.text = "AUTH_RESTART_%d";
|
|
110
|
+
err.duration = parseInt(match[1]);
|
|
72
111
|
} else if ((match = err.text.match(/^FLOOD_TEST_PHONE_WAIT_(\d+)$/)) != null) {
|
|
73
112
|
err.text = "FLOOD_TEST_PHONE_WAIT_%d";
|
|
74
113
|
err.seconds = parseInt(match[1]);
|
|
@@ -78,9 +117,6 @@ RpcError.fromTl = function(obj) {
|
|
|
78
117
|
} else if ((match = err.text.match(/^INTERDC_(\d+)_CALL_RICH_ERROR$/)) != null) {
|
|
79
118
|
err.text = "INTERDC_%d_CALL_RICH_ERROR";
|
|
80
119
|
err.dc = parseInt(match[1]);
|
|
81
|
-
} else if ((match = err.text.match(/^USER_MIGRATE_(\d+)$/)) != null) {
|
|
82
|
-
err.text = "USER_MIGRATE_%d";
|
|
83
|
-
err.newDc = parseInt(match[1]);
|
|
84
120
|
}
|
|
85
121
|
return err;
|
|
86
122
|
};
|
|
@@ -106,19 +142,19 @@ const isAnyPeer = /* @__PURE__ */ _isAny("peerUser", "peerChat", "peerChannel");
|
|
|
106
142
|
const isAnyUser = /* @__PURE__ */ _isAny("userEmpty", "user");
|
|
107
143
|
const isAnyUserProfilePhoto = /* @__PURE__ */ _isAny("userProfilePhotoEmpty", "userProfilePhoto");
|
|
108
144
|
const isAnyUserStatus = /* @__PURE__ */ _isAny("userStatusEmpty", "userStatusOnline", "userStatusOffline", "userStatusRecently", "userStatusLastWeek", "userStatusLastMonth");
|
|
109
|
-
const isAnyChat = /* @__PURE__ */ _isAny("chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden");
|
|
110
|
-
const isAnyChatFull = /* @__PURE__ */ _isAny("chatFull", "channelFull");
|
|
145
|
+
const isAnyChat = /* @__PURE__ */ _isAny("chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community");
|
|
146
|
+
const isAnyChatFull = /* @__PURE__ */ _isAny("chatFull", "channelFull", "communityFull");
|
|
111
147
|
const isAnyChatParticipant = /* @__PURE__ */ _isAny("chatParticipant", "chatParticipantCreator", "chatParticipantAdmin");
|
|
112
148
|
const isAnyChatParticipants = /* @__PURE__ */ _isAny("chatParticipantsForbidden", "chatParticipants");
|
|
113
149
|
const isAnyChatPhoto = /* @__PURE__ */ _isAny("chatPhotoEmpty", "chatPhoto");
|
|
114
150
|
const isAnyMessage = /* @__PURE__ */ _isAny("messageEmpty", "message", "messageService");
|
|
115
151
|
const isAnyMessageMedia = /* @__PURE__ */ _isAny("messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream");
|
|
116
|
-
const isAnyMessageAction = /* @__PURE__ */ _isAny("messageActionEmpty", "messageActionChatCreate", "messageActionChatEditTitle", "messageActionChatEditPhoto", "messageActionChatDeletePhoto", "messageActionChatAddUser", "messageActionChatDeleteUser", "messageActionChatJoinedByLink", "messageActionChannelCreate", "messageActionChatMigrateTo", "messageActionChannelMigrateFrom", "messageActionPinMessage", "messageActionHistoryClear", "messageActionGameScore", "messageActionPaymentSentMe", "messageActionPaymentSent", "messageActionPhoneCall", "messageActionScreenshotTaken", "messageActionCustomAction", "messageActionBotAllowed", "messageActionSecureValuesSentMe", "messageActionSecureValuesSent", "messageActionContactSignUp", "messageActionGeoProximityReached", "messageActionGroupCall", "messageActionInviteToGroupCall", "messageActionSetMessagesTTL", "messageActionGroupCallScheduled", "messageActionSetChatTheme", "messageActionChatJoinedByRequest", "messageActionWebViewDataSentMe", "messageActionWebViewDataSent", "messageActionGiftPremium", "messageActionTopicCreate", "messageActionTopicEdit", "messageActionSuggestProfilePhoto", "messageActionRequestedPeer", "messageActionSetChatWallPaper", "messageActionGiftCode", "messageActionGiveawayLaunch", "messageActionGiveawayResults", "messageActionBoostApply", "messageActionRequestedPeerSentMe", "messageActionPaymentRefunded", "messageActionGiftStars", "messageActionPrizeStars", "messageActionStarGift", "messageActionStarGiftUnique", "messageActionPaidMessagesRefunded", "messageActionPaidMessagesPrice", "messageActionConferenceCall", "messageActionTodoCompletions", "messageActionTodoAppendTasks", "messageActionSuggestedPostApproval", "messageActionSuggestedPostSuccess", "messageActionSuggestedPostRefund", "messageActionGiftTon", "messageActionSuggestBirthday", "messageActionStarGiftPurchaseOffer", "messageActionStarGiftPurchaseOfferDeclined", "messageActionNewCreatorPending", "messageActionChangeCreator", "messageActionNoForwardsToggle", "messageActionNoForwardsRequest", "messageActionPollAppendAnswer", "messageActionPollDeleteAnswer", "messageActionManagedBotCreated");
|
|
117
|
-
const isAnyDialog = /* @__PURE__ */ _isAny("dialog", "dialogFolder");
|
|
152
|
+
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", "messageActionChangeCommunity", "messageActionChatJoinedViaCommunity");
|
|
153
|
+
const isAnyDialog = /* @__PURE__ */ _isAny("dialog", "dialogFolder", "dialogCommunity");
|
|
118
154
|
const isAnyPhoto = /* @__PURE__ */ _isAny("photoEmpty", "photo");
|
|
119
155
|
const isAnyPhotoSize = /* @__PURE__ */ _isAny("photoSizeEmpty", "photoSize", "photoCachedSize", "photoStrippedSize", "photoSizeProgressive", "photoPathSize");
|
|
120
156
|
const isAnyGeoPoint = /* @__PURE__ */ _isAny("geoPointEmpty", "geoPoint");
|
|
121
|
-
const isAnyInputNotifyPeer = /* @__PURE__ */ _isAny("inputNotifyPeer", "inputNotifyUsers", "inputNotifyChats", "inputNotifyBroadcasts", "inputNotifyForumTopic");
|
|
157
|
+
const isAnyInputNotifyPeer = /* @__PURE__ */ _isAny("inputNotifyPeer", "inputNotifyUsers", "inputNotifyChats", "inputNotifyBroadcasts", "inputNotifyForumTopic", "inputNotifyCommunity");
|
|
122
158
|
const isAnyInputPeerNotifySettings = /* @__PURE__ */ _isAny("inputPeerNotifySettings");
|
|
123
159
|
const isAnyPeerNotifySettings = /* @__PURE__ */ _isAny("peerNotifySettings");
|
|
124
160
|
const isAnyPeerSettings = /* @__PURE__ */ _isAny("peerSettings");
|
|
@@ -129,7 +165,7 @@ const isAnyContact = /* @__PURE__ */ _isAny("contact");
|
|
|
129
165
|
const isAnyImportedContact = /* @__PURE__ */ _isAny("importedContact");
|
|
130
166
|
const isAnyContactStatus = /* @__PURE__ */ _isAny("contactStatus");
|
|
131
167
|
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", "updateBotGuestChatQuery", "updateAiComposeTones", "updateJoinChatWebViewDecision", "updateNewBotConnection", "updateWebBrowserSettings", "updateWebBrowserException", "
|
|
168
|
+
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", "updateJoinChatWebViewDecision", "updateNewBotConnection", "updateWebBrowserSettings", "updateWebBrowserException", "updateNewEphemeralMessage", "updateDeleteEphemeralMessages", "updateEditEphemeralMessage", "updateEphemeralBotCallbackQuery", "updateBotStarsSubscription", "mtcute.dummyUpdate");
|
|
133
169
|
const isAnyUpdates = /* @__PURE__ */ _isAny("updatesTooLong", "updateShortMessage", "updateShortChatMessage", "updateShort", "updatesCombined", "updates", "updateShortSentMessage");
|
|
134
170
|
const isAnyDcOption = /* @__PURE__ */ _isAny("dcOption");
|
|
135
171
|
const isAnyConfig = /* @__PURE__ */ _isAny("config");
|
|
@@ -141,8 +177,8 @@ const isAnyInputEncryptedFile = /* @__PURE__ */ _isAny("inputEncryptedFileEmpty"
|
|
|
141
177
|
const isAnyEncryptedMessage = /* @__PURE__ */ _isAny("encryptedMessage", "encryptedMessageService");
|
|
142
178
|
const isAnyInputDocument = /* @__PURE__ */ _isAny("inputDocumentEmpty", "inputDocument");
|
|
143
179
|
const isAnyDocument = /* @__PURE__ */ _isAny("documentEmpty", "document");
|
|
144
|
-
const isAnyNotifyPeer = /* @__PURE__ */ _isAny("notifyPeer", "notifyUsers", "notifyChats", "notifyBroadcasts", "notifyForumTopic");
|
|
145
|
-
const isAnySendMessageAction = /* @__PURE__ */ _isAny("sendMessageTypingAction", "sendMessageCancelAction", "sendMessageRecordVideoAction", "sendMessageUploadVideoAction", "sendMessageRecordAudioAction", "sendMessageUploadAudioAction", "sendMessageUploadPhotoAction", "sendMessageUploadDocumentAction", "sendMessageGeoLocationAction", "sendMessageChooseContactAction", "sendMessageGamePlayAction", "sendMessageRecordRoundAction", "sendMessageUploadRoundAction", "speakingInGroupCallAction", "sendMessageHistoryImportAction", "sendMessageChooseStickerAction", "sendMessageEmojiInteraction", "sendMessageEmojiInteractionSeen", "sendMessageTextDraftAction", "inputSendMessageRichMessageDraftAction", "sendMessageRichMessageDraftAction");
|
|
180
|
+
const isAnyNotifyPeer = /* @__PURE__ */ _isAny("notifyPeer", "notifyUsers", "notifyChats", "notifyBroadcasts", "notifyForumTopic", "notifyCommunity");
|
|
181
|
+
const isAnySendMessageAction = /* @__PURE__ */ _isAny("sendMessageTypingAction", "sendMessageCancelAction", "sendMessageRecordVideoAction", "sendMessageUploadVideoAction", "sendMessageRecordAudioAction", "sendMessageUploadAudioAction", "sendMessageUploadPhotoAction", "sendMessageUploadDocumentAction", "sendMessageGeoLocationAction", "sendMessageChooseContactAction", "sendMessageGamePlayAction", "sendMessageRecordRoundAction", "sendMessageUploadRoundAction", "speakingInGroupCallAction", "sendMessageHistoryImportAction", "sendMessageChooseStickerAction", "sendMessageEmojiInteraction", "sendMessageEmojiInteractionSeen", "sendMessageTextDraftAction", "inputSendMessageRichMessageDraftAction", "sendMessageRichMessageDraftAction", "sendMessageStopDraftAction");
|
|
146
182
|
const isAnyInputPrivacyKey = /* @__PURE__ */ _isAny("inputPrivacyKeyStatusTimestamp", "inputPrivacyKeyChatInvite", "inputPrivacyKeyPhoneCall", "inputPrivacyKeyPhoneP2P", "inputPrivacyKeyForwards", "inputPrivacyKeyProfilePhoto", "inputPrivacyKeyPhoneNumber", "inputPrivacyKeyAddedByPhone", "inputPrivacyKeyVoiceMessages", "inputPrivacyKeyAbout", "inputPrivacyKeyBirthday", "inputPrivacyKeyStarGiftsAutoSave", "inputPrivacyKeyNoPaidMessages", "inputPrivacyKeySavedMusic");
|
|
147
183
|
const isAnyPrivacyKey = /* @__PURE__ */ _isAny("privacyKeyStatusTimestamp", "privacyKeyChatInvite", "privacyKeyPhoneCall", "privacyKeyPhoneP2P", "privacyKeyForwards", "privacyKeyProfilePhoto", "privacyKeyPhoneNumber", "privacyKeyAddedByPhone", "privacyKeyVoiceMessages", "privacyKeyAbout", "privacyKeyBirthday", "privacyKeyStarGiftsAutoSave", "privacyKeyNoPaidMessages", "privacyKeySavedMusic");
|
|
148
184
|
const isAnyInputPrivacyRule = /* @__PURE__ */ _isAny("inputPrivacyValueAllowContacts", "inputPrivacyValueAllowAll", "inputPrivacyValueAllowUsers", "inputPrivacyValueDisallowContacts", "inputPrivacyValueDisallowAll", "inputPrivacyValueDisallowUsers", "inputPrivacyValueAllowChatParticipants", "inputPrivacyValueDisallowChatParticipants", "inputPrivacyValueAllowCloseFriends", "inputPrivacyValueAllowPremium", "inputPrivacyValueAllowBots", "inputPrivacyValueDisallowBots");
|
|
@@ -159,7 +195,7 @@ const isAnyInputStickerSet = /* @__PURE__ */ _isAny("inputStickerSetEmpty", "inp
|
|
|
159
195
|
const isAnyStickerSet = /* @__PURE__ */ _isAny("stickerSet");
|
|
160
196
|
const isAnyBotCommand = /* @__PURE__ */ _isAny("botCommand");
|
|
161
197
|
const isAnyBotInfo = /* @__PURE__ */ _isAny("botInfo");
|
|
162
|
-
const isAnyKeyboardButton = /* @__PURE__ */ _isAny("keyboardButton"
|
|
198
|
+
const isAnyKeyboardButton = /* @__PURE__ */ _isAny("keyboardButton");
|
|
163
199
|
const isAnyKeyboardButtonRow = /* @__PURE__ */ _isAny("keyboardButtonRow");
|
|
164
200
|
const isAnyReplyMarkup = /* @__PURE__ */ _isAny("replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup");
|
|
165
201
|
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");
|
|
@@ -186,8 +222,8 @@ const isAnyInputStickeredMedia = /* @__PURE__ */ _isAny("inputStickeredMediaPhot
|
|
|
186
222
|
const isAnyGame = /* @__PURE__ */ _isAny("game");
|
|
187
223
|
const isAnyInputGame = /* @__PURE__ */ _isAny("inputGameID", "inputGameShortName");
|
|
188
224
|
const isAnyHighScore = /* @__PURE__ */ _isAny("highScore");
|
|
189
|
-
const isAnyRichText = /* @__PURE__ */ _isAny("textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate");
|
|
190
|
-
const isAnyPageBlock = /* @__PURE__ */ _isAny("pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks");
|
|
225
|
+
const isAnyRichText = /* @__PURE__ */ _isAny("textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton");
|
|
226
|
+
const isAnyPageBlock = /* @__PURE__ */ _isAny("pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument");
|
|
191
227
|
const isAnyPhoneCallDiscardReason = /* @__PURE__ */ _isAny("phoneCallDiscardReasonMissed", "phoneCallDiscardReasonDisconnect", "phoneCallDiscardReasonHangup", "phoneCallDiscardReasonBusy", "phoneCallDiscardReasonMigrateConferenceCall");
|
|
192
228
|
const isAnyDataJSON = /* @__PURE__ */ _isAny("dataJSON");
|
|
193
229
|
const isAnyLabeledPrice = /* @__PURE__ */ _isAny("labeledPrice");
|
|
@@ -219,8 +255,8 @@ const isAnyRecentMeUrl = /* @__PURE__ */ _isAny("recentMeUrlUnknown", "recentMeU
|
|
|
219
255
|
const isAnyInputSingleMedia = /* @__PURE__ */ _isAny("inputSingleMedia");
|
|
220
256
|
const isAnyWebAuthorization = /* @__PURE__ */ _isAny("webAuthorization");
|
|
221
257
|
const isAnyInputMessage = /* @__PURE__ */ _isAny("inputMessageID", "inputMessageReplyTo", "inputMessagePinned", "inputMessageCallbackQuery");
|
|
222
|
-
const isAnyInputDialogPeer = /* @__PURE__ */ _isAny("inputDialogPeer", "inputDialogPeerFolder");
|
|
223
|
-
const isAnyDialogPeer = /* @__PURE__ */ _isAny("dialogPeer", "dialogPeerFolder");
|
|
258
|
+
const isAnyInputDialogPeer = /* @__PURE__ */ _isAny("inputDialogPeer", "inputDialogPeerFolder", "inputDialogPeerCommunity");
|
|
259
|
+
const isAnyDialogPeer = /* @__PURE__ */ _isAny("dialogPeer", "dialogPeerFolder", "dialogPeerCommunity");
|
|
224
260
|
const isAnyFileHash = /* @__PURE__ */ _isAny("fileHash");
|
|
225
261
|
const isAnyInputClientProxy = /* @__PURE__ */ _isAny("inputClientProxy");
|
|
226
262
|
const isAnyInputSecureFile = /* @__PURE__ */ _isAny("inputSecureFileUploaded", "inputSecureFile");
|
|
@@ -354,7 +390,7 @@ const isAnyMessagePeerVote = /* @__PURE__ */ _isAny("messagePeerVote", "messageP
|
|
|
354
390
|
const isAnyStoryViews = /* @__PURE__ */ _isAny("storyViews");
|
|
355
391
|
const isAnyStoryItem = /* @__PURE__ */ _isAny("storyItemDeleted", "storyItemSkipped", "storyItem");
|
|
356
392
|
const isAnyStoryView = /* @__PURE__ */ _isAny("storyView", "storyViewPublicForward", "storyViewPublicRepost");
|
|
357
|
-
const isAnyInputReplyTo = /* @__PURE__ */ _isAny("inputReplyToMessage", "inputReplyToStory", "inputReplyToMonoForum");
|
|
393
|
+
const isAnyInputReplyTo = /* @__PURE__ */ _isAny("inputReplyToMessage", "inputReplyToStory", "inputReplyToMonoForum", "inputReplyToEphemeralMessage");
|
|
358
394
|
const isAnyExportedStoryLink = /* @__PURE__ */ _isAny("exportedStoryLink");
|
|
359
395
|
const isAnyStoriesStealthMode = /* @__PURE__ */ _isAny("storiesStealthMode");
|
|
360
396
|
const isAnyMediaAreaCoordinates = /* @__PURE__ */ _isAny("mediaAreaCoordinates");
|
|
@@ -466,7 +502,7 @@ const isAnyStarGiftAuctionRound = /* @__PURE__ */ _isAny("starGiftAuctionRound",
|
|
|
466
502
|
const isAnyStarGiftAttributeRarity = /* @__PURE__ */ _isAny("starGiftAttributeRarity", "starGiftAttributeRarityUncommon", "starGiftAttributeRarityRare", "starGiftAttributeRarityEpic", "starGiftAttributeRarityLegendary");
|
|
467
503
|
const isAnyKeyboardButtonStyle = /* @__PURE__ */ _isAny("keyboardButtonStyle");
|
|
468
504
|
const isAnyInputMessageReadMetric = /* @__PURE__ */ _isAny("inputMessageReadMetric");
|
|
469
|
-
const isAnyInputAiComposeTone = /* @__PURE__ */ _isAny("inputAiComposeToneDefault", "inputAiComposeToneID", "inputAiComposeToneSlug");
|
|
505
|
+
const isAnyInputAiComposeTone = /* @__PURE__ */ _isAny("inputAiComposeToneDefault", "inputAiComposeToneID", "inputAiComposeToneSlug", "inputAiComposeToneSingleUse");
|
|
470
506
|
const isAnyAiComposeTone = /* @__PURE__ */ _isAny("aiComposeTone", "aiComposeToneDefault");
|
|
471
507
|
const isAnyAiComposeToneExample = /* @__PURE__ */ _isAny("aiComposeToneExample");
|
|
472
508
|
const isAnyJoinChatBotResult = /* @__PURE__ */ _isAny("joinChatBotResultApproved", "joinChatBotResultDeclined", "joinChatBotResultQueued", "joinChatBotResultWebView");
|
|
@@ -474,6 +510,15 @@ const isAnyWebDomainException = /* @__PURE__ */ _isAny("webDomainException");
|
|
|
474
510
|
const isAnyInputRichFile = /* @__PURE__ */ _isAny("inputRichFilePhoto", "inputRichFileDocument");
|
|
475
511
|
const isAnyInputRichMessage = /* @__PURE__ */ _isAny("inputRichMessage", "inputRichMessageHTML", "inputRichMessageMarkdown");
|
|
476
512
|
const isAnyRichMessage = /* @__PURE__ */ _isAny("richMessage");
|
|
513
|
+
const isAnyCommunityPeer = /* @__PURE__ */ _isAny("communityPeer");
|
|
514
|
+
const isAnyCommunityPeerRequest = /* @__PURE__ */ _isAny("communityPeerRequest");
|
|
515
|
+
const isAnyEphemeralMessage = /* @__PURE__ */ _isAny("ephemeralMessage");
|
|
516
|
+
const isAnyButtonType = /* @__PURE__ */ _isAny("buttonTypeDefault", "buttonTypeRequestPhone", "buttonTypeRequestGeoLocation", "buttonTypeRequestPoll", "buttonTypeRequestPeer", "inputButtonTypeRequestPeer", "buttonTypeSimpleWebView");
|
|
517
|
+
const isAnyInlineButtonType = /* @__PURE__ */ _isAny("inlineButtonTypeUrl", "inlineButtonTypeUrlAuth", "inputInlineButtonTypeUrlAuth", "inlineButtonTypeWebView", "inlineButtonTypeCallback", "inlineButtonTypeGame", "inlineButtonTypeBuy", "inlineButtonTypeSwitchInline", "inlineButtonTypeUserProfile", "inputInlineButtonTypeUserProfile", "inlineButtonTypeCopy", "inlineButtonTypeDisabled");
|
|
518
|
+
const isAnyKeyboardInlineButton = /* @__PURE__ */ _isAny("keyboardInlineButton");
|
|
519
|
+
const isAnyKeyboardInlineButtonRow = /* @__PURE__ */ _isAny("keyboardInlineButtonRow");
|
|
520
|
+
const isAnyRichButtonStyle = /* @__PURE__ */ _isAny("richButtonStyle");
|
|
521
|
+
const isAnyPageButton = /* @__PURE__ */ _isAny("pageButton");
|
|
477
522
|
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");
|
|
478
523
|
const isAnyAuth_SentCode = /* @__PURE__ */ _isAny("auth.sentCode", "auth.sentCodeSuccess", "auth.sentCodePaymentRequired");
|
|
479
524
|
const isAnyAuth_Authorization = /* @__PURE__ */ _isAny("auth.authorization", "auth.authorizationSignUpRequired");
|
|
@@ -484,6 +529,7 @@ const isAnyAuth_SentCodeType = /* @__PURE__ */ _isAny("auth.sentCodeTypeApp", "a
|
|
|
484
529
|
const isAnyAuth_LoginToken = /* @__PURE__ */ _isAny("auth.loginToken", "auth.loginTokenMigrateTo", "auth.loginTokenSuccess");
|
|
485
530
|
const isAnyAuth_LoggedOut = /* @__PURE__ */ _isAny("auth.loggedOut");
|
|
486
531
|
const isAnyAuth_PasskeyLoginOptions = /* @__PURE__ */ _isAny("auth.passkeyLoginOptions");
|
|
532
|
+
const isAnyAuth_FirebasePnvIntent = /* @__PURE__ */ _isAny("auth.firebasePnvIntent");
|
|
487
533
|
const isAnyContacts_Contacts = /* @__PURE__ */ _isAny("contacts.contactsNotModified", "contacts.contacts");
|
|
488
534
|
const isAnyContacts_ImportedContacts = /* @__PURE__ */ _isAny("contacts.importedContacts");
|
|
489
535
|
const isAnyContacts_Blocked = /* @__PURE__ */ _isAny("contacts.blocked", "contacts.blockedSlice");
|
|
@@ -556,6 +602,8 @@ const isAnyMessages_EmojiGameOutcome = /* @__PURE__ */ _isAny("messages.emojiGam
|
|
|
556
602
|
const isAnyMessages_EmojiGameInfo = /* @__PURE__ */ _isAny("messages.emojiGameUnavailable", "messages.emojiGameDiceInfo");
|
|
557
603
|
const isAnyMessages_ComposedMessageWithAI = /* @__PURE__ */ _isAny("messages.composedMessageWithAI");
|
|
558
604
|
const isAnyMessages_ChatInviteJoinResult = /* @__PURE__ */ _isAny("messages.chatInviteJoinResultOk", "messages.chatInviteJoinResultWebView");
|
|
605
|
+
const isAnyMessages_TranslatedRichMessage = /* @__PURE__ */ _isAny("messages.translatedRichMessage");
|
|
606
|
+
const isAnyMessages_ComposedRichMessageWithAI = /* @__PURE__ */ _isAny("messages.composedRichMessageWithAI");
|
|
559
607
|
const isAnyUpdates_State = /* @__PURE__ */ _isAny("updates.state");
|
|
560
608
|
const isAnyUpdates_Difference = /* @__PURE__ */ _isAny("updates.differenceEmpty", "updates.difference", "updates.differenceSlice", "updates.differenceTooLong");
|
|
561
609
|
const isAnyUpdates_ChannelDifference = /* @__PURE__ */ _isAny("updates.channelDifferenceEmpty", "updates.channelDifferenceTooLong", "updates.channelDifference");
|
|
@@ -690,7 +738,10 @@ const isAnySmsjobs_EligibilityToJoin = /* @__PURE__ */ _isAny("smsjobs.eligibleT
|
|
|
690
738
|
const isAnySmsjobs_Status = /* @__PURE__ */ _isAny("smsjobs.status");
|
|
691
739
|
const isAnyFragment_CollectibleInfo = /* @__PURE__ */ _isAny("fragment.collectibleInfo");
|
|
692
740
|
const isAnyAicompose_Tones = /* @__PURE__ */ _isAny("aicompose.tonesNotModified", "aicompose.tones");
|
|
693
|
-
const
|
|
741
|
+
const isAnyCommunities_PeerLinkRequests = /* @__PURE__ */ _isAny("communities.peerLinkRequests");
|
|
742
|
+
const isAnyCommunities_ParticipantJoinedChats = /* @__PURE__ */ _isAny("communities.participantJoinedChats");
|
|
743
|
+
const isAnyEphemeral_WelcomeMessages = /* @__PURE__ */ _isAny("ephemeral.welcomeMessagesNotModified", "ephemeral.welcomeMessages");
|
|
744
|
+
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", "updateJoinChatWebViewDecision", "updateNewBotConnection", "updateWebBrowserSettings", "updateWebBrowserException", "updateNewEphemeralMessage", "updateDeleteEphemeralMessages", "updateEditEphemeralMessage", "updateEphemeralBotCallbackQuery", "updateBotStarsSubscription", "mtcute.dummyUpdate");
|
|
694
745
|
const isAnyMtcute_InputPeer = /* @__PURE__ */ _isAny("inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage", "mtcute.dummyInputPeerMinUser", "mtcute.dummyInputPeerMinChannel");
|
|
695
746
|
exports.LAYER = LAYER;
|
|
696
747
|
exports.RpcError = RpcError;
|
|
@@ -737,6 +788,7 @@ exports.isAnyAuctionBidLevel = isAnyAuctionBidLevel;
|
|
|
737
788
|
exports.isAnyAuth_Authorization = isAnyAuth_Authorization;
|
|
738
789
|
exports.isAnyAuth_CodeType = isAnyAuth_CodeType;
|
|
739
790
|
exports.isAnyAuth_ExportedAuthorization = isAnyAuth_ExportedAuthorization;
|
|
791
|
+
exports.isAnyAuth_FirebasePnvIntent = isAnyAuth_FirebasePnvIntent;
|
|
740
792
|
exports.isAnyAuth_LoggedOut = isAnyAuth_LoggedOut;
|
|
741
793
|
exports.isAnyAuth_LoginToken = isAnyAuth_LoginToken;
|
|
742
794
|
exports.isAnyAuth_PasskeyLoginOptions = isAnyAuth_PasskeyLoginOptions;
|
|
@@ -782,6 +834,7 @@ exports.isAnyBusinessLocation = isAnyBusinessLocation;
|
|
|
782
834
|
exports.isAnyBusinessRecipients = isAnyBusinessRecipients;
|
|
783
835
|
exports.isAnyBusinessWeeklyOpen = isAnyBusinessWeeklyOpen;
|
|
784
836
|
exports.isAnyBusinessWorkHours = isAnyBusinessWorkHours;
|
|
837
|
+
exports.isAnyButtonType = isAnyButtonType;
|
|
785
838
|
exports.isAnyCdnConfig = isAnyCdnConfig;
|
|
786
839
|
exports.isAnyCdnPublicKey = isAnyCdnPublicKey;
|
|
787
840
|
exports.isAnyChannelAdminLogEvent = isAnyChannelAdminLogEvent;
|
|
@@ -814,6 +867,10 @@ exports.isAnyChatlists_ChatlistUpdates = isAnyChatlists_ChatlistUpdates;
|
|
|
814
867
|
exports.isAnyChatlists_ExportedChatlistInvite = isAnyChatlists_ExportedChatlistInvite;
|
|
815
868
|
exports.isAnyChatlists_ExportedInvites = isAnyChatlists_ExportedInvites;
|
|
816
869
|
exports.isAnyCodeSettings = isAnyCodeSettings;
|
|
870
|
+
exports.isAnyCommunities_ParticipantJoinedChats = isAnyCommunities_ParticipantJoinedChats;
|
|
871
|
+
exports.isAnyCommunities_PeerLinkRequests = isAnyCommunities_PeerLinkRequests;
|
|
872
|
+
exports.isAnyCommunityPeer = isAnyCommunityPeer;
|
|
873
|
+
exports.isAnyCommunityPeerRequest = isAnyCommunityPeerRequest;
|
|
817
874
|
exports.isAnyConfig = isAnyConfig;
|
|
818
875
|
exports.isAnyConnectedBot = isAnyConnectedBot;
|
|
819
876
|
exports.isAnyConnectedBotStarRef = isAnyConnectedBotStarRef;
|
|
@@ -851,6 +908,8 @@ exports.isAnyEmojiURL = isAnyEmojiURL;
|
|
|
851
908
|
exports.isAnyEncryptedChat = isAnyEncryptedChat;
|
|
852
909
|
exports.isAnyEncryptedFile = isAnyEncryptedFile;
|
|
853
910
|
exports.isAnyEncryptedMessage = isAnyEncryptedMessage;
|
|
911
|
+
exports.isAnyEphemeralMessage = isAnyEphemeralMessage;
|
|
912
|
+
exports.isAnyEphemeral_WelcomeMessages = isAnyEphemeral_WelcomeMessages;
|
|
854
913
|
exports.isAnyError = isAnyError;
|
|
855
914
|
exports.isAnyExportedChatInvite = isAnyExportedChatInvite;
|
|
856
915
|
exports.isAnyExportedChatlistInvite = isAnyExportedChatlistInvite;
|
|
@@ -899,6 +958,7 @@ exports.isAnyHighScore = isAnyHighScore;
|
|
|
899
958
|
exports.isAnyImportedContact = isAnyImportedContact;
|
|
900
959
|
exports.isAnyInlineBotSwitchPM = isAnyInlineBotSwitchPM;
|
|
901
960
|
exports.isAnyInlineBotWebView = isAnyInlineBotWebView;
|
|
961
|
+
exports.isAnyInlineButtonType = isAnyInlineButtonType;
|
|
902
962
|
exports.isAnyInlineQueryPeerType = isAnyInlineQueryPeerType;
|
|
903
963
|
exports.isAnyInputAiComposeTone = isAnyInputAiComposeTone;
|
|
904
964
|
exports.isAnyInputAppEvent = isAnyInputAppEvent;
|
|
@@ -971,6 +1031,8 @@ exports.isAnyJoinChatBotResult = isAnyJoinChatBotResult;
|
|
|
971
1031
|
exports.isAnyKeyboardButton = isAnyKeyboardButton;
|
|
972
1032
|
exports.isAnyKeyboardButtonRow = isAnyKeyboardButtonRow;
|
|
973
1033
|
exports.isAnyKeyboardButtonStyle = isAnyKeyboardButtonStyle;
|
|
1034
|
+
exports.isAnyKeyboardInlineButton = isAnyKeyboardInlineButton;
|
|
1035
|
+
exports.isAnyKeyboardInlineButtonRow = isAnyKeyboardInlineButtonRow;
|
|
974
1036
|
exports.isAnyLabeledPrice = isAnyLabeledPrice;
|
|
975
1037
|
exports.isAnyLangPackDifference = isAnyLangPackDifference;
|
|
976
1038
|
exports.isAnyLangPackLanguage = isAnyLangPackLanguage;
|
|
@@ -1012,6 +1074,7 @@ exports.isAnyMessages_ChatInviteJoinResult = isAnyMessages_ChatInviteJoinResult;
|
|
|
1012
1074
|
exports.isAnyMessages_Chats = isAnyMessages_Chats;
|
|
1013
1075
|
exports.isAnyMessages_CheckedHistoryImportPeer = isAnyMessages_CheckedHistoryImportPeer;
|
|
1014
1076
|
exports.isAnyMessages_ComposedMessageWithAI = isAnyMessages_ComposedMessageWithAI;
|
|
1077
|
+
exports.isAnyMessages_ComposedRichMessageWithAI = isAnyMessages_ComposedRichMessageWithAI;
|
|
1015
1078
|
exports.isAnyMessages_DhConfig = isAnyMessages_DhConfig;
|
|
1016
1079
|
exports.isAnyMessages_DialogFilters = isAnyMessages_DialogFilters;
|
|
1017
1080
|
exports.isAnyMessages_Dialogs = isAnyMessages_Dialogs;
|
|
@@ -1054,6 +1117,7 @@ exports.isAnyMessages_StickerSet = isAnyMessages_StickerSet;
|
|
|
1054
1117
|
exports.isAnyMessages_StickerSetInstallResult = isAnyMessages_StickerSetInstallResult;
|
|
1055
1118
|
exports.isAnyMessages_Stickers = isAnyMessages_Stickers;
|
|
1056
1119
|
exports.isAnyMessages_TranscribedAudio = isAnyMessages_TranscribedAudio;
|
|
1120
|
+
exports.isAnyMessages_TranslatedRichMessage = isAnyMessages_TranslatedRichMessage;
|
|
1057
1121
|
exports.isAnyMessages_TranslatedText = isAnyMessages_TranslatedText;
|
|
1058
1122
|
exports.isAnyMessages_VotesList = isAnyMessages_VotesList;
|
|
1059
1123
|
exports.isAnyMessages_WebPage = isAnyMessages_WebPage;
|
|
@@ -1068,6 +1132,7 @@ exports.isAnyNotifyPeer = isAnyNotifyPeer;
|
|
|
1068
1132
|
exports.isAnyOutboxReadDate = isAnyOutboxReadDate;
|
|
1069
1133
|
exports.isAnyPage = isAnyPage;
|
|
1070
1134
|
exports.isAnyPageBlock = isAnyPageBlock;
|
|
1135
|
+
exports.isAnyPageButton = isAnyPageButton;
|
|
1071
1136
|
exports.isAnyPageCaption = isAnyPageCaption;
|
|
1072
1137
|
exports.isAnyPageListItem = isAnyPageListItem;
|
|
1073
1138
|
exports.isAnyPageListOrderedItem = isAnyPageListOrderedItem;
|
|
@@ -1166,6 +1231,7 @@ exports.isAnyRequestPeerType = isAnyRequestPeerType;
|
|
|
1166
1231
|
exports.isAnyRequestedPeer = isAnyRequestedPeer;
|
|
1167
1232
|
exports.isAnyRequirementToContact = isAnyRequirementToContact;
|
|
1168
1233
|
exports.isAnyRestrictionReason = isAnyRestrictionReason;
|
|
1234
|
+
exports.isAnyRichButtonStyle = isAnyRichButtonStyle;
|
|
1169
1235
|
exports.isAnyRichMessage = isAnyRichMessage;
|
|
1170
1236
|
exports.isAnyRichText = isAnyRichText;
|
|
1171
1237
|
exports.isAnySavedContact = isAnySavedContact;
|