-
-
Notifications
You must be signed in to change notification settings - Fork 57.4k
Open
Labels
dedupe:parentPrimary canonical item in dedupe clusterPrimary canonical item in dedupe cluster
Description
Summary
The LINE plugin does not download file attachments (documents like PDF, Word, Excel, JSON, etc.). Only image, video, and audio types are processed.
Expected Behavior
When a user sends a file via LINE, it should be downloaded and made available to the agent, similar to how images/videos/audio work.
Current Behavior
- Images/videos/audio: Downloaded to
/tmp/line-media-* - Files (documents): Not downloaded; only
<media:document>placeholder appears
Root Cause
In dist/line/bot-handlers.js (line ~130):
if (message.type === "image" || message.type === "video" || message.type === "audio") {The file type is missing from this condition.
Note: bot-message-context.js already recognizes file type and generates <media:document> placeholder, but the actual download never triggers.
Suggested Fix
Add || message.type === "file" to the media download condition:
if (message.type === "image" || message.type === "video" || message.type === "audio" || message.type === "file") {Environment
- OpenClaw version: 2026.2.1
- LINE Messaging API supports file message type with same Content API as other media
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
dedupe:parentPrimary canonical item in dedupe clusterPrimary canonical item in dedupe cluster