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,3 @@
export * from './scene-enter.decorator';
export * from './scene-leave.decorator';
export * from './wizard-step.decorator';

View File

@@ -0,0 +1,6 @@
import { SetMetadata } from '@nestjs/common';
import { WizardStepMetadata } from '../../interfaces';
import { WIZARD_STEP_METADATA } from '../../telegraf.constants';
export const WizardStep = (step: number) =>
SetMetadata<string, WizardStepMetadata>(WIZARD_STEP_METADATA, { step });