squidclaw 0.8.0 → 0.8.1

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/lib/engine.js +5 -0
  2. package/package.json +1 -1
package/lib/engine.js CHANGED
@@ -225,9 +225,14 @@ export class SquidclawEngine {
225
225
  const photoData = result.image.url ? { url: result.image.url } : { base64: result.image.base64 };
226
226
  const caption = result.messages?.[0] || '';
227
227
  await this.telegramManager.sendPhoto(agentId, contactId, photoData, caption, metadata);
228
+ } else {
229
+ // Send image if generated
230
+ if (result.image) {
231
+ await this.telegramManager.sendPhoto(agentId, contactId, result.image, result.messages?.[0] || '', metadata);
228
232
  } else {
229
233
  await this.telegramManager.sendMessages(agentId, contactId, result.messages, metadata);
230
234
  }
235
+ }
231
236
  }
232
237
  };
233
238
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squidclaw",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "\ud83e\udd91 AI agent platform \u2014 human-like agents for WhatsApp, Telegram & more",
5
5
  "main": "lib/engine.js",
6
6
  "bin": {