openclaw - ✅(Solved) Fix [Bug] Telegram exec approval bubble not dismissed after clicking approve [1 pull requests, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#56286Fetched 2026-04-08 01:42:46
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
cross-referenced ×1referenced ×1

PR fix notes

PR #56319: fix: delete Telegram exec approval message after approval resolved

Description (problem / solution / changelog)

Fixes #56286

After an approval is resolved (approved or denied), the approval message is now deleted after a 2-second delay to give the user time to see the resolved state. The inline buttons are still removed immediately to indicate resolution.

Changes

  • Import in exec-approvals-handler.ts
  • Add to deps and class properties
  • Delete the approval message after 2 seconds when resolved

Changed files

  • docs/channels/broadcast-groups.md (modified, +2/-2)
  • docs/gateway/sandboxing.md (modified, +1/-1)
  • docs/gateway/troubleshooting.md (modified, +1/-1)
  • docs/help/environment.md (modified, +1/-1)
  • docs/install/migrating.md (modified, +1/-1)
  • docs/providers/index.md (modified, +1/-1)
  • docs/tools/exec-approvals.md (modified, +3/-3)
  • docs/tools/index.md (modified, +42/-0)
  • docs/tools/subagents.md (modified, +9/-5)
  • docs/zh-CN/tools/exec-approvals.md (modified, +1/-1)
  • extensions/telegram/src/exec-approvals-handler.ts (modified, +13/-1)
RAW_BUFFERClick to expand / collapse
  • Platform: Telegram
  • OpenClaw version: 2026.3.24
  • Issue: When an exec approval bubble appears in Telegram and the user clicks approve, the approval message is not deleted and remains in the chat.
  • Expected: The approval message should disappear after clicking approve.
  • Notes: This happens on every exec approval request.

extent analysis

Fix Plan

The fix involves modifying the approval message handling in the OpenClaw Telegram integration.

Steps to Fix

  • Update the onApproval function to delete the approval message after approval.
  • Use the Telegram API to delete the message.

Example Code

import telegram

def onApproval(update, context):
    # Approval logic here...
    # Delete the approval message
    context.bot.delete_message(chat_id=update.effective_chat.id, message_id=update.effective_message.message_id)

Verification

  • Test the exec approval flow in Telegram.
  • Verify that the approval message is deleted after clicking approve.

Extra Tips

  • Ensure you have the latest Telegram API version.
  • Handle any potential errors when deleting the message.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING