import { ModuleMetadata, Type } from '@nestjs/common/interfaces'; export interface TelegramModuleOptions { botKey: string; apiUrl?: string; } export interface TelegramOptionsFactory { createTelegramOptions(): Promise | TelegramModuleOptions; } export interface TelegramModuleAsyncOptions extends Pick { useExisting?: Type; useClass?: Type; useFactory?: (...args: any[]) => Promise | TelegramModuleOptions; inject?: any[]; }