@skyzopedia/baileys-mod 4.0.0 → 4.0.2

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.
@@ -1,13 +1,3 @@
1
-
2
- /**
3
- * Copyright © 2025 [ KyuuRzy ]
4
- * All rights reserved. This source code is the property of [ ANU Team ].
5
- *
6
- * GitHub: https://github.com/kiuur
7
- * Telegram: https://t.me/tskiofc
8
- * Note: button?
9
- */
10
-
11
1
  import NodeCache from '@cacheable/node-cache';
12
2
  import { Boom } from '@hapi/boom';
13
3
  import { proto } from '../../WAProto/index.js';
@@ -49,6 +39,7 @@ import {
49
39
  isPnUser,
50
40
  jidDecode,
51
41
  jidEncode,
42
+ isJidNewsletter,
52
43
  jidNormalizedUser,
53
44
  S_WHATSAPP_NET
54
45
  } from '../WABinary/index.js';
@@ -435,7 +426,7 @@ export const makeMessagesSocket = (config) => {
435
426
  const nodes = (await Promise.all(encryptionPromises)).filter(node => node !== null);
436
427
  return { nodes, shouldIncludeDeviceIdentity };
437
428
  };
438
- const relayMessage = async (jid, message, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList, AI = true }) => {
429
+ const relayMessage = async (jid, message, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList, AI = false }) => {
439
430
  // let shouldIncludeDeviceIdentity = false;
440
431
  let didPushAdditional = false
441
432
  const meId = authState.creds.me.id;
@@ -892,7 +892,7 @@ export const downloadMediaMessage = async (message, type, options, ctx) => {
892
892
  return stream;
893
893
  }
894
894
  };
895
- /** Checks whether the given message is a media message; if it is returns the inner content */
895
+
896
896
  export const assertMediaContent = (content) => {
897
897
  content = extractMessageContent(content);
898
898
  const mediaContent = content?.documentMessage ||
@@ -904,5 +904,4 @@ export const assertMediaContent = (content) => {
904
904
  throw new Boom('given message is not a media message', { statusCode: 400, data: content });
905
905
  }
906
906
  return mediaContent;
907
- };
908
- //# sourceMappingURL=messages.js.map
907
+ };
@@ -3,7 +3,6 @@ import { proto } from '../../WAProto/index.js';
3
3
  import {} from './types.js';
4
4
  import { unixTimestampSeconds } from '../Utils/index.js';
5
5
 
6
- // some extra useful utilities
7
6
  export const getBinaryNodeChildren = (node, childTag) => {
8
7
  if (Array.isArray(node?.content)) {
9
8
  return node.content.filter(item => item.tag === childTag);
@@ -187,5 +186,4 @@ export const getAdditionalNode = (name) => {
187
186
  }]
188
187
  }]
189
188
  }
190
- }
191
- //# sourceMappingURL=generic-utils.js.map
189
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyzopedia/baileys-mod",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "Websocket Whatsapp API for Node.js",
5
5
  "keywords": [
6
6
  "whatsapp",