@kaufman-bot/html-scraper-server
Version:
Html scraper commands and tools
15 lines (14 loc) • 1.16 kB
TypeScript
import { BotCommandsProvider, BotCommandsProviderActionMsg, BotCommandsProviderActionResultType, BotCommandsToolsService, OnContextBotCommands } from '@kaufman-bot/core-server';
import { Context } from 'grammy';
import { ScraperConfig } from '../scraper-config/scraper.config';
export declare class ScraperService implements BotCommandsProvider, OnContextBotCommands {
private readonly scraperConfig;
private readonly botCommandsToolsService;
handlerId: string;
private readonly logger;
constructor(scraperConfig: ScraperConfig, botCommandsToolsService: BotCommandsToolsService);
onContextBotCommands<TMsg extends BotCommandsProviderActionMsg = BotCommandsProviderActionMsg>(msg: TMsg): Promise<BotCommandsProviderActionResultType<TMsg>>;
onHelp<TMsg extends BotCommandsProviderActionMsg = BotCommandsProviderActionMsg>(msg: TMsg, ctx: Context, loggerContext?: string): Promise<BotCommandsProviderActionResultType<TMsg>>;
onMessage<TMsg extends BotCommandsProviderActionMsg = BotCommandsProviderActionMsg>(msg: TMsg, ctx: Context, loggerContext?: string): Promise<BotCommandsProviderActionResultType<TMsg>>;
private scrap;
}