Merge pull request #851 from aaabramov/patch-1

Fix AppModule
This commit is contained in:
Aleksandr Bukhalo 2022-06-26 01:31:13 +03:00 committed by GitHub
commit 115aed29a2
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 {}
```