#Bug: Telegram image delivery + image reference both fail with "Failed to optimize image"

1 messages · Page 1 of 1 (latest)

somber perch
#

Bug: Telegram image delivery + image reference both fail with "Failed to optimize image"

Environment:

  • OpenClaw (latest)
  • Telegram channel
  • minimax-portal/image-01 for generation

Steps to reproduce:

  1. Generate an image with image_generate tool → image is created successfully and saved to disk
  2. OpenClaw attempts to send image as Telegram attachment → fails with "telegram block reply failed: Error: Failed to optimize image"
  3. Upload user photo as image reference → fails with "Failed to optimize image" before even reaching AI provider

Expected: Images should be sent as Telegram message attachments, and user-uploaded images should work as references
Actual: Both fail at OpenClaw's image optimization step, not at the AI provider level

Logs show: "Failed to optimize image" consistently in both cases

foggy flowerBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

barren skiffBOT
#

This looks like OpenClaw’s shared image optimizer, not MiniMax. Both outbound Telegram media and uploaded reference images pass through the same media pipeline, backed by media-understanding-core/sharp, before reaching Telegram or the AI provider.

Can you paste the exact version first?

openclaw --version
openclaw doctor
openclaw logs --follow

Then retry once while logs are following. If doctor reports missing bundled plugin/runtime deps, run:

openclaw doctor --fix
openclaw gateway restart