feat(scene): added wizard scene support

This commit is contained in:
xTCry [Vladislav Kh]
2021-08-03 17:03:16 +03:00
parent a4cb8df434
commit 623ce16327
10 changed files with 127 additions and 12 deletions

View File

@@ -1,2 +1,4 @@
export * from './telegraf-options.interface';
export * from './listener-metadata.interface';
export * from './scene-metadata.interface';
export * from './telegraf-exception-filter.interface';

View File

@@ -0,0 +1,11 @@
import { SceneOptions } from 'telegraf/typings/scenes/base';
export interface SceneMetadata {
sceneId: string;
type: 'base' | 'wizard';
options?: SceneOptions<any>;
}
export interface WizardStepMetadata {
step: number;
}