[BUG] Telegram plugin forwards internal permission prompts as messages to external chat
Description
When Claude Code processes an inbound Telegram message and requires tool permissions (Bash, Write, mcp__plugin_telegram_telegram__reply), the permission confirmation prompts (with Allow/Deny buttons) are sent as messages to the external Telegram chat instead of only appearing in the local terminal.
This means the person messaging the bot sees internal Claude Code permission UI elements they shouldn't see.
Steps to Reproduce
- Set up Telegram plugin with
--channels - Have an external user send a message to the bot
- Claude Code processes the message and requests tool permissions (Bash, Write, Reply)
- The permission prompts appear as Telegram messages in the external user's chat
Expected Behavior
Permission prompts should only appear in the local Claude Code terminal. External Telegram users should not see any internal permission UI.
Actual Behavior
Permission prompts (Permission: Bash, Permission: Write, Permission: mcp__plugin_telegram_telegram__reply) with Allow / Deny buttons are sent as Telegram messages to the external chat.
Screenshot
!Permission prompts sent to Telegram chat
(Screenshot shows three permission prompts with Allow/Deny buttons appearing in an external user's Telegram chat)
Environment
- OS: macOS (Darwin 25.2.0)
- Claude Code version: Latest
- Telegram plugin: Official (
anthropics/claude-plugins-official/external_plugins/telegram)
Related Issues
- #37505 — Opposite problem: permission prompts not visible in Telegram (terminal-only)
- #39876 — Telegram MCP connectivity issues
- #38098 — Telegram plugin auto-loads in all sessions
Notes
This is the inverse of #37505. That issue reports permissions NOT showing in Telegram; this issue reports permissions being incorrectly forwarded as messages to the external chat participant.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗