@mtcute/node 0.22.3 → 0.24.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 +2 -2
- package/client.d.cts +1 -1
- package/client.d.ts +1 -1
- package/client.js +2 -2
- package/package.json +8 -8
package/client.cjs
CHANGED
|
@@ -57,9 +57,9 @@ class TelegramClient extends client_js.TelegramClient {
|
|
|
57
57
|
}
|
|
58
58
|
return new Promise((res) => this._rl?.question(text, res));
|
|
59
59
|
}
|
|
60
|
-
|
|
60
|
+
destroy() {
|
|
61
61
|
this._rl?.close();
|
|
62
|
-
return super.
|
|
62
|
+
return super.destroy();
|
|
63
63
|
}
|
|
64
64
|
start(params = {}) {
|
|
65
65
|
if (!params.botToken) {
|
package/client.d.cts
CHANGED
|
@@ -32,7 +32,7 @@ export declare class TelegramClient extends TelegramClientBase {
|
|
|
32
32
|
* @param text Text of the question
|
|
33
33
|
*/
|
|
34
34
|
input(text: string): Promise<string>;
|
|
35
|
-
|
|
35
|
+
destroy(): Promise<void>;
|
|
36
36
|
start(params?: Parameters<TelegramClientBase['start']>[0]): Promise<User>;
|
|
37
37
|
run(params: Parameters<TelegramClient['start']>[0] | ((user: User) => void | Promise<void>), then?: (user: User) => void | Promise<void>): void;
|
|
38
38
|
downloadToFile(filename: string, location: FileDownloadLocation, params?: FileDownloadParameters | undefined): Promise<void>;
|
package/client.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export declare class TelegramClient extends TelegramClientBase {
|
|
|
32
32
|
* @param text Text of the question
|
|
33
33
|
*/
|
|
34
34
|
input(text: string): Promise<string>;
|
|
35
|
-
|
|
35
|
+
destroy(): Promise<void>;
|
|
36
36
|
start(params?: Parameters<TelegramClientBase['start']>[0]): Promise<User>;
|
|
37
37
|
run(params: Parameters<TelegramClient['start']>[0] | ((user: User) => void | Promise<void>), then?: (user: User) => void | Promise<void>): void;
|
|
38
38
|
downloadToFile(filename: string, location: FileDownloadLocation, params?: FileDownloadParameters | undefined): Promise<void>;
|
package/client.js
CHANGED
|
@@ -50,9 +50,9 @@ class TelegramClient extends TelegramClient$1 {
|
|
|
50
50
|
}
|
|
51
51
|
return new Promise((res) => this._rl?.question(text, res));
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
destroy() {
|
|
54
54
|
this._rl?.close();
|
|
55
|
-
return super.
|
|
55
|
+
return super.destroy();
|
|
56
56
|
}
|
|
57
57
|
start(params = {}) {
|
|
58
58
|
if (!params.botToken) {
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mtcute/node",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.24.0",
|
|
5
5
|
"description": "Meta-package for Node.js",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@mtcute/core": "^0.
|
|
9
|
-
"@mtcute/html-parser": "^0.
|
|
10
|
-
"@mtcute/markdown-parser": "^0.
|
|
11
|
-
"@mtcute/wasm": "^0.
|
|
12
|
-
"@fuman/utils": "0.0.
|
|
13
|
-
"@fuman/net": "0.0.
|
|
14
|
-
"@fuman/node": "0.0.
|
|
8
|
+
"@mtcute/core": "^0.24.0",
|
|
9
|
+
"@mtcute/html-parser": "^0.24.0",
|
|
10
|
+
"@mtcute/markdown-parser": "^0.24.0",
|
|
11
|
+
"@mtcute/wasm": "^0.23.0",
|
|
12
|
+
"@fuman/utils": "0.0.14",
|
|
13
|
+
"@fuman/net": "0.0.14",
|
|
14
|
+
"@fuman/node": "0.0.14",
|
|
15
15
|
"better-sqlite3": "11.3.0"
|
|
16
16
|
},
|
|
17
17
|
"exports": {
|