@open-wa/wa-automate 4.37.4 → 4.37.5

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.
@@ -1111,8 +1111,7 @@ export declare class Client {
1111
1111
  */
1112
1112
  react(messageId: MessageId, emoji: string): Promise<boolean>;
1113
1113
  /**
1114
- *
1115
- * [REQUIRES AN INSIDERS LICENSE-KEY](https://gum.co/open-wa?tier=Insiders%20Program)
1114
+ * @deprecated
1116
1115
  *
1117
1116
  * Retrieves a message object which results in a valid sticker instead of a blank one. This also works with animated stickers.
1118
1117
  *
@@ -1121,7 +1120,7 @@ export declare class Client {
1121
1120
  * @param messageId The message ID `message.id`
1122
1121
  * @returns message object OR `false`
1123
1122
  */
1124
- getStickerDecryptable(messageId: MessageId): Promise<Message | boolean>;
1123
+ getStickerDecryptable(messageId: MessageId): Promise<Message | false>;
1125
1124
  /**
1126
1125
  *
1127
1126
  * [REQUIRES AN INSIDERS LICENSE-KEY](https://gum.co/open-wa?tier=Insiders%20Program)
@@ -2397,8 +2397,7 @@ class Client {
2397
2397
  });
2398
2398
  }
2399
2399
  /**
2400
- *
2401
- * [REQUIRES AN INSIDERS LICENSE-KEY](https://gum.co/open-wa?tier=Insiders%20Program)
2400
+ * @deprecated
2402
2401
  *
2403
2402
  * Retrieves a message object which results in a valid sticker instead of a blank one. This also works with animated stickers.
2404
2403
  *
@@ -38,9 +38,9 @@ const AUTO_DECRYPT = (message, client) => __awaiter(void 0, void 0, void 0, func
38
38
  const AUTO_DECRYPT_SAVE = (message, client) => __awaiter(void 0, void 0, void 0, function* () {
39
39
  if (message.deprecatedMms3Url) {
40
40
  const filename = `${message.id.split("_").slice(-1)[0]}.${mime_1.default.extension(message.mimetype)}`;
41
- const mediaData = yield client.decryptMedia(message);
42
41
  const filePath = `media/${filename}`;
43
42
  try {
43
+ const mediaData = yield client.decryptMedia(message);
44
44
  (0, fs_extra_1.outputFileSync)(filePath, Buffer.from(mediaData.split(",")[1], "base64"));
45
45
  }
46
46
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.37.4",
3
+ "version": "4.37.5",
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",