mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-24 15:04:38 +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
|
```typescript
|
||||||
import { Module } from '@nestjs/common';
|
import { Module } from '@nestjs/common';
|
||||||
import { TelegrafModule } from 'nestjs-telegraf';
|
import { TelegrafModule } from 'nestjs-telegraf';
|
||||||
|
import { AppUpdate } from './app.update';
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [
|
imports: [
|
||||||
TelegrafModule.forRoot({
|
TelegrafModule.forRoot({
|
||||||
token: 'TELEGRAM_BOT_TOKEN',
|
token: 'TELEGRAM_BOT_TOKEN',
|
||||||
}),
|
}),
|
||||||
providers: [AppUpdate],
|
|
||||||
],
|
],
|
||||||
|
providers: [AppUpdate],
|
||||||
})
|
})
|
||||||
export class AppModule {}
|
export class AppModule {}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user