-
-
Notifications
You must be signed in to change notification settings - Fork 69k
[LINE] File message type not downloaded (PDF, Word, etc.) #26330
Copy link
Copy link
Closed as not planned
Labels
dedupe:parentPrimary canonical item in dedupe clusterPrimary canonical item in dedupe clusterstaleMarked as stale due to inactivityMarked as stale due to inactivity
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 clusterstaleMarked as stale due to inactivityMarked as stale due to inactivity
Type
Fields
Give feedbackNo fields configured for issues without a type.