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.
- package/lib/engine.js +5 -0
- 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
|
|