# Fix Claude Code Telegram Bot That Stops Receiving Messages

> Your Claude Code Telegram bot can go deaf: it still sends but stops receiving, until you reload it by hand. This skill replaces the official plugin's polling with a self-hosted webhook so messages keep arriving. Includes working server code, nginx config and setup steps.

Fix Claude Code Telegram Bot That Stops Receiving Messages is a paid AI agent skill on Agensi by Po Jian, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Po Jian](https://www.agensi.io/creators/po-jian)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-11-26
- Security: scan passed (2026-11-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/fix-claude-code-telegram-bot-that-stops-receiving-messages
- Tags: ai-agents, telegram, mcp, bun, webhook, nginx

## About this skill

**Problem:** The official Telegram plugin for Claude Code polls from an MCP process that is never restarted once the harness recycles it. The bot can still send, but stops receiving until you run /reload-plugins. This is an open upstream issue (claude-plugins-official#1680, claude-code#36427, #24350).

**What you get:** a small Bun server that lets Telegram push messages to you (a "webhook") and hands them to Claude Code as channel events; a reply tool (text and images); inbound photos/documents; sender allow-list and secret check; nginx config routing many bots through one public port; and a list of gotchas we hit (duplicate official plugin, nginx 301 on missing trailing slash, :443 timeouts, an env var that silently blocks delivery).

**You need:** a machine with a public HTTPS address (domain + nginx or similar), Bun, and a Telegram bot token. Not for setups without a public endpoint.

**Tested:** end to end on Claude Code 2.1.332 with a real bot: send, receive, and an agent replying.

## Requires

- Bun
- Claude Code
- Telegram

a public HTTPS domain with nginx (or similar reverse proxy).

## Known limitations

Supports text, photos, and documents only. No voice or stickers. Requires public HTTPS endpoint and manual Enter key confirmation on agent start. No retry on failed sendMessage calls.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Fix Claude Code Telegram Bot That Stops Receiving Messages skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Why should I use this webhook server instead of the standard Telegram polling plugin?

Standard polling often fails to reconnect after idle periods or plugin reloads; this skill replaces that mechanism with a push-based webhook architecture, ensuring your bot remains responsive 24/7 without manual restarts.

### Can I use this skill to manage multiple Telegram bots on a single server?

Yes, the skill is designed for multi-bot environments, allowing you to route traffic to multiple local listeners via nginx without port conflicts or security overlaps.

### What technical infrastructure is required to run the Telegram Channel Webhook?

You will need the Bun runtime, TypeScript, and an nginx instance to handle TLS termination and route external HTTPS traffic to the local webhook listener.

### How does the skill protect my bot from unauthorized access or malicious webhooks?

Security is handled through a combination of secret header tokens for request validation and a strict 'TELEGRAM_ALLOW_FROM' whitelist to ensure only authorized users can interact with your agent.

### Does this skill support all Telegram message types, such as voice notes or stickers?

Currently, the skill supports text, photos, and document attachments; however, it does not support voice messages, stickers, or video files at this time.

### What exactly is included in the purchase of this skill?

You receive the full infrastructure code, a pre-configured Bun-powered channel server, the nginx routing template, and the MCP configuration steps needed to integrate it with Claude Code.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
