@manybot/manybot 5.5.0 → 5.5.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.
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Creates and returns a Baileys WASocket.
|
|
5
5
|
* Handles auth state persistence, QR/pairing-code display, and reconnection.
|
|
6
6
|
*/
|
|
7
|
-
import makeWASocket,
|
|
7
|
+
import { makeWASocket, useMultiFileAuthState, fetchLatestBaileysVersion, Browsers, WAProto, } from "@whiskeysockets/baileys";
|
|
8
8
|
import path from "path";
|
|
9
9
|
import qrcode from "qrcode-terminal";
|
|
10
10
|
import { CONFIG_DIR, CLIENT_ID } from "#config";
|
|
@@ -57,7 +57,7 @@ export async function createSocket(authDirName = CLIENT_ID) {
|
|
|
57
57
|
// https://github.com/WhiskeySockets/Baileys — SocketConfig docs).
|
|
58
58
|
// This keeps the initial/recent sync (needed for store.chats and
|
|
59
59
|
// LID→phone resolution) while still skipping the full download.
|
|
60
|
-
shouldSyncHistoryMessage: ({ syncType }) => syncType !==
|
|
60
|
+
shouldSyncHistoryMessage: ({ syncType }) => syncType !== WAProto.HistorySync.HistorySyncType.FULL,
|
|
61
61
|
// Required for Baileys to decrypt incoming poll votes (and to retry
|
|
62
62
|
// sends) — it looks up the original message by key internally.
|
|
63
63
|
// Without this, pollUpdates never resolve even though the vote event
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manybot/manybot",
|
|
3
|
-
"description": "
|
|
3
|
+
"description": "Framework to build WhatsApp bots based on plugins",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "SyntaxError!",
|
|
6
6
|
"email": "me@stxerr.dev"
|
|
7
7
|
},
|
|
8
|
-
"version": "5.5.
|
|
8
|
+
"version": "5.5.2",
|
|
9
9
|
"license": "GPL-3.0-only",
|
|
10
10
|
"private": false,
|
|
11
11
|
"engines": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@clack/prompts": "^0.10.1",
|
|
39
39
|
"@hapi/boom": "^10.0.1",
|
|
40
|
-
"@whiskeysockets/baileys": "^6.
|
|
40
|
+
"@whiskeysockets/baileys": "^6.6.0",
|
|
41
41
|
"node-cron": "^4.6.0",
|
|
42
42
|
"node-webpmux": "^3.2.1",
|
|
43
43
|
"pino": "^10.3.1",
|