Fix AppModule

Fixes proposal from https://github.com/bukhalo/nestjs-telegraf/pull/806
This commit is contained in:
Andrii Abramov 2022-06-24 00:34:02 +03:00 committed by GitHub
parent 90c3acae36
commit c475a5bc68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,14 +31,15 @@ Once the installation process is complete, we can import the `TelegrafModule` in
```typescript
import { Module } from '@nestjs/common';
import { TelegrafModule } from 'nestjs-telegraf';
import { AppUpdate } from './app.update';
@Module({
imports: [
TelegrafModule.forRoot({
token: 'TELEGRAM_BOT_TOKEN',
}),
providers: [AppUpdate],
],
providers: [AppUpdate],
})
export class AppModule {}
```