diff --git a/lib/TelegramClient.ts b/lib/TelegramClient.ts index 8144147..45c328b 100644 --- a/lib/TelegramClient.ts +++ b/lib/TelegramClient.ts @@ -1,5 +1,5 @@ import { Injectable, Inject } from '@nestjs/common' -import Telegram from 'telegraf/telegram' +const Telegram = require('telegraf/telegram') import { TokenInjectionToken } from './TokenInjectionToken' import { TelegramModuleOptionsFactory } from './TelegramModuleOptionsFactory' diff --git a/lib/telegram.module.ts b/lib/telegram.module.ts index b7eac36..0e88913 100644 --- a/lib/telegram.module.ts +++ b/lib/telegram.module.ts @@ -33,7 +33,7 @@ export class TelegramModule implements NestModule { useClass: factory.useClass, }, ], - exports: [TelegramBot], + exports: [TelegramBot, TelegramClient], } } }