claude-telegram-bot 0.3.17 → 0.3.18

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/bot.mjs +1 -1
  2. package/package.json +1 -1
package/bot.mjs CHANGED
@@ -828,7 +828,7 @@ async function downloadAttachment(att) {
828
828
  const dir = ATTACH_DIR;
829
829
  mkdirSync(dir, { recursive: true });
830
830
  const ext = filePath.includes(".") ? filePath.slice(filePath.lastIndexOf(".")) : "";
831
- const name = att.name || `tg-${att.fileId.slice(-10)}${ext}`;
831
+ const name = att.name || `tg-${Date.now()}-${att.fileId.slice(-6)}${ext}`;
832
832
  const dest = join(dir, name);
833
833
  writeFileSync(dest, buf);
834
834
  return { dest, name };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-telegram-bot",
3
- "version": "0.3.17",
3
+ "version": "0.3.18",
4
4
  "description": "Drive Claude Code from Telegram — messages run headless `claude -p` in a project dir and replies come back to the chat. Zero dependencies.",
5
5
  "type": "module",
6
6
  "bin": {