Update README.md
This commit is contained in:
@@ -116,9 +116,10 @@ v4.0 版本移除了所有不稳定的外部 API 依赖,专注于**极致的
|
||||
|
||||
**设置新 Webhook**:
|
||||
```
|
||||
[https://api.telegram.org/bot](https://api.telegram.org/bot)<YOUR_TOKEN>/setWebhook?url=<YOUR_WORKER_URL>
|
||||
(https://api.telegram.org/bot)<YOUR_TOKEN>/setWebhook?url=<YOUR_WORKER_URL>
|
||||
```
|
||||
*将 `<YOUR_TOKEN>` 替换为机器人 Token,`<YOUR_WORKER_URL>` 替换为 Worker 的完整域名或者你绑定的自定义的域名 (如 `https://xxx.workers.dev`)。*
|
||||
*举例:https://api.telegram.org/bot1234:HUSH2GW/setWebhook?url=https://1234.workers.dev* `<YOUR_TOKEN>前面的bot别删了`
|
||||
|
||||
如果返回 `{"ok":true, "result":true, "description":"Webhook was set"}`,即表示部署成功!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user