@itsliaaa/baileys 0.2.1 → 0.2.2

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.
@@ -686,17 +686,17 @@ export const generateWAMessageContent = async (message, options) => {
686
686
  extContent.thumbnailEncSha256 = img.fileEncSha256;
687
687
  }
688
688
  }
689
- let faviconInfo = message.favicon;
690
- if (faviconInfo) {
691
- faviconInfo = await prepareWAMessageMedia(faviconInfo, options);
689
+ const faviconData = message.favicon;
690
+ if (faviconData) {
691
+ const { imageMessage } = await prepareWAMessageMedia({ image: faviconData, mimetype: 'image/png' }, options);
692
692
  extContent.faviconMMSMetadata = {
693
- thumbnailDirectPath: faviconInfo.directPath,
694
- mediaKey: faviconInfo.mediaKey,
695
- mediaKeyTimestamp: faviconInfo.mediaKeyTimestamp,
693
+ thumbnailDirectPath: imageMessage.directPath,
694
+ mediaKey: imageMessage.mediaKey,
695
+ mediaKeyTimestamp: imageMessage.mediaKeyTimestamp,
696
696
  thumbnailWidth: 32,
697
697
  thumbnailHeight: 32,
698
- thumbnailSha256: faviconInfo.fileSha256,
699
- thumbnailEncSha256: faviconInfo.fileEncSha256
698
+ thumbnailSha256: imageMessage.fileSha256,
699
+ thumbnailEncSha256: imageMessage.fileEncSha256
700
700
  };
701
701
  }
702
702
  if (options.backgroundColor) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itsliaaa/baileys",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Enhanced Baileys v7 with fixed newsletter media upload, plus support for interactive messages, albums, and more message types.",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",