mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-25 07:24:39 +03:00
9 lines
239 B
TypeScript
9 lines
239 B
TypeScript
|
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,
|
||
|
};
|