@skyzopedia/baileys-mod 4.0.0 → 4.0.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.
|
@@ -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';
|
|
@@ -435,7 +425,7 @@ export const makeMessagesSocket = (config) => {
|
|
|
435
425
|
const nodes = (await Promise.all(encryptionPromises)).filter(node => node !== null);
|
|
436
426
|
return { nodes, shouldIncludeDeviceIdentity };
|
|
437
427
|
};
|
|
438
|
-
const relayMessage = async (jid, message, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList, AI =
|
|
428
|
+
const relayMessage = async (jid, message, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList, AI = false }) => {
|
|
439
429
|
// let shouldIncludeDeviceIdentity = false;
|
|
440
430
|
let didPushAdditional = false
|
|
441
431
|
const meId = authState.creds.me.id;
|
package/lib/Utils/messages.js
CHANGED
|
@@ -892,7 +892,7 @@ export const downloadMediaMessage = async (message, type, options, ctx) => {
|
|
|
892
892
|
return stream;
|
|
893
893
|
}
|
|
894
894
|
};
|
|
895
|
-
|
|
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
|
+
}
|