nestjs-telegraf/website/versioned_docs/version-2.0.0/extras/middlewares.md

14 lines
334 B
Markdown
Raw Normal View History

2021-01-02 03:10:25 +03:00
---
id: middlewares
title: Middlewares
sidebar_label: Middlewares
2021-02-14 23:59:26 +03:00
slug: /extras/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()],
}),
```