Interface TelegrafModuleAsyncOptions

interface TelegrafModuleAsyncOptions {
    botName?: string;
    imports?: (
        | Type<any>
        | DynamicModule
        | Promise<DynamicModule>
        | ForwardReference<any>)[];
    inject?: any[];
    useClass?: Type<TelegrafOptionsFactory>;
    useExisting?: Type<TelegrafOptionsFactory>;
    useFactory?: ((...args: any[]) => TelegrafModuleOptions | Promise<TelegrafModuleOptions>);
}

Hierarchy

  • Pick<ModuleMetadata, "imports">
    • TelegrafModuleAsyncOptions

Properties

botName?: string
imports?: (
    | Type<any>
    | DynamicModule
    | Promise<DynamicModule>
    | ForwardReference<any>)[]

Optional list of imported modules that export the providers which are required in this module.

inject?: any[]
useClass?: Type<TelegrafOptionsFactory>
useExisting?: Type<TelegrafOptionsFactory>
useFactory?: ((...args: any[]) => TelegrafModuleOptions | Promise<TelegrafModuleOptions>)