@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.
Files changed (2) hide show
  1. package/dist/bot.js +3 -1
  2. 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
- if (msg.type !== "assistant" && msg.type !== "result")
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gonzih/cc-tg",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Claude Code Telegram bot — chat with Claude Code via Telegram",
5
5
  "type": "module",
6
6
  "bin": {