mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-24 23:14:39 +03:00
fix: dirty hack for fix wrong telegraf package typings
This commit is contained in:
parent
177e53b73b
commit
e1727c28c1
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user