/** * TelegramBotClient is the live TelegramClient: it posts a message to a chat via * the Bot API using the global fetch (available in Node 22+ and Bun, so no extra * dependency). Credentials are passed in by the composition root — never read or * committed here. A non-2xx response throws so the fan-out sink can swallow it * (progress is best-effort) while a real misconfiguration is still surfaced in * logs during development. */ import type { TelegramClient } from "../ports/telegram-client.ts"; export declare class TelegramBotClient implements TelegramClient { private readonly botToken; private readonly chatId; constructor(botToken: string, chatId: string); sendMessage(text: string, parseMode: string): Promise<{ messageId: number; }>; editMessageText(messageId: number, text: string, parseMode: string): Promise; /** * POST a Bot API method with a JSON body, returning its `result`. A non-2xx * response throws so the fan-out sink can swallow it (progress is best-effort) * while a real misconfiguration is still surfaced in logs during development. */ private callApi; }