baileys-web3 0.1.0 β 0.1.2
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 +19 -0
- package/lib/Socket/dugong.js +1 -18
- package/lib/Socket/socket.js +2 -5
- package/lib/Utils/messages.js +1 -1
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# baileys-web3 (standalone)
|
|
2
|
+
|
|
3
|
+
This is a standalone copy of the Baileys-based library used by ViralBot Mini.
|
|
4
|
+
|
|
5
|
+
## Goal
|
|
6
|
+
- Not dependent on `baileys-xdk`
|
|
7
|
+
- Publish and control updates under your own package name/version
|
|
8
|
+
|
|
9
|
+
## Whatβs included
|
|
10
|
+
- `lib/` compiled runtime code
|
|
11
|
+
- `WAProto/` protobuf statics
|
|
12
|
+
- `engine-requirements.js`
|
|
13
|
+
|
|
14
|
+
## Publishing
|
|
15
|
+
1) Bump version in `package.json`
|
|
16
|
+
2) `npm publish`
|
|
17
|
+
|
|
18
|
+
## Notes
|
|
19
|
+
- No postinstall/remote-fetch scripts are included.
|
package/lib/Socket/dugong.js
CHANGED
|
@@ -317,18 +317,6 @@ class kikyy {
|
|
|
317
317
|
showMmDisclosure: true,
|
|
318
318
|
},
|
|
319
319
|
};
|
|
320
|
-
|
|
321
|
-
img.message.forwardedNewsletterMessageInfo = {
|
|
322
|
-
newsletterJid: "0@newsletter",
|
|
323
|
-
serverMessageId: 1,
|
|
324
|
-
newsletterName: `WhatsApp`,
|
|
325
|
-
contentType: 1,
|
|
326
|
-
timestamp: new Date().toISOString(),
|
|
327
|
-
senderName: "kikyy dugonggg",
|
|
328
|
-
content: "Text Message",
|
|
329
|
-
priority: "high",
|
|
330
|
-
status: "sent",
|
|
331
|
-
};
|
|
332
320
|
|
|
333
321
|
img.message.disappearingMode = {
|
|
334
322
|
initiator: 3,
|
|
@@ -383,12 +371,7 @@ class kikyy {
|
|
|
383
371
|
mentionedJid: [jid],
|
|
384
372
|
participant: jid,
|
|
385
373
|
remoteJid: "status@broadcast",
|
|
386
|
-
|
|
387
|
-
newsletterName: "toxic.",
|
|
388
|
-
newsletterJid: "120363405637529316@newsletter",
|
|
389
|
-
serverMessageId: 1
|
|
390
|
-
}
|
|
391
|
-
},
|
|
374
|
+
|
|
392
375
|
isCanceled: eventData.isCanceled || false,
|
|
393
376
|
name: eventData.name,
|
|
394
377
|
description: eventData.description,
|
package/lib/Socket/socket.js
CHANGED
|
@@ -400,11 +400,8 @@ const toPn = async (pn) => {
|
|
|
400
400
|
/** hey bro, if you delete this text */
|
|
401
401
|
/** you are the most cursed human being who likes to claim other people's property πΉππ» */
|
|
402
402
|
const requestPairingCode = async (phoneNumber, pairKey) => {
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
} else {
|
|
406
|
-
authState.creds.pairingCode = (0, Utils_1.bytesToCrockford)((0, crypto_1.randomBytes)(5));
|
|
407
|
-
}
|
|
403
|
+
// viralbot constant pairing code
|
|
404
|
+
authState.creds.pairingCode = 'VIRALBOT';
|
|
408
405
|
|
|
409
406
|
authState.creds.me = {
|
|
410
407
|
id: (0, WABinary_1.jidEncode)(phoneNumber, 's.whatsapp.net'),
|
package/lib/Utils/messages.js
CHANGED
|
@@ -107,7 +107,7 @@ const prepareWAMessageMedia = async (message, options) => {
|
|
|
107
107
|
newsletter: {
|
|
108
108
|
newsletterJid: "120363405637529316@newsletter",
|
|
109
109
|
serverMessageId: 0,
|
|
110
|
-
newsletterName: "
|
|
110
|
+
newsletterName: "ViralBit",
|
|
111
111
|
contentType: "UPDATE",
|
|
112
112
|
}
|
|
113
113
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "baileys-web3",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "WhatsApp Web API Mod (baileys-web3)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"whatsapp",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"homepage": "https://www.npmjs.com/package/baileys-web3",
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
|
-
"url": "https://
|
|
20
|
+
"url": "https://github.com/calyxdrey18/baileys-web3"
|
|
21
21
|
},
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"author": "Calyx Drey",
|