← Back to library

Cron 在 Telegram 频道投递目标解析修复(PR #14937)

解决“isolated cron 有结果但消息没送达目标频道/群”的场景:修正 Telegram 目标解析链路并统一 delivery target 选择。

GITHUBDiscovered 2026-02-13Author openclaw-bot
Prerequisites
  • 你已在 Telegram 中配置至少一个可接收公告的频道/群。
  • 存在使用 `sessionTarget=isolated` + `payload.kind=agentTurn` 的 cron 任务。
Steps
  1. List active cron jobs and locate isolated jobs that should announce to Telegram destination.
  2. Upgrade to PR #14937 build and restart gateway.
  3. Manually trigger one affected job and inspect run logs for resolved delivery target.
  4. Verify message arrives in the intended Telegram channel/thread, not fallback DM.
  5. For reliability, explicitly set delivery channel/to in cron job definition when possible.
Commands
openclaw cron list
openclaw cron run --job <jobId>
openclaw gateway restart
Verify

Triggered cron run produces an announce message in the expected Telegram destination with no silent drop.

Caveats
  • Legacy jobs relying on implicit target inference may still be ambiguous; prefer explicit delivery config.
  • Cross-provider behavior (Slack/Discord/Line) should be validated separately(需验证)。
Source attribution

This tip is aggregated from community/public sources and preserved with attribution.

Open original source ↗
Visit original post