mirror of
https://github.com/zhayujie/bot-on-anything.git
synced 2026-01-19 09:41:07 +08:00
add dingding channel
This commit is contained in:
29
README.md
29
README.md
@@ -492,6 +492,35 @@ pip3 install PyJWT flask
|
||||
|
||||
服务器运行:部署后访问 `http://公网域名或IP:端口`
|
||||
|
||||
### 10.钉钉
|
||||
|
||||
**依赖**
|
||||
|
||||
```bash
|
||||
pip3 install requests flask
|
||||
```
|
||||
**配置**
|
||||
|
||||
```bash
|
||||
"channel": {
|
||||
"type": "dingding",
|
||||
"dingding": {
|
||||
"image_create_prefix": ["画", "draw", "Draw"],
|
||||
"port": "8081", //对外端口
|
||||
"dd_token": "xx", //webhook地址的access_token
|
||||
"dd_post_token": "xx", //钉钉post回消息时header中带的检验token
|
||||
"dd_secret": "xx"// 安全加密加签串,群机器人中
|
||||
}
|
||||
}
|
||||
```
|
||||
钉钉开放平台说明: https://open.dingtalk.com/document/robots/customize-robot-security-settin.dingtalk.com/robot/send?access_token=906dadcbc7750fef5ff60d3445b66d5bbca32804f40fbdb59039a29b20b9a3f0gs
|
||||
|
||||
https://open.dingtalk.com/document/orgapp/custom-robot-access
|
||||
|
||||
**生成机器人**
|
||||
|
||||
地址: https://open-dev.dingtalk.com/fe/app#/corp/robot
|
||||
添加机器人,在开发管理中设置服务器出口ip(在部署机执行curl ifconfig.me就可以得到)和消息接收地址(配置中的对外地址如 https://xx.xx.com:8081)
|
||||
|
||||
### 通用配置
|
||||
|
||||
|
||||
Reference in New Issue
Block a user