nestjs-telegraf/website/docs/extras/middlewares.md
2021-02-14 23:59:26 +03:00

334 B

id title sidebar_label slug
middlewares Middlewares Middlewares /extras/middlewares

nestjs-telegraf has support of the Telegraf middleware packages. To use an existing middleware package, simply import it and add it to the middlewares array:

TelegrafModule.forRoot({
  middlewares: [session()],  
}),