Closed ddtch closed 2 months ago
you need to add the session middleware and update telegraf to the latest version if you won't update you will get depracted notice
import { Module } from '@nestjs/common';
import { TelegrafModule } from 'nestjs-telegraf';
import { TestBotModule } from './test-bot/test-bot.module';
import { session } from 'telegraf';
@Module({
imports: [
TelegrafModule.forRoot({
token: 'TALGRAM_TOKEN',
middlewares: [session()],
}),
TestBotModule
],
})
export class AppModule { }
Hello, my issue is more about the question of how to work with scenes? This part is really not described well in docs.
I was trying to create scene like this
But after I add
SceneEnter
decorator, I see an error.Any Ideas, advices ?