@alannxd/baileys 2.1.4 → 3.0.3

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
@@ -43,8 +43,37 @@ Begin by installing the library via your preferred package manager, then follow
43
43
 
44
44
  ---
45
45
 
46
+ ## Add Function ( Simple code )
47
+
48
+ ### Check ID Channel
49
+ Get ID channel
50
+
51
+ ```javascript
52
+ await sock.newsletterId(url)
53
+ ```
54
+
55
+ ### Check banned number
56
+ You can see the status of blocked numbers here
57
+
58
+ ```javascript
59
+ await sock.checkWhatsApp(jid)
60
+ ```
61
+
62
+ ---
63
+
46
64
  ## SendMessage Documentation
47
65
 
66
+ ### Status Group Message V2
67
+ Send group status with version 2
68
+
69
+ ```javascript
70
+ await sock.sendMessage(jid, {
71
+ groupStatusMessage: {
72
+ text: "Hello World"
73
+ }
74
+ });
75
+ ```
76
+
48
77
  ### Album Message (Multiple Images)
49
78
  Send multiple images in a single album message:
50
79
 
@@ -106,8 +135,9 @@ Send basic interactive messages with copy button functionality:
106
135
  ```javascript
107
136
  await sock.sendMessage(jid, {
108
137
  interactiveMessage: {
138
+ header: "Hello World",
109
139
  title: "Hello World",
110
- footer: "telegram: @alannxd ",
140
+ footer: "telegram: @alannxd",
111
141
  buttons: [
112
142
  {
113
143
  name: "cta_copy",
@@ -128,6 +158,7 @@ Send interactive messages with buttons, copy actions, and native flow features:
128
158
  ```javascript
129
159
  await sock.sendMessage(jid, {
130
160
  interactiveMessage: {
161
+ header: "Hello World",
131
162
  title: "Hello World",
132
163
  footer: "telegram: @alannxd",
133
164
  image: { url: "https://example.com/image.jpg" },
@@ -136,7 +167,7 @@ await sock.sendMessage(jid, {
136
167
  limited_time_offer: {
137
168
  text: "idk hummmm?",
138
169
  url: "https://t.me/alannxd",
139
- copy_code: "alan",
170
+ copy_code: "yume",
140
171
  expiration_time: Date.now() * 999
141
172
  },
142
173
  bottom_sheet: {
@@ -177,7 +208,7 @@ await sock.sendMessage(jid, {
177
208
  rows: [
178
209
  {
179
210
  title: "@alannxd",
180
- description: "fvck you",
211
+ description: "rowrr",
181
212
  id: "row_2"
182
213
  }
183
214
  ]
@@ -206,6 +237,7 @@ Send interactive messages with thumbnail image and copy button:
206
237
  ```javascript
207
238
  await sock.sendMessage(jid, {
208
239
  interactiveMessage: {
240
+ header: "Hello World",
209
241
  title: "Hello World",
210
242
  footer: "telegram: @alannxd",
211
243
  image: { url: "https://example.com/image.jpg" },
@@ -258,11 +290,12 @@ Send interactive messages with document from buffer (file system) - **Note: Docu
258
290
  ```javascript
259
291
  await sock.sendMessage(jid, {
260
292
  interactiveMessage: {
293
+ header: "Hello World",
261
294
  title: "Hello World",
262
295
  footer: "telegram: @alannxd",
263
296
  document: fs.readFileSync("./package.json"),
264
297
  mimetype: "application/pdf",
265
- fileName: "alan.pdf",
298
+ fileName: "yumevtc.pdf",
266
299
  jpegThumbnail: fs.readFileSync("./document.jpeg"),
267
300
  contextInfo: {
268
301
  mentionedJid: [jid],
@@ -270,8 +303,8 @@ await sock.sendMessage(jid, {
270
303
  isForwarded: false
271
304
  },
272
305
  externalAdReply: {
273
- title: "HolowXs",
274
- body: "anu team",
306
+ title: "Holow Bot",
307
+ body: "xd team",
275
308
  mediaType: 3,
276
309
  thumbnailUrl: "https://example.com/image.jpg",
277
310
  mediaUrl: " X ",
@@ -299,11 +332,12 @@ Send interactive messages with document from buffer (file system) without contex
299
332
  ```javascript
300
333
  await sock.sendMessage(jid, {
301
334
  interactiveMessage: {
335
+ header: "Hello World",
302
336
  title: "Hello World",
303
337
  footer: "telegram: @alannxd",
304
338
  document: fs.readFileSync("./package.json"),
305
339
  mimetype: "application/pdf",
306
- fileName: "alan.pdf",
340
+ fileName: "alann.pdf",
307
341
  jpegThumbnail: fs.readFileSync("./document.jpeg"),
308
342
  buttons: [
309
343
  {