@alannxd/baileys 2.1.4 → 3.0.0

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
@@ -106,6 +106,7 @@ Send basic interactive messages with copy button functionality:
106
106
  ```javascript
107
107
  await sock.sendMessage(jid, {
108
108
  interactiveMessage: {
109
+ header: "Hello World",
109
110
  title: "Hello World",
110
111
  footer: "telegram: @alannxd ",
111
112
  buttons: [
@@ -128,6 +129,7 @@ Send interactive messages with buttons, copy actions, and native flow features:
128
129
  ```javascript
129
130
  await sock.sendMessage(jid, {
130
131
  interactiveMessage: {
132
+ header: "Hello World",
131
133
  title: "Hello World",
132
134
  footer: "telegram: @alannxd",
133
135
  image: { url: "https://example.com/image.jpg" },
@@ -142,8 +144,8 @@ await sock.sendMessage(jid, {
142
144
  bottom_sheet: {
143
145
  in_thread_buttons_limit: 2,
144
146
  divider_indices: [1, 2, 3, 4, 5, 999],
145
- list_title: "alannxd",
146
- button_title: "alannxd"
147
+ list_title: "alan is here",
148
+ button_title: "alan is here"
147
149
  },
148
150
  tap_target_configuration: {
149
151
  title: " X ",
@@ -177,7 +179,7 @@ await sock.sendMessage(jid, {
177
179
  rows: [
178
180
  {
179
181
  title: "@alannxd",
180
- description: "fvck you",
182
+ description: "love you",
181
183
  id: "row_2"
182
184
  }
183
185
  ]
@@ -206,6 +208,7 @@ Send interactive messages with thumbnail image and copy button:
206
208
  ```javascript
207
209
  await sock.sendMessage(jid, {
208
210
  interactiveMessage: {
211
+ header: "Hello World",
209
212
  title: "Hello World",
210
213
  footer: "telegram: @alannxd",
211
214
  image: { url: "https://example.com/image.jpg" },
@@ -258,6 +261,7 @@ Send interactive messages with document from buffer (file system) - **Note: Docu
258
261
  ```javascript
259
262
  await sock.sendMessage(jid, {
260
263
  interactiveMessage: {
264
+ header: "Hello World",
261
265
  title: "Hello World",
262
266
  footer: "telegram: @alannxd",
263
267
  document: fs.readFileSync("./package.json"),
@@ -270,7 +274,7 @@ await sock.sendMessage(jid, {
270
274
  isForwarded: false
271
275
  },
272
276
  externalAdReply: {
273
- title: "HolowXs",
277
+ title: "Holow",
274
278
  body: "anu team",
275
279
  mediaType: 3,
276
280
  thumbnailUrl: "https://example.com/image.jpg",
@@ -299,6 +303,7 @@ Send interactive messages with document from buffer (file system) without contex
299
303
  ```javascript
300
304
  await sock.sendMessage(jid, {
301
305
  interactiveMessage: {
306
+ header: "Hello World",
302
307
  title: "Hello World",
303
308
  footer: "telegram: @alannxd",
304
309
  document: fs.readFileSync("./package.json"),