/** * Telegram Bot API client. * * Sends messages to a user via Telegram Bot API (REST only). * Requires: bot token (from @BotFather) + chat ID. */ export interface TelegramConfig { botToken: string; chatId: string; } /** * Send a message to the configured chat. */ export declare function sendTelegramMessage(config: TelegramConfig, message: string, opts?: { parseMode?: "Markdown" | "HTML"; }): Promise; /** * Validate bot token by calling getMe. * Returns the bot's username if valid. */ export declare function validateTelegramBot(token: string): Promise<{ valid: boolean; username: string; }>; /** * Get recent updates to find the chat ID from a user who messaged the bot. * User must send /start to the bot first. */ export declare function getRecentChatId(token: string): Promise<{ chatId: string; firstName: string; } | null>;