> ## Documentation Index
> Fetch the complete documentation index at: https://docs-d0.getdonut.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 连接 Telegram

> 设置时在 Telegram 上认领你的 D0 agent，或者之后从 Settings 连接。提醒、信号和同一段对话，随后会在你本来就开着的 App 里找到你。

D0 是同一个 agent。网页控制台是你处理字段多的工作的地方；Telegram 是你不看控制台时 D0 找到你的地方。连接之后，提醒和信号推到 Telegram，你可以在那里和 D0 对话，顶栏的 Telegram 图标（**Open D0 in Telegram**）直接跳到那个会话。

## 设置时

选好套餐之后，引导会显示 **Claim your D0 Agent**：*Your AI agent on Telegram — watching the market 24/7 and trading on your word.* 卡片列出你的 agent（**Agent · #4783**），状态 **Ready**。

1. 点 **Continue**。D0 向 Telegram 发送绑定请求，状态变为 **Connecting**。
2. 在 Telegram 里打开这个 bot，点 **Start**。
3. 状态变为 **Claimed**，卡片显示你 agent 的用户名，比如 **@yourname\_d0\_bot**。点 **Continue**。

接着 **Setting up your environment** 会自动跑三步：**Environment launched**、**Gateway connected**、**Agent online**。需要一两分钟，你可以离开页面再回来。最后一步 **Add funds to start trading** 可以跳过；之后入金见[资产总览](https://docs-d0.getdonut.ai/zh/portfolio/overview.md)。

### 认领失败时

| 提示 | 怎么办 |
| - | - |
| *This Telegram is already linked to another Donut account.* | 换一个 Telegram 账号，或者先在另一个 Donut 账号里断开 Telegram。 |
| *Couldn't reach Telegram. Make sure you're signed in to Telegram, then try again.* | 在这台设备上登录 Telegram，然后点 **Try again**。 |
| *Connection timed out. Check your network and try again.* | 检查网络，点 **Try again**。 |
| *The link request was declined in Telegram. Open the bot and tap Start, then try again.* | 在 Telegram 里打开 bot，点 **Start**，再点 **Try again**。 |

## 之后，从 Settings

点顶栏你的头像，然后 **Settings → Account → Connected accounts**。**Telegram** 这一行显示 **Not connected** 或者你的用户名加 *connected*，以及一个 **Connect** 或 **Disconnect** 按钮。在这里连接走的是和设置时一样的绑定请求。

![Settings 的 Account：显示名、邮箱，以及 Telegram、X、Discord 的已连接账户](https://mintcdn.com/donut-6b37471f/9GcgT1I3sCqmP_zy/media/reference/settings/account.jpg?fit=max\&auto=format\&n=9GcgT1I3sCqmP_zy\&q=85\&s=d438394d20fa9d3a1547114ead26d3fa)

Settings 里的 Connected accounts。

## Telegram 里会收到什么

* 你设的每个价格提醒，卡片上都显示渠道：连接 Telegram 后是 **Chat + Telegram**。见[价格提醒](https://docs-d0.getdonut.ai/zh/features/price-alerts.md)。
* 你在 **Settings → Notifications** 里打开的信号来源，触发时推到 Telegram。见[信号](https://docs-d0.getdonut.ai/zh/features/thorp-strategy.md)。
* 定时任务可以在 Telegram 里提醒你，设置时提一句就行（*Add a Telegram ping*）。见[定时任务与自定义自动化](https://docs-d0.getdonut.ai/zh/strategies/scheduled-tasks.md)。
* 对话就是同一段对话。在 Telegram 里的一个问题、一笔交易或一条语音消息，和在控制台里的处理完全一样，同样的预览和确认。

## 需要知道的几点

* 一个 D0 账户对应一个 Telegram 账户。你的 agent 只回应你认领它时用的那个 Telegram 账号。
* 交易仍然要确认。在 Telegram 里权限没有任何变化；见[风险控制](https://docs-d0.getdonut.ai/zh/features/risk-controls.md)。
* 断开只是停掉推送。提醒、自动化和运行中的策略照常进行，只是不再推到 Telegram。

## 下一步

* [上手前 10 分钟](https://docs-d0.getdonut.ai/zh/getting-started/dashboard-tour.md)
* [休眠与唤醒](https://docs-d0.getdonut.ai/zh/bot-management/hibernation.md)
* [故障排查](https://docs-d0.getdonut.ai/zh/bot-management/troubleshooting.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.