# 如何申请 Telegram 机器人并在 CatFee 上托管

Telegram 机器人（Bot）是一种自动化账户，可以用于提供服务、管理群组或执行各种任务。在 **CatFee** 上，您可以轻松托管 Telegram 机器人，通过简单设置，即可在 Telegram 上快速开展能量业务。

<figure><img src="/files/Mo1kkhXky2Le9ugT4swl" alt=""><figcaption></figcaption></figure>

### **1. 如何申请 Telegram 机器人**

在创建机器人前，您需要一个 **Telegram 账户**，如果没有，请先注册。

#### **步骤 1：使用 BotFather 创建机器人**

1. **打开 Telegram**，搜索 **BotFather**，点击进入官方 BotFather（带蓝色认证标志）。
2. 发送指令：

   ```
   /newbot
   ```
3. 按照提示操作：
   * 设置 **机器人名称**（如 **MyEnergyBot**）。
   * 设置 **用户名**（必须以 `bot` 结尾，如 **MyEnergyBot**）。
4. **成功创建后**，BotFather 会返回一个 **Token**，格式如下：

   ```
   1234567890:ABCdefGHIjklMNOpqrSTUvwXYZ
   ```

   **请妥善保存 Token，稍后用于托管机器人。**

***

### **2. 在 CatFee 上托管 Telegram 机器人**

CatFee 提供 **强大、简单、快捷** 的机器人托管功能，让您无需复杂开发，即可在 Telegram 上开展能量业务。

#### **步骤 2.1：登录 CatFee 账户**

<figure><img src="/files/rMofqay4SPJIb5cSSlJx" alt=""><figcaption><p>创建机器人</p></figcaption></figure>

1. 访问 [CatFee.io](https://catfee.io/) 并登录您的账户。
2. 进入 **个人中心**，找到 **机器人-> 设置** 页面。

#### **步骤 2.2：填写机器人信息**

<figure><img src="/files/GrbPoKZwVwMRGv7OlOUH" alt=""><figcaption></figcaption></figure>

1. 在 CatFee **机器人托管** 页面，填入从 **BotFather** 申请到的 **Token**。
2. 设置 **能量价格**（可按市场调整）。
3. 设置 **客服账号**，方便用户联系。
4. 配置 **机器人界面** 和 **自动回复信息**，优化用户体验。

<figure><img src="/files/97IOFCaiNCdSAQojxDEt" alt=""><figcaption><p>机器人详细设置</p></figcaption></figure>

#### **步骤 2.3：启动并测试机器人**

1. **保存设置**。
2. 在 Telegram 中搜索您的机器人并发送 `/start`，测试是否正常工作。
3. 机器人将自动响应，并支持用户购买能量等操作。

***

### **3. 为什么选择 CatFee 托管机器人？**

✅ **无需开发**：无需编写代码，一键托管机器人。\
✅ **快速部署**：几分钟内即可完成设置，立即开展业务。\
✅ **智能管理**：可设置价格、客服信息、自动回复等，提升用户体验。\
✅ **稳定运行**：CatFee 服务器 7×24 小时稳定运行，无需担心宕机。

***

{% embed url="<https://www.youtube.com/watch?v=spyMnu2Odb4>" %}

通过 **CatFee**，您可以轻松创建并托管 **Telegram 机器人**，快速开展 **能量业务**。只需 **申请 Token -> 填入 CatFee -> 设置价格和信息 -> 启动机器人**，就能在 Telegram 上与用户互动，提供高效服务！

立即前往 [CatFee.io](https://catfee.io/) 体验吧！ 🚀


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.catfee.io/trx-energy-bot/how-to-apply-telegram-bot-and-host-on-catfee.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
