@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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. 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 = 5, intervalMs = 1e3) {
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") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-wechat/wechat",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",