@itsliaaa/baileys 0.1.31 → 0.1.32

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/README.md CHANGED
@@ -41,9 +41,12 @@ Hi everyone,
41
41
  >
42
42
  > Recently, I found a few packages published on npm that are essentially just **renamed** versions of a fork I personally worked on:
43
43
  >
44
- > - [@noya4u_27](https://www.npmjs.com/package/@noya4u_27/baileys) **[STEALER]**
45
- > - [@phrolovaa](https://www.npmjs.com/package/@phrolovaa/baileys) **[STEALER]**
44
+ > - ~[RESOLVED]~
45
+ > - ~[RESOLVED]~
46
+ > - ~[RESOLVED]~
47
+ > - [@zackmans](https://www.npmjs.com/package/@zackmans/baileys) **[STEALER]**
46
48
  > - [@dnuzi](https://www.npmjs.com/package/@dnuzi/baileys) **[STEALER]**
49
+ > - ["Update rich.js"](https://github.com/gcamerator/mbaileys/commits/main/) **[STEALER]**
47
50
  >
48
51
  > To be clear, I’m **not** the original maintainer of Baileys all respect goes to the amazing work behind [@whiskeysockets/baileys](https://github.com/WhiskeySockets/Baileys). I only created and maintained my own fork ([@itsliaaa/baileys](https://www.npmjs.com/package/@itsliaaa/baileys)) where I spent a **lot** of time improving and adapting things on my own.
49
52
  >
@@ -941,7 +944,7 @@ sock.sendMessage(jid, {
941
944
  image: {
942
945
  url: './path/to/image.jpg'
943
946
  },
944
- caption: '??️ Interactive!',
947
+ caption: '🗄️️ Interactive!',
945
948
  footer: '@itsliaaa/baileys',
946
949
  optionText: '👉🏻 Select Options', // --- Optional, wrap all native flow into a single list
947
950
  optionTitle: '📄 Select Options', // --- Optional
@@ -1532,4 +1535,6 @@ This fork uses Protocol Buffer definitions maintained by [WPP Connect](https://g
1532
1535
  > - [jlucaso1](https://github.com/jlucaso1)
1533
1536
  > - [adiwajshing](https://github.com/adiwajshing)
1534
1537
  >
1535
- > This fork includes additional enhancements and modifications by [Lia Wynn](https://github.com/itsliaaa)
1538
+ > This fork includes additional enhancements and modifications by [Lia Wynn](https://github.com/itsliaaa)
1539
+ >
1540
+ > **Credits are mandatory and must remain unchanged in any form of redistribution or fork.**
@@ -672,7 +672,7 @@ export const generateWAMessageContent = async (message, options) => {
672
672
  extContent.jpegThumbnail = urlInfo.jpegThumbnail;
673
673
  extContent.description = urlInfo.description;
674
674
  extContent.title = urlInfo.title;
675
- extContent.previewType = 0;
675
+ extContent.previewType = urlInfo.previewType ?? 0;
676
676
  const img = urlInfo.highQualityThumbnail;
677
677
  if (img) {
678
678
  extContent.thumbnailDirectPath = img.directPath;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itsliaaa/baileys",
3
- "version": "0.1.31",
3
+ "version": "0.1.32",
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",