Chat SDK 现已将明确的 markdown 和 ast 消息渲染为 Telegram adapter 上的原生富文本消息。您的机器人将获得真正的标题、列表、表格、任务列表、公式和独立媒体块,而非扁平化文本。
bot.onNewMention(async (thread) => {
await thread.post({
markdown: [
"## Deployment status",
"",
"| Service | Status |",
"| --- | --- |",
"| API | ✅ Ready |",
"| Web | 🚀 Building |",
].join("\n"),
});
});
发布一个 markdown 表格,它将渲染为原生 Telegram 富文本消息
您将获得:
原生格式:标题、列表、表格、任务列表、公式和媒体块。
流式传输:私聊中显示实时草稿预览,并持久保存最终响应。
自动回退:普通字符串、原始消息、卡片和标题将继续完全按之前的方式工作。
阅读 Telegram adapter 文档 开始使用。
了解 Chat SDK 的端到端工作原理:从核心概念到构建您的第一个机器人,再到跨平台部署。
0 Comments
Log in to join the conversation.No comments yet. Be the first to share your thoughts.