feat(wip): rewrite explorer logic & update launch options & add miss decorators

This commit is contained in:
unknown
2020-12-25 23:11:16 +03:00
parent b394f5274b
commit 61c6c07482
17 changed files with 271 additions and 487 deletions

View File

@@ -1,3 +1,4 @@
import { Context as TelegrafContext } from 'telegraf';
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface Context extends TelegrafContext {}

View File

@@ -1,17 +1,10 @@
import { ModuleMetadata, Type } from '@nestjs/common/interfaces';
import {
TelegrafOptions,
LaunchPollingOptions,
LaunchWebhookOptions,
} from 'telegraf/typings/telegraf';
import { TelegrafLaunchOption, TelegrafOption } from '../telegraf.types';
export interface TelegrafModuleOptions {
token: string;
options?: TelegrafOptions;
launchOptions?: {
polling?: LaunchPollingOptions;
webhook?: LaunchWebhookOptions;
};
options?: TelegrafOption;
launchOptions?: TelegrafLaunchOption;
}
export interface TelegrafOptionsFactory {