-
-
Notifications
You must be signed in to change notification settings - Fork 53k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Summary
When receiving files via Telegram that exceed the default 5MB media limit, the error message is unclear and the config hierarchy is confusing. Setting agents.defaults.mediaMaxMb does not affect Telegram's media handling — you must also set channels.telegram.mediaMaxMb separately.
Steps to Reproduce
- Configure OpenClaw with Telegram channel (default config, no
mediaMaxMbset) - Send a file >5MB via Telegram (e.g., a 10MB zip split)
- Observe error in logs:
media group handler failed: Error: Media exceeds 5MB limit - Set
agents.defaults.mediaMaxMb: 20via config.patch - Restart gateway
- Send the same file again
- Still fails with the same 5MB error
- Must also set
channels.telegram.mediaMaxMb: 20to actually fix it
Expected Behavior
Either:
agents.defaults.mediaMaxMbshould be inherited by channel configs (with channel-specific override capability), OR- The error message should specify which config key needs to be changed
Actual Behavior
agents.defaults.mediaMaxMbdoes not cascade to Telegram channel- Error message doesn't indicate which config to change
- User must discover
channels.telegram.mediaMaxMbexists separately
Suggested Fix
Option A (preferred): Make channel configs inherit from agents.defaults.mediaMaxMb as a fallback, so users only need to set it once.
Option B: Improve the error message to include the relevant config path:
Media exceeds 5MB limit. Increase channels.telegram.mediaMaxMb in config.
Environment
- OpenClaw version: 2026.1.29
- Channel: Telegram (webhook mode)
- OS: Ubuntu (arm64)
Logs
{"subsystem":"gateway/channels/telegram","1":"media group handler failed: Error: Media exceeds 5MB limit",...}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working