nestjs-telegraf/lib/stage.provider.ts

9 lines
239 B
TypeScript
Raw Permalink Normal View History

import { Provider } from '@nestjs/common';
import { Scenes } from 'telegraf';
import { TELEGRAF_STAGE } from './telegraf.constants';
export const telegrafStageProvider: Provider = {
provide: TELEGRAF_STAGE,
useClass: Scenes.Stage,
};