@zetagoaurum-socket/wasocket 2.1.4 → 2.1.6

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.
@@ -312,10 +312,9 @@ const makeMessagesSocket = (config) => {
312
312
  const devices = [];
313
313
  const meMsg = {
314
314
  deviceSentMessage: {
315
+ destinationJid,
315
316
  destinationJid,
316
317
  message,
317
- phash: '2:1:a', // Fake enterprise phash
318
- metaVerified: true // Fake Meta Verified attribute
319
318
  }
320
319
  };
321
320
  const extraAttrs = {}
@@ -585,13 +584,7 @@ const makeMessagesSocket = (config) => {
585
584
  stanza.content.push(...additionalNodes);
586
585
  }
587
586
 
588
- // [SUPER HUMMANIZE] Ensure bot context is always present for enterprise look
589
- if (!stanza.content.find(c => c.tag === 'bot')) {
590
- stanza.content.push({
591
- tag: 'bot',
592
- attrs: { biz_bot: '1' }
593
- });
594
- }
587
+
595
588
 
596
589
  logger.debug({ msgId }, `sending message to ${participants.length} devices`);
597
590
  await sendNode(stanza);
@@ -881,14 +874,12 @@ const makeMessagesSocket = (config) => {
881
874
  ...options
882
875
  });
883
876
 
884
- // Humanize Send: Random delay between 500ms and 1500ms
885
- const delay = (ms) => new Promise(resolve => setTimeout(resolve, ms));
886
- await delay(Math.floor(Math.random() * 1000) + 500);
877
+
887
878
 
888
879
  const isDeleteMsg = 'delete' in content && !!content.delete;
889
880
  const isEditMsg = 'edit' in content && !!content.edit;
890
881
  // FORCE AI BADGES FOR ALL MESSAGES
891
- const isAiMsg = true; // 'ai' in content && !!content.ai;
882
+ const isAiMsg = 'ai' in content && !!content.ai;
892
883
 
893
884
  const additionalAttributes = {};
894
885
  const additionalNodes = [];
@@ -104,12 +104,7 @@ const prepareWAMessageMedia = async (message, options) => {
104
104
  y: -47.80188751220703
105
105
  }
106
106
  ],
107
- newsletter: {
108
- newsletterJid: "120363420249672073@newsletter",
109
- serverMessageId: 0,
110
- newsletterName: "kyuu ilysm",
111
- contentType: "UPDATE",
112
- }
107
+ newsletter: undefined
113
108
  }
114
109
  ]
115
110
  }),
@@ -412,6 +407,9 @@ const generateWAMessageContent = async (message, options) => {
412
407
  else if ('requestPhoneNumber' in message) {
413
408
  m.requestPhoneNumberMessage = {};
414
409
  }
410
+ else if ('interactiveMessage' in message) {
411
+ m.interactiveMessage = Types_1.WAProto.Message.InteractiveMessage.fromObject(message.interactiveMessage);
412
+ }
415
413
  else {
416
414
  m = await (0, exports.prepareWAMessageMedia)(message, options);
417
415
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zetagoaurum-socket/wasocket",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
4
4
  "description": "WhatsApp API Modification ZetaGo",
5
5
  "keywords": [
6
6
  "whatsapp",