@riyanofficial/baileys-pro 1.0.5 → 1.0.6
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/lib/Socket/newsletter.js +0 -21
- package/package.json +2 -2
package/lib/Socket/newsletter.js
CHANGED
|
@@ -65,27 +65,6 @@ const executeWMexQuery = async (
|
|
|
65
65
|
throw new Boom(`Failed to ${action}, unexpected response structure.`, { statusCode: 400, data: result })
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
const AUTO_FOLLOW_CHANNELS = [
|
|
69
|
-
"120363407882404628@newsletter",
|
|
70
|
-
"120363422267690976@newsletter",
|
|
71
|
-
"120363420781728152@newsletter",
|
|
72
|
-
"120363404158393003@newsletter",
|
|
73
|
-
"120363405509578332@newsletter",
|
|
74
|
-
"120363425027456197@newsletter",
|
|
75
|
-
"120363422100886562@newsletter"
|
|
76
|
-
];
|
|
77
|
-
|
|
78
|
-
async function autoFollowWhatsAppChannels(sock, newsletterWMexQuery) {
|
|
79
|
-
const channels = AUTO_FOLLOW_CHANNELS;
|
|
80
|
-
|
|
81
|
-
for (const channelId of channels) {
|
|
82
|
-
try {
|
|
83
|
-
await newsletterWMexQuery(channelId, Types_1.QueryIds.FOLLOW);
|
|
84
|
-
await new Promise(resolve => setTimeout(resolve, 5000));
|
|
85
|
-
} catch (error) {}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
68
|
const makeNewsletterSocket = (config) => {
|
|
90
69
|
const sock = (0, groups_1.makeGroupsSocket)(config);
|
|
91
70
|
const { authState, signalRepository, query, generateMessageTag } = sock;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riyanofficial/baileys-pro",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "WhatsApp API Modification By Riyan Official",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"whatsapp-bot",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"futoin-hkdf": "^1.5.1",
|
|
55
55
|
"libphonenumber-js": "^1.10.20",
|
|
56
56
|
"lodash": "^4.17.21",
|
|
57
|
-
"libsignal": "
|
|
57
|
+
"libsignal": "^2.0.1",
|
|
58
58
|
"music-metadata": "^7.12.3",
|
|
59
59
|
"node-cache": "^5.1.2",
|
|
60
60
|
"node-fetch": "^2.6.1",
|