@itsliaaa/baileys 0.1.16-beta.1 → 0.1.16

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
@@ -21,7 +21,8 @@ A lightweight fork of Baileys with a few fixes and a small adjustment.
21
21
  - 👁️ Added optional boolean flags for message handling:
22
22
  - [`ai`](#1%EF%B8%8F⃣-ai-label) - AI label on message
23
23
  - [`mentionAll`](#-mention) - Mentions all group participants without requiring their JIDs in `mentions` or `mentionedJid`
24
- - [`ephemeral`](#2%EF%B8%8F⃣-ephemeral), [`groupStatus`](#4%EF%B8%8F⃣-group-status), [`viewOnceV2`](#7%EF%B8%8F⃣-view-once-v2), [`viewOnceV2Extension`](#8%EF%B8%8F⃣-view-once-v2-extension), [`interactiveAsTemplate`](#3%EF%B8%8F⃣-interactive) - Message wrappers
24
+ - [`ephemeral`](#2%EF%B8%8F⃣-ephemeral), [`groupStatus`](#4%EF%B8%8F⃣-group-status), [`viewOnceV2`](#8%EF%B8%8F⃣-view-once-v2), [`viewOnceV2Extension`](#9%EF%B8%8F⃣-view-once-v2-extension), [`interactiveAsTemplate`](#3%EF%B8%8F⃣-interactive) - Message wrappers
25
+ - [`secureMetaServiceLabel`](#6%EF%B8%8F⃣-secure-meta-service-label) - Secure meta service label on message
25
26
  - [`raw`](#5%EF%B8%8F⃣-raw) - Build your message manually **(DO NOT USE FOR EXPLOITATION)**
26
27
 
27
28
  > [!NOTE]
@@ -584,8 +585,10 @@ sock.sendMessage(jid, {
584
585
  footer: '@itsliaaa/baileys',
585
586
  optionText: '👉🏻 Select Options', // --- Optional, wrap all native flow into a single list
586
587
  optionTitle: '📄 Select Options', // --- Optional
587
- couponText: '🏷️ Newest Coupon!', // --- Optional, add coupon into message
588
- couponCode: '@itsliaaa/baileys', // --- Optional
588
+ offerText: '🏷️ Newest Coupon!', // --- Optional, add an offer into message
589
+ offerCode: '@itsliaaa/baileys', // --- Optional
590
+ offerUrl: 'https://www.npmjs.com/package/@itsliaaa/baileys', // --- Optional
591
+ offerExpiration: Date.now() + 3_600_000, // --- Optional
589
592
  nativeFlow: [{
590
593
  text: '👋🏻 Greeting',
591
594
  id: '#Greeting'
@@ -597,7 +600,7 @@ sock.sendMessage(jid, {
597
600
  copy: '@itsliaaa/baileys'
598
601
  }, {
599
602
  text: '🌐 Source',
600
- url: 'https://www.npmjs.com/package/baileys'
603
+ url: 'https://www.npmjs.com/package/@itsliaaa/baileys'
601
604
  }, {
602
605
  text: '📋 Select',
603
606
  sections: [{
@@ -636,7 +639,7 @@ sock.sendMessage(jid, {
636
639
  footer: '🏷️️ Pinterest',
637
640
  nativeFlow: [{
638
641
  text: '🌐 Source',
639
- url: 'https://www.npmjs.com/package/baileys'
642
+ url: 'https://www.npmjs.com/package/@itsliaaa/baileys'
640
643
  }]
641
644
  }, {
642
645
  image: {
@@ -644,11 +647,13 @@ sock.sendMessage(jid, {
644
647
  },
645
648
  caption: '🖼️ Image 2',
646
649
  footer: '🏷️ Pinterest',
647
- couponText: '🏷️ New Coupon!',
648
- couponCode: '@itsliaaa/baileys',
650
+ offerText: '🏷️ New Coupon!',
651
+ offerCode: '@itsliaaa/baileys',
652
+ offerUrl: 'https://www.npmjs.com/package/@itsliaaa/baileys',
653
+ offerExpiration: Date.now() + 3_600_000,
649
654
  nativeFlow: [{
650
655
  text: '🌐 Source',
651
- url: 'https://www.npmjs.com/package/baileys'
656
+ url: 'https://www.npmjs.com/package/@itsliaaa/baileys'
652
657
  }]
653
658
  }, {
654
659
  image: {
@@ -658,14 +663,16 @@ sock.sendMessage(jid, {
658
663
  footer: '🏷️ Pinterest',
659
664
  optionText: '👉🏻 Select Options',
660
665
  optionTitle: '📄 Select Options',
661
- couponText: '🏷️ New Coupon!',
662
- couponCode: '@itsliaaa/baileys',
666
+ offerText: '🏷️ New Coupon!',
667
+ offerCode: '@itsliaaa/baileys',
668
+ offerUrl: 'https://www.npmjs.com/package/@itsliaaa/baileys',
669
+ offerExpiration: Date.now() + 3_600_000,
663
670
  nativeFlow: [{
664
671
  text: '🛒 Product',
665
672
  id: '#Product'
666
673
  }, {
667
674
  text: '🌐 Source',
668
- url: 'https://www.npmjs.com/package/baileys'
675
+ url: 'https://www.npmjs.com/package/@itsliaaa/baileys'
669
676
  }]
670
677
  }]
671
678
  }, {
@@ -688,7 +695,7 @@ sock.sendMessage(jid, {
688
695
  id: '#Order'
689
696
  }, {
690
697
  text: '🌐 Source',
691
- url: 'https://www.npmjs.com/package/baileys'
698
+ url: 'https://www.npmjs.com/package/@itsliaaa/baileys'
692
699
  }, {
693
700
  text: '📞 Call',
694
701
  call: '628123456789'
@@ -805,7 +812,7 @@ sock.sendMessage(jid, {
805
812
  body: '❓ I dont know',
806
813
  thumbnail: fs.readFileSync('./path/to/image.jpg'), // --- Must in buffer format
807
814
  largeThumbnail: false, // --- Or true for bigger thumbnail
808
- url: 'https://www.npmjs.com/package/baileys' // --- Optional, used for WhatsApp internal thumbnail caching and direct URL
815
+ url: 'https://www.npmjs.com/package/@itsliaaa/baileys' // --- Optional, used for WhatsApp internal thumbnail caching and direct URL
809
816
  }
810
817
  }, {
811
818
  quoted: message
@@ -849,7 +856,16 @@ sock.sendMessage(jid, {
849
856
  })
850
857
  ```
851
858
 
852
- ##### 6️⃣ View Once
859
+ ##### 6️⃣ Secure Meta Service Label
860
+
861
+ ```javascript
862
+ sock.sendMessage(jid, {
863
+ text: 'Just a label!',
864
+ secureMetaServiceLabel: true
865
+ })
866
+ ```
867
+
868
+ ##### 7️⃣ View Once
853
869
 
854
870
  > [!NOTE]
855
871
  Wrap message into `viewOnceMessage`
@@ -864,7 +880,7 @@ sock.sendMessage(jid, {
864
880
  })
865
881
  ```
866
882
 
867
- ##### 7️⃣ View Once V2
883
+ ##### 8️⃣ View Once V2
868
884
 
869
885
  > [!NOTE]
870
886
  Wrap message into `viewOnceMessageV2`
@@ -879,7 +895,7 @@ sock.sendMessage(jid, {
879
895
  })
880
896
  ```
881
897
 
882
- ##### 8️⃣ View Once V2 Extension
898
+ ##### 9️⃣ View Once V2 Extension
883
899
 
884
900
  > [!NOTE]
885
901
  Wrap message into `viewOnceMessageV2Extension`