Skip to content

[Bug] Agent read tool returns image but not sent to Telegram channel #11735

@khanhbkqt

Description

@khanhbkqt

Summary

When an agent uses the read tool to read an image file and the tool returns "Read image file [image/png]", the image is not sent to the Telegram channel. The user receives only text messages without the image attachment.

Environment

  • OS: Linux 5.15.0-168-generic (x64)
  • Node: v24.13.0
  • OpenClaw: 2026.2.6-3
  • Channel: Telegram (grammY)

Steps to Reproduce

  1. Agent generates an image using ImageFX/Whisk
  2. Agent uses read tool to read the generated PNG file:
    read({ file_path: "/home/khanh/.openclaw/workspace/imagefx_1770534590_0_0.png" })
    
  3. Tool returns: {"output":"Read image file [image/png]"}
  4. Agent sends reply to Telegram user

Expected Behavior
The image should be sent to the Telegram chat as an attachment along with the agent's text message.

Actual Behavior
Only text messages are delivered to Telegram. The image is not sent. User receives messages like "Đây ạ Sếp! 💕" without the image attachment.

Additional Context

Logs/Screenshots
Agent tool call:

{
  "status": "success",
  "tool": "read",
  "output": "Read image file [image/png]"
}

User confirmation: "Chưa" (not received) when asked if image was visible.

Possible Related Issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleMarked as stale due to inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions