chz-telegram-bot 0.3.17 → 0.3.18
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/dist/types/capture.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReplyContextInternal } from '../entities/context/replyContext';
|
|
1
|
+
import { ReplyContext, ReplyContextInternal } from '../entities/context/replyContext';
|
|
2
2
|
import { IActionState } from './actionState';
|
|
3
3
|
import { CommandTrigger } from './commandTrigger';
|
|
4
4
|
import { IActionWithState } from './action';
|
|
@@ -11,7 +11,7 @@ export interface ICaptureController {
|
|
|
11
11
|
*/
|
|
12
12
|
trigger: CommandTrigger[],
|
|
13
13
|
/** Callback that will be called on trigger */
|
|
14
|
-
handler: (replyContext:
|
|
14
|
+
handler: (replyContext: ReplyContext<TParentActionState>) => Promise<void>,
|
|
15
15
|
/** Abort controller to abort capturing manually */
|
|
16
16
|
abortController: AbortController) => void;
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capture.d.ts","sourceRoot":"","sources":["../../types/capture.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"capture.d.ts","sourceRoot":"","sources":["../../types/capture.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,oBAAoB,EACvB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,kBAAkB;IAC/B,cAAc,EAAE,CAAC,kBAAkB,SAAS,YAAY;IACpD;;;;OAIG;IACH,OAAO,EAAE,cAAc,EAAE;IACzB,8CAA8C;IAC9C,OAAO,EAAE,CACL,YAAY,EAAE,YAAY,CAAC,kBAAkB,CAAC,KAC7C,OAAO,CAAC,IAAI,CAAC;IAClB,mDAAmD;IACnD,eAAe,EAAE,eAAe,KAC/B,IAAI,CAAC;CACb;AAED,MAAM,WAAW,aAAa;IAC1B,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,OAAO,EAAE,CACL,YAAY,EAAE,oBAAoB,CAAC,YAAY,CAAC,KAC/C,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,eAAe,EAAE,eAAe,CAAC;IACjC,MAAM,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC;CAC1C"}
|
|
@@ -14,7 +14,7 @@ import { Milliseconds } from '../../types/timeValues';
|
|
|
14
14
|
import { DelayResponse } from '../../dtos/responses/delay';
|
|
15
15
|
import { ICaptureController } from '../../types/capture';
|
|
16
16
|
import { CommandTrigger } from '../../types/commandTrigger';
|
|
17
|
-
import {
|
|
17
|
+
import { ReplyContext } from './replyContext';
|
|
18
18
|
import {
|
|
19
19
|
BaseContextInternal,
|
|
20
20
|
BaseContextPropertiesToOmit
|
|
@@ -43,7 +43,7 @@ export class ChatContextInternal<
|
|
|
43
43
|
captureReplies: (
|
|
44
44
|
trigger: CommandTrigger[],
|
|
45
45
|
handler: (
|
|
46
|
-
replyContext:
|
|
46
|
+
replyContext: ReplyContext<TActionState>
|
|
47
47
|
) => Promise<void>,
|
|
48
48
|
abortController: AbortController
|
|
49
49
|
) => {
|
package/package.json
CHANGED
package/types/capture.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ReplyContext,
|
|
3
|
+
ReplyContextInternal
|
|
4
|
+
} from '../entities/context/replyContext';
|
|
2
5
|
import { IActionState } from './actionState';
|
|
3
6
|
import { CommandTrigger } from './commandTrigger';
|
|
4
7
|
import { IActionWithState } from './action';
|
|
@@ -13,7 +16,7 @@ export interface ICaptureController {
|
|
|
13
16
|
trigger: CommandTrigger[],
|
|
14
17
|
/** Callback that will be called on trigger */
|
|
15
18
|
handler: (
|
|
16
|
-
replyContext:
|
|
19
|
+
replyContext: ReplyContext<TParentActionState>
|
|
17
20
|
) => Promise<void>,
|
|
18
21
|
/** Abort controller to abort capturing manually */
|
|
19
22
|
abortController: AbortController
|