← Back to library

GitHub Issue:在 Telegram 上补全 exec 审批的内联按钮链路

将纯文本审批通知升级为可点按 Approve/Deny 按钮,恢复移动端可用的执行审批闭环。

GITHUBDiscovered 2026-02-13Author napetrov
Prerequisites
  • `approvals.exec` is enabled and approval targets point to a Telegram chat.
  • You can trigger at least one non-safeBins command requiring approval.
Steps
  1. Trigger an exec command that requires approval and inspect Telegram notification payload.
  2. Ensure message includes inline buttons mapped to approve/deny actions.
  3. Validate callback path on mobile: tap button and confirm approval state transitions immediately.
  4. Add fallback UX: when buttons unsupported, provide explicit short command for manual approval.
Commands
openclaw gateway status
openclaw logs --local-time
openclaw help
Verify

Telegram approval message shows actionable inline buttons and mobile users can approve/deny without copying IDs.

Caveats
  • Callback delivery can fail under restrictive bot privacy settings or channel permissions(需验证).
  • For sensitive environments, keep server-side approval ID validation even when button UX is enabled.
Source attribution

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

Open original source ↗
Visit original post