@wu529778790/open-im 1.11.2-beta.22 → 1.11.2-beta.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -120,7 +120,15 @@ export async function sendFinalMessages(chatId, messageId, fullContent, note, to
|
|
|
120
120
|
export async function sendTextReply(chatId, text) {
|
|
121
121
|
const bot = getBot();
|
|
122
122
|
try {
|
|
123
|
-
|
|
123
|
+
const formatted = formatMessage(text, "done", undefined, OPEN_IM_SYSTEM_TITLE);
|
|
124
|
+
// 尝试 Markdown 模式,如果失败则回退到纯文本
|
|
125
|
+
try {
|
|
126
|
+
await bot.telegram.sendMessage(Number(chatId), formatted, { parse_mode: "Markdown" });
|
|
127
|
+
}
|
|
128
|
+
catch {
|
|
129
|
+
// Markdown 解析失败,回退到纯文本
|
|
130
|
+
await bot.telegram.sendMessage(Number(chatId), formatted);
|
|
131
|
+
}
|
|
124
132
|
}
|
|
125
133
|
catch (err) {
|
|
126
134
|
log.error("Failed to send text:", err);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wu529778790/open-im",
|
|
3
|
-
"version": "1.11.2-beta.
|
|
3
|
+
"version": "1.11.2-beta.23",
|
|
4
4
|
"description": "Your AI coding assistant, in every chat app. Multi-platform IM bridge for Claude Code, Codex, and CodeBuddy.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|