@zlr_236/popo 0.0.3 → 0.0.4

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/package.json +1 -1
  2. package/src/bot.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zlr_236/popo",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "type": "module",
5
5
  "description": "OpenClaw POPO channel plugin",
6
6
  "license": "MIT",
package/src/bot.ts CHANGED
@@ -102,7 +102,7 @@ async function resolvePopoMediaList(params: {
102
102
  if (
103
103
  !msgType ||
104
104
  !mediaTypes.includes(msgType) ||
105
- (!fileId && !fileInfo.fileId)
105
+ (!fileId && !fileInfo?.fileId)
106
106
  ) {
107
107
  return [];
108
108
  }
@@ -114,7 +114,7 @@ async function resolvePopoMediaList(params: {
114
114
  // First, get download URL using downloadMessageFilePopo
115
115
  const urlResult = await downloadMessageFilePopo({
116
116
  cfg,
117
- fileId: fileId || fileInfo.fileId,
117
+ fileId: fileId || fileInfo?.fileId,
118
118
  });
119
119
 
120
120
  // Write urlResult to res.txt