@itsliaaa/baileys 0.1.0 → 0.1.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 CHANGED
@@ -4,12 +4,13 @@
4
4
 
5
5
  A lightweight fork of Baileys with a few fixes and a small adjustment.
6
6
 
7
- ### ⚙️ **Changes**
7
+ ### ⚙️ Changes
8
8
 
9
9
  #### 🛠️ Internal Adjustments
10
10
  - 🖼️ Fixed an issue where media could not be sent to newsletters due to an upstream issue.
11
11
  - 📁 Reintroduced `makeInMemoryStore` with a minimal ESM adaptation and small adjustments for Baileys v7.
12
12
  - 📦 Switched FFmpeg execution from `exec` to `spawn` for safer process handling.
13
+ - 🗃️ Added `@napi-rs/image` as a supported image processing backend in `getImageProcessingLibrary()`, offering a balance between performance and compatibility.
13
14
 
14
15
  #### 📨 Message Handling & Compatibility
15
16
  - 👉🏻 Added support for sending interactive message types (button, list, interactive, template, carousel).
@@ -19,6 +20,7 @@ A lightweight fork of Baileys with a few fixes and a small adjustment.
19
20
  #### 🧩 Additional Message Options
20
21
  - 👁️ Added optional boolean flags for message handling:
21
22
  - `ai` - AI label on message
23
+ - `mentionAll` - Mentions all group participants without requiring their JIDs in `mentions` or `mentionedJid`
22
24
  - `ephemeral`, `groupStatus`, `viewOnceV2`, `viewOnceV2Extension`, `interactiveAsTemplate` - Message wrappers
23
25
  - `raw` - Build your message manually **(DO NOT USE FOR EXPLOITATION)**
24
26
 
@@ -27,7 +29,7 @@ A lightweight fork of Baileys with a few fixes and a small adjustment.
27
29
  >
28
30
  > 😞 And, really sorry for my bad english.
29
31
 
30
- ### 📥 **Installation**
32
+ ### 📥 Installation
31
33
 
32
34
  - 📄 Via `package.json`
33
35
 
@@ -63,7 +65,7 @@ import { makeWASocket } from '@itsliaaa/baileys'
63
65
  const { makeWASocket } = require('@itsliaaa/baileys')
64
66
  ```
65
67
 
66
- ### 🔧 **Usage**
68
+ ### 🔧 Usage
67
69
 
68
70
  #### 🌐 Connect to WhatsApp (Quick Step)
69
71
 
@@ -230,6 +232,17 @@ sock.sendMessage(jid, {
230
232
  })
231
233
  ```
232
234
 
235
+ ##### 🧑‍🧑‍🧒‍🧒 Mention All
236
+
237
+ ```javascript
238
+ sock.sendMessage(jid, {
239
+ text: '👋🏻 Hello @all',
240
+ mentionAll: true
241
+ }, {
242
+ quoted: message
243
+ })
244
+ ```
245
+
233
246
  ##### 😁 Reaction
234
247
 
235
248
  ```javascript
@@ -260,14 +273,14 @@ sock.sendMessage(jid, {
260
273
  ```javascript
261
274
  const vcard = 'BEGIN:VCARD\n'
262
275
  + 'VERSION:3.0\n'
263
- + 'FN:Elia Wynn\n'
276
+ + 'FN:Lia Wynn\n'
264
277
  + 'ORG:Waiters;\n'
265
278
  + 'TEL;type=CELL;type=VOICE;waid=628123456789:+62 8123 4567 89\n'
266
279
  + 'END:VCARD'
267
280
 
268
281
  sock.sendMessage(jid, {
269
282
  contacts: {
270
- displayName: 'Elia',
283
+ displayName: 'Lia',
271
284
  contacts: [
272
285
  { vcard }
273
286
  ]
@@ -462,7 +475,7 @@ sock.sendMessage(jid, {
462
475
  }
463
476
  }],
464
477
  name: '📦 My Sticker Pack',
465
- publisher: '🌟 Elia',
478
+ publisher: '🌟 Lia Wynn',
466
479
  description: '@itsliaaa/baileys'
467
480
  }, {
468
481
  quoted: message
@@ -1063,11 +1076,11 @@ const group = await sock.groupGetInviteInfo('https://chat.whatsapp.com/ABC123')
1063
1076
  console.log('👥 Got group info from link', ':', group)
1064
1077
  ```
1065
1078
 
1066
- ## 📦 **Fork Base**
1079
+ ## 📦 Fork Base
1067
1080
  > [!NOTE]
1068
1081
  This fork is based on [Baileys (GitHub)](https://github.com/WhiskeySockets/Baileys)
1069
1082
 
1070
- ## 📣 **Credits**
1083
+ ## 📣 Credits
1071
1084
  > [!IMPORTANT]
1072
1085
  This fork uses Protocol Buffer definitions maintained by [WPP Connect](https://github.com/wppconnect-team) via [`wa-proto`](https://github.com/wppconnect-team/wa-proto)
1073
1086
  >