Telegram 批量图文(album)发送:用 sendMediaGroup 降低多条消息噪音
问题/场景:自动化任务一次输出多张图片时,逐条发送会刷屏且上下文割裂。前置:Telegram 渠道可用,版本包含 media-group 能力。实施步骤:按批次组织媒体、设置首条 caption、统一发送并回执校验。关键命令/配置:message send 支持媒体分组(以实际版本为准)。验证:用户端显示为单个相册消息。风险:不同媒体类型混发和大小限制需要额外测试。来源:GitHub PR。
GITHUBDiscovered 2026-02-20Author smysle
Prerequisites
- Telegram bot/channel is connected and has permission to send media.
- Your OpenClaw version includes or is upgraded to PR #21309 behavior.
Steps
- Prepare 2-10 media items for one logical update and order them before send.
- Put shared context in the first item caption; keep others caption-empty unless necessary.
- Send as one media group request instead of multiple single-message sends.
- Inspect Telegram client rendering and fallback to chunked sends if group delivery fails.
Commands
openclaw gateway statusopenclaw gateway restart# message tool: use one grouped media payload(按当前版本参数验证)Verify
Recipients see one album-style message with ordered media and correct lead caption.
Caveats
- Telegram album constraints (count/type/size) still apply and can reject oversized batches.
- Exact OpenClaw message-tool parameters for media group should be confirmed against current docs(需验证).
Source attribution
This tip is aggregated from community/public sources and preserved with attribution.
Open original source ↗