Skip to main content
Glama
Telegram for Claude Code

Telegram for Claude Code

by AXEG0
README.md
<div align="center">

# Telegram for Claude Code

**Talk to your Claude Code session from Telegram, and watch it work.**

Sister plugin for Codex: [Telegram for Codex](https://github.com/AXEG0/codex-telegram)

[![Claude Code](https://img.shields.io/badge/Claude_Code-channel_plugin-D97757)](external_plugins/telegram/README.md)
[![Telegram Bot API](https://img.shields.io/badge/Telegram_Bot_API-10.3-26A5E4?logo=telegram&logoColor=white)](https://core.telegram.org/bots/api)
[![License](https://img.shields.io/badge/license-Apache_2.0-blue)](LICENSE)

<img src="docs/claude-telegram-demo.gif" width="320" alt="Claude writes first in a Telegram chat: it offers to review two pull requests, its live subagents message updates in place while the reviews and a test shell run, then it sums up with buttons">

<sub>Illustration: the task and the messages are made up.</sub>

</div>

AXEG0's fork of Anthropic's official Telegram channel plugin. Your bot forwards
messages into the Claude Code session, and Claude replies, reacts and edits
through it.

## ๐Ÿš€ Quick start

```sh
claude plugin marketplace add AXEG0/claude-telegram
claude plugin install telegram@claude-telegram
claude --dangerously-load-development-channels plugin:telegram@claude-telegram
```

Claude Code shows a development-channels warning at start because, while
channels are in research preview, only the channel plugins in Anthropic's
official marketplace are on its default allowlist
([channels](https://code.claude.com/docs/en/channels#research-preview),
[channels reference](https://code.claude.com/docs/en/channels-reference#test-during-the-research-preview)).

Then give the bot its token with `/telegram:configure` and pair your account.
The [setup guide](external_plugins/telegram/README.md#quick-setup) walks
through BotFather, the token and pairing. With the official plugin installed,
disable it first (`claude plugin disable telegram@claude-plugins-official`):
both share the same token and pairing.

Turn on the optional features in `~/.claude/channels/telegram/.env`:

```sh
# Rich messages
TELEGRAM_RICH_MESSAGES=true
# Voice messages as text
TELEGRAM_STT_OPENAI_KEY=sk-...
```

## โœจ Features

| | [Official plugin](https://github.com/anthropics/claude-plugins-official/tree/main/external_plugins/telegram) | This plugin |
| --- | --- | --- |
| โŒจ๏ธ **Typing** | Once, for up to 5 seconds, when a message arrives | Stays on for the whole turn |
| ๐ŸŽ™๏ธ **Voice notes** | Reach Claude as a file to download | Reach Claude as text, transcribed by OpenAI with your key |
| โ†ฉ๏ธ **Replies** | Claude doesn't see the message you replied to | Claude sees the message you replied to and the part you quoted |
| โœ๏ธ **Edits and reactions** | Not passed on | Reach Claude as an edit of that message, or as your reaction to it |
| ๐Ÿ”˜ **Buttons** | Only on permission prompts | Claude puts answer buttons under its questions, and your tap reaches it |
| ๐Ÿ“ **Formatting** | Plain text, or MarkdownV2 that Claude has to escape | With rich messages on, headings, tables, task lists and collapsible sections |
| ๐Ÿค– **Subagents and shells** | Not shown | One live message in your chat lists them while they run |
| ๐Ÿšจ **A stuck turn** | No notice | The bot tells you after 10 minutes with no activity, and again when Claude is back |
| ๐Ÿค **Other bots** | No `bot` command in its access skill | Add a bot with `/telegram:access bot <id> @username`; Claude writes to it first and gets its replies |
| ๐Ÿ“ก **Telegram outages** | Polling retries with backoff; nothing tracks a send Telegram never answered | Back within about a minute; Claude learns which of its messages may not have arrived and sends again what matters |
| โš ๏ธ **Failed turns** | No hooks, no notice | The bot tells you once when a turn ends on an error, and again when turns work again |
| ๐Ÿ“„ **Messages from files** | Claude types every message out | Claude sends a Markdown file it already wrote as the message, and each message it gets is saved as a file too |
| ๐Ÿ“ฆ **Bursts** | Each message reaches Claude on its own | Quick texts, a split long paste, and photos with their text arrive as one message, so Claude answers once |
| ๐Ÿ—ฃ๏ธ **Your word while Claude works** | Claude Code marks it as not from you, and it stays that way | It comes back marked as yours when the turn ends |
| ๐Ÿ” **Permission prompts** | Sent to everyone on the allowlist | Sent to you alone, and only your tap or `yes <code>` answers |
| ๐Ÿ—’๏ธ **Logs and diagnostics** | Only stderr, which Claude Code keeps until the plugin has started | A log file, a record of every call to Telegram and rate limit, and one command that prints what happened in a time window |

Plus everything from the official plugin: pairing and allowlists, photos and
files, and Claude's own reactions. Each feature in full: the [plugin README](external_plugins/telegram/README.md).

## ๐Ÿ‘€ In the chat

```
๐Ÿค– Subagents ยท ๐Ÿš Shells
1. โณ general-purpose ยท Review PRs 3 and 4 ยท Checking gate ยท 4m 31s ยท 85.4k tokens
2. โœ… Done in 1m 12s ยท Explore ยท Find the retry logic ยท 41.3k tokens
3. โณ shell ยท Wait for CI ยท 2m 5s
```

## ๐Ÿ“– Docs

- [Plugin README](external_plugins/telegram/README.md): setup, settings, tools and how each feature behaves.
- [ACCESS.md](external_plugins/telegram/ACCESS.md): DM policies, groups and allowlists.

## About

Forked from [anthropics/claude-plugins-official](https://github.com/anthropics/claude-plugins-official).
This marketplace publishes the Telegram plugin; the other directories come from
the upstream repository. Licensed under [Apache 2.0](LICENSE).