nestjs-telegraf/docs/extras/middlewares.md

8 lines
251 B
Markdown
Raw Normal View History

2023-07-24 16:02:21 +03:00
# Middlewares
2021-01-02 03:10:25 +03:00
`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:
```typescript
TelegrafModule.forRoot({
middlewares: [session()],
}),
```