import { ModuleMetadata, Type } from '@nestjs/common/interfaces'; import { Middleware } from 'telegraf'; import { LaunchOptions, TelegrafOptions } from '../types'; export interface TelegrafModuleOptions { token: string; botName?: string; options?: TelegrafOptions; launchOptions?: LaunchOptions; include?: Function[]; middlewares?: ReadonlyArray>; } export interface TelegrafOptionsFactory { createTelegrafOptions(): TelegrafModuleOptions; } export interface TelegrafModuleAsyncOptions extends Pick { botName?: string; useExisting?: Type; useClass?: Type; useFactory?: ( ...args: any[] ) => Promise | TelegrafModuleOptions; inject?: any[]; }