@agent-wechat/cli 0.11.10 → 0.11.12
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/dist/cli.js +5 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -7911,7 +7911,7 @@ import qrTerminal from "qrcode-terminal";
|
|
|
7911
7911
|
import os from "os";
|
|
7912
7912
|
import path from "path";
|
|
7913
7913
|
import { fileURLToPath } from "url";
|
|
7914
|
-
var VERSION = "0.11.
|
|
7914
|
+
var VERSION = "0.11.12";
|
|
7915
7915
|
var CONTAINER_NAME = "agent-wechat";
|
|
7916
7916
|
var GHCR_IMAGE = "ghcr.io/thisnick/agent-wechat";
|
|
7917
7917
|
var DEFAULT_PORT = 6174;
|
|
@@ -8341,6 +8341,10 @@ async function cmdMedia(client, chatId, localId, outputPath) {
|
|
|
8341
8341
|
console.error("No media found for this message (unsupported type or not found).");
|
|
8342
8342
|
process.exit(1);
|
|
8343
8343
|
}
|
|
8344
|
+
if (result.type === "pending") {
|
|
8345
|
+
console.error("Media not yet available. WeChat may still be downloading it \u2014 try again shortly.");
|
|
8346
|
+
process.exit(1);
|
|
8347
|
+
}
|
|
8344
8348
|
const outFile = outputPath ?? result.filename;
|
|
8345
8349
|
if (result.data) {
|
|
8346
8350
|
const buffer = Buffer.from(result.data, "base64");
|