openclaw-quiubo 2.6.24 → 2.6.25

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/dist/index.js CHANGED
@@ -13348,7 +13348,7 @@ var quiuboPlugin = {
13348
13348
  },
13349
13349
  capabilities: {
13350
13350
  chatTypes: ["group"],
13351
- supportsMedia: false,
13351
+ supportsMedia: true,
13352
13352
  supportsReactions: false,
13353
13353
  supportsThreads: false
13354
13354
  },
@@ -14225,8 +14225,14 @@ async function routeInboundMessage(opts) {
14225
14225
  const senderId = msg.senderIdentityId;
14226
14226
  const groupId = msg.groupId;
14227
14227
  let text = msg.plaintext ?? "";
14228
+ const imageAttachments = (msg.attachments ?? []).filter(
14229
+ (att) => att.storageUrl && att.mimeType?.startsWith("image/")
14230
+ );
14231
+ const mediaUrls = imageAttachments.map((att) => att.storageUrl);
14232
+ const mediaTypes = imageAttachments.map((att) => att.mimeType);
14228
14233
  if (msg.attachments?.length) {
14229
14234
  for (const att of msg.attachments) {
14235
+ if (att.storageUrl && att.mimeType?.startsWith("image/")) continue;
14230
14236
  const sizeKb = att.sizeBytes ? `${(att.sizeBytes / 1024).toFixed(1)} KB` : "";
14231
14237
  text += `
14232
14238
 
@@ -14263,7 +14269,11 @@ async function routeInboundMessage(opts) {
14263
14269
  Provider: CHANNEL_ID,
14264
14270
  Surface: CHANNEL_ID,
14265
14271
  MessageSid: `quiubo-${msg.messageId}`,
14266
- Timestamp: msg.createdAt ? new Date(msg.createdAt).getTime() : Date.now()
14272
+ Timestamp: msg.createdAt ? new Date(msg.createdAt).getTime() : Date.now(),
14273
+ ...mediaUrls.length > 0 && {
14274
+ MediaUrls: mediaUrls,
14275
+ MediaTypes: mediaTypes
14276
+ }
14267
14277
  });
14268
14278
  try {
14269
14279
  await runtime2.channel.reply.dispatchReplyWithBufferedBlockDispatcher({