UNPKG

ams-ssk

Version:

NestJS AMS Library for file management

21 lines (20 loc) 650 B
import Bot from 'node-telegram-bot-api'; import { tgBotConfig } from '../config/bot.config'; export declare class botLoadBalancer { private readonly bots; private readonly logger; getBotOperationCount(bot: Bot): number; getBotMaxOperations(bot: Bot): number; getBotUtilizationPercentage(bot: Bot): number; addBot(config: tgBotConfig): void; getNextBot(): Bot; releaseBot(bot: Bot): void; getAllBots(): Bot[]; getBotToken(bot: Bot): string | undefined; getBotByToken(token: string): Bot | undefined; getBots(): { bot: Bot; operationCount: number; config: tgBotConfig; }[]; }