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';
|
2020-12-29 22:41:06 +03:00
|
|
|
import { HelloScene } from './scenes/hello.scene';
|
2020-12-30 01:49:09 +03:00
|
|
|
import { sessionMiddleware } from './middleware/session.middleware';
|
2021-01-03 13:50:04 +03:00
|
|
|
import { SUPPORT_BOT_NAME } from './app.constants';
|
2020-12-26 16:23:54 +03:00
|
|
|
|
|
|
|
@Module({
|
|
|
|
imports: [
|
|
|
|
TelegrafModule.forRoot({
|
2021-01-03 13:50:04 +03:00
|
|
|
token: '1417509321:AAEHz8a2QSAP4cTHh4Z6-ulePysFaUx4SjY', // Don't steal >:(
|
|
|
|
middlewares: [sessionMiddleware],
|
|
|
|
}),
|
|
|
|
TelegrafModule.forRoot({
|
|
|
|
name: SUPPORT_BOT_NAME,
|
|
|
|
token: '1435922623:AAHmBmnyqroHxDbuK6OKsLV8Y_oB_Lf9E6E', // Don't steal >:(
|
2020-12-30 01:49:09 +03:00
|
|
|
middlewares: [sessionMiddleware],
|
2020-12-26 16:23:54 +03:00
|
|
|
}),
|
|
|
|
],
|
2020-12-29 22:41:06 +03:00
|
|
|
providers: [EchoService, AppUpdate, HelloScene],
|
2020-12-26 16:23:54 +03:00
|
|
|
})
|
|
|
|
export class AppModule {}
|