@botol/tg-threads
Version:
## Options | Name | Type | Default | Description | |---|---|---|---| | scriptPath | string | - | Path to script | | workerCount | number | 3 | (Optional) Workers count | | execTimeout | number | 0 | (Optional) Max allowed time to process update (Set 0 to
10 lines (9 loc) • 346 B
TypeScript
import { Handler } from '@botol/dipo';
import { BotolTg } from '@botol/tg-bot';
import { ContextTG } from '@botol/tg-dipo';
export interface BotThreadsOptions {
scriptPath: string;
workerCount?: number;
execTimeout?: number;
}
export declare function BotThreads(bot: BotolTg, options: BotThreadsOptions): Handler<ContextTG>;