@agent-wechat/wechat 0.2.2 → 0.2.3
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/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5515,7 +5515,7 @@ function sleep(ms, signal) {
|
|
|
5515
5515
|
});
|
|
5516
5516
|
});
|
|
5517
5517
|
}
|
|
5518
|
-
async function pollMedia(client, chatId, localId, log, maxAttempts =
|
|
5518
|
+
async function pollMedia(client, chatId, localId, log, maxAttempts = 15, intervalMs = 1e3) {
|
|
5519
5519
|
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
|
5520
5520
|
const result = await client.getMedia(chatId, localId);
|
|
5521
5521
|
if (result.data && result.type !== "unsupported") {
|