fix: dirty hack for fix wrong telegraf package typings

This commit is contained in:
Aleksandr Bukhalo 2020-03-28 11:10:10 +03:00
parent 177e53b73b
commit e1727c28c1

View File

@ -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<TContext extends ContextMessageUpdate>
extends Telegraf<TContext>
implements OnApplicationBootstrap, OnApplicationShutdown {