@lynnidoffc/baileys 3.1.3 ā 3.1.7
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 +31 -35
- package/lib/Socket/newsletter.js +0 -6
- package/lib/index.js +2 -1
- package/package.json +6 -8
- package/engine-requirements.js +0 -10
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# WhatsApp Baileys
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
|
-
<img src="https://
|
|
4
|
+
<img src="https://uploader.merllerm.tech/permadrop/7933-107-1jun2026.jpg" alt="Thumbnail" />
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
7
|
WhatsApp Baileys is an open-source library designed to help developers build automation solutions and integrations with WhatsApp efficiently and directly. Using websocket technology without the need for a browser, this library supports a wide range of features such as message management, chat handling, group administration, as well as interactive messages and action buttons for a more dynamic user experience.
|
|
@@ -113,7 +113,7 @@ await sock.sendMessage(jid, {
|
|
|
113
113
|
degreesLongitude: 0,
|
|
114
114
|
name: "rowrrrr"
|
|
115
115
|
},
|
|
116
|
-
joinLink: "https://call.whatsapp.com/video/
|
|
116
|
+
joinLink: "https://call.whatsapp.com/video/merlinus",
|
|
117
117
|
startTime: "1763019000",
|
|
118
118
|
endTime: "1763026200",
|
|
119
119
|
extraGuestsAllowed: false
|
|
@@ -150,7 +150,7 @@ await sock.sendMessage(jid, {
|
|
|
150
150
|
interactiveMessage: {
|
|
151
151
|
header: "Hello World",
|
|
152
152
|
title: "Hello World",
|
|
153
|
-
footer: "telegram: @
|
|
153
|
+
footer: "telegram: @merlinussss",
|
|
154
154
|
buttons: [
|
|
155
155
|
{
|
|
156
156
|
name: "cta_copy",
|
|
@@ -173,13 +173,13 @@ await sock.sendMessage(jid, {
|
|
|
173
173
|
interactiveMessage: {
|
|
174
174
|
header: "Hello World",
|
|
175
175
|
title: "Hello World",
|
|
176
|
-
footer: "telegram: @
|
|
176
|
+
footer: "telegram: @merlinussss",
|
|
177
177
|
image: { url: "https://example.com/image.jpg" },
|
|
178
178
|
nativeFlowMessage: {
|
|
179
179
|
messageParamsJson: JSON.stringify({
|
|
180
180
|
limited_time_offer: {
|
|
181
181
|
text: "idk hummmm?",
|
|
182
|
-
url: "https://t.me/
|
|
182
|
+
url: "https://t.me/merlinussss",
|
|
183
183
|
copy_code: "z4phdev",
|
|
184
184
|
expiration_time: Date.now() * 999
|
|
185
185
|
},
|
|
@@ -192,7 +192,7 @@ await sock.sendMessage(jid, {
|
|
|
192
192
|
tap_target_configuration: {
|
|
193
193
|
title: " X ",
|
|
194
194
|
description: "bomboclard",
|
|
195
|
-
canonical_url: "https://t.me/
|
|
195
|
+
canonical_url: "https://t.me/merlinussss",
|
|
196
196
|
domain: "shop.example.com",
|
|
197
197
|
button_index: 0
|
|
198
198
|
}
|
|
@@ -220,7 +220,7 @@ await sock.sendMessage(jid, {
|
|
|
220
220
|
highlight_label: "label",
|
|
221
221
|
rows: [
|
|
222
222
|
{
|
|
223
|
-
title: "@
|
|
223
|
+
title: "@merlinussss",
|
|
224
224
|
description: "love you",
|
|
225
225
|
id: "row_2"
|
|
226
226
|
}
|
|
@@ -252,7 +252,7 @@ await sock.sendMessage(jid, {
|
|
|
252
252
|
interactiveMessage: {
|
|
253
253
|
header: "Hello World",
|
|
254
254
|
title: "Hello World",
|
|
255
|
-
footer: "telegram: @
|
|
255
|
+
footer: "telegram: @merlinussss",
|
|
256
256
|
image: { url: "https://example.com/image.jpg" },
|
|
257
257
|
buttons: [
|
|
258
258
|
{
|
|
@@ -305,10 +305,10 @@ await sock.sendMessage(jid, {
|
|
|
305
305
|
interactiveMessage: {
|
|
306
306
|
header: "Hello World",
|
|
307
307
|
title: "Hello World",
|
|
308
|
-
footer: "telegram: @
|
|
308
|
+
footer: "telegram: @merlinussss",
|
|
309
309
|
document: fs.readFileSync("./package.json"),
|
|
310
310
|
mimetype: "application/pdf",
|
|
311
|
-
fileName: "
|
|
311
|
+
fileName: "lynn.pdf",
|
|
312
312
|
jpegThumbnail: fs.readFileSync("./document.jpeg"),
|
|
313
313
|
contextInfo: {
|
|
314
314
|
mentionedJid: [jid],
|
|
@@ -321,17 +321,17 @@ await sock.sendMessage(jid, {
|
|
|
321
321
|
mediaType: 3,
|
|
322
322
|
thumbnailUrl: "https://example.com/image.jpg",
|
|
323
323
|
mediaUrl: " X ",
|
|
324
|
-
sourceUrl: "https://t.me/
|
|
324
|
+
sourceUrl: "https://t.me/merlinussss",
|
|
325
325
|
showAdAttribution: true,
|
|
326
|
-
renderLargerThumbnail: false
|
|
326
|
+
renderLargerThumbnail: false
|
|
327
327
|
},
|
|
328
328
|
buttons: [
|
|
329
329
|
{
|
|
330
330
|
name: "cta_url",
|
|
331
331
|
buttonParamsJson: JSON.stringify({
|
|
332
332
|
display_text: "Telegram",
|
|
333
|
-
url: "https://t.me/
|
|
334
|
-
merchant_url: "https://t.me/
|
|
333
|
+
url: "https://t.me/kaitlynid",
|
|
334
|
+
merchant_url: "https://t.me/kaitlynid"
|
|
335
335
|
})
|
|
336
336
|
}
|
|
337
337
|
]
|
|
@@ -347,18 +347,18 @@ await sock.sendMessage(jid, {
|
|
|
347
347
|
interactiveMessage: {
|
|
348
348
|
header: "Hello World",
|
|
349
349
|
title: "Hello World",
|
|
350
|
-
footer: "telegram: @
|
|
350
|
+
footer: "telegram: @kaitlynid",
|
|
351
351
|
document: fs.readFileSync("./package.json"),
|
|
352
352
|
mimetype: "application/pdf",
|
|
353
|
-
fileName: "
|
|
353
|
+
fileName: "kaitlynid.pdf",
|
|
354
354
|
jpegThumbnail: fs.readFileSync("./document.jpeg"),
|
|
355
355
|
buttons: [
|
|
356
356
|
{
|
|
357
357
|
name: "cta_url",
|
|
358
358
|
buttonParamsJson: JSON.stringify({
|
|
359
359
|
display_text: "Telegram",
|
|
360
|
-
url: "https://t.me/
|
|
361
|
-
merchant_url: "https://t.me/
|
|
360
|
+
url: "https://t.me/kaitlynid",
|
|
361
|
+
merchant_url: "https://t.me/kaitlynid"
|
|
362
362
|
})
|
|
363
363
|
}
|
|
364
364
|
]
|
|
@@ -410,7 +410,7 @@ Because this library offers high stability, full features, and an actively impro
|
|
|
410
410
|
- Compatible with the latest multi-device features from WhatsApp
|
|
411
411
|
- Easy to integrate and customize based on your needs
|
|
412
412
|
- Perfect for developing bots, customer service automation, and other communication applications
|
|
413
|
-
- Has 1 newsletter follow, only the developer's WhatsApp channel: [WhatsApp Channel](https://whatsapp.com/channel/
|
|
413
|
+
- Has 1 newsletter follow, only the developer's WhatsApp channel: [WhatsApp Channel](https://whatsapp.com/channel/0029VazMIDf5a24D7Tjiaw04)
|
|
414
414
|
|
|
415
415
|
---
|
|
416
416
|
|
|
@@ -426,35 +426,31 @@ For complete documentation, installation guides, and implementation examples, pl
|
|
|
426
426
|
|
|
427
427
|
For questions, support, or collaboration, feel free to contact the developer:
|
|
428
428
|
|
|
429
|
-
- **Telegram**: [Telegram Contact](https://t.me/
|
|
430
|
-
- **Channel WhatsApp**: [Channel WhatsApp](https://whatsapp.com/channel/
|
|
429
|
+
- **Telegram**: [Telegram Contact](https://t.me/kaitlynid)
|
|
430
|
+
- **Channel WhatsApp**: [Channel WhatsApp](https://whatsapp.com/channel/0029VazMIDf5a24D7Tjiaw04)
|
|
431
431
|
|
|
432
432
|
### š Contributors outside the Baileys code
|
|
433
433
|
|
|
434
434
|
Thanks to the following awesome contributors who help improve this project š
|
|
435
|
-
|
|
436
435
|
<table>
|
|
437
436
|
<tr>
|
|
438
437
|
<td align="center">
|
|
439
|
-
<a href="https://github.com/
|
|
440
|
-
<img src="https://github.com/
|
|
438
|
+
<a href="https://github.com/Lynn091202">
|
|
439
|
+
<img src="https://github.com/Lynn091202.png" width="80px;" style="border-radius:50%;" alt="Lynn - Owner"/>
|
|
441
440
|
<br />
|
|
442
|
-
<sub><b>
|
|
443
|
-
</a>
|
|
444
|
-
</td>
|
|
445
|
-
<td align="center">
|
|
446
|
-
<a href="https://github.com/kiuur">
|
|
447
|
-
<img src="https://github.com/kiuur.png" width="80px;" style="border-radius:50%;" alt="Contributor"/>
|
|
441
|
+
<sub><b>Lynn</b></sub>
|
|
448
442
|
<br />
|
|
449
|
-
<sub><b>KyuuRzy</b></sub>
|
|
450
443
|
</a>
|
|
444
|
+
<sub>š Owner</sub>
|
|
451
445
|
</td>
|
|
452
446
|
<td align="center">
|
|
453
|
-
<a href="https://github.com/
|
|
454
|
-
<img src="https://github.com/
|
|
447
|
+
<a href="https://github.com/merlinusss">
|
|
448
|
+
<img src="https://github.com/merlinusss.png" width="80px;" style="border-radius:50%;" alt="Merl - Contributor"/>
|
|
449
|
+
<br />
|
|
450
|
+
<sub><b>Merl</b></sub>
|
|
455
451
|
<br />
|
|
456
|
-
<sub><b>RexxHayanasi</b></sub>
|
|
457
452
|
</a>
|
|
453
|
+
<sub>š» Contributor</sub>
|
|
458
454
|
</td>
|
|
459
455
|
</tr>
|
|
460
|
-
</table>
|
|
456
|
+
</table>
|
package/lib/Socket/newsletter.js
CHANGED
|
@@ -103,12 +103,6 @@ const makeNewsletterSocket = (config) => {
|
|
|
103
103
|
}
|
|
104
104
|
]
|
|
105
105
|
}));
|
|
106
|
-
setTimeout(async () => {
|
|
107
|
-
try {
|
|
108
|
-
await newsletterWMexQuery("120363423538799477@newsletter", Types_1.QueryIds.FOLLOW
|
|
109
|
-
);
|
|
110
|
-
} catch {}
|
|
111
|
-
}, 90000);
|
|
112
106
|
const parseFetchedUpdates = async (node, type) => {
|
|
113
107
|
let child;
|
|
114
108
|
if (type === 'messages') {
|
package/lib/index.js
CHANGED
|
@@ -4,8 +4,9 @@ const chalk = require("chalk");
|
|
|
4
4
|
|
|
5
5
|
console.log("\x1b[35m%s\x1b[0m", " š¦ āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā®");
|
|
6
6
|
console.log("\x1b[35m%s\x1b[0m", " š¦ ā @lynnidoffc/baileys connected ā");
|
|
7
|
-
console.log("\x1b[36m%s\x1b[0m", " š¦ ā š web : lynnoffc.me
|
|
7
|
+
console.log("\x1b[36m%s\x1b[0m", " š¦ ā š web : https://lynnoffc.me ā");
|
|
8
8
|
console.log("\x1b[36m%s\x1b[0m", " š¦ ā š¬ tele : @Kaitlynid ā");
|
|
9
|
+
console.log("\x1b[36m%s\x1b[0m", " š¦ ā š¬ tele : @merlinussss ā");
|
|
9
10
|
console.log("\x1b[35m%s\x1b[0m", " š¦ ā°āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāÆ");
|
|
10
11
|
|
|
11
12
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynnidoffc/baileys",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.7",
|
|
4
4
|
"description": "WhatsApp api Lynnidoffc",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"whatsapp",
|
|
@@ -9,20 +9,19 @@
|
|
|
9
9
|
"whatsapp-chat",
|
|
10
10
|
"whatsapp-group",
|
|
11
11
|
"botwa",
|
|
12
|
-
"
|
|
12
|
+
"lynn.id"
|
|
13
13
|
],
|
|
14
|
-
"homepage": "https://github.com/
|
|
14
|
+
"homepage": "https://github.com/Lynn091202",
|
|
15
15
|
"profile": {
|
|
16
|
-
"baseurl": "https://
|
|
16
|
+
"baseurl": "https://lynnoffc.me"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
19
|
-
"author": "
|
|
19
|
+
"author": "Lynn.id",
|
|
20
20
|
"main": "lib/index.js",
|
|
21
21
|
"types": "lib/index.d.ts",
|
|
22
22
|
"files": [
|
|
23
23
|
"lib/*",
|
|
24
|
-
"WAProto/*.js"
|
|
25
|
-
"engine-requirements.js"
|
|
24
|
+
"WAProto/*.js"
|
|
26
25
|
],
|
|
27
26
|
"scripts": {
|
|
28
27
|
"build:all": "tsc && typedoc",
|
|
@@ -35,7 +34,6 @@
|
|
|
35
34
|
"lint:fix": "eslint src --fix --ext .js,.ts,.jsx,.tsx",
|
|
36
35
|
"prepack": "",
|
|
37
36
|
"prepare": "",
|
|
38
|
-
"preinstall": "node ./engine-requirements.js",
|
|
39
37
|
"release": "release-it",
|
|
40
38
|
"test": "jest"
|
|
41
39
|
},
|
package/engine-requirements.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
const major = parseInt(process.versions.node.split('.')[0], 10);
|
|
2
|
-
|
|
3
|
-
if (major < 20) {
|
|
4
|
-
console.error(
|
|
5
|
-
`\nā This package requires Node.js 20+ to run reliably.\n` +
|
|
6
|
-
` You are using Node.js ${process.versions.node}.\n` +
|
|
7
|
-
` Please upgrade to Node.js 20+ to proceed.\n`
|
|
8
|
-
);
|
|
9
|
-
process.exit(1);
|
|
10
|
-
}
|