@fvckerss/baileys 1.0.3 → 1.0.4
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 +68 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -201,13 +201,51 @@ END:VCARD`
|
|
|
201
201
|
### 📋 List Message
|
|
202
202
|
|
|
203
203
|
```
|
|
204
|
-
await
|
|
205
|
-
text: "
|
|
204
|
+
await sock.sendMessage(jid, {
|
|
205
|
+
text: "Hello World",
|
|
206
|
+
footer: "FVCKERS",
|
|
207
|
+
buttons: [
|
|
208
|
+
{
|
|
209
|
+
buttonId: "single_select",
|
|
210
|
+
buttonText: { displayText: "Select Menu" },
|
|
211
|
+
type: 1,
|
|
212
|
+
nativeFlowInfo: {
|
|
213
|
+
name: "single_select",
|
|
214
|
+
paramsJson: JSON.stringify({
|
|
215
|
+
title: "List Group",
|
|
216
|
+
sections: [
|
|
217
|
+
{
|
|
218
|
+
title: "Group",
|
|
219
|
+
rows: [
|
|
220
|
+
{
|
|
221
|
+
title: `Button`,
|
|
222
|
+
description: `> Ini tampilan button`,
|
|
223
|
+
id: `.listb`
|
|
224
|
+
}
|
|
225
|
+
]
|
|
226
|
+
}
|
|
227
|
+
]
|
|
228
|
+
})
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
headerType: 1
|
|
233
|
+
});
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
### 📋 List Message With Thumbnail
|
|
239
|
+
|
|
240
|
+
```
|
|
241
|
+
await sock.sendMessage(jid, {
|
|
242
|
+
image: { url: "https://upload.fvckers.my.id/y1z56qmqj90wv8.jpg" },
|
|
243
|
+
text: "Hello World",
|
|
206
244
|
footer: "FVCKERS",
|
|
207
245
|
buttons: [
|
|
208
246
|
{
|
|
209
|
-
buttonId: "
|
|
210
|
-
buttonText: { displayText: "
|
|
247
|
+
buttonId: "single_select",
|
|
248
|
+
buttonText: { displayText: "Select Menu" },
|
|
211
249
|
type: 1,
|
|
212
250
|
nativeFlowInfo: {
|
|
213
251
|
name: "single_select",
|
|
@@ -220,7 +258,7 @@ await conn.sendMessage(m.chat, {
|
|
|
220
258
|
{
|
|
221
259
|
title: `Button`,
|
|
222
260
|
description: `> Ini tampilan button`,
|
|
223
|
-
id:
|
|
261
|
+
id: `.listb`
|
|
224
262
|
}
|
|
225
263
|
]
|
|
226
264
|
}
|
|
@@ -259,6 +297,31 @@ await sock.sendMessage(jid, {
|
|
|
259
297
|
|
|
260
298
|
---
|
|
261
299
|
|
|
300
|
+
### 🔘 Buttons Message With Thumbnail
|
|
301
|
+
|
|
302
|
+
```
|
|
303
|
+
await sock.sendMessage(jid, {
|
|
304
|
+
image: { url: "https://upload.fvckers.my.id/y1z56qmqj90wv8.jpg" },
|
|
305
|
+
text: "Hello World",
|
|
306
|
+
buttons: [
|
|
307
|
+
{
|
|
308
|
+
buttonId: ".menu",
|
|
309
|
+
buttonText: {
|
|
310
|
+
displayText: "Menu"
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
buttonId: ".owner",
|
|
315
|
+
buttonText: {
|
|
316
|
+
displayText: "Owner"
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
]
|
|
320
|
+
})
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
---
|
|
324
|
+
|
|
262
325
|
### ⚡ InteractiveMessage NativeFlowMessage With Thumbnail
|
|
263
326
|
|
|
264
327
|
```
|