@codexverified/baileys 2.17.18 → 2.18.18
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.
- package/README.md +3 -3
- package/lib/Socket/messages-send.js +11 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
<img src="https://raw.githubusercontent.com/codexverified/CODEX-AI/main/assets/rolling-circle.svg" width="90" alt="CodexVerified rolling circle" />
|
|
12
12
|
|
|
13
|
-
[](https://www.npmjs.com/package/@codexverified/baileys)
|
|
14
14
|
[](https://t.me/codexverified)
|
|
15
15
|
[](https://nodejs.org/)
|
|
16
16
|
[](https://www.npmjs.com/package/@codexverified/baileys)
|
|
@@ -65,7 +65,7 @@ The package is maintained by **Codex** under the **CodexVerified** organization.
|
|
|
65
65
|
| Property | Value |
|
|
66
66
|
| --- | --- |
|
|
67
67
|
| Package | `@codexverified/baileys` |
|
|
68
|
-
| Version | `2.
|
|
68
|
+
| Version | `2.18.18` |
|
|
69
69
|
| Runtime | Node.js 20 or newer |
|
|
70
70
|
| Module format | ESM, with CommonJS compatibility where supported |
|
|
71
71
|
| Type declarations | Included at `lib/index.d.ts` |
|
|
@@ -79,7 +79,7 @@ The package is maintained by **Codex** under the **CodexVerified** organization.
|
|
|
79
79
|
| Method | Command | Notes |
|
|
80
80
|
| --- | --- | --- |
|
|
81
81
|
| From npm | `npm install @codexverified/baileys` | Standard install when published under your organization |
|
|
82
|
-
| From local archive | `npm install ./codex-baileys-2.
|
|
82
|
+
| From local archive | `npm install ./codex-baileys-2.18.18.tgz` | Place the `.tgz` beside your application |
|
|
83
83
|
| Source audit (no scripts) | `npm install --ignore-scripts` | Skips install hooks for local review |
|
|
84
84
|
|
|
85
85
|
Both npm and archive installs use the same import name:
|
|
@@ -1307,7 +1307,7 @@ export const makeMessagesSocket = (config) => {
|
|
|
1307
1307
|
]
|
|
1308
1308
|
});
|
|
1309
1309
|
const fullMsg = await generateWAMessageFromContent(jid, wrapped, { logger, userJid: authState.creds.me?.id, messageId: options.messageId || generateMessageIDV2(authState.creds.me?.id), ...options });
|
|
1310
|
-
await
|
|
1310
|
+
await relayMessage(jid, fullMsg.message, { messageId: fullMsg.key.id, ...options });
|
|
1311
1311
|
return fullMsg;
|
|
1312
1312
|
},
|
|
1313
1313
|
sendBotToolResult: async (jid, content = {}, options = {}) => {
|
|
@@ -1337,7 +1337,7 @@ export const makeMessagesSocket = (config) => {
|
|
|
1337
1337
|
messageId: options.messageId || generateMessageIDV2(authState.creds.me?.id || jid),
|
|
1338
1338
|
...options,
|
|
1339
1339
|
});
|
|
1340
|
-
await
|
|
1340
|
+
await relayMessage(jid, fullMsg.message, { messageId: fullMsg.key.id, ...options, forceRichEdit: true });
|
|
1341
1341
|
if (config.emitOwnEvents) process.nextTick(async () => { await messageMutex.mutex(() => upsertMessage(fullMsg, 'append')); });
|
|
1342
1342
|
return fullMsg;
|
|
1343
1343
|
},
|
|
@@ -1350,7 +1350,7 @@ export const makeMessagesSocket = (config) => {
|
|
|
1350
1350
|
messageId: options.messageId || generateMessageIDV2(authState.creds.me?.id),
|
|
1351
1351
|
...options
|
|
1352
1352
|
});
|
|
1353
|
-
await
|
|
1353
|
+
await relayMessage(jid, fullMsg.message, { messageId: fullMsg.key.id, ...options });
|
|
1354
1354
|
return fullMsg;
|
|
1355
1355
|
},
|
|
1356
1356
|
sendBotPttTranscript: async (jid, content = {}, options = {}) => {
|
|
@@ -1362,7 +1362,7 @@ export const makeMessagesSocket = (config) => {
|
|
|
1362
1362
|
messageId: options.messageId || generateMessageIDV2(authState.creds.me?.id),
|
|
1363
1363
|
...options
|
|
1364
1364
|
});
|
|
1365
|
-
await
|
|
1365
|
+
await relayMessage(jid, fullMsg.message, { messageId: fullMsg.key.id, ...options });
|
|
1366
1366
|
return fullMsg;
|
|
1367
1367
|
},
|
|
1368
1368
|
sendBotSources: async (jid, content = {}, options = {}) => {
|
|
@@ -1374,7 +1374,7 @@ export const makeMessagesSocket = (config) => {
|
|
|
1374
1374
|
messageId: options.messageId || generateMessageIDV2(authState.creds.me?.id),
|
|
1375
1375
|
...options
|
|
1376
1376
|
});
|
|
1377
|
-
await
|
|
1377
|
+
await relayMessage(jid, fullMsg.message, { messageId: fullMsg.key.id, ...options });
|
|
1378
1378
|
return fullMsg;
|
|
1379
1379
|
},
|
|
1380
1380
|
sendInstagramProfile: async (jid, content = {}, options = {}) => {
|
|
@@ -1386,7 +1386,7 @@ export const makeMessagesSocket = (config) => {
|
|
|
1386
1386
|
messageId: options.messageId || generateMessageIDV2(authState.creds.me?.id || jid),
|
|
1387
1387
|
...options
|
|
1388
1388
|
});
|
|
1389
|
-
await
|
|
1389
|
+
await relayMessage(jid, fullMsg.message, { messageId: fullMsg.key.id, ...options });
|
|
1390
1390
|
if (config.emitOwnEvents) process.nextTick(async () => { await messageMutex.mutex(() => upsertMessage(fullMsg, 'append')); });
|
|
1391
1391
|
return fullMsg;
|
|
1392
1392
|
},
|
|
@@ -1399,7 +1399,7 @@ export const makeMessagesSocket = (config) => {
|
|
|
1399
1399
|
messageId: options.messageId || generateMessageIDV2(authState.creds.me?.id),
|
|
1400
1400
|
...options
|
|
1401
1401
|
});
|
|
1402
|
-
await
|
|
1402
|
+
await relayMessage(jid, fullMsg.message, { messageId: fullMsg.key.id, ...options });
|
|
1403
1403
|
return fullMsg;
|
|
1404
1404
|
},
|
|
1405
1405
|
sendRichMap: async (jid, content = {}, options = {}) => {
|
|
@@ -1411,7 +1411,7 @@ export const makeMessagesSocket = (config) => {
|
|
|
1411
1411
|
messageId: options.messageId || generateMessageIDV2(authState.creds.me?.id),
|
|
1412
1412
|
...options
|
|
1413
1413
|
});
|
|
1414
|
-
await
|
|
1414
|
+
await relayMessage(jid, fullMsg.message, { messageId: fullMsg.key.id, ...options });
|
|
1415
1415
|
return fullMsg;
|
|
1416
1416
|
},
|
|
1417
1417
|
sendSocialEntity: async (jid, content = {}, options = {}) => {
|
|
@@ -1423,7 +1423,7 @@ export const makeMessagesSocket = (config) => {
|
|
|
1423
1423
|
messageId: options.messageId || generateMessageIDV2(authState.creds.me?.id || jid),
|
|
1424
1424
|
...options,
|
|
1425
1425
|
});
|
|
1426
|
-
await
|
|
1426
|
+
await relayMessage(jid, fullMsg.message, { messageId: fullMsg.key.id, ...options });
|
|
1427
1427
|
if (config.emitOwnEvents) process.nextTick(async () => { await messageMutex.mutex(() => upsertMessage(fullMsg, 'append')); });
|
|
1428
1428
|
return fullMsg;
|
|
1429
1429
|
},
|
|
@@ -1438,7 +1438,7 @@ export const makeMessagesSocket = (config) => {
|
|
|
1438
1438
|
messageId: options.messageId || generateMessageIDV2(authState.creds.me?.id || jid),
|
|
1439
1439
|
...options,
|
|
1440
1440
|
});
|
|
1441
|
-
await
|
|
1441
|
+
await relayMessage(jid, fullMsg.message, { messageId: fullMsg.key.id, ...options });
|
|
1442
1442
|
if (config.emitOwnEvents) {
|
|
1443
1443
|
process.nextTick(async () => {
|
|
1444
1444
|
await messageMutex.mutex(() => upsertMessage(fullMsg, 'append'));
|
|
@@ -2536,7 +2536,7 @@ export const makeMessagesSocket = (config) => {
|
|
|
2536
2536
|
messageId: options.messageId || generateMessageIDV2(authState.creds.me?.id || jid),
|
|
2537
2537
|
...options
|
|
2538
2538
|
});
|
|
2539
|
-
await
|
|
2539
|
+
await relayMessage(jid, fullMsg.message, { messageId: fullMsg.key.id, ...options });
|
|
2540
2540
|
if (config.emitOwnEvents) {
|
|
2541
2541
|
process.nextTick(async () => {
|
|
2542
2542
|
await messageMutex.mutex(() => upsertMessage(fullMsg, 'append'));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codexverified/baileys",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.18.18",
|
|
4
4
|
"description": "CODEX TECHNOLOGY a premium Baileys developed and built by Dev Codex, with Meta compositing, bot planning replay, welcome flow, rich messages, interactive messages, albums, and more.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"type": "module",
|