# 软件开发者API如何申请

**第一步** 打开官方网址：<https://my.telegram.org/>  并输入你的电报手机号码(记得带+号) 点击：**NEXT**&#x20;

<figure><img src="/files/8mRVs6Nqsa5kXEGZh7VM" alt=""><figcaption></figcaption></figure>

**第二步** 这时候你的电报会收到一个 **code** （复制） 如下图：

<figure><img src="/files/51G5tA7Z4S1heh0UM3br" alt=""><figcaption></figcaption></figure>

**第三步** 填写到 code  并点击：**Sign IN**   如下图：

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

**第四步** 登录成功后  点击：**API development tools**

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

**第五步** 这时候你会进入一个页面填写：App title  和  Short name   就可以创建一个应用ID 和 HASH  最终得到图下图

在输入：App title  和  Short name  创建应用时好像很容易报错或失败，请尝试输入不同的Short name 多试几次才可以成功

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

**上面获取到的：api\_id  和 api\_hash 放到软件保存以后就行了**

申请失败：账号的国家和ip节点最好在同一个地区；例如，香港的tg账号用香港的节点申请api，多测试不同时间段，这个一般要申请好多次才会通过。


---

# 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.tgcaihong.com/ruan-jian-kai-fa-zhe-api-ru-he-shen-qing.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.
