@open-wa/wa-automate 4.33.3 → 4.33.6

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.
@@ -3167,7 +3167,7 @@ class Client {
3167
3167
  height: 512,
3168
3168
  animated,
3169
3169
  };
3170
- webpBase64 = webpBase64.replace(/^data:image\/(png|gif|jpeg|webp);base64,/, '');
3170
+ webpBase64 = webpBase64.replace(/^data:image\/(png|gif|jpeg|webp|octet-stream);base64,/, '');
3171
3171
  return yield this.pup(({ webpBase64, to, metadata }) => WAPI.sendImageAsSticker(webpBase64, to, metadata), { webpBase64, to, metadata });
3172
3172
  });
3173
3173
  }
@@ -4,6 +4,7 @@ export * from './message';
4
4
  export * from './errors';
5
5
  export * from './events';
6
6
  export * from './product';
7
+ export * from './reactions';
7
8
  /**
8
9
  * Client status
9
10
  * @readonly
@@ -17,6 +17,7 @@ __exportStar(require("./message"), exports);
17
17
  __exportStar(require("./errors"), exports);
18
18
  __exportStar(require("./events"), exports);
19
19
  __exportStar(require("./product"), exports);
20
+ __exportStar(require("./reactions"), exports);
20
21
  /**
21
22
  * Client status
22
23
  * @readonly
@@ -59,7 +59,7 @@ const UPLOAD_CLOUD = (message, client) => __awaiter(void 0, void 0, void 0, func
59
59
  if (!uploadQueue) {
60
60
  uploadQueue = new p_queue_1.default({ concurrency: 2, interval: 1000, carryoverConcurrencyCount: true, intervalCap: 2 });
61
61
  }
62
- const filename = `${message.id.split("_").slice(-1)[0]}.${mime_1.default.extension(message.mimetype)}`;
62
+ const filename = `${message.id.split("_").find(x => !x.includes("@") && x.length > 6) || `${Date.now()}`}.${mime_1.default.extension(message.mimetype)}`;
63
63
  const mediaData = yield client.decryptMedia(message);
64
64
  if (!cloudUploadOptions)
65
65
  return message;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.33.3",
3
+ "version": "4.33.6",
4
4
  "licenseCheckUrl": "https://funcs.openwa.dev/license-check",
5
5
  "brokenMethodReportUrl": "https://funcs.openwa.dev/report-bm",
6
6
  "patches": "https://cdn.openwa.dev/patches.json",