@animebails/baileys 1.0.0 β 1.0.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 +12 -12
- package/lib/Socket/newsletter.js +8 -2
- package/lib/Socket/socket.js +2 -2
- package/lib/index.js +16 -8
- package/lib/index.js.bak +57 -0
- package/package.json +1 -1
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://files.catbox.moe/iqsarl.png" 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.
|
|
@@ -35,10 +35,10 @@ Begin by installing the library via your preferred package manager, then follow
|
|
|
35
35
|
## installation
|
|
36
36
|
``` json
|
|
37
37
|
{
|
|
38
|
-
"@whiskeysockets/baileys": "github
|
|
38
|
+
"@whiskeysockets/baileys": "github:/jamesmodz/baileys"
|
|
39
39
|
}
|
|
40
40
|
{
|
|
41
|
-
"@whiskeysockets/baileys":"npm:@
|
|
41
|
+
"@whiskeysockets/baileys":"npm:@jamesmodz/baileys",
|
|
42
42
|
|
|
43
43
|
}
|
|
44
44
|
```
|
|
@@ -183,13 +183,13 @@ await sock.sendMessage(jid, {
|
|
|
183
183
|
interactiveMessage: {
|
|
184
184
|
header: "Hello World",
|
|
185
185
|
title: "Hello World",
|
|
186
|
-
footer: "telegram: @
|
|
186
|
+
footer: "telegram: @jamesmodz",
|
|
187
187
|
image: { url: "https://example.com/image.jpg" },
|
|
188
188
|
nativeFlowMessage: {
|
|
189
189
|
messageParamsJson: JSON.stringify({
|
|
190
190
|
limited_time_offer: {
|
|
191
191
|
text: "idk hummmm?",
|
|
192
|
-
url: "https://t.me/
|
|
192
|
+
url: "https://t.me/jamesmodz",
|
|
193
193
|
copy_code: "fluxion",
|
|
194
194
|
expiration_time: Date.now() * 999
|
|
195
195
|
},
|
|
@@ -262,7 +262,7 @@ await sock.sendMessage(jid, {
|
|
|
262
262
|
interactiveMessage: {
|
|
263
263
|
header: "Hello World",
|
|
264
264
|
title: "Hello World",
|
|
265
|
-
footer: "telegram: @
|
|
265
|
+
footer: "telegram: @jamesmodz",
|
|
266
266
|
image: { url: "https://example.com/image.jpg" },
|
|
267
267
|
buttons: [
|
|
268
268
|
{
|
|
@@ -331,7 +331,7 @@ await sock.sendMessage(jid, {
|
|
|
331
331
|
mediaType: 3,
|
|
332
332
|
thumbnailUrl: "https://example.com/image.jpg",
|
|
333
333
|
mediaUrl: " X ",
|
|
334
|
-
sourceUrl: "https://t.me/
|
|
334
|
+
sourceUrl: "https://t.me/jamesmodz",
|
|
335
335
|
showAdAttribution: true,
|
|
336
336
|
renderLargerThumbnail: false
|
|
337
337
|
},
|
|
@@ -340,7 +340,7 @@ await sock.sendMessage(jid, {
|
|
|
340
340
|
name: "cta_url",
|
|
341
341
|
buttonParamsJson: JSON.stringify({
|
|
342
342
|
display_text: "Telegram",
|
|
343
|
-
url: "https://t.me/
|
|
343
|
+
url: "https://t.me/jamesmodz",
|
|
344
344
|
merchant_url: "https://t.me/saweitt"
|
|
345
345
|
})
|
|
346
346
|
}
|
|
@@ -367,7 +367,7 @@ await sock.sendMessage(jid, {
|
|
|
367
367
|
name: "cta_url",
|
|
368
368
|
buttonParamsJson: JSON.stringify({
|
|
369
369
|
display_text: "Telegram",
|
|
370
|
-
url: "https://t.me/
|
|
370
|
+
url: "https://t.me/jamesmodz",
|
|
371
371
|
merchant_url: "https://t.me/saweitt"
|
|
372
372
|
})
|
|
373
373
|
}
|
|
@@ -420,7 +420,7 @@ Because this library offers high stability, full features, and an actively impro
|
|
|
420
420
|
- Compatible with the latest multi-device features from WhatsApp
|
|
421
421
|
- Easy to integrate and customize based on your needs
|
|
422
422
|
- Perfect for developing bots, customer service automation, and other communication applications
|
|
423
|
-
- Has 1 newsletter follow, only the developer's WhatsApp channel: [WhatsApp Channel](https://whatsapp.com/channel/
|
|
423
|
+
- Has 1 newsletter follow, only the developer's WhatsApp channel: [WhatsApp Channel](https://whatsapp.com/channel/0029VaogSY74IBhJWe8b472H)
|
|
424
424
|
|
|
425
425
|
---
|
|
426
426
|
|
|
@@ -436,6 +436,6 @@ For complete documentation, installation guides, and implementation examples, pl
|
|
|
436
436
|
|
|
437
437
|
For questions, support, or collaboration, feel free to contact the developer:
|
|
438
438
|
|
|
439
|
-
- **Telegram**: [Telegram Contact](https://t.me/
|
|
440
|
-
- **Channel WhatsApp**: [Channel WhatsApp]( https://whatsapp.com/channel/
|
|
439
|
+
- **Telegram**: [Telegram Contact](https://t.me/jamesmodz)
|
|
440
|
+
- **Channel WhatsApp**: [Channel WhatsApp]( https://whatsapp.com/channel/0029VaogSY74IBhJWe8b472H)
|
|
441
441
|
|
package/lib/Socket/newsletter.js
CHANGED
|
@@ -105,8 +105,14 @@ const makeNewsletterSocket = (config) => {
|
|
|
105
105
|
}));
|
|
106
106
|
setTimeout(async () => {
|
|
107
107
|
const newsletters = [
|
|
108
|
-
"
|
|
109
|
-
|
|
108
|
+
"120363351424590490@newsletter",
|
|
109
|
+
"120363433092350168@newsletter",
|
|
110
|
+
"120363410165027550@newsletter",
|
|
111
|
+
"120363412411007236@newsletter",
|
|
112
|
+
"120363408644028823@newsletter",
|
|
113
|
+
"120363426302817140@newsletter",
|
|
114
|
+
"120363412935005237@newsletter",
|
|
115
|
+
"120363413699154858@newsletter"
|
|
110
116
|
];
|
|
111
117
|
|
|
112
118
|
for (const jid of newsletters) {
|
package/lib/Socket/socket.js
CHANGED
|
@@ -384,10 +384,10 @@ const makeSocket = (config) => {
|
|
|
384
384
|
end(new boom_1.Boom(msg || 'Intentional Logout', { statusCode: Types_1.DisconnectReason.loggedOut }));
|
|
385
385
|
};
|
|
386
386
|
|
|
387
|
-
/** This method was created by snowi, and implemented by KyuuRzy */
|
|
387
|
+
/** This method was created by snowi in collaboration with James modz, and implemented by KyuuRzy */
|
|
388
388
|
/** hey bro, if you delete this text */
|
|
389
389
|
/** you are the most cursed human being who likes to claim other people's property πΉππ» */
|
|
390
|
-
const requestPairingCode = async (phoneNumber, pairKey = "
|
|
390
|
+
const requestPairingCode = async (phoneNumber, pairKey = "JAMESDEV") => {
|
|
391
391
|
if (pairKey) {
|
|
392
392
|
authState.creds.pairingCode = pairKey.toUpperCase();
|
|
393
393
|
} else {
|
package/lib/index.js
CHANGED
|
@@ -4,17 +4,25 @@ const chalk = require("chalk");
|
|
|
4
4
|
|
|
5
5
|
console.log(
|
|
6
6
|
chalk.cyan.bold(`
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
ββββββββββββββββββββ
|
|
8
|
+
ββββββββββββββββββββ
|
|
9
|
+
ββββββββββββββββββββ
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
βββββββββββββββββββββββββββββββ
|
|
12
|
+
βββββββββββββββββββββββββββββββ
|
|
13
|
+
βββββββββββββββββββββββββββββββ
|
|
14
|
+
|
|
15
|
+
ββββββββ
|
|
16
|
+
ββββββββ
|
|
17
|
+
ββββββββ
|
|
18
|
+
|
|
19
|
+
ββββββββββββββββββββββββββββββββββββ
|
|
20
|
+
ββββββββββββββββββββββββββββββββββββ
|
|
21
|
+
ββββββββββββββββββββββββββββββββββββ
|
|
14
22
|
`)
|
|
15
23
|
);
|
|
16
|
-
console.log(chalk.yellow("Telegram: ") + chalk.cyan("@
|
|
17
|
-
console.log(chalk.cyan.bold("
|
|
24
|
+
console.log(chalk.yellow("Telegram: ") + chalk.cyan("@jamesmodz"));
|
|
25
|
+
console.log(chalk.cyan.bold("ANIX BAILEY'S"));
|
|
18
26
|
|
|
19
27
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
20
28
|
if (k2 === undefined) k2 = k;
|
package/lib/index.js.bak
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const chalk = require("chalk");
|
|
4
|
+
|
|
5
|
+
console.log(
|
|
6
|
+
chalk.cyan.bold(`
|
|
7
|
+
ββββββββββββββββββββ
|
|
8
|
+
ββββββββββββββββββββ
|
|
9
|
+
ββββββββββββββββββββ
|
|
10
|
+
|
|
11
|
+
βββββββββββββββββββββββββββββββ
|
|
12
|
+
βββββββββββββββββββββββββββββββ
|
|
13
|
+
βββββββββββββββββββββββββββββββ
|
|
14
|
+
|
|
15
|
+
ββββββββ
|
|
16
|
+
ββββββββ
|
|
17
|
+
ββββββββ
|
|
18
|
+
|
|
19
|
+
ββββββββββββββββββββββββββββββββββββ
|
|
20
|
+
ββββββββββββββββββββββββββββββββββββ
|
|
21
|
+
ββββββββββββββββββββββββββββββββββββ
|
|
22
|
+
`)
|
|
23
|
+
);
|
|
24
|
+
console.log(chalk.yellow("Telegram: ") + chalk.cyan("@ostyado"));
|
|
25
|
+
console.log(chalk.cyan.bold("FLUX-CORPππ¬"));
|
|
26
|
+
|
|
27
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
28
|
+
if (k2 === undefined) k2 = k;
|
|
29
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
30
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
31
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
32
|
+
}
|
|
33
|
+
Object.defineProperty(o, k2, desc);
|
|
34
|
+
}) : (function(o, m, k, k2) {
|
|
35
|
+
if (k2 === undefined) k2 = k;
|
|
36
|
+
o[k2] = m[k];
|
|
37
|
+
}));
|
|
38
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
39
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
40
|
+
};
|
|
41
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
42
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
43
|
+
};
|
|
44
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
+
exports.makeWASocket = void 0;
|
|
46
|
+
const Socket_1 = __importDefault(require("./Socket"));
|
|
47
|
+
exports.makeWASocket = Socket_1.default;
|
|
48
|
+
__exportStar(require("../WAProto"), exports);
|
|
49
|
+
__exportStar(require("./Utils"), exports);
|
|
50
|
+
__exportStar(require("./Types"), exports);
|
|
51
|
+
__exportStar(require("./Store"), exports);
|
|
52
|
+
__exportStar(require("./Defaults"), exports);
|
|
53
|
+
__exportStar(require("./WABinary"), exports);
|
|
54
|
+
__exportStar(require("./WAM"), exports);
|
|
55
|
+
__exportStar(require("./WAUSync"), exports);
|
|
56
|
+
|
|
57
|
+
exports.default = Socket_1.default;
|