feat: add launch options

This commit is contained in:
Aleksandr Bukhalo
2020-04-24 18:52:54 +03:00
parent 19f3fc7134
commit a5962fa7b9
3 changed files with 29 additions and 4 deletions

View File

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