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:
- Generate an image with image_generate tool → image is created successfully and saved to disk
- OpenClaw attempts to send image as Telegram attachment → fails with "telegram block reply failed: Error: Failed to optimize image"
- 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