Merge branch 'master' of github.com:naiba/nezha

This commit is contained in:
naiba 2021-01-08 21:04:57 +08:00
commit a1e38051fc

View File

@ -104,6 +104,14 @@ URL 里面也可放置占位符,请求时会进行简单的字符串替换。
- 请求类型: JSON
- Body: `{"appToken":"你的appToken","topicIds":[],"content":"#NEZHA#","contentType":"1","uids":["你的uid"]}`
- telegram示例 @haitau 贡献
- 备注telegram机器人消息通知
- URLhttps://api.telegram.org/botXXXXXX/sendMessage?chat_id=YYYYYY&text=#NEZHA#
- 请求方式: GET
- 请求类型: 默认
- Body: 空
- URL参数获取说明botXXXXXX 中的 XXXXXX 是在 telegram中关注官方 @Botfather ,输入/newbot 创建新的机器人bot会提供的 token在提示Use this token to access the HTTP API:后面一行)这里 'bot' 三个字母不可少。创建 bot 后,需要先在 telegram中与BOT进行对话随便发个消息然后才可用 API发送消息。YYYYYY 是 telegram 用户的数字 ID。与机器人@userinfobot 对话可获得。
2. 添加一个离线报警
- 备注:离线通知