@gonzih/cc-tg 0.9.33 → 0.9.34

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/notifier.js +6 -0
  2. package/package.json +1 -1
package/dist/notifier.js CHANGED
@@ -227,6 +227,9 @@ export function startNotifier(bot, chatId, namespace, redis, handleUserMessage,
227
227
  bot.sendMessage(targetId, text).catch((err) => {
228
228
  log("warn", "notify list sendMessage failed:", err.message);
229
229
  });
230
+ if (handleUserMessage) {
231
+ handleUserMessage(targetId, text);
232
+ }
230
233
  }
231
234
  if (remaining > 0) {
232
235
  bot.sendMessage(targetId, `...and ${remaining} more notifications`).catch((err) => {
@@ -247,6 +250,9 @@ export function startNotifier(bot, chatId, namespace, redis, handleUserMessage,
247
250
  bot.sendMessage(targetId, text).catch((err) => {
248
251
  log("warn", "sendMessage failed:", err.message);
249
252
  });
253
+ if (handleUserMessage) {
254
+ handleUserMessage(targetId, text);
255
+ }
250
256
  }
251
257
  else {
252
258
  log("warn", "notify: no chatId available, dropping notification");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gonzih/cc-tg",
3
- "version": "0.9.33",
3
+ "version": "0.9.34",
4
4
  "description": "Claude Code Telegram bot — chat with Claude Code via Telegram",
5
5
  "type": "module",
6
6
  "bin": {