@mtcute/core 0.30.2 → 0.31.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 +73 -0
- package/client.js +73 -0
- package/highlevel/client.d.cts +344 -114
- package/highlevel/client.d.ts +344 -114
- 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/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-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/edit-ephemeral-message.cjs +33 -0
- package/highlevel/methods/ephemeral/edit-ephemeral-message.d.cts +25 -0
- package/highlevel/methods/ephemeral/edit-ephemeral-message.d.ts +25 -0
- package/highlevel/methods/ephemeral/edit-ephemeral-message.js +28 -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/send-ephemeral-message.cjs +38 -0
- package/highlevel/methods/ephemeral/send-ephemeral-message.d.cts +29 -0
- package/highlevel/methods/ephemeral/send-ephemeral-message.d.ts +29 -0
- package/highlevel/methods/ephemeral/send-ephemeral-message.js +33 -0
- package/highlevel/methods/files/download-iterable.cjs +4 -2
- package/highlevel/methods/files/download-iterable.js +4 -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/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 +1 -1
- 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 +1 -1
- 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.d.cts +1 -1
- package/highlevel/methods/forums/toggle-forum-topic-closed.d.ts +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 +2 -2
- package/highlevel/methods/forums/toggle-general-topic-hidden.js +3 -3
- 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 -4
- package/highlevel/methods/messages/send-text.js +70 -4
- package/highlevel/methods/users/resolve-peer.cjs +11 -1
- package/highlevel/methods/users/resolve-peer.js +11 -1
- package/highlevel/methods.d.cts +16 -0
- package/highlevel/methods.d.ts +16 -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/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/ephemeral-message.cjs +103 -0
- package/highlevel/types/messages/ephemeral-message.d.cts +55 -0
- package/highlevel/types/messages/ephemeral-message.d.ts +55 -0
- package/highlevel/types/messages/ephemeral-message.js +98 -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 +6 -0
- package/highlevel/types/messages/message-action.d.cts +8 -1
- package/highlevel/types/messages/message-action.d.ts +8 -1
- package/highlevel/types/messages/message-action.js +6 -0
- 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/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 +20 -5
- package/highlevel/types/peers/full-chat.d.cts +5 -0
- package/highlevel/types/peers/full-chat.d.ts +5 -0
- package/highlevel/types/peers/full-chat.js +20 -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/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 +61 -0
- package/highlevel/types/updates/ephemeral-callback-query.d.cts +38 -0
- package/highlevel/types/updates/ephemeral-callback-query.d.ts +38 -0
- package/highlevel/types/updates/ephemeral-callback-query.js +56 -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/updates/manager.cjs +31 -13
- package/highlevel/updates/manager.d.cts +1 -0
- package/highlevel/updates/manager.d.ts +1 -0
- package/highlevel/updates/manager.js +31 -13
- 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 +4 -0
- package/highlevel/utils/walk-page-blocks.js +4 -0
- package/index.cjs +10 -0
- package/index.js +11 -1
- package/methods.cjs +27 -0
- package/methods.js +27 -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/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 +3 -0
- package/network/session-connection.js +3 -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 +90 -15
- package/tl/binary/reader.js +90 -15
- package/tl/binary/writer.cjs +385 -80
- package/tl/binary/writer.js +385 -80
- package/tl/compat/reader.cjs +11 -0
- package/tl/compat/reader.js +11 -0
- package/tl/index.d.cts +12380 -4272
- package/tl/index.d.ts +12380 -4272
- package/tl/inner-tl.cjs +70 -20
- package/tl/inner-tl.js +70 -20
- package/tl/raw-errors.json +1 -1
- 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 +14 -0
- package/utils/binary/compat.js +14 -0
- 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 +3 -0
- package/utils/links/bots.js +3 -0
- package/utils/peer-utils.cjs +8 -0
- package/utils/peer-utils.js +8 -0
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 = 228;
|
|
10
10
|
class RpcError extends Error {
|
|
11
11
|
constructor(code, text) {
|
|
12
12
|
super("Telegram API error " + code + ": " + text);
|
|
@@ -38,30 +38,69 @@ RpcError.fromTl = function(obj) {
|
|
|
38
38
|
} else if ((match = err.text.match(/^STATS_MIGRATE_(\d+)$/)) != null) {
|
|
39
39
|
err.text = "STATS_MIGRATE_%d";
|
|
40
40
|
err.dc = parseInt(match[1]);
|
|
41
|
+
} else if ((match = err.text.match(/^USER_MIGRATE_(\d+)$/)) != null) {
|
|
42
|
+
err.text = "USER_MIGRATE_%d";
|
|
43
|
+
err.newDc = parseInt(match[1]);
|
|
41
44
|
} else if ((match = err.text.match(/^EMAIL_UNCONFIRMED_(\d+)$/)) != null) {
|
|
42
45
|
err.text = "EMAIL_UNCONFIRMED_%d";
|
|
43
46
|
err.codeLength = parseInt(match[1]);
|
|
47
|
+
} else if ((match = err.text.match(/^FILE_REFERENCE_(\d+)_EMPTY$/)) != null) {
|
|
48
|
+
err.text = "FILE_REFERENCE_%d_EMPTY";
|
|
49
|
+
err.duration = parseInt(match[1]);
|
|
50
|
+
} else if ((match = err.text.match(/^FILE_REFERENCE_(\d+)_EXPIRED$/)) != null) {
|
|
51
|
+
err.text = "FILE_REFERENCE_%d_EXPIRED";
|
|
52
|
+
err.duration = parseInt(match[1]);
|
|
53
|
+
} else if ((match = err.text.match(/^FILE_REFERENCE_(\d+)_INVALID$/)) != null) {
|
|
54
|
+
err.text = "FILE_REFERENCE_%d_INVALID";
|
|
55
|
+
err.duration = parseInt(match[1]);
|
|
44
56
|
} else if ((match = err.text.match(/^PASSWORD_TOO_FRESH_(\d+)$/)) != null) {
|
|
45
57
|
err.text = "PASSWORD_TOO_FRESH_%d";
|
|
46
58
|
err.seconds = parseInt(match[1]);
|
|
47
59
|
} else if ((match = err.text.match(/^SESSION_TOO_FRESH_(\d+)$/)) != null) {
|
|
48
60
|
err.text = "SESSION_TOO_FRESH_%d";
|
|
49
61
|
err.seconds = parseInt(match[1]);
|
|
62
|
+
} else if ((match = err.text.match(/^STARGIFT_RESELL_TOO_EARLY_(\d+)$/)) != null) {
|
|
63
|
+
err.text = "STARGIFT_RESELL_TOO_EARLY_%d";
|
|
64
|
+
err.duration = parseInt(match[1]);
|
|
65
|
+
} else if ((match = err.text.match(/^STARGIFT_TRANSFER_TOO_EARLY_(\d+)$/)) != null) {
|
|
66
|
+
err.text = "STARGIFT_TRANSFER_TOO_EARLY_%d";
|
|
67
|
+
err.duration = parseInt(match[1]);
|
|
68
|
+
} else if ((match = err.text.match(/^STORY_LIVE_ALREADY_(\d+)$/)) != null) {
|
|
69
|
+
err.text = "STORY_LIVE_ALREADY_%d";
|
|
70
|
+
err.duration = parseInt(match[1]);
|
|
71
|
+
} else if ((match = err.text.match(/^STORY_SEND_FLOOD_MONTHLY_(\d+)$/)) != null) {
|
|
72
|
+
err.text = "STORY_SEND_FLOOD_MONTHLY_%d";
|
|
73
|
+
err.duration = parseInt(match[1]);
|
|
74
|
+
} else if ((match = err.text.match(/^STORY_SEND_FLOOD_WEEKLY_(\d+)$/)) != null) {
|
|
75
|
+
err.text = "STORY_SEND_FLOOD_WEEKLY_%d";
|
|
76
|
+
err.duration = parseInt(match[1]);
|
|
77
|
+
} else if ((match = err.text.match(/^FILE_PART_(\d+)_MISSING$/)) != null) {
|
|
78
|
+
err.text = "FILE_PART_%d_MISSING";
|
|
79
|
+
err.which = parseInt(match[1]);
|
|
80
|
+
} else if ((match = err.text.match(/^ALLOW_PAYMENT_REQUIRED_(\d+)$/)) != null) {
|
|
81
|
+
err.text = "ALLOW_PAYMENT_REQUIRED_%d";
|
|
82
|
+
err.duration = parseInt(match[1]);
|
|
50
83
|
} else if ((match = err.text.match(/^PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_(\d+)MIN$/)) != null) {
|
|
51
84
|
err.text = "PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_%dMIN";
|
|
52
85
|
err.minutes = parseInt(match[1]);
|
|
53
86
|
} else if ((match = err.text.match(/^2FA_CONFIRM_WAIT_(\d+)$/)) != null) {
|
|
54
87
|
err.text = "2FA_CONFIRM_WAIT_%d";
|
|
55
88
|
err.seconds = parseInt(match[1]);
|
|
89
|
+
} else if ((match = err.text.match(/^FLOOD_PREMIUM_WAIT_(\d+)$/)) != null) {
|
|
90
|
+
err.text = "FLOOD_PREMIUM_WAIT_%d";
|
|
91
|
+
err.seconds = parseInt(match[1]);
|
|
92
|
+
} else if ((match = err.text.match(/^PREMIUM_SUB_ACTIVE_UNTIL_(\d+)$/)) != null) {
|
|
93
|
+
err.text = "PREMIUM_SUB_ACTIVE_UNTIL_%d";
|
|
94
|
+
err.duration = parseInt(match[1]);
|
|
56
95
|
} else if ((match = err.text.match(/^SLOWMODE_WAIT_(\d+)$/)) != null) {
|
|
57
96
|
err.text = "SLOWMODE_WAIT_%d";
|
|
58
97
|
err.seconds = parseInt(match[1]);
|
|
59
98
|
} else if ((match = err.text.match(/^TAKEOUT_INIT_DELAY_(\d+)$/)) != null) {
|
|
60
99
|
err.text = "TAKEOUT_INIT_DELAY_%d";
|
|
61
100
|
err.seconds = parseInt(match[1]);
|
|
62
|
-
} else if ((match = err.text.match(/^
|
|
63
|
-
err.text = "
|
|
64
|
-
err.
|
|
101
|
+
} else if ((match = err.text.match(/^AUTH_RESTART_(\d+)$/)) != null) {
|
|
102
|
+
err.text = "AUTH_RESTART_%d";
|
|
103
|
+
err.duration = parseInt(match[1]);
|
|
65
104
|
} else if ((match = err.text.match(/^FLOOD_TEST_PHONE_WAIT_(\d+)$/)) != null) {
|
|
66
105
|
err.text = "FLOOD_TEST_PHONE_WAIT_%d";
|
|
67
106
|
err.seconds = parseInt(match[1]);
|
|
@@ -71,9 +110,6 @@ RpcError.fromTl = function(obj) {
|
|
|
71
110
|
} else if ((match = err.text.match(/^INTERDC_(\d+)_CALL_RICH_ERROR$/)) != null) {
|
|
72
111
|
err.text = "INTERDC_%d_CALL_RICH_ERROR";
|
|
73
112
|
err.dc = parseInt(match[1]);
|
|
74
|
-
} else if ((match = err.text.match(/^USER_MIGRATE_(\d+)$/)) != null) {
|
|
75
|
-
err.text = "USER_MIGRATE_%d";
|
|
76
|
-
err.newDc = parseInt(match[1]);
|
|
77
113
|
}
|
|
78
114
|
return err;
|
|
79
115
|
};
|
|
@@ -99,19 +135,19 @@ const isAnyPeer = /* @__PURE__ */ _isAny("peerUser", "peerChat", "peerChannel");
|
|
|
99
135
|
const isAnyUser = /* @__PURE__ */ _isAny("userEmpty", "user");
|
|
100
136
|
const isAnyUserProfilePhoto = /* @__PURE__ */ _isAny("userProfilePhotoEmpty", "userProfilePhoto");
|
|
101
137
|
const isAnyUserStatus = /* @__PURE__ */ _isAny("userStatusEmpty", "userStatusOnline", "userStatusOffline", "userStatusRecently", "userStatusLastWeek", "userStatusLastMonth");
|
|
102
|
-
const isAnyChat = /* @__PURE__ */ _isAny("chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden");
|
|
103
|
-
const isAnyChatFull = /* @__PURE__ */ _isAny("chatFull", "channelFull");
|
|
138
|
+
const isAnyChat = /* @__PURE__ */ _isAny("chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community");
|
|
139
|
+
const isAnyChatFull = /* @__PURE__ */ _isAny("chatFull", "channelFull", "communityFull");
|
|
104
140
|
const isAnyChatParticipant = /* @__PURE__ */ _isAny("chatParticipant", "chatParticipantCreator", "chatParticipantAdmin");
|
|
105
141
|
const isAnyChatParticipants = /* @__PURE__ */ _isAny("chatParticipantsForbidden", "chatParticipants");
|
|
106
142
|
const isAnyChatPhoto = /* @__PURE__ */ _isAny("chatPhotoEmpty", "chatPhoto");
|
|
107
143
|
const isAnyMessage = /* @__PURE__ */ _isAny("messageEmpty", "message", "messageService");
|
|
108
144
|
const isAnyMessageMedia = /* @__PURE__ */ _isAny("messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream");
|
|
109
|
-
const isAnyMessageAction = /* @__PURE__ */ _isAny("messageActionEmpty", "messageActionChatCreate", "messageActionChatEditTitle", "messageActionChatEditPhoto", "messageActionChatDeletePhoto", "messageActionChatAddUser", "messageActionChatDeleteUser", "messageActionChatJoinedByLink", "messageActionChannelCreate", "messageActionChatMigrateTo", "messageActionChannelMigrateFrom", "messageActionPinMessage", "messageActionHistoryClear", "messageActionGameScore", "messageActionPaymentSentMe", "messageActionPaymentSent", "messageActionPhoneCall", "messageActionScreenshotTaken", "messageActionCustomAction", "messageActionBotAllowed", "messageActionSecureValuesSentMe", "messageActionSecureValuesSent", "messageActionContactSignUp", "messageActionGeoProximityReached", "messageActionGroupCall", "messageActionInviteToGroupCall", "messageActionSetMessagesTTL", "messageActionGroupCallScheduled", "messageActionSetChatTheme", "messageActionChatJoinedByRequest", "messageActionWebViewDataSentMe", "messageActionWebViewDataSent", "messageActionGiftPremium", "messageActionTopicCreate", "messageActionTopicEdit", "messageActionSuggestProfilePhoto", "messageActionRequestedPeer", "messageActionSetChatWallPaper", "messageActionGiftCode", "messageActionGiveawayLaunch", "messageActionGiveawayResults", "messageActionBoostApply", "messageActionRequestedPeerSentMe", "messageActionPaymentRefunded", "messageActionGiftStars", "messageActionPrizeStars", "messageActionStarGift", "messageActionStarGiftUnique", "messageActionPaidMessagesRefunded", "messageActionPaidMessagesPrice", "messageActionConferenceCall", "messageActionTodoCompletions", "messageActionTodoAppendTasks", "messageActionSuggestedPostApproval", "messageActionSuggestedPostSuccess", "messageActionSuggestedPostRefund", "messageActionGiftTon", "messageActionSuggestBirthday", "messageActionStarGiftPurchaseOffer", "messageActionStarGiftPurchaseOfferDeclined", "messageActionNewCreatorPending", "messageActionChangeCreator", "messageActionNoForwardsToggle", "messageActionNoForwardsRequest", "messageActionPollAppendAnswer", "messageActionPollDeleteAnswer", "messageActionManagedBotCreated");
|
|
110
|
-
const isAnyDialog = /* @__PURE__ */ _isAny("dialog", "dialogFolder");
|
|
145
|
+
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");
|
|
146
|
+
const isAnyDialog = /* @__PURE__ */ _isAny("dialog", "dialogFolder", "dialogCommunity");
|
|
111
147
|
const isAnyPhoto = /* @__PURE__ */ _isAny("photoEmpty", "photo");
|
|
112
148
|
const isAnyPhotoSize = /* @__PURE__ */ _isAny("photoSizeEmpty", "photoSize", "photoCachedSize", "photoStrippedSize", "photoSizeProgressive", "photoPathSize");
|
|
113
149
|
const isAnyGeoPoint = /* @__PURE__ */ _isAny("geoPointEmpty", "geoPoint");
|
|
114
|
-
const isAnyInputNotifyPeer = /* @__PURE__ */ _isAny("inputNotifyPeer", "inputNotifyUsers", "inputNotifyChats", "inputNotifyBroadcasts", "inputNotifyForumTopic");
|
|
150
|
+
const isAnyInputNotifyPeer = /* @__PURE__ */ _isAny("inputNotifyPeer", "inputNotifyUsers", "inputNotifyChats", "inputNotifyBroadcasts", "inputNotifyForumTopic", "inputNotifyCommunity");
|
|
115
151
|
const isAnyInputPeerNotifySettings = /* @__PURE__ */ _isAny("inputPeerNotifySettings");
|
|
116
152
|
const isAnyPeerNotifySettings = /* @__PURE__ */ _isAny("peerNotifySettings");
|
|
117
153
|
const isAnyPeerSettings = /* @__PURE__ */ _isAny("peerSettings");
|
|
@@ -122,7 +158,7 @@ const isAnyContact = /* @__PURE__ */ _isAny("contact");
|
|
|
122
158
|
const isAnyImportedContact = /* @__PURE__ */ _isAny("importedContact");
|
|
123
159
|
const isAnyContactStatus = /* @__PURE__ */ _isAny("contactStatus");
|
|
124
160
|
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", "updateBotGuestChatQuery", "updateAiComposeTones", "updateJoinChatWebViewDecision", "updateNewBotConnection", "updateWebBrowserSettings", "updateWebBrowserException", "
|
|
161
|
+
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");
|
|
126
162
|
const isAnyUpdates = /* @__PURE__ */ _isAny("updatesTooLong", "updateShortMessage", "updateShortChatMessage", "updateShort", "updatesCombined", "updates", "updateShortSentMessage");
|
|
127
163
|
const isAnyDcOption = /* @__PURE__ */ _isAny("dcOption");
|
|
128
164
|
const isAnyConfig = /* @__PURE__ */ _isAny("config");
|
|
@@ -134,7 +170,7 @@ const isAnyInputEncryptedFile = /* @__PURE__ */ _isAny("inputEncryptedFileEmpty"
|
|
|
134
170
|
const isAnyEncryptedMessage = /* @__PURE__ */ _isAny("encryptedMessage", "encryptedMessageService");
|
|
135
171
|
const isAnyInputDocument = /* @__PURE__ */ _isAny("inputDocumentEmpty", "inputDocument");
|
|
136
172
|
const isAnyDocument = /* @__PURE__ */ _isAny("documentEmpty", "document");
|
|
137
|
-
const isAnyNotifyPeer = /* @__PURE__ */ _isAny("notifyPeer", "notifyUsers", "notifyChats", "notifyBroadcasts", "notifyForumTopic");
|
|
173
|
+
const isAnyNotifyPeer = /* @__PURE__ */ _isAny("notifyPeer", "notifyUsers", "notifyChats", "notifyBroadcasts", "notifyForumTopic", "notifyCommunity");
|
|
138
174
|
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");
|
|
139
175
|
const isAnyInputPrivacyKey = /* @__PURE__ */ _isAny("inputPrivacyKeyStatusTimestamp", "inputPrivacyKeyChatInvite", "inputPrivacyKeyPhoneCall", "inputPrivacyKeyPhoneP2P", "inputPrivacyKeyForwards", "inputPrivacyKeyProfilePhoto", "inputPrivacyKeyPhoneNumber", "inputPrivacyKeyAddedByPhone", "inputPrivacyKeyVoiceMessages", "inputPrivacyKeyAbout", "inputPrivacyKeyBirthday", "inputPrivacyKeyStarGiftsAutoSave", "inputPrivacyKeyNoPaidMessages", "inputPrivacyKeySavedMusic");
|
|
140
176
|
const isAnyPrivacyKey = /* @__PURE__ */ _isAny("privacyKeyStatusTimestamp", "privacyKeyChatInvite", "privacyKeyPhoneCall", "privacyKeyPhoneP2P", "privacyKeyForwards", "privacyKeyProfilePhoto", "privacyKeyPhoneNumber", "privacyKeyAddedByPhone", "privacyKeyVoiceMessages", "privacyKeyAbout", "privacyKeyBirthday", "privacyKeyStarGiftsAutoSave", "privacyKeyNoPaidMessages", "privacyKeySavedMusic");
|
|
@@ -179,7 +215,7 @@ const isAnyInputStickeredMedia = /* @__PURE__ */ _isAny("inputStickeredMediaPhot
|
|
|
179
215
|
const isAnyGame = /* @__PURE__ */ _isAny("game");
|
|
180
216
|
const isAnyInputGame = /* @__PURE__ */ _isAny("inputGameID", "inputGameShortName");
|
|
181
217
|
const isAnyHighScore = /* @__PURE__ */ _isAny("highScore");
|
|
182
|
-
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");
|
|
218
|
+
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");
|
|
183
219
|
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");
|
|
184
220
|
const isAnyPhoneCallDiscardReason = /* @__PURE__ */ _isAny("phoneCallDiscardReasonMissed", "phoneCallDiscardReasonDisconnect", "phoneCallDiscardReasonHangup", "phoneCallDiscardReasonBusy", "phoneCallDiscardReasonMigrateConferenceCall");
|
|
185
221
|
const isAnyDataJSON = /* @__PURE__ */ _isAny("dataJSON");
|
|
@@ -212,8 +248,8 @@ const isAnyRecentMeUrl = /* @__PURE__ */ _isAny("recentMeUrlUnknown", "recentMeU
|
|
|
212
248
|
const isAnyInputSingleMedia = /* @__PURE__ */ _isAny("inputSingleMedia");
|
|
213
249
|
const isAnyWebAuthorization = /* @__PURE__ */ _isAny("webAuthorization");
|
|
214
250
|
const isAnyInputMessage = /* @__PURE__ */ _isAny("inputMessageID", "inputMessageReplyTo", "inputMessagePinned", "inputMessageCallbackQuery");
|
|
215
|
-
const isAnyInputDialogPeer = /* @__PURE__ */ _isAny("inputDialogPeer", "inputDialogPeerFolder");
|
|
216
|
-
const isAnyDialogPeer = /* @__PURE__ */ _isAny("dialogPeer", "dialogPeerFolder");
|
|
251
|
+
const isAnyInputDialogPeer = /* @__PURE__ */ _isAny("inputDialogPeer", "inputDialogPeerFolder", "inputDialogPeerCommunity");
|
|
252
|
+
const isAnyDialogPeer = /* @__PURE__ */ _isAny("dialogPeer", "dialogPeerFolder", "dialogPeerCommunity");
|
|
217
253
|
const isAnyFileHash = /* @__PURE__ */ _isAny("fileHash");
|
|
218
254
|
const isAnyInputClientProxy = /* @__PURE__ */ _isAny("inputClientProxy");
|
|
219
255
|
const isAnyInputSecureFile = /* @__PURE__ */ _isAny("inputSecureFileUploaded", "inputSecureFile");
|
|
@@ -347,7 +383,7 @@ const isAnyMessagePeerVote = /* @__PURE__ */ _isAny("messagePeerVote", "messageP
|
|
|
347
383
|
const isAnyStoryViews = /* @__PURE__ */ _isAny("storyViews");
|
|
348
384
|
const isAnyStoryItem = /* @__PURE__ */ _isAny("storyItemDeleted", "storyItemSkipped", "storyItem");
|
|
349
385
|
const isAnyStoryView = /* @__PURE__ */ _isAny("storyView", "storyViewPublicForward", "storyViewPublicRepost");
|
|
350
|
-
const isAnyInputReplyTo = /* @__PURE__ */ _isAny("inputReplyToMessage", "inputReplyToStory", "inputReplyToMonoForum");
|
|
386
|
+
const isAnyInputReplyTo = /* @__PURE__ */ _isAny("inputReplyToMessage", "inputReplyToStory", "inputReplyToMonoForum", "inputReplyToEphemeralMessage");
|
|
351
387
|
const isAnyExportedStoryLink = /* @__PURE__ */ _isAny("exportedStoryLink");
|
|
352
388
|
const isAnyStoriesStealthMode = /* @__PURE__ */ _isAny("storiesStealthMode");
|
|
353
389
|
const isAnyMediaAreaCoordinates = /* @__PURE__ */ _isAny("mediaAreaCoordinates");
|
|
@@ -459,7 +495,7 @@ const isAnyStarGiftAuctionRound = /* @__PURE__ */ _isAny("starGiftAuctionRound",
|
|
|
459
495
|
const isAnyStarGiftAttributeRarity = /* @__PURE__ */ _isAny("starGiftAttributeRarity", "starGiftAttributeRarityUncommon", "starGiftAttributeRarityRare", "starGiftAttributeRarityEpic", "starGiftAttributeRarityLegendary");
|
|
460
496
|
const isAnyKeyboardButtonStyle = /* @__PURE__ */ _isAny("keyboardButtonStyle");
|
|
461
497
|
const isAnyInputMessageReadMetric = /* @__PURE__ */ _isAny("inputMessageReadMetric");
|
|
462
|
-
const isAnyInputAiComposeTone = /* @__PURE__ */ _isAny("inputAiComposeToneDefault", "inputAiComposeToneID", "inputAiComposeToneSlug");
|
|
498
|
+
const isAnyInputAiComposeTone = /* @__PURE__ */ _isAny("inputAiComposeToneDefault", "inputAiComposeToneID", "inputAiComposeToneSlug", "inputAiComposeToneSingleUse");
|
|
463
499
|
const isAnyAiComposeTone = /* @__PURE__ */ _isAny("aiComposeTone", "aiComposeToneDefault");
|
|
464
500
|
const isAnyAiComposeToneExample = /* @__PURE__ */ _isAny("aiComposeToneExample");
|
|
465
501
|
const isAnyJoinChatBotResult = /* @__PURE__ */ _isAny("joinChatBotResultApproved", "joinChatBotResultDeclined", "joinChatBotResultQueued", "joinChatBotResultWebView");
|
|
@@ -467,6 +503,9 @@ const isAnyWebDomainException = /* @__PURE__ */ _isAny("webDomainException");
|
|
|
467
503
|
const isAnyInputRichFile = /* @__PURE__ */ _isAny("inputRichFilePhoto", "inputRichFileDocument");
|
|
468
504
|
const isAnyInputRichMessage = /* @__PURE__ */ _isAny("inputRichMessage", "inputRichMessageHTML", "inputRichMessageMarkdown");
|
|
469
505
|
const isAnyRichMessage = /* @__PURE__ */ _isAny("richMessage");
|
|
506
|
+
const isAnyCommunityPeer = /* @__PURE__ */ _isAny("communityPeer");
|
|
507
|
+
const isAnyCommunityPeerRequest = /* @__PURE__ */ _isAny("communityPeerRequest");
|
|
508
|
+
const isAnyEphemeralMessage = /* @__PURE__ */ _isAny("ephemeralMessage");
|
|
470
509
|
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");
|
|
471
510
|
const isAnyAuth_SentCode = /* @__PURE__ */ _isAny("auth.sentCode", "auth.sentCodeSuccess", "auth.sentCodePaymentRequired");
|
|
472
511
|
const isAnyAuth_Authorization = /* @__PURE__ */ _isAny("auth.authorization", "auth.authorizationSignUpRequired");
|
|
@@ -549,6 +588,8 @@ const isAnyMessages_EmojiGameOutcome = /* @__PURE__ */ _isAny("messages.emojiGam
|
|
|
549
588
|
const isAnyMessages_EmojiGameInfo = /* @__PURE__ */ _isAny("messages.emojiGameUnavailable", "messages.emojiGameDiceInfo");
|
|
550
589
|
const isAnyMessages_ComposedMessageWithAI = /* @__PURE__ */ _isAny("messages.composedMessageWithAI");
|
|
551
590
|
const isAnyMessages_ChatInviteJoinResult = /* @__PURE__ */ _isAny("messages.chatInviteJoinResultOk", "messages.chatInviteJoinResultWebView");
|
|
591
|
+
const isAnyMessages_TranslatedRichMessage = /* @__PURE__ */ _isAny("messages.translatedRichMessage");
|
|
592
|
+
const isAnyMessages_ComposedRichMessageWithAI = /* @__PURE__ */ _isAny("messages.composedRichMessageWithAI");
|
|
552
593
|
const isAnyUpdates_State = /* @__PURE__ */ _isAny("updates.state");
|
|
553
594
|
const isAnyUpdates_Difference = /* @__PURE__ */ _isAny("updates.differenceEmpty", "updates.difference", "updates.differenceSlice", "updates.differenceTooLong");
|
|
554
595
|
const isAnyUpdates_ChannelDifference = /* @__PURE__ */ _isAny("updates.channelDifferenceEmpty", "updates.channelDifferenceTooLong", "updates.channelDifference");
|
|
@@ -683,7 +724,9 @@ const isAnySmsjobs_EligibilityToJoin = /* @__PURE__ */ _isAny("smsjobs.eligibleT
|
|
|
683
724
|
const isAnySmsjobs_Status = /* @__PURE__ */ _isAny("smsjobs.status");
|
|
684
725
|
const isAnyFragment_CollectibleInfo = /* @__PURE__ */ _isAny("fragment.collectibleInfo");
|
|
685
726
|
const isAnyAicompose_Tones = /* @__PURE__ */ _isAny("aicompose.tonesNotModified", "aicompose.tones");
|
|
686
|
-
const
|
|
727
|
+
const isAnyCommunities_PeerLinkRequests = /* @__PURE__ */ _isAny("communities.peerLinkRequests");
|
|
728
|
+
const isAnyCommunities_ParticipantJoinedChats = /* @__PURE__ */ _isAny("communities.participantJoinedChats");
|
|
729
|
+
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");
|
|
687
730
|
const isAnyMtcute_InputPeer = /* @__PURE__ */ _isAny("inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage", "mtcute.dummyInputPeerMinUser", "mtcute.dummyInputPeerMinChannel");
|
|
688
731
|
export {
|
|
689
732
|
LAYER,
|
|
@@ -808,6 +851,10 @@ export {
|
|
|
808
851
|
isAnyChatlists_ExportedChatlistInvite,
|
|
809
852
|
isAnyChatlists_ExportedInvites,
|
|
810
853
|
isAnyCodeSettings,
|
|
854
|
+
isAnyCommunities_ParticipantJoinedChats,
|
|
855
|
+
isAnyCommunities_PeerLinkRequests,
|
|
856
|
+
isAnyCommunityPeer,
|
|
857
|
+
isAnyCommunityPeerRequest,
|
|
811
858
|
isAnyConfig,
|
|
812
859
|
isAnyConnectedBot,
|
|
813
860
|
isAnyConnectedBotStarRef,
|
|
@@ -845,6 +892,7 @@ export {
|
|
|
845
892
|
isAnyEncryptedChat,
|
|
846
893
|
isAnyEncryptedFile,
|
|
847
894
|
isAnyEncryptedMessage,
|
|
895
|
+
isAnyEphemeralMessage,
|
|
848
896
|
isAnyError,
|
|
849
897
|
isAnyExportedChatInvite,
|
|
850
898
|
isAnyExportedChatlistInvite,
|
|
@@ -1006,6 +1054,7 @@ export {
|
|
|
1006
1054
|
isAnyMessages_Chats,
|
|
1007
1055
|
isAnyMessages_CheckedHistoryImportPeer,
|
|
1008
1056
|
isAnyMessages_ComposedMessageWithAI,
|
|
1057
|
+
isAnyMessages_ComposedRichMessageWithAI,
|
|
1009
1058
|
isAnyMessages_DhConfig,
|
|
1010
1059
|
isAnyMessages_DialogFilters,
|
|
1011
1060
|
isAnyMessages_Dialogs,
|
|
@@ -1048,6 +1097,7 @@ export {
|
|
|
1048
1097
|
isAnyMessages_StickerSetInstallResult,
|
|
1049
1098
|
isAnyMessages_Stickers,
|
|
1050
1099
|
isAnyMessages_TranscribedAudio,
|
|
1100
|
+
isAnyMessages_TranslatedRichMessage,
|
|
1051
1101
|
isAnyMessages_TranslatedText,
|
|
1052
1102
|
isAnyMessages_VotesList,
|
|
1053
1103
|
isAnyMessages_WebPage,
|