@mtcute/dispatcher 0.15.2 → 0.16.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
|
@@ -219,7 +219,7 @@ export declare const service: UpdateFilter<Message, {
|
|
|
219
219
|
/**
|
|
220
220
|
* Filter service messages by action type
|
|
221
221
|
*/
|
|
222
|
-
export declare const action: <T extends "chat_created" | "channel_created" | "chat_migrate_to" | "channel_migrate_from" | "message_pinned" | "history_cleared" | "game_score" | "contact_joined" | "title_changed" | "photo_changed" | "photo_deleted" | "users_added" | "user_left" | "user_removed" | "user_joined_link" | "payment_received" | "payment_sent" | "call" | "screenshot_taken" | "bot_allowed" | "geo_proximity" | "group_call_started" | "group_call_ended" | "group_call_scheduled" | "group_call_invite" | "ttl_changed" | "topic_created" | "topic_edited" | "custom" | "theme_changed" | "user_joined_approved" | "webview_sent" | "webview_received" | "premium_gifted" | "photo_suggested" | "peer_sent" | "peer_chosen" | "wallpaper_changed" | "gift_code" | "giveaway_started" | "giveaway_ended" | "boost_apply">(type: MaybeArray<T>) => UpdateFilter<Message, {
|
|
222
|
+
export declare const action: <T extends "chat_created" | "channel_created" | "chat_migrate_to" | "channel_migrate_from" | "message_pinned" | "history_cleared" | "game_score" | "contact_joined" | "title_changed" | "photo_changed" | "photo_deleted" | "users_added" | "user_left" | "user_removed" | "user_joined_link" | "payment_received" | "payment_sent" | "call" | "screenshot_taken" | "bot_allowed" | "geo_proximity" | "group_call_started" | "group_call_ended" | "group_call_scheduled" | "group_call_invite" | "ttl_changed" | "topic_created" | "topic_edited" | "custom" | "theme_changed" | "user_joined_approved" | "webview_sent" | "webview_received" | "premium_gifted" | "photo_suggested" | "peer_sent" | "peer_chosen" | "wallpaper_changed" | "gift_code" | "giveaway_started" | "giveaway_ended" | "boost_apply" | "payment_refunded">(type: MaybeArray<T>) => UpdateFilter<Message, {
|
|
223
223
|
action: Extract<import("@mtcute/core").ActionChatCreated, {
|
|
224
224
|
type: T;
|
|
225
225
|
}> | Extract<import("@mtcute/core").ActionChannelCreated, {
|
|
@@ -304,6 +304,8 @@ export declare const action: <T extends "chat_created" | "channel_created" | "ch
|
|
|
304
304
|
type: T;
|
|
305
305
|
}> | Extract<import("@mtcute/core").ActionBoostApply, {
|
|
306
306
|
type: T;
|
|
307
|
+
}> | Extract<import("@mtcute/core").ActionPaymentRefunded, {
|
|
308
|
+
type: T;
|
|
307
309
|
}>;
|
|
308
310
|
sender: T extends 'user_joined_link' | 'user_removed' | 'history_cleared' | 'contact_joined' | 'bot_allowed' ? User : Peer;
|
|
309
311
|
}>;
|
package/esm/filters/message.d.ts
CHANGED
|
@@ -219,7 +219,7 @@ export declare const service: UpdateFilter<Message, {
|
|
|
219
219
|
/**
|
|
220
220
|
* Filter service messages by action type
|
|
221
221
|
*/
|
|
222
|
-
export declare const action: <T extends "chat_created" | "channel_created" | "chat_migrate_to" | "channel_migrate_from" | "message_pinned" | "history_cleared" | "game_score" | "contact_joined" | "title_changed" | "photo_changed" | "photo_deleted" | "users_added" | "user_left" | "user_removed" | "user_joined_link" | "payment_received" | "payment_sent" | "call" | "screenshot_taken" | "bot_allowed" | "geo_proximity" | "group_call_started" | "group_call_ended" | "group_call_scheduled" | "group_call_invite" | "ttl_changed" | "topic_created" | "topic_edited" | "custom" | "theme_changed" | "user_joined_approved" | "webview_sent" | "webview_received" | "premium_gifted" | "photo_suggested" | "peer_sent" | "peer_chosen" | "wallpaper_changed" | "gift_code" | "giveaway_started" | "giveaway_ended" | "boost_apply">(type: MaybeArray<T>) => UpdateFilter<Message, {
|
|
222
|
+
export declare const action: <T extends "chat_created" | "channel_created" | "chat_migrate_to" | "channel_migrate_from" | "message_pinned" | "history_cleared" | "game_score" | "contact_joined" | "title_changed" | "photo_changed" | "photo_deleted" | "users_added" | "user_left" | "user_removed" | "user_joined_link" | "payment_received" | "payment_sent" | "call" | "screenshot_taken" | "bot_allowed" | "geo_proximity" | "group_call_started" | "group_call_ended" | "group_call_scheduled" | "group_call_invite" | "ttl_changed" | "topic_created" | "topic_edited" | "custom" | "theme_changed" | "user_joined_approved" | "webview_sent" | "webview_received" | "premium_gifted" | "photo_suggested" | "peer_sent" | "peer_chosen" | "wallpaper_changed" | "gift_code" | "giveaway_started" | "giveaway_ended" | "boost_apply" | "payment_refunded">(type: MaybeArray<T>) => UpdateFilter<Message, {
|
|
223
223
|
action: Extract<import("@mtcute/core").ActionChatCreated, {
|
|
224
224
|
type: T;
|
|
225
225
|
}> | Extract<import("@mtcute/core").ActionChannelCreated, {
|
|
@@ -304,6 +304,8 @@ export declare const action: <T extends "chat_created" | "channel_created" | "ch
|
|
|
304
304
|
type: T;
|
|
305
305
|
}> | Extract<import("@mtcute/core").ActionBoostApply, {
|
|
306
306
|
type: T;
|
|
307
|
+
}> | Extract<import("@mtcute/core").ActionPaymentRefunded, {
|
|
308
|
+
type: T;
|
|
307
309
|
}>;
|
|
308
310
|
sender: T extends 'user_joined_link' | 'user_removed' | 'history_cleared' | 'contact_joined' | 'bot_allowed' ? User : Peer;
|
|
309
311
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mtcute/dispatcher",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.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,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"scripts": {},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@mtcute/core": "^0.
|
|
17
|
+
"@mtcute/core": "^0.16.0",
|
|
18
18
|
"events": "3.2.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "cjs/index.js",
|