@mtcute/dispatcher 0.14.0 → 0.15.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/cjs/filters/message.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export declare const media: UpdateFilter<Message, {
|
|
|
47
47
|
/**
|
|
48
48
|
* Filter messages containing media of given type
|
|
49
49
|
*/
|
|
50
|
-
export declare const mediaOf: <T extends "photo" | "location" | "poll" | "story" | "contact" | "game" | "sticker" | "dice" | "audio" | "voice" | "document" | "video" | "live_location" | "webpage" | "venue" | "invoice">(type: T) => UpdateFilter<Message, {
|
|
50
|
+
export declare const mediaOf: <T extends "photo" | "location" | "poll" | "story" | "contact" | "game" | "sticker" | "dice" | "audio" | "voice" | "document" | "video" | "live_location" | "webpage" | "venue" | "invoice" | "paid">(type: T) => UpdateFilter<Message, {
|
|
51
51
|
media: Extract<Sticker, {
|
|
52
52
|
type: T;
|
|
53
53
|
}> | Extract<import("@mtcute/core").Photo, {
|
|
@@ -80,6 +80,8 @@ export declare const mediaOf: <T extends "photo" | "location" | "poll" | "story"
|
|
|
80
80
|
type: T;
|
|
81
81
|
}> | Extract<import("@mtcute/core").MediaStory, {
|
|
82
82
|
type: T;
|
|
83
|
+
}> | Extract<import("@mtcute/core").PaidMedia, {
|
|
84
|
+
type: T;
|
|
83
85
|
}>;
|
|
84
86
|
}>;
|
|
85
87
|
/** Filter messages containing a photo */
|
package/esm/filters/message.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export declare const media: UpdateFilter<Message, {
|
|
|
47
47
|
/**
|
|
48
48
|
* Filter messages containing media of given type
|
|
49
49
|
*/
|
|
50
|
-
export declare const mediaOf: <T extends "photo" | "location" | "poll" | "story" | "contact" | "game" | "sticker" | "dice" | "audio" | "voice" | "document" | "video" | "live_location" | "webpage" | "venue" | "invoice">(type: T) => UpdateFilter<Message, {
|
|
50
|
+
export declare const mediaOf: <T extends "photo" | "location" | "poll" | "story" | "contact" | "game" | "sticker" | "dice" | "audio" | "voice" | "document" | "video" | "live_location" | "webpage" | "venue" | "invoice" | "paid">(type: T) => UpdateFilter<Message, {
|
|
51
51
|
media: Extract<Sticker, {
|
|
52
52
|
type: T;
|
|
53
53
|
}> | Extract<import("@mtcute/core").Photo, {
|
|
@@ -80,6 +80,8 @@ export declare const mediaOf: <T extends "photo" | "location" | "poll" | "story"
|
|
|
80
80
|
type: T;
|
|
81
81
|
}> | Extract<import("@mtcute/core").MediaStory, {
|
|
82
82
|
type: T;
|
|
83
|
+
}> | Extract<import("@mtcute/core").PaidMedia, {
|
|
84
|
+
type: T;
|
|
83
85
|
}>;
|
|
84
86
|
}>;
|
|
85
87
|
/** Filter messages containing a photo */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mtcute/dispatcher",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Updates dispatcher and bot framework for @mtcute/client",
|
|
5
5
|
"author": "alina sireneva <alina@tei.su>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,9 +14,14 @@
|
|
|
14
14
|
},
|
|
15
15
|
"scripts": {},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@mtcute/core": "^0.
|
|
17
|
+
"@mtcute/core": "^0.15.0",
|
|
18
18
|
"events": "3.2.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "cjs/index.js",
|
|
21
|
-
"module": "esm/index.js"
|
|
21
|
+
"module": "esm/index.js",
|
|
22
|
+
"homepage": "https://mtcute.dev",
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "https://github.com/mtcute/mtcute"
|
|
26
|
+
}
|
|
22
27
|
}
|