@mtkruto/browser 0.119.0 → 0.119.1
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/esm/0_errors.d.ts.map +1 -1
- package/esm/0_errors.js +9 -31
- package/esm/3_errors.js +2 -12
- package/esm/4_errors.js +2 -12
- package/esm/_dnt.polyfills.d.ts +0 -99
- package/esm/_dnt.polyfills.d.ts.map +1 -1
- package/esm/_dnt.polyfills.js +1 -127
- package/esm/client/0_abortable_loop.js +26 -39
- package/esm/client/0_storage_operations.js +179 -218
- package/esm/client/1_client_plain.js +4 -22
- package/esm/client/2_account_manager.js +140 -149
- package/esm/client/2_bot_info_manager.js +26 -38
- package/esm/client/2_business_connection_manager.js +10 -23
- package/esm/client/2_client_encrypted.js +198 -215
- package/esm/client/2_file_manager.js +255 -262
- package/esm/client/2_network_statistics_manager.js +31 -44
- package/esm/client/2_payment_manager.js +7 -20
- package/esm/client/2_reaction_manager.js +7 -20
- package/esm/client/2_translations_manager.js +101 -111
- package/esm/client/2_update_manager.js +750 -745
- package/esm/client/3_client_encrypted_pool.js +10 -26
- package/esm/client/3_message_manager.js +503 -508
- package/esm/client/3_video_chat_manager.js +57 -68
- package/esm/client/4_callback_query_manager.js +18 -30
- package/esm/client/4_chat_list_manager.js +140 -146
- package/esm/client/4_chat_manager.js +161 -169
- package/esm/client/4_checklist_manager.js +26 -39
- package/esm/client/4_context.js +244 -259
- package/esm/client/4_forum_manager.js +67 -73
- package/esm/client/4_gift_manager.js +22 -35
- package/esm/client/4_inline_query_manager.js +16 -28
- package/esm/client/4_link_preview_manager.js +6 -19
- package/esm/client/4_poll_manager.js +44 -57
- package/esm/client/4_story_manager.js +41 -53
- package/esm/client/5_composer.js +13 -26
- package/esm/client/6_client.js +866 -896
- package/esm/client/6_client_dispatcher.js +308 -325
- package/esm/client/7_client_worker.js +16 -29
- package/esm/connection/1_connection_tcp.js +55 -82
- package/esm/connection/1_connection_web_socket.js +75 -91
- package/esm/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/tgcrypto.js +3 -11
- package/esm/deps/jsr.io/@std/async/1.2.0/mux_async_iterator.js +31 -47
- package/esm/deps/jsr.io/@std/async/1.2.0/tee.js +11 -34
- package/esm/deps/jsr.io/@std/cache/0.2.2/lru_cache.js +30 -47
- package/esm/deps/jsr.io/@std/datetime/0.225.7/_date_time_formatter.js +4 -17
- package/esm/session/0_session_state.js +12 -38
- package/esm/session/1_session.js +49 -72
- package/esm/session/2_session_encrypted.js +422 -420
- package/esm/storage/2_storage_indexed_db.js +26 -44
- package/esm/storage/2_storage_local_storage.js +3 -16
- package/esm/storage/2_storage_memory.js +24 -41
- package/esm/storage/2_storage_session_storage.js +3 -16
- package/esm/tl/1_tl_reader.d.ts +1 -1
- package/esm/tl/1_tl_reader.d.ts.map +1 -1
- package/esm/tl/1_tl_reader.js +95 -103
- package/esm/tl/1_tl_writer.js +169 -178
- package/esm/transport/0_transport.js +1 -8
- package/esm/transport/1_transport_abridged.js +11 -24
- package/esm/transport/1_transport_intermediate.js +10 -23
- package/esm/utilities/0_mutex.js +4 -19
- package/esm/utilities/0_part_stream.js +11 -25
- package/esm/utilities/1_crypto.js +42 -53
- package/esm/utilities/2_queue.js +29 -47
- package/package.json +1 -1
- package/script/0_errors.d.ts.map +1 -1
- package/script/0_errors.js +9 -31
- package/script/3_errors.js +2 -12
- package/script/4_errors.js +2 -12
- package/script/_dnt.polyfills.d.ts +0 -99
- package/script/_dnt.polyfills.d.ts.map +1 -1
- package/script/_dnt.polyfills.js +0 -128
- package/script/client/0_abortable_loop.js +27 -40
- package/script/client/0_storage_operations.js +179 -218
- package/script/client/1_client_plain.js +4 -22
- package/script/client/2_account_manager.js +140 -149
- package/script/client/2_bot_info_manager.js +26 -38
- package/script/client/2_business_connection_manager.js +10 -23
- package/script/client/2_client_encrypted.js +199 -216
- package/script/client/2_file_manager.js +255 -262
- package/script/client/2_network_statistics_manager.js +32 -45
- package/script/client/2_payment_manager.js +7 -20
- package/script/client/2_reaction_manager.js +7 -20
- package/script/client/2_translations_manager.js +102 -112
- package/script/client/2_update_manager.js +750 -745
- package/script/client/3_client_encrypted_pool.js +10 -26
- package/script/client/3_message_manager.js +503 -508
- package/script/client/3_video_chat_manager.js +57 -68
- package/script/client/4_callback_query_manager.js +18 -30
- package/script/client/4_chat_list_manager.js +140 -146
- package/script/client/4_chat_manager.js +161 -169
- package/script/client/4_checklist_manager.js +26 -39
- package/script/client/4_context.js +244 -259
- package/script/client/4_forum_manager.js +67 -73
- package/script/client/4_gift_manager.js +22 -35
- package/script/client/4_inline_query_manager.js +16 -28
- package/script/client/4_link_preview_manager.js +6 -19
- package/script/client/4_poll_manager.js +44 -57
- package/script/client/4_story_manager.js +41 -53
- package/script/client/5_composer.js +13 -26
- package/script/client/6_client.js +866 -896
- package/script/client/6_client_dispatcher.js +308 -325
- package/script/client/7_client_worker.js +16 -29
- package/script/connection/1_connection_tcp.js +55 -82
- package/script/connection/1_connection_web_socket.js +75 -91
- package/script/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/tgcrypto.js +3 -11
- package/script/deps/jsr.io/@std/async/1.2.0/mux_async_iterator.js +31 -47
- package/script/deps/jsr.io/@std/async/1.2.0/tee.js +11 -34
- package/script/deps/jsr.io/@std/cache/0.2.2/lru_cache.js +30 -47
- package/script/deps/jsr.io/@std/datetime/0.225.7/_date_time_formatter.js +4 -17
- package/script/session/0_session_state.js +12 -38
- package/script/session/1_session.js +49 -72
- package/script/session/2_session_encrypted.js +423 -421
- package/script/storage/2_storage_indexed_db.js +26 -44
- package/script/storage/2_storage_local_storage.js +3 -16
- package/script/storage/2_storage_memory.js +24 -41
- package/script/storage/2_storage_session_storage.js +3 -16
- package/script/tl/1_tl_reader.d.ts +1 -1
- package/script/tl/1_tl_reader.d.ts.map +1 -1
- package/script/tl/1_tl_reader.js +96 -104
- package/script/tl/1_tl_writer.js +170 -179
- package/script/transport/0_transport.js +1 -8
- package/script/transport/1_transport_abridged.js +11 -24
- package/script/transport/1_transport_intermediate.js +10 -23
- package/script/utilities/0_mutex.js +4 -19
- package/script/utilities/0_part_stream.js +11 -25
- package/script/utilities/1_crypto.js +43 -54
- package/script/utilities/2_queue.js +30 -48
|
@@ -18,18 +18,6 @@
|
|
|
18
18
|
* You should have received a copy of the GNU Lesser General Public License
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
22
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
23
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
24
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
25
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
26
|
-
};
|
|
27
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
28
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
29
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
30
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
31
|
-
};
|
|
32
|
-
var _StoryManager_instances, _StoryManager_c, _StoryManager_updatesToStory, _StoryManager_togglePinned;
|
|
33
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
22
|
exports.StoryManager = void 0;
|
|
35
23
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
@@ -42,17 +30,25 @@ const storyManagerUpdates = [
|
|
|
42
30
|
"updateStory",
|
|
43
31
|
];
|
|
44
32
|
class StoryManager {
|
|
33
|
+
#c;
|
|
45
34
|
constructor(c) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
35
|
+
this.#c = c;
|
|
36
|
+
}
|
|
37
|
+
#updatesToStory(updates) {
|
|
38
|
+
if (_2_tl_js_1.Api.is("updates", updates)) {
|
|
39
|
+
const updateStory = updates.updates.find((v) => _2_tl_js_1.Api.is("updateStory", v));
|
|
40
|
+
if (updateStory && _2_tl_js_1.Api.is("storyItem", updateStory.story)) {
|
|
41
|
+
return (0, _3_types_js_1.constructStory)(updateStory.story, updateStory.peer, this.#c.getPeer);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
(0, _0_deps_js_1.unreachable)();
|
|
49
45
|
}
|
|
50
46
|
async createStory(chatId, content, params) {
|
|
51
|
-
|
|
47
|
+
this.#c.storage.assertUser("createStory");
|
|
52
48
|
let media = null;
|
|
53
49
|
const source = "video" in content ? content.video : "photo" in content ? content.photo : (0, _0_deps_js_1.unreachable)();
|
|
54
50
|
if (typeof source === "string") {
|
|
55
|
-
const fileId =
|
|
51
|
+
const fileId = this.#c.messageManager.resolveFileId(source, _3_types_js_1.FileType.Photo);
|
|
56
52
|
if (fileId !== null) {
|
|
57
53
|
media = { _: "inputMediaPhoto", id: { ...fileId, _: "inputPhoto" } };
|
|
58
54
|
}
|
|
@@ -62,7 +58,7 @@ class StoryManager {
|
|
|
62
58
|
throw new _0_errors_js_1.InputError("URL not supported.");
|
|
63
59
|
}
|
|
64
60
|
else {
|
|
65
|
-
const file = await
|
|
61
|
+
const file = await this.#c.fileManager.upload(source, params, null, "video" in content);
|
|
66
62
|
if (_2_tl_js_1.Api.is("inputFileStoryDocument", file)) {
|
|
67
63
|
(0, _0_deps_js_1.unreachable)();
|
|
68
64
|
}
|
|
@@ -76,59 +72,64 @@ class StoryManager {
|
|
|
76
72
|
}
|
|
77
73
|
}
|
|
78
74
|
const caption_ = params?.caption;
|
|
79
|
-
const parseResult = caption_ !== undefined ? await
|
|
75
|
+
const parseResult = caption_ !== undefined ? await this.#c.messageManager.parseText(caption_, { parseMode: params?.parseMode, entities: params?.captionEntities }) : undefined;
|
|
80
76
|
const caption = parseResult === undefined ? undefined : parseResult[0];
|
|
81
77
|
const entities = parseResult === undefined ? undefined : parseResult[1];
|
|
82
|
-
const peer = await
|
|
78
|
+
const peer = await this.#c.getInputPeer(chatId);
|
|
83
79
|
const randomId = (0, _1_utilities_js_1.getRandomId)();
|
|
84
|
-
const privacyRules = await (0, _3_types_js_1.storyPrivacyToTlObject)(params?.privacy ?? { everyoneExcept: [] },
|
|
80
|
+
const privacyRules = await (0, _3_types_js_1.storyPrivacyToTlObject)(params?.privacy ?? { everyoneExcept: [] }, this.#c.getPeer);
|
|
85
81
|
const mediaAreas = new Array();
|
|
86
82
|
if (params?.interactiveAreas?.length) {
|
|
87
83
|
for (const area of params.interactiveAreas) {
|
|
88
|
-
mediaAreas.push(await (0, _3_types_js_1.storyInteractiveAreaToTlObject)(area,
|
|
84
|
+
mediaAreas.push(await (0, _3_types_js_1.storyInteractiveAreaToTlObject)(area, this.#c.getPeer));
|
|
89
85
|
}
|
|
90
86
|
}
|
|
91
|
-
const updates = await
|
|
92
|
-
return await
|
|
87
|
+
const updates = await this.#c.invoke({ _: "stories.sendStory", peer, random_id: randomId, media, privacy_rules: privacyRules, caption, entities, noforwards: params?.isContentProtected ? true : undefined, period: params?.activeFor, pinned: params?.highlight ? true : undefined, media_areas: mediaAreas });
|
|
88
|
+
return await this.#updatesToStory(updates);
|
|
93
89
|
}
|
|
94
90
|
async getStories(chatId, storyIds) {
|
|
95
|
-
|
|
91
|
+
this.#c.storage.assertUser("getStories");
|
|
96
92
|
(0, _0_utilities_js_1.checkArray)(storyIds, _0_utilities_js_1.checkStoryId);
|
|
97
|
-
const peer = await
|
|
98
|
-
const stories_ = await
|
|
93
|
+
const peer = await this.#c.getInputPeer(chatId);
|
|
94
|
+
const stories_ = await this.#c.invoke({ _: "stories.getStoriesByID", peer, id: storyIds });
|
|
99
95
|
const stories = new Array();
|
|
100
96
|
for (const story of stories_.stories) {
|
|
101
|
-
stories.push((0, _3_types_js_1.constructStory)(_2_tl_js_1.Api.as("storyItem", story), _2_tl_js_1.Api.inputPeerToPeer(peer),
|
|
97
|
+
stories.push((0, _3_types_js_1.constructStory)(_2_tl_js_1.Api.as("storyItem", story), _2_tl_js_1.Api.inputPeerToPeer(peer), this.#c.getPeer));
|
|
102
98
|
}
|
|
103
99
|
return stories;
|
|
104
100
|
}
|
|
105
101
|
async getStory(chatId, storyId) {
|
|
106
|
-
|
|
102
|
+
this.#c.storage.assertUser("getStory");
|
|
107
103
|
return (await this.getStories(chatId, [storyId]))[0] ?? null;
|
|
108
104
|
}
|
|
109
105
|
async deleteStories(chatId, storyIds) {
|
|
110
|
-
|
|
111
|
-
const peer = await
|
|
112
|
-
await
|
|
106
|
+
this.#c.storage.assertUser("deleteStories");
|
|
107
|
+
const peer = await this.#c.getInputPeer(chatId);
|
|
108
|
+
await this.#c.invoke({ _: "stories.deleteStories", peer, id: storyIds });
|
|
113
109
|
}
|
|
114
110
|
async deleteStory(chatId, storyId) {
|
|
115
|
-
|
|
111
|
+
this.#c.storage.assertUser("deleteStory");
|
|
116
112
|
await this.deleteStories(chatId, [storyId]);
|
|
117
113
|
}
|
|
114
|
+
async #togglePinned(chatId, storyIds, pinned) {
|
|
115
|
+
(0, _0_utilities_js_1.checkArray)(storyIds, _0_utilities_js_1.checkStoryId);
|
|
116
|
+
const peer = await this.#c.getInputPeer(chatId);
|
|
117
|
+
await this.#c.invoke({ _: "stories.togglePinned", peer, id: storyIds, pinned });
|
|
118
|
+
}
|
|
118
119
|
async addStoriesToHighlights(chatId, storyIds) {
|
|
119
|
-
|
|
120
|
-
await
|
|
120
|
+
this.#c.storage.assertUser("addStoriesToHighlights");
|
|
121
|
+
await this.#togglePinned(chatId, storyIds, true);
|
|
121
122
|
}
|
|
122
123
|
async addStoryToHighlights(chatId, storyId) {
|
|
123
|
-
|
|
124
|
+
this.#c.storage.assertUser("addStoryToHighlights");
|
|
124
125
|
await this.addStoriesToHighlights(chatId, [storyId]);
|
|
125
126
|
}
|
|
126
127
|
async removeStoriesFromHighlights(chatId, storyIds) {
|
|
127
|
-
|
|
128
|
-
await
|
|
128
|
+
this.#c.storage.assertUser("removeStoriesFromHighlights");
|
|
129
|
+
await this.#togglePinned(chatId, storyIds, false);
|
|
129
130
|
}
|
|
130
131
|
async removeStoryFromHighlights(chatId, storyId) {
|
|
131
|
-
|
|
132
|
+
this.#c.storage.assertUser("removeStoryFromHighlights");
|
|
132
133
|
await this.removeStoriesFromHighlights(chatId, [storyId]);
|
|
133
134
|
}
|
|
134
135
|
canHandleUpdate(update) {
|
|
@@ -141,7 +142,7 @@ class StoryManager {
|
|
|
141
142
|
return { deletedStory: { chatId, storyId } };
|
|
142
143
|
}
|
|
143
144
|
else if (_2_tl_js_1.Api.is("storyItem", update.story)) {
|
|
144
|
-
const story = (0, _3_types_js_1.constructStory)(update.story, update.peer,
|
|
145
|
+
const story = (0, _3_types_js_1.constructStory)(update.story, update.peer, this.#c.getPeer);
|
|
145
146
|
return { story };
|
|
146
147
|
}
|
|
147
148
|
else {
|
|
@@ -150,16 +151,3 @@ class StoryManager {
|
|
|
150
151
|
}
|
|
151
152
|
}
|
|
152
153
|
exports.StoryManager = StoryManager;
|
|
153
|
-
_StoryManager_c = new WeakMap(), _StoryManager_instances = new WeakSet(), _StoryManager_updatesToStory = function _StoryManager_updatesToStory(updates) {
|
|
154
|
-
if (_2_tl_js_1.Api.is("updates", updates)) {
|
|
155
|
-
const updateStory = updates.updates.find((v) => _2_tl_js_1.Api.is("updateStory", v));
|
|
156
|
-
if (updateStory && _2_tl_js_1.Api.is("storyItem", updateStory.story)) {
|
|
157
|
-
return (0, _3_types_js_1.constructStory)(updateStory.story, updateStory.peer, __classPrivateFieldGet(this, _StoryManager_c, "f").getPeer);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
(0, _0_deps_js_1.unreachable)();
|
|
161
|
-
}, _StoryManager_togglePinned = async function _StoryManager_togglePinned(chatId, storyIds, pinned) {
|
|
162
|
-
(0, _0_utilities_js_1.checkArray)(storyIds, _0_utilities_js_1.checkStoryId);
|
|
163
|
-
const peer = await __classPrivateFieldGet(this, _StoryManager_c, "f").getInputPeer(chatId);
|
|
164
|
-
await __classPrivateFieldGet(this, _StoryManager_c, "f").invoke({ _: "stories.togglePinned", peer, id: storyIds, pinned });
|
|
165
|
-
};
|
|
@@ -18,18 +18,6 @@
|
|
|
18
18
|
* You should have received a copy of the GNU Lesser General Public License
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
22
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
23
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
24
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
25
|
-
};
|
|
26
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
27
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
28
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
29
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
30
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
31
|
-
};
|
|
32
|
-
var _Composer_handle, _Composer_prefixes, _Composer_lastGetMe;
|
|
33
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
22
|
exports.Composer = void 0;
|
|
35
23
|
exports.flatten = flatten;
|
|
@@ -58,32 +46,32 @@ function skip(_ctx, next) {
|
|
|
58
46
|
return next();
|
|
59
47
|
}
|
|
60
48
|
class Composer {
|
|
49
|
+
#handle;
|
|
50
|
+
#prefixes;
|
|
61
51
|
set prefixes(value) {
|
|
62
|
-
if (
|
|
52
|
+
if (this.#prefixes !== undefined) {
|
|
63
53
|
throw new _0_errors_js_1.InputError("Prefixes already set");
|
|
64
54
|
}
|
|
65
|
-
|
|
55
|
+
this.#prefixes = value;
|
|
66
56
|
}
|
|
67
57
|
constructor(...middleware) {
|
|
68
|
-
|
|
69
|
-
_Composer_prefixes.set(this, void 0);
|
|
70
|
-
_Composer_lastGetMe.set(this, void 0);
|
|
71
|
-
__classPrivateFieldSet(this, _Composer_handle, middleware.length === 0 ? skip : middleware.map(flatten).reduce(concat), "f");
|
|
58
|
+
this.#handle = middleware.length === 0 ? skip : middleware.map(flatten).reduce(concat);
|
|
72
59
|
}
|
|
60
|
+
#lastGetMe;
|
|
73
61
|
async handleUpdate(client, update) {
|
|
74
|
-
if (!
|
|
75
|
-
|
|
62
|
+
if (!this.#lastGetMe && !("connectionState" in update) && (!("authorizationState" in update) || ("authorizationState" in update && update.authorizationState.isAuthorized))) {
|
|
63
|
+
this.#lastGetMe = await client.getMe();
|
|
76
64
|
}
|
|
77
|
-
const ctx = new _4_context_js_1.Context(client,
|
|
65
|
+
const ctx = new _4_context_js_1.Context(client, this.#lastGetMe, update);
|
|
78
66
|
const next = () => Promise.resolve();
|
|
79
|
-
await
|
|
67
|
+
await this.#handle(ctx, next);
|
|
80
68
|
}
|
|
81
69
|
middleware() {
|
|
82
|
-
return
|
|
70
|
+
return this.#handle;
|
|
83
71
|
}
|
|
84
72
|
use(...middleware) {
|
|
85
73
|
const composer = new Composer(...middleware);
|
|
86
|
-
|
|
74
|
+
this.#handle = concat(this.#handle, flatten(composer));
|
|
87
75
|
return composer;
|
|
88
76
|
}
|
|
89
77
|
branch(predicate, trueHandler_, falseHandler_) {
|
|
@@ -107,7 +95,7 @@ class Composer {
|
|
|
107
95
|
return this.filter((ctx) => ctx.hasFilterQuery(filter), ...middleware);
|
|
108
96
|
}
|
|
109
97
|
command(commands, ...middleware) {
|
|
110
|
-
return this.filter(_4_context_js_1.Context.has.command(commands,
|
|
98
|
+
return this.filter(_4_context_js_1.Context.has.command(commands, this.#prefixes), ...middleware);
|
|
111
99
|
}
|
|
112
100
|
callbackQuery(data, ...middleware) {
|
|
113
101
|
return this.filter(_4_context_js_1.Context.has.callbackQuery(data), ...middleware);
|
|
@@ -123,4 +111,3 @@ class Composer {
|
|
|
123
111
|
}
|
|
124
112
|
}
|
|
125
113
|
exports.Composer = Composer;
|
|
126
|
-
_Composer_handle = new WeakMap(), _Composer_prefixes = new WeakMap(), _Composer_lastGetMe = new WeakMap();
|