mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-25 23:44:39 +03:00
fix: add telegraf.provider.ts into .prettierignore 🤬
This commit is contained in:
parent
e1727c28c1
commit
a30b7cdf68
1
.prettierignore
Normal file
1
.prettierignore
Normal file
@ -0,0 +1 @@
|
|||||||
|
lib/telegraf.provider.ts
|
@ -2,11 +2,10 @@ import { Injectable, OnModuleInit } from '@nestjs/common';
|
|||||||
import { DiscoveryService, ModuleRef } from '@nestjs/core';
|
import { DiscoveryService, ModuleRef } from '@nestjs/core';
|
||||||
import { InstanceWrapper } from '@nestjs/core/injector/instance-wrapper';
|
import { InstanceWrapper } from '@nestjs/core/injector/instance-wrapper';
|
||||||
import { MetadataScanner } from '@nestjs/core/metadata-scanner';
|
import { MetadataScanner } from '@nestjs/core/metadata-scanner';
|
||||||
import Telegraf from 'telegraf';
|
|
||||||
import { TelegrafMetadataAccessor } from './telegraf-metadata.accessor';
|
import { TelegrafMetadataAccessor } from './telegraf-metadata.accessor';
|
||||||
import { TelegrafProvider } from './telegraf.provider';
|
import { TelegrafProvider } from './telegraf.provider';
|
||||||
import { TELEGRAF_PROVIDER } from './telegraf.constants';
|
import { TELEGRAF_PROVIDER } from './telegraf.constants';
|
||||||
import { ContextMessageUpdate } from 'telegraf';
|
import { Telegraf, ContextMessageUpdate } from 'telegraf';
|
||||||
import {
|
import {
|
||||||
TelegrafActionMetadata,
|
TelegrafActionMetadata,
|
||||||
TelegrafCashtagMetadata,
|
TelegrafCashtagMetadata,
|
||||||
|
@ -5,13 +5,13 @@ import {
|
|||||||
Logger,
|
Logger,
|
||||||
OnApplicationShutdown,
|
OnApplicationShutdown,
|
||||||
} from '@nestjs/common';
|
} from '@nestjs/common';
|
||||||
const Telegraf = require('telegraf');
|
import { Telegraf, ContextMessageUpdate } from '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()
|
||||||
export class TelegrafProvider<TContext extends ContextMessageUpdate>
|
export class TelegrafProvider<TContext extends ContextMessageUpdate>
|
||||||
|
// @ts-ignore
|
||||||
extends Telegraf<TContext>
|
extends Telegraf<TContext>
|
||||||
implements OnApplicationBootstrap, OnApplicationShutdown {
|
implements OnApplicationBootstrap, OnApplicationShutdown {
|
||||||
private logger = new Logger('Telegraf');
|
private logger = new Logger('Telegraf');
|
||||||
|
Loading…
Reference in New Issue
Block a user