@kaufman-bot/currency-converter-server
Version:
Command to convert one currency to another
11 lines (10 loc) • 751 B
TypeScript
import { BotCommandsProvider, BotCommandsProviderActionMsg, BotCommandsProviderActionResultType } from '@kaufman-bot/core-server';
import { ScraperService } from '@kaufman-bot/html-scraper-server';
import { Context } from 'grammy';
export declare class CurrencyConverterService implements BotCommandsProvider {
private readonly scraperService;
handlerId: string;
constructor(scraperService: ScraperService);
onHelp<TMsg extends BotCommandsProviderActionMsg = BotCommandsProviderActionMsg>(msg: TMsg, ctx: Context): Promise<BotCommandsProviderActionResultType<TMsg>>;
onMessage<TMsg extends BotCommandsProviderActionMsg = BotCommandsProviderActionMsg>(msg: TMsg, ctx: Context): Promise<BotCommandsProviderActionResultType<TMsg>>;
}