UNPKG

@kaufman-bot/jokes-generator-server

Version:

Command to generate text with a random jokes

13 lines (12 loc) 1.09 kB
import { BotCommandsProvider, BotCommandsProviderActionMsg, BotCommandsProviderActionResultType, BotCommandsToolsService, OnContextBotCommands } from '@kaufman-bot/core-server'; import { ScraperService } from '@kaufman-bot/html-scraper-server'; import { Context } from 'grammy'; export declare class RuJokesGeneratorService implements BotCommandsProvider, OnContextBotCommands { private readonly scraperService; private readonly botCommandsToolsService; handlerId: string; constructor(scraperService: ScraperService, botCommandsToolsService: BotCommandsToolsService); onContextBotCommands<TMsg extends BotCommandsProviderActionMsg = BotCommandsProviderActionMsg>(msg: TMsg, ctx: Context): Promise<BotCommandsProviderActionResultType<TMsg>>; onHelp<TMsg extends BotCommandsProviderActionMsg = BotCommandsProviderActionMsg>(msg: TMsg, ctx: Context): Promise<BotCommandsProviderActionResultType<TMsg>>; onMessage<TMsg extends BotCommandsProviderActionMsg = BotCommandsProviderActionMsg>(msg: TMsg, ctx: Context): Promise<BotCommandsProviderActionResultType<TMsg>>; }