From e1727c28c1e04b6bb6ecc885985335c9101625c9 Mon Sep 17 00:00:00 2001 From: Aleksandr Bukhalo Date: Sat, 28 Mar 2020 11:10:10 +0300 Subject: [PATCH] fix: dirty hack for fix wrong telegraf package typings --- lib/telegraf.provider.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/telegraf.provider.ts b/lib/telegraf.provider.ts index ed1f90a..80e4851 100644 --- a/lib/telegraf.provider.ts +++ b/lib/telegraf.provider.ts @@ -5,12 +5,12 @@ import { Logger, OnApplicationShutdown, } from '@nestjs/common'; -import Telegraf, { ContextMessageUpdate } from 'telegraf'; +const Telegraf = require('telegraf'); +import { ContextMessageUpdate } from 'telegraf'; import { TELEGRAF_MODULE_OPTIONS } from './telegraf.constants'; import { TelegrafModuleOptions } from './interfaces'; @Injectable() -// @ts-ignore export class TelegrafProvider extends Telegraf implements OnApplicationBootstrap, OnApplicationShutdown {