mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2025-01-15 08:21:21 +03:00
8 lines
251 B
Markdown
8 lines
251 B
Markdown
# 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:
|
|
```typescript
|
|
TelegrafModule.forRoot({
|
|
middlewares: [session()],
|
|
}),
|
|
```
|