Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
indes authored Jun 20, 2021
1 parent 540a064 commit b2289d5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ Vercel Telegram 消息推送机器人

<a href="https://vercel.com/new/project?template=https://github.com/indes/telepush"><img src="https://vercel.com/button"></a>

### 环境变量设置
在项目设置中添加`telegram_bot_token`环境变量,如图下图所示(将xxxx换成你的telegram bot token)
![image](https://user-images.githubusercontent.com/4705478/122669874-d113ee80-d1f1-11eb-8add-77587c64053e.png)


## 使用
发送消息
```
Expand All @@ -14,6 +19,6 @@ curl -X GET http://<your_url>/api/notify?u=123&m=HelloWorld

路由参数说明

| url 路径 | 参数(类型, 说明) | 说明 |
| url 路径 | 参数(类型, 说明) | 说明 |
| ---------- | ---------------------- | ------------ |
| api/notify | m(消息内容),u(telegram用户id) | 发送文字消息 |
| api/notify | m(消息内容),u(telegram用户id) | 发送文字消息 |

0 comments on commit b2289d5

Please sign in to comment.