@gonzih/cc-tg 0.1.1 → 0.1.2
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.
- package/dist/bot.js +3 -1
- package/package.json +1 -1
package/dist/bot.js
CHANGED
|
@@ -85,7 +85,9 @@ export class CcTgBot {
|
|
|
85
85
|
return session;
|
|
86
86
|
}
|
|
87
87
|
handleClaudeMessage(chatId, session, msg) {
|
|
88
|
-
|
|
88
|
+
// Use only the final `result` message — it contains the complete response text.
|
|
89
|
+
// Ignore `assistant` streaming chunks to avoid duplicates.
|
|
90
|
+
if (msg.type !== "result")
|
|
89
91
|
return;
|
|
90
92
|
const text = extractText(msg);
|
|
91
93
|
if (!text)
|