@itsliaaa/baileys 0.1.15 → 0.1.16-beta.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.
- package/README.md +14 -4
- package/WAProto/index.js +1129 -5
- package/lib/Defaults/index.js +1 -1
- package/lib/Socket/messages-send.js +7 -4
- package/lib/Utils/messages.js +3 -3
- package/lib/Utils/use-single-file-auth-state.js +5 -6
- package/lib/WABinary/generic-utils.js +15 -10
- package/lib/WABinary/jid-utils.js +1 -1
- package/package.json +1 -1
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`](#
|
|
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]
|
|
@@ -849,7 +850,16 @@ sock.sendMessage(jid, {
|
|
|
849
850
|
})
|
|
850
851
|
```
|
|
851
852
|
|
|
852
|
-
##### 6️⃣
|
|
853
|
+
##### 6️⃣ Secure Meta Service Label
|
|
854
|
+
|
|
855
|
+
```javascript
|
|
856
|
+
sock.sendMessage(jid, {
|
|
857
|
+
text: 'Just a label!',
|
|
858
|
+
secureMetaServiceLabel: true
|
|
859
|
+
})
|
|
860
|
+
```
|
|
861
|
+
|
|
862
|
+
##### 7️⃣ View Once
|
|
853
863
|
|
|
854
864
|
> [!NOTE]
|
|
855
865
|
Wrap message into `viewOnceMessage`
|
|
@@ -864,7 +874,7 @@ sock.sendMessage(jid, {
|
|
|
864
874
|
})
|
|
865
875
|
```
|
|
866
876
|
|
|
867
|
-
#####
|
|
877
|
+
##### 8️⃣ View Once V2
|
|
868
878
|
|
|
869
879
|
> [!NOTE]
|
|
870
880
|
Wrap message into `viewOnceMessageV2`
|
|
@@ -879,7 +889,7 @@ sock.sendMessage(jid, {
|
|
|
879
889
|
})
|
|
880
890
|
```
|
|
881
891
|
|
|
882
|
-
#####
|
|
892
|
+
##### 9️⃣ View Once V2 Extension
|
|
883
893
|
|
|
884
894
|
> [!NOTE]
|
|
885
895
|
Wrap message into `viewOnceMessageV2Extension`
|