mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-26 15:58:09 +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,
|
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user