mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-24 15:04:38 +03:00
commit
115aed29a2
@ -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