/** * Telegram 通道适配器:长轮询(getUpdates)接收消息,sendMessage / editMessageText 发送与流式更新。 * 桌面端无公网 URL 时用 long polling 是官方推荐方式;支持流式输出(先发占位再 editMessageText 更新)。 */ import type { IChannel } from "../types.js"; export interface TelegramChannelConfig { botToken: string; /** 默认绑定的 agentId */ defaultAgentId?: string; } /** * Telegram 通道:长轮询入站 + API 出站,支持流式(editMessageText)。 */ export declare function createTelegramChannel(config: TelegramChannelConfig): IChannel;