UNPKG

@kaufman-bot/jokes-generator-server

Version:

Command to generate text with a random jokes

15 lines (14 loc) 1.22 kB
import { BotCommandsProvider, BotCommandsProviderActionMsg, BotCommandsProviderActionResultType, BotCommandsToolsService, OnContextBotCommands } from '@kaufman-bot/core-server'; import { ScraperService } from '@kaufman-bot/html-scraper-server'; import { Context } from 'grammy'; import { TranslatesStorage } from 'nestjs-translates'; export declare class JokesGeneratorService implements BotCommandsProvider, OnContextBotCommands { private readonly scraperService; private readonly translatesStorage; private readonly botCommandsToolsService; handlerId: string; constructor(scraperService: ScraperService, translatesStorage: TranslatesStorage, 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>>; }