mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-24 23:14:39 +03:00
fix(client): fix import and export
This commit is contained in:
parent
8e7bdd33f7
commit
303caeae8c
@ -1,5 +1,5 @@
|
|||||||
import { Injectable, Inject } from '@nestjs/common'
|
import { Injectable, Inject } from '@nestjs/common'
|
||||||
import Telegram from 'telegraf/telegram'
|
const Telegram = require('telegraf/telegram')
|
||||||
|
|
||||||
import { TokenInjectionToken } from './TokenInjectionToken'
|
import { TokenInjectionToken } from './TokenInjectionToken'
|
||||||
import { TelegramModuleOptionsFactory } from './TelegramModuleOptionsFactory'
|
import { TelegramModuleOptionsFactory } from './TelegramModuleOptionsFactory'
|
||||||
|
@ -33,7 +33,7 @@ export class TelegramModule implements NestModule {
|
|||||||
useClass: factory.useClass,
|
useClass: factory.useClass,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
exports: [TelegramBot],
|
exports: [TelegramBot, TelegramClient],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user