mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-23 22:52:59 +03:00
Fix AppModule
Fixes proposal from https://github.com/bukhalo/nestjs-telegraf/pull/806
This commit is contained in:
parent
90c3acae36
commit
c475a5bc68
@ -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 {}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user