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, Logger,
OnApplicationShutdown, OnApplicationShutdown,
} from '@nestjs/common'; } from '@nestjs/common';
import Telegraf, { ContextMessageUpdate } from 'telegraf'; const Telegraf = require('telegraf');
import { ContextMessageUpdate } from 'telegraf';
import { TELEGRAF_MODULE_OPTIONS } from './telegraf.constants'; import { TELEGRAF_MODULE_OPTIONS } from './telegraf.constants';
import { TelegrafModuleOptions } from './interfaces'; import { TelegrafModuleOptions } from './interfaces';
@Injectable() @Injectable()
// @ts-ignore
export class TelegrafProvider<TContext extends ContextMessageUpdate> export class TelegrafProvider<TContext extends ContextMessageUpdate>
extends Telegraf<TContext> extends Telegraf<TContext>
implements OnApplicationBootstrap, OnApplicationShutdown { implements OnApplicationBootstrap, OnApplicationShutdown {