From 303caeae8cfbfdebe60fbd1baebb69807eedcb40 Mon Sep 17 00:00:00 2001 From: Igor Kamyshev Date: Sat, 11 May 2019 21:10:14 +0300 Subject: [PATCH] fix(client): fix import and export --- lib/TelegramClient.ts | 2 +- lib/telegram.module.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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], } } }