nestjs-telegraf/sample/app.module.ts

18 lines
553 B
TypeScript
Raw Normal View History

2020-12-26 16:23:54 +03:00
import { Module } from '@nestjs/common';
import { TelegrafModule } from '../lib';
2020-12-26 16:48:04 +03:00
import { EchoService } from './echo.service';
2020-12-26 16:23:54 +03:00
import { AppUpdate } from './app.update';
import { HelloScene } from './scenes/hello.scene';
2021-01-03 01:30:57 +03:00
import { sessionMiddleware } from './common/middleware/session.middleware';
2020-12-26 16:23:54 +03:00
@Module({
imports: [
TelegrafModule.forRoot({
token: '1467731595:AAHCvH65H9VQYKF9jE-E8c2rXsQBVAYseg8', // Don't steal >:(
middlewares: [sessionMiddleware],
2020-12-26 16:23:54 +03:00
}),
],
2021-01-03 01:30:57 +03:00
providers: [EchoService, AppUpdate],
2020-12-26 16:23:54 +03:00
})
export class AppModule {}