Telegram plugin: frequent HTTP 401 errors mid-session
Resolved 💬 1 comment Opened Apr 13, 2026 by callmejustdodo Closed Apr 13, 2026
Description
The Telegram plugin (v0.0.5) frequently returns HTTP 401 authentication errors while a Claude Code session is actively running. The error message is:
HTTP 401: authentication_error: Invalid authentication credentials
Reproduction steps
- Start a Claude Code session with the Telegram channel enabled (
--channels plugin:telegram@claude-plugins-official) - Send messages from Telegram to the bot
- Some messages succeed, but frequently the bot replies with the 401 error
- Restarting the Claude Code session temporarily resolves the issue
Expected behavior
Messages sent via Telegram should be processed without authentication errors for the duration of the active session.
Actual behavior
The bot process stays alive (no crash), but the Claude API rejects requests with a 401 error intermittently. This suggests the internal auth token used by the plugin system is being invalidated or expiring mid-session without proper refresh.
Environment
- macOS (Darwin 24.6.0)
- Telegram plugin version: 0.0.5
- Bot process remains running (confirmed via
ps) - Error originates from the Claude API, not the Telegram Bot API
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗