Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

docs(telegram): add setup guide and align platform copy

cyh83540d602a91
diff --git a/AGENTS.md b/AGENTS.md
index 0e66b9470..aa24ba7eb 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -4,7 +4,7 @@ This document is the operating manual for coding agents working in this reposito
## 1. Project Overview
-Vibe Remote is a middleware layer that connects AI agent backends to IM platforms such as Slack, Discord, and Feishu/Lark.
+Vibe Remote is a middleware layer that connects AI agent backends to IM platforms such as Slack, Discord, Telegram, Feishu/Lark, and WeChat.
Current product shape:
@@ -42,7 +42,7 @@ Decision checklist before writing code:
- `core/handlers/` - platform/backend-agnostic business workflows
- `core/message_dispatcher.py` - outbound message routing and reply enhancement flow
- `core/reply_enhancer.py` - file-link and quick-reply prompt injection helpers
-- `modules/im/` - IM platform adapters (`slack.py`, `discord.py`, `feishu.py`) plus shared base classes
+- `modules/im/` - IM platform adapters (`slack.py`, `discord.py`, `telegram.py`, `feishu.py`, `wechat.py`) plus shared base classes
- `modules/agents/` - agent backend adapters (`opencode/`, `codex/`, Claude-related modules) plus shared abstractions
- `modules/im/formatters/` - platform-specific formatting built on shared formatter concepts
- `config/` - V2 config, settings, sessions, paths, and compatibility conversion
@@ -107,7 +107,7 @@ Persistent configuration is centered on `config/v2_config.py` and the Web UI.
High-level V2 config areas:
-- platform config: Slack / Discord / Feishu credentials and switches
+- platform config: Slack / Discord / Telegram / Feishu / WeChat credentials and switches
- runtime config: default cwd, log level, and related runtime behavior
- agent config: default backend plus per-backend enablement and CLI paths
- UI config: setup host/port and Web UI behavior
diff --git a/README.md b/README.md
index 01c8c4ba7..f97215a4b 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
# Vibe Remote
-### Your AI agent army, commanded from Slack, Discord, WeChat & Lark.
+### Your AI agent army, commanded from Slack, Discord, Telegram, WeChat & Lark.
**No laptop. No IDE. Just vibes.**
@@ -20,6 +20,7 @@
![Slack](https://img.shields.io/badge/Slack-4A154B?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAiCAYAAADVhWD8AAACT0lEQVR42s2VQW7bMBBFfQQdoDa47CIiBBSuu/QRvCpid1HdwNrHjnUDH4Ww0irdCWjtZukjMF0ViGOM0wuoZJRkCFkUJZmIMsAHLXNAPo5Gn506Mdg8TD9uDlwofRxv/n3N59Afl1Maz0EoFeI0vsQcW9Ffgy8h8hr8huAF5Hq2kBB5WQfCihwJnnNkJYphZlvbMKlOXgKOdx2SYwiUbRjQwXy6AfKqMIM1BO3DqNX5BSH2TqswGHJzVfI/6zC4kVkdJZrAEBY6HguJ1tD6a2zSMqHpPSyawNB4sdQYIxpafaHpmWEQpGj+7OpimMFsDtvaICioCuOx0NHNu/E8QUMzyIbpeeL0JTn86TUdkhNguHIdgO46QBhDZT78hFFjGHlzI0yguyhLYbBnsIn761q9w6Urd3Lhfp/7eGHK8SLL0cC48SxBkLca3Bk5nJwTVbqcsnWAEecv80gFFa/zpzeZ3va+wG1vkqqSGys5CzVHPufX2Ud0eR9REEqraBdRvr+iuA7vTnwEOIZBkIL53jjIgaSN9I1mH4I47dYEI35zTQ48wzSBQLlJBoMLF8Jw4jtlOXIN+f5PgRFV5RlMd5yUnVoClcJgZeDkyvB358PifpiEdWDuIho0hdmxs6HSxOORUiGOjVkZJgNirn+/otuKECArgiDmMMNYCOswO+YNVQF7T1qA0X9N+8hdtg6jareiYfswqofYChum17EZYlPNlTHmBtNDQ7MQ6ENFxtj9PDKZ3h3zPJss6NSZMXI5ymecRdOTldivKBcjqwPyH3MZonz6I6ghAAAAAElFTkSuQmCC)
![Discord](https://img.shields.io/badge/Discord-5865F2?style=flat-square&logo=discord&logoColor=white)
+![Telegram](https://img.shields.io/badge/Telegram-26A5E4?style=flat-square&logo=telegram&logoColor=white)
![WeChat](https://img.shields.io/badge/WeChat-07C160?style=flat-square&logo=wechat&logoColor=white)
![Lark](https://img.shields.io/badge/Lark%20%2F%20Feishu-3370FF?style=flat-square&logo=bytedance&logoColor=white)
@@ -41,7 +42,7 @@ You're at the beach. Phone buzzes — production's on fire.
**Old you:** Panic. Find WiFi. Open laptop. Wait for IDE. Lose your tan.
-**Vibe Remote you:** Open Slack, Discord, or WeChat. Type "Fix the auth bug in login.py". Watch Claude Code fix it in real-time. Approve. Sip margarita.
+**Vibe Remote you:** Open Slack, Discord, Telegram, or WeChat. Type "Fix the auth bug in login.py". Watch Claude Code fix it in real-time. Approve. Sip margarita.
```
AI works. You live.
@@ -77,7 +78,7 @@ If you are new to WSL, this guide explains:
| Problem | Solution |
|---------|----------|
-| Claude Code is amazing but needs a terminal | Slack/Discord/WeChat/Lark IS your terminal now |
+| Claude Code is amazing but needs a terminal | Slack/Discord/Telegram/WeChat/Lark IS your terminal now |
| Context-switching kills flow | Stay in one app |
| Start on desktop, continue on phone | Resume the exact agent session from the current project in seconds |
| Can't code from phone | Yes you can |
@@ -142,7 +143,7 @@ Get notified the moment your AI finishes. Like assigning tasks to employees —
### Thread = Session
-Each Slack/Discord/WeChat/Lark thread is an isolated workspace. Open 5 threads, run 5 parallel tasks. Context stays separate.
+Each Slack/Discord/Telegram/WeChat/Lark chat scope is an isolated workspace. Open 5 chats, run 5 parallel tasks. Context stays separate.
### Resume Anywhere
@@ -172,17 +173,18 @@ Ask your agent to schedule work for later, repeat a prompt on a cron, or queue a
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│ You │ Slack │ │ stdio │ Claude Code │
│ (anywhere) │ Discord │ Vibe Remote │ ──────────▶ │ OpenCode │
-│ │ WeChat │ (your Mac) │ ◀────────── │ Codex │
+│ │ Telegram │ (your Mac) │ ◀────────── │ Codex │
+│ │ WeChat │ │ │ │
│ │ Lark │ │ │ │
└──────────────┘ └──────────────┘ └──────────────┘
```
-1. **You type** in Slack/Discord/WeChat/Lark: *"Add dark mode to the settings page"*
+1. **You type** in Slack/Discord/Telegram/WeChat/Lark: *"Add dark mode to the settings page"*
2. **Vibe Remote** routes to your configured agent
3. **Agent** reads your codebase, writes code, streams back
4. **You review** in your chat app, iterate in thread
-**Your code never leaves your machine.** Vibe Remote runs locally and connects via Slack Socket Mode, Discord Gateway, WeChat polling, or Lark WebSocket.
+**Your code never leaves your machine.** Vibe Remote runs locally and connects via Slack Socket Mode, Discord Gateway, Telegram Bot API long polling, WeChat polling, or Lark WebSocket.
---
@@ -307,6 +309,7 @@ vibe stop && uv tool uninstall vibe-remote && rm -rf ~/.vibe_remote
- [x] Slack support
- [x] Discord support
+- [x] Telegram support
- [x] WeChat support
- [x] Lark (Feishu) support
- [x] Web UI setup wizard & dashboard
@@ -325,6 +328,7 @@ vibe stop && uv tool uninstall vibe-remote && rm -rf ~/.vibe_remote
- **[CLI Reference](docs/CLI.md)** — Command-line usage and service lifecycle
- **[Slack Setup Guide](docs/SLACK_SETUP.md)** — Detailed setup with screenshots
- **[Discord Setup Guide](docs/DISCORD_SETUP.md)** — Detailed setup with screenshots
+- **[Telegram Setup Guide](docs/TELEGRAM_SETUP.md)** — BotFather setup, token validation, and chat discovery
- **WeChat Setup Guide** — Follow the in-app wizard (`vibe` → choose WeChat)
- **Lark Setup Guide** — Follow the in-app wizard (`vibe` → choose Lark)
diff --git a/README_ZH.md b/README_ZH.md
index e5278d386..c906db377 100644
--- a/README_ZH.md
+++ b/README_ZH.md
@@ -4,7 +4,7 @@
# Vibe Remote
-### 你的 AI agent 军团,用 Slack、Discord、微信或飞书指挥。
+### 你的 AI agent 军团,用 Slack、Discord、Telegram、微信或飞书指挥。
**不用笔记本电脑。不用 IDE。只需 vibe。**
@@ -20,6 +20,7 @@
![Slack](https://img.shields.io/badge/Slack-4A154B?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAiCAYAAADVhWD8AAACT0lEQVR42s2VQW7bMBBFfQQdoDa47CIiBBSuu/QRvCpid1HdwNrHjnUDH4Ww0irdCWjtZukjMF0ViGOM0wuoZJRkCFkUJZmIMsAHLXNAPo5Gn506Mdg8TD9uDlwofRxv/n3N59Afl1Maz0EoFeI0vsQcW9Ffgy8h8hr8huAF5Hq2kBB5WQfCihwJnnNkJYphZlvbMKlOXgKOdx2SYwiUbRjQwXy6AfKqMIM1BO3DqNX5BSH2TqswGHJzVfI/6zC4kVkdJZrAEBY6HguJ1tD6a2zSMqHpPSyawNB4sdQYIxpafaHpmWEQpGj+7OpimMFsDtvaICioCuOx0NHNu/E8QUMzyIbpeeL0JTn86TUdkhNguHIdgO46QBhDZT78hFFjGHlzI0yguyhLYbBnsIn761q9w6Urd3Lhfp/7eGHK8SLL0cC48SxBkLca3Bk5nJwTVbqcsnWAEecv80gFFa/zpzeZ3va+wG1vkqqSGys5CzVHPufX2Ud0eR9REEqraBdRvr+iuA7vTnwEOIZBkIL53jjIgaSN9I1mH4I47dYEI35zTQ48wzSBQLlJBoMLF8Jw4jtlOXIN+f5PgRFV5RlMd5yUnVoClcJgZeDkyvB358PifpiEdWDuIho0hdmxs6HSxOORUiGOjVkZJgNirn+/otuKECArgiDmMMNYCOswO+YNVQF7T1qA0X9N+8hdtg6jareiYfswqofYChum17EZYlPNlTHmBtNDQ7MQ6ENFxtj9PDKZ3h3zPJss6NSZMXI5ymecRdOTldivKBcjqwPyH3MZonz6I6ghAAAAAElFTkSuQmCC)
![Discord](https://img.shields.io/badge/Discord-5865F2?style=flat-square&logo=discord&logoColor=white)
+![Telegram](https://img.shields.io/badge/Telegram-26A5E4?style=flat-square&logo=telegram&logoColor=white)
![WeChat](https://img.shields.io/badge/%E5%BE%AE%E4%BF%A1-07C160?style=flat-square&logo=wechat&logoColor=white)
![Lark](https://img.shields.io/badge/%E9%A3%9E%E4%B9%A6%20%2F%20Lark-3370FF?style=flat-square&logo=bytedance&logoColor=white)
@@ -41,7 +42,7 @@
**以前的你:** 慌了。找 WiFi。开电脑。等 IDE 加载。晒伤了。
-**用了 Vibe Remote:** 打开 Slack、Discord 或微信。输入「修一下 login.py 的认证 bug」。看着 Claude Code 实时修复。批准。继续喝玛格丽塔。
+**用了 Vibe Remote:** 打开 Slack、Discord、Telegram 或微信。输入「修一下 login.py 的认证 bug」。看着 Claude Code 实时修复。批准。继续喝玛格丽塔。
```
让 AI 去忙,你去浪。
@@ -77,7 +78,7 @@ Windows 下默认推荐使用 WSL 方案,因为它的兼容性最好。
| 问题 | 解决 |
|------|------|
-| Claude Code 很强但需要终端 | Slack/Discord/微信/飞书就是你的终端 |
+| Claude Code 很强但需要终端 | Slack/Discord/Telegram/微信/飞书就是你的终端 |
| 上下文切换太累 | 一个 App 搞定 |
| 电脑上开工,手机上接着做 | 直接恢复当前项目里的真实 Agent 会话 |
| 手机上写不了代码 | 现在可以了 |
@@ -142,7 +143,7 @@ AI 完成任务的那一刻,你就能收到通知。就像老板给员工布
### Thread = 会话
-每个 Slack/Discord/微信/飞书线程是独立工作区。开 5 个线程,跑 5 个并行任务。上下文互不干扰。
+每个 Slack/Discord/Telegram/微信/飞书会话作用域都是独立工作区。开 5 个会话,跑 5 个并行任务。上下文互不干扰。
### 随时续上会话
@@ -172,17 +173,18 @@ Agent 需要输入时 — 文件选择、确认、选项 — 聊天 App 弹出
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│ 你 │ Slack │ │ stdio │ Claude Code │
│ (任何地方) │ Discord │ Vibe Remote │ ──────────▶ │ OpenCode │
-│ │ 微信 │ (你的 Mac) │ ◀────────── │ Codex │
+│ │ Telegram │ (你的 Mac) │ ◀────────── │ Codex │
+│ │ 微信 │ │ │ │
│ │ 飞书 │ │ │ │
└──────────────┘ └──────────────┘ └──────────────┘
```
-1. **你在 Slack/Discord/微信/飞书输入**:*"给设置页加个深色模式"*
+1. **你在 Slack/Discord/Telegram/微信/飞书输入**:*"给设置页加个深色模式"*
2. **Vibe Remote** 路由到配置的 Agent
3. **Agent** 读取代码库,写代码,流式返回
4. **你在聊天 App 审查**,在线程里迭代
-**你的代码永远不离开你的机器。** Vibe Remote 本地运行,通过 Slack Socket Mode、Discord Gateway、微信轮询或飞书 WebSocket 连接。
+**你的代码永远不离开你的机器。** Vibe Remote 本地运行,通过 Slack Socket Mode、Discord Gateway、Telegram Bot API 长轮询、微信轮询或飞书 WebSocket 连接。
---
@@ -307,6 +309,7 @@ vibe stop && uv tool uninstall vibe-remote && rm -rf ~/.vibe_remote
- [x] Slack 支持
- [x] Discord 支持
+- [x] Telegram 支持
- [x] 微信支持
- [x] 飞书(Lark)支持
- [x] Web UI 设置向导 & 仪表盘
@@ -325,6 +328,7 @@ vibe stop && uv tool uninstall vibe-remote && rm -rf ~/.vibe_remote
- **[CLI 参考手册](docs/CLI_ZH.md)** — 命令行使用和服务生命周期
- **[Slack 配置指南](docs/SLACK_SETUP_ZH.md)** — 详细配置和截图
- **[Discord 配置指南](docs/DISCORD_SETUP_ZH.md)** — 详细配置和截图
+- **[Telegram 配置指南](docs/TELEGRAM_SETUP_ZH.md)** — BotFather 初始化、令牌验证与会话发现
- **微信配置指南** — 运行 `vibe` 后在向导中选择微信即可
- **飞书配置指南** — 运行 `vibe` 后在向导中选择飞书即可
diff --git a/core/reply_enhancer.py b/core/reply_enhancer.py
index f76a35d61..7215af7e4 100644
--- a/core/reply_enhancer.py
+++ b/core/reply_enhancer.py
@@ -156,7 +156,7 @@ def _extract_buttons(text: str) -> Tuple[List[QuickReplyButton], str]:
_FILES_PROMPT = """\
# Vibe Remote
-Vibe Remote is a middleware layer that connects AI agents to IM platforms such as Slack. \
+Vibe Remote is a middleware layer that connects AI agents to IM platforms such as Slack, Discord, Telegram, WeChat, and Lark/Feishu. \
The user is interacting with you through an IM app via Vibe Remote forwarding.
If the user asks you to configure, repair, or operate Vibe Remote itself, read `https://github.com/cyhhao/vibe-remote/raw/master/skills/use-vibe-remote/SKILL.md` before making changes. Use it for configuration file locations, scope rules, routing behavior, scheduled-task operations, and troubleshooting steps.
diff --git a/docs/CLI.md b/docs/CLI.md
index ec0dda2fc..742aa0dea 100644
--- a/docs/CLI.md
+++ b/docs/CLI.md
@@ -180,7 +180,7 @@ Vibe Remote manages two types of processes:
| Process | Description |
|---------|-------------|
-| **Main Service** | Handles Slack communication, routes messages to agents |
+| **Main Service** | Handles chat platform communication and routes messages to agents |
| **OpenCode Server** | Backend server for OpenCode agent (if enabled) |
The key difference between commands:
@@ -282,4 +282,5 @@ The web UI (`http://127.0.0.1:5123`) provides the same controls:
## See Also
- [Slack Setup Guide](SLACK_SETUP.md)
+- [Telegram Setup Guide](TELEGRAM_SETUP.md)
- [Codex Setup Guide](CODEX_SETUP.md)
diff --git a/docs/CLI_ZH.md b/docs/CLI_ZH.md
index b817c8343..d9c0cfa62 100644
--- a/docs/CLI_ZH.md
+++ b/docs/CLI_ZH.md
@@ -180,7 +180,7 @@ Vibe Remote 管理两类进程:
| 进程 | 说明 |
|------|------|
-| **主服务** | 处理 Slack 通信,将消息路由到 Agent |
+| **主服务** | 处理各聊天平台通信,并将消息路由到 Agent |
| **OpenCode 服务器** | OpenCode Agent 的后端服务(如已启用) |
命令的关键区别:
@@ -282,4 +282,5 @@ Web UI (`http://127.0.0.1:5123`) 提供相同的控制功能:
## 另请参阅
- [Slack 配置指南](SLACK_SETUP_ZH.md)
+- [Telegram 配置指南](TELEGRAM_SETUP_ZH.md)
- [Codex 配置指南](CODEX_SETUP.md)
diff --git a/docs/CODEX_SETUP.md b/docs/CODEX_SETUP.md
index 3587a8637..f5d69db3c 100644
--- a/docs/CODEX_SETUP.md
+++ b/docs/CODEX_SETUP.md
@@ -1,6 +1,6 @@
# Codex Agent Setup
-Vibe Remote can route individual Slack channels to Codex instead of Claude Code. (OpenCode is also supported and recommended; see README for quick enablement.) This guide walks through enabling Codex end-to-end.
+Vibe Remote can route individual chat scopes to Codex instead of Claude Code. (OpenCode is also supported and recommended; see README for quick enablement.) This guide walks through enabling Codex end-to-end.
## 1. Install and authenticate Codex CLI
@@ -30,11 +30,11 @@ In `~/.vibe_remote/config/config.json`:
No additional flag is required to bypass approvals—the bot always adds `--dangerously-bypass-approvals-and-sandbox`.
-## 3. Route channels to Codex
+## 3. Route chats to Codex
-Configure routing via Slack **Agent Settings**: pick Codex for the channel you want.
+Configure routing via the platform **Agent Settings** UI: pick Codex for the Slack channel, Discord channel, Telegram chat, or other scope you want.
-Each Slack channel ID (starts with `C`) gets its own agent. Routes fall back to the configured default backend.
+Each routed scope gets its own agent override. Unrouted scopes fall back to the configured default backend.
## 4. Restart the bot and test
@@ -42,10 +42,10 @@ Each Slack channel ID (starts with `C`) gets its own agent. Routes fall back to
vibe
```
-In a routed Slack channel run `@VibeRemote status` or any question—you should see the bot react with 👀 (default) or an acknowledgement like `📨 Codex received, processing...` (when `ACK_MODE=message`), followed by Codex’s reply. If the CLI is missing, the bot will reply with “Agent `codex` is not configured”.
+In a routed chat, send a normal non-command message; you should see the bot acknowledge the request and then reply from Codex. For Telegram groups and forums, the default setup usually requires an explicit command, @mention, or reply-to-bot unless you already disabled `require_mention`. If the CLI is missing, the bot will reply with “Agent `codex` is not configured”.
## 5. Troubleshooting
- **“Agent `codex` is not configured”**: ensure `codex` CLI is installed and on PATH; check `CODEX_ENABLED`.
-- **`codex exec` errors**: inspect the Slack stderr snippet or tail the latest `~/.vibe_remote/logs/vibe_remote.log`.
-- **Routing not applied**: confirm the channel ID matches Slack’s `C...` value and that the channel override is set in Slack **Agent Settings**.
+- **`codex exec` errors**: inspect the latest `~/.vibe_remote/logs/vibe_remote.log` and the in-chat error details.
+- **Routing not applied**: confirm the target scope is the one you configured in **Agent Settings** for Slack, Discord, Telegram, or the relevant platform.
diff --git a/docs/COMMANDS.md b/docs/COMMANDS.md
index 4c69ceeaf..fec6bfd09 100644
--- a/docs/COMMANDS.md
+++ b/docs/COMMANDS.md
@@ -4,7 +4,7 @@ This document is the exhaustive command reference for Vibe Remote.
It covers:
-- in-chat commands users send to the bot from Slack, Discord, WeChat, and Lark
+- in-chat commands users send to the bot from Slack, Discord, Telegram, WeChat, and Lark
- command aliases and parser normalization rules
- platform differences
- permission requirements
@@ -14,6 +14,7 @@ For installation, setup, and operations background, also see:
- [CLI Reference](./CLI.md)
- [Slack Setup Guide](./SLACK_SETUP.md)
+- [Telegram Setup Guide](./TELEGRAM_SETUP.md)
## 1. Command Surface Overview
@@ -97,6 +98,11 @@ Notes:
- Commands are parsed from normal messages that start with `/`.
- `/resume` opens a Discord-native resume picker flow when the platform interaction context is available.
+#### Telegram
+
+- Commands are parsed from normal messages that start with `/`.
+- `/resume` and `/settings` prefer inline button flows in the current chat.
+
#### Lark / Feishu
- Commands are parsed from normal messages that start with `/`.
@@ -308,6 +314,10 @@ Resume a recent native agent session from the current working directory.
- `/resume` opens a native resume picker flow when the interaction context exists.
+##### Telegram
+
+- `/resume` opens an inline-button picker in the current chat.
+
##### Lark
- `/resume` prefers a native card/modal flow.
@@ -737,4 +747,3 @@ vibe doctor
vibe task list --brief
vibe hook send --session-key 'slack::channel::C123' --prompt 'Share the latest build summary.'
```
-
diff --git a/docs/COMMANDS_ZH.md b/docs/COMMANDS_ZH.md
index c91ae6061..babcd4df3 100644
--- a/docs/COMMANDS_ZH.md
+++ b/docs/COMMANDS_ZH.md
@@ -4,13 +4,14 @@
它覆盖两大类命令:
-- 在 Slack、Discord、微信、飞书里直接发给机器人的聊天命令
+- 在 Slack、Discord、Telegram、微信、飞书里直接发给机器人的聊天命令
- 在安装了 Vibe Remote 的宿主机上执行的 `vibe` CLI 命令
相关文档:
- [CLI 参考手册](./CLI_ZH.md)
- [Slack 配置指南](./SLACK_SETUP_ZH.md)
+- [Telegram 配置指南](./TELEGRAM_SETUP_ZH.md)
## 1. 命令总览
@@ -94,6 +95,11 @@ Vibe Remote 当前有两套命令面:
- 命令通过普通消息解析,要求消息以 `/` 开头。
- `/resume` 在有 interaction 上下文时会优先打开 Discord 原生恢复选择器。
+#### Telegram
+
+- 命令通过普通消息解析,要求消息以 `/` 开头。
+- `/resume`、`/settings` 会优先走当前聊天里的内联按钮交互。
+
#### 飞书 / Lark
- 命令通过普通消息解析,要求消息以 `/` 开头。
@@ -293,6 +299,10 @@ Vibe Remote 当前有两套命令面:
- `/resume` 在有 interaction 上下文时会打开原生恢复选择流程。
+##### Telegram
+
+- `/resume` 会在当前聊天里打开内联按钮选择器。
+
##### 飞书
- `/resume` 优先走卡片 / modal 流程。
@@ -716,4 +726,3 @@ vibe doctor
vibe task list --brief
vibe hook send --session-key 'slack::channel::C123' --prompt 'Share the latest build summary.'
```
-
diff --git a/docs/TELEGRAM_SETUP.md b/docs/TELEGRAM_SETUP.md
new file mode 100644
index 000000000..caccabe95
--- /dev/null
+++ b/docs/TELEGRAM_SETUP.md
@@ -0,0 +1,123 @@
+# Telegram Setup Guide
+
+## TL;DR
+
+```bash
+vibe
+```
+
+Choose **Telegram** in the wizard, create a bot in **@BotFather**, paste the token, validate it, then finish the Telegram-side setup.
+
+---
+
+## Step 1: Create a Bot with BotFather
+
+1. Open [@BotFather](https://t.me/BotFather) in Telegram
+2. Send `/newbot`
+3. Choose a display name
+4. Choose a username ending in `bot`
+5. Keep the generated token page open
+
+If you already created the bot, you can skip straight to copying the token.
+
+---
+
+## Step 2: Paste the Token in Vibe Remote
+
+1. Run `vibe`
+2. In the setup wizard, choose **Telegram**
+3. Paste the bot token from BotFather
+4. Click **Validate Token**
+
+If validation fails, make sure you copied the full token and did not include extra spaces.
+
+---
+
+## Step 3: Finish the BotFather Switches
+
+Run these commands in **@BotFather** and select your bot each time:
+
+- `/setprivacy`
+- `/setjoingroups`
+- `/setcommands`
+
+Recommended settings:
+
+- **`/setprivacy` -> `Disable`** if you want the bot to respond to normal group messages without explicit `@mentions`
+- **`/setjoingroups` -> `Enable`** if the bot should be used in groups or forum-enabled supergroups
+- **`/setcommands`** -> publish common commands such as `/start`, `/settings`, `/new`, `/resume`
+
+The most common Telegram setup issue is leaving privacy mode enabled. In that state, the bot only receives commands, mentions, and replies.
+
+---
+
+## Step 4: Finish Setup, Bind, Then Discover Chats
+
+Vibe Remote discovers Telegram chats from inbound messages. Telegram does not provide a generic "list every chat the bot is in" API.
+
+Important: Telegram DMs are usable, but they stay hidden in the wizard chat-selection UI. The selectable list is for discovered groups and forum chats, not individual topics.
+
+On first setup, do this in order:
+
+1. Finish the Vibe Remote setup flow and start the service
+2. On the final summary screen, copy the first bind command shown there
+3. Open a DM with the bot and send `bind <code>` (or `/bind <code>`) to become the first admin
+4. After binding, send `/start` in the DM to verify direct-message connectivity
+5. If you want to use a group or forum, add the bot there and grant permission to send messages
+6. For auto-created forum topics, also grant admin or topic-management rights
+7. Send one message in each target group or forum chat; for forums, sending a message inside the forum helps Vibe Remote discover that chat and later use topic-related behavior there
+8. In the dashboard group settings page, refresh the Telegram chat list and enable the discovered group or forum chat
+
+If the bot only reacts to commands in groups, go back and verify `/setprivacy` is really set to `Disable`.
+
+---
+
+## Step 5: Choose Telegram Defaults
+
+The wizard exposes two important Telegram defaults:
+
+- **Require explicit bot targeting in groups**
+ - When enabled, the bot responds only to commands, mentions, or replies
+ - Good for busy groups
+- **Forum auto-topic mode**
+ - In forum-enabled supergroups, a new top-level message can create a new topic automatically
+ - Requires admin or topic-management rights for the bot
+
+---
+
+## Using in Telegram
+
+### Direct Messages
+
+1. Open your bot in Telegram
+2. First send `bind <code>` (or `/bind <code>`) using the bind code shown by Vibe Remote setup
+3. Then send `/start`
+4. Continue chatting normally
+
+### Groups
+
+1. Add the bot to the group
+2. If `require_mention` is enabled, use `/start`, `@botname`, or reply-to-bot style messages
+3. If `require_mention` is disabled, the bot can respond to normal group messages too
+
+### Forum Topics
+
+1. Add the bot to a forum-enabled supergroup
+2. Ensure it has enough permissions
+3. Send a message in the target topic so Vibe Remote discovers it
+
+---
+
+## Troubleshooting
+
+| Problem | Fix |
+|---------|-----|
+| Token validation fails | Re-copy the token from BotFather and validate again |
+| Bot works in DM but not in groups | Run `/setjoingroups` and confirm it is `Enable` |
+| Bot only reacts to commands or `@mentions` | Run `/setprivacy` and set it to `Disable` |
+| Group or forum does not show up in the wizard | Send one message there first, then refresh the Telegram chat list |
+| Forum auto-topic does not work | Grant admin or topic-management rights to the bot |
+
+**Logs:** `~/.vibe_remote/logs/vibe_remote.log`
+
+**Diagnostics:** `vibe doctor`
diff --git a/docs/TELEGRAM_SETUP_ZH.md b/docs/TELEGRAM_SETUP_ZH.md
new file mode 100644
index 000000000..382236576
--- /dev/null
+++ b/docs/TELEGRAM_SETUP_ZH.md
@@ -0,0 +1,123 @@
+# Telegram 配置指南
+
+## 太长不看
+
+```bash
+vibe
+```
+
+在向导里选择 **Telegram**,先用 **@BotFather** 创建机器人,粘贴并验证令牌,再完成 Telegram 侧初始化设置。
+
+---
+
+## 第 1 步:用 BotFather 创建机器人
+
+1. 在 Telegram 中打开 [@BotFather](https://t.me/BotFather)
+2. 发送 `/newbot`
+3. 设置机器人的显示名称
+4. 设置一个以 `bot` 结尾的用户名
+5. 保留生成令牌的页面
+
+如果你已经创建过机器人,可以直接跳到复制令牌这一步。
+
+---
+
+## 第 2 步:在 Vibe Remote 中粘贴令牌
+
+1. 运行 `vibe`
+2. 在设置向导中选择 **Telegram**
+3. 粘贴从 BotFather 拿到的机器人令牌
+4. 点击 **验证令牌**
+
+如果验证失败,先确认复制的是完整令牌,并且没有带多余空格。
+
+---
+
+## 第 3 步:完成 BotFather 里的关键开关
+
+在 **@BotFather** 里依次执行下面几个命令,并且每次都选中你的机器人:
+
+- `/setprivacy`
+- `/setjoingroups`
+- `/setcommands`
+
+推荐这样设置:
+
+- **`/setprivacy` -> `Disable`**:如果你希望机器人在群里无需 `@` 也能响应普通消息,这一步必须这么设
+- **`/setjoingroups` -> `Enable`**:如果机器人需要加入群组或 forum supergroup,这一步必须开启
+- **`/setcommands`**:把 `/start`、`/settings`、`/new`、`/resume` 这类常用命令写进去
+
+Telegram 最常见的初始化问题,就是忘了把隐私模式关掉。隐私模式开着时,机器人只能收到命令、@提及和回复消息。
+
+---
+
+## 第 4 步:完成配置、先绑定,再发现群组
+
+Vibe Remote 是通过入站消息来发现 Telegram 会话的。Telegram 没有提供“列出 bot 所在全部群聊”的通用 API。
+
+注意:Telegram 私聊本身可以正常使用,但不会显示在向导里的会话选择列表中。列表里只会展示已发现的群组和 forum chat,不会单独展示某个 topic。
+
+第一次配置时,请按这个顺序来:
+
+1. 先完成 Vibe Remote 的配置流程,并把服务启动起来
+2. 在最后的 Summary 页面复制首个绑定命令
+3. 打开和机器人的私聊,发送 `bind <code>`(或 `/bind <code>`),把自己绑定成第一个管理员
+4. 绑定完成后,再发送 `/start`,确认私聊链路正常
+5. 如果你要在群组或 forum 里用,把机器人加进去,并给它发送消息权限
+6. 如果你要用自动建 forum topic,还要给机器人管理员权限或 topic 管理权限
+7. 在每个目标群组或 forum chat 里先发一条消息;对 forum 来说,在 forum 内发消息可以帮助 Vibe Remote 发现这个 chat,并在后续启用 topic 相关行为
+8. 到 Dashboard 的群组设置页面刷新 Telegram 会话列表,再启用刚发现的目标群组或 forum chat
+
+如果机器人在群里只对命令有反应,先回去检查 `/setprivacy` 是否真的已经设置为 `Disable`。
+
+---
+
+## 第 5 步:选择 Telegram 默认行为
+
+向导里有两个比较重要的 Telegram 默认项:
+
+- **群组中需要显式触发**
+ - 开启后,机器人只会响应命令、@提及或回复
+ - 适合比较吵的群
+- **Forum 自动建 Topic**
+ - 对启用了 forum 的 supergroup,新顶层消息可以自动创建一个新 topic
+ - 机器人需要有管理员权限或 topic 管理权限
+
+---
+
+## 在 Telegram 里使用
+
+### 私聊
+
+1. 打开你的机器人
+2. 先发送 `bind <code>`(或 `/bind <code>`),使用 Vibe Remote 展示的绑定码完成绑定
+3. 再发送 `/start`
+4. 后面就可以正常聊天了
+
+### 群组
+
+1. 把机器人加进群组
+2. 如果开启了 `require_mention`,请用 `/start`、`@botname` 或回复机器人消息的方式触发
+3. 如果关闭了 `require_mention`,机器人也可以响应普通群消息
+
+### Forum Topic
+
+1. 把机器人加进启用了 forum 的 supergroup
+2. 确保权限足够
+3. 在目标 topic 里先发一条消息,让 Vibe Remote 发现它
+
+---
+
+## 故障排查
+
+| 问题 | 解决 |
+|------|------|
+| 令牌验证失败 | 回到 BotFather 重新复制令牌,再验证一次 |
+| 私聊正常,但群里不工作 | 执行 `/setjoingroups`,确认是 `Enable` |
+| 群里只对命令或 @ 有反应 | 执行 `/setprivacy`,确认设置成了 `Disable` |
+| 向导里看不到目标群组或 forum | 先在目标会话里发一条消息,再刷新 Telegram 会话列表 |
+| Forum 自动建 Topic 不生效 | 给机器人管理员权限或 topic 管理权限 |
+
+**日志:** `~/.vibe_remote/logs/vibe_remote.log`
+
+**诊断:** `vibe doctor`
diff --git a/docs/WINDOWS_WSL.md b/docs/WINDOWS_WSL.md
index d4a71bd39..eeb9d09fc 100644
--- a/docs/WINDOWS_WSL.md
+++ b/docs/WINDOWS_WSL.md
@@ -8,7 +8,7 @@ If someone told you "use WSL" but you do not know where to install it, how to op
If you use Vibe Remote on Windows, the recommended setup is:
-- `Windows`: browser, Slack, Discord, WeChat, Lark/Feishu
+- `Windows`: browser, Slack, Discord, Telegram, WeChat, Lark/Feishu
- `WSL`: Vibe Remote, Claude Code / Codex / OpenCode, your code repository
In plain terms:
@@ -301,7 +301,7 @@ http://127.0.0.1:5123
### 5. Use your chat app normally
-After that, continue using Slack, Discord, WeChat, or Lark as usual.
+After that, continue using Slack, Discord, Telegram, WeChat, or Lark as usual.
## How to Open WSL Again Later
diff --git a/docs/WINDOWS_WSL_ZH.md b/docs/WINDOWS_WSL_ZH.md
index 7e2dfbd21..4d0508c1e 100644
--- a/docs/WINDOWS_WSL_ZH.md
+++ b/docs/WINDOWS_WSL_ZH.md
@@ -8,7 +8,7 @@
如果你在 Windows 上使用 Vibe Remote,我更推荐下面这套方式:
-- `Windows`:浏览器、Slack、Discord、微信、飞书
+- `Windows`:浏览器、Slack、Discord、Telegram、微信、飞书
- `WSL`:Vibe Remote、Claude Code / Codex / OpenCode、你的代码仓库
简单理解就是:
@@ -305,7 +305,7 @@ http://127.0.0.1:5123
### 5. 在聊天工具里使用
-之后你就在 Slack、Discord、微信、飞书里和 Agent 交互。
+之后你就在 Slack、Discord、Telegram、微信、飞书里和 Agent 交互。
## 如何再次打开 WSL
diff --git a/ui/src/i18n/en.json b/ui/src/i18n/en.json
index bb4e5f744..d544db514 100644
--- a/ui/src/i18n/en.json
+++ b/ui/src/i18n/en.json
@@ -52,7 +52,7 @@
},
"welcome": {
"title": "Set up Vibe Remote",
- "subtitle": "Your local AI coding assistant for Slack and Discord.",
+ "subtitle": "Your local AI coding assistant for Slack, Discord, Telegram, WeChat, and Lark.",
"getStarted": "Get started",
"feature1": "Runs locally. Your code stays on your computer.",
"feature2": "SaaS mode uses a cloud relay for Slack delivery, but does not store message content.",
@@ -63,7 +63,7 @@
"saasMode": "SaaS Mode",
"saasDescription": "OAuth install + cloud relay + local execution (coming soon).",
"selfHostMode": "Self-host Mode",
- "selfHostDescription": "Use your own Slack app + Socket Mode tokens."
+ "selfHostDescription": "Use your own platform credentials and keep execution local."
},
"platform": {
"title": "Choose a Platform",
@@ -173,13 +173,13 @@
"step3TipTitle": "Most commonly missed",
"step3Tip": "If you expect the bot to respond to normal group messages without explicit @mentions, /setprivacy must be set to Disable. This is the most common Telegram setup miss.",
"step3ExtraTip": "If you only need the bot in DMs for now, /setjoingroups can wait. But before using groups or forum topics, finish it first.",
- "step4Title": "Add the Bot and Send the First Message",
- "step4Description": "Complete the Telegram-side onboarding so Vibe Remote can actually discover your DM, group, or forum topic.",
- "step4Item1": "Start a DM with the bot and send /start to confirm the direct-message path works",
- "step4Item2": "If you want group or forum usage, add the bot there and grant permission to send messages; for auto-created topics, also grant admin or topic-management rights",
- "step4Item3": "Send one message in each target conversation so the bot can discover that chat",
- "step4Item4": "Return to the next channel-selection step and refresh the Telegram chat list",
- "step4Tip": "If the bot still reacts only to commands or @mentions in groups, go back to Step 3 and verify that /setprivacy is really set to Disable.",
+ "step4Title": "Finish Setup, Bind, Then Discover Chats",
+ "step4Description": "Telegram chat discovery happens only after Vibe Remote is running and has received inbound messages. Finish setup first, then come back from the dashboard to enable discovered group or forum chats.",
+ "step4Item1": "Finish the setup flow and start the service",
+ "step4Item2": "On the summary screen, copy the first bind command and send `bind <code>` or `/bind <code>` to the bot in DM",
+ "step4Item3": "After binding, send /start in DM; for groups or forums, add the bot there and grant message permission (plus admin/topic-management rights if you want forum auto-topic mode)",
+ "step4Item4": "Send one message in each target group or forum chat, then refresh the Telegram chat list later from the dashboard group settings page",
+ "step4Tip": "Direct messages stay hidden from the selectable Telegram chat list. If the bot still reacts only to commands or @mentions in groups, go back to Step 3 and verify that /setprivacy is really set to Disable.",
"step5Title": "Choose Conversation Defaults",
"step5Description": "Set the default group reply behavior and forum topic behavior for this bot.",
"botToken": "Bot Token",
diff --git a/ui/src/i18n/zh.json b/ui/src/i18n/zh.json
index 29600c102..3db759c99 100644
--- a/ui/src/i18n/zh.json
+++ b/ui/src/i18n/zh.json
@@ -52,7 +52,7 @@
},
"welcome": {
"title": "设置 Vibe Remote",
- "subtitle": "为 Slack 与 Discord 打造的本地 AI 编程助手",
+ "subtitle": "面向 Slack、Discord、Telegram、微信与飞书的本地 AI 编程助手",
"getStarted": "开始设置",
"feature1": "本地运行,代码留在您的电脑上",
"feature2": "SaaS 模式使用云端中继进行 Slack 消息传输,但不会存储消息内容",
@@ -173,13 +173,13 @@
"step3TipTitle": "最容易漏掉的点",
"step3Tip": "如果你希望机器人在群里无需 @ 也能响应普通消息,/setprivacy 必须选 Disable。这是 Telegram 群聊里最常见的初始化遗漏。",
"step3ExtraTip": "如果你只是先在私聊里使用 bot,/setjoingroups 可以稍后再配;但一旦要进群或 forum,建议这一步先完成。",
- "step4Title": "把机器人加进去并发第一条消息",
- "step4Description": "完成 Telegram 侧接入,让 Vibe Remote 能真正发现你的私聊、群组或 forum topic。",
- "step4Item1": "先和机器人私聊并发送 /start,确认私聊链路正常",
- "step4Item2": "如果要在群组或 forum 里用,把机器人加进去并授予发消息权限;若要自动新建 topic,请给它管理员或管理 topic 的权限",
- "step4Item3": "在每个目标会话里先发送一条消息,让机器人发现这个会话",
- "step4Item4": "回到下一步的频道列表页,刷新 Telegram 会话列表并选中目标会话",
- "step4Tip": "如果群里仍然只对命令或 @ 有响应,先回头检查第 3 步的 /setprivacy 是否真的已经设成 Disable。",
+ "step4Title": "先完成配置和绑定,再发现群组",
+ "step4Description": "Telegram 会话发现必须等 Vibe Remote 启动并收到入站消息后才会发生。先完成配置并启动服务,再从 dashboard 回来启用已发现的群组或 forum chat。",
+ "step4Item1": "先完成配置流程并启动服务",
+ "step4Item2": "在 Summary 页面复制首个绑定命令,并在私聊里向机器人发送 `bind <code>` 或 `/bind <code>`",
+ "step4Item3": "绑定完成后,在私聊里发送 /start;如果要在群组或 forum 里用,把机器人加进去并授予发消息权限;若要自动新建 topic,请给它管理员或管理 topic 的权限",
+ "step4Item4": "在每个目标群组或 forum chat 里先发一条消息,之后再到 dashboard 的群组设置页刷新 Telegram 会话列表",
+ "step4Tip": "Telegram 私聊不会显示在可选会话列表里。如果群里仍然只对命令或 @ 有响应,先回头检查第 3 步的 /setprivacy 是否真的已经设成 Disable。",
"step5Title": "选择默认会话行为",
"step5Description": "为这个 Telegram 机器人设置默认的群聊响应方式和 forum topic 行为。",
"botToken": "机器人令牌",