在微信和webhook机器人之间架一座桥梁,从此微信里也可以有自己的webhook机器人了,快用它集成到自己的自动化工作流中( 推荐 n8n)吧
view this project on docker hub :)
npm start
docker pull dannicool/docker-wechatbot-webhook
docker run -d \
--name wcRoomBot \
-p 3001:3001 \
dannicool/docker-wechatbot-webhook
docker logs -f wcRoomBot
找到二维码登录地址,图下 url 部分,浏览器访问,扫码登录wx
目前只支持 文字 和 图片,消息不支持图文自动拆分,请手动调多次
- Url:http://localhost:3001/webhook/msg
- Methods:
POST
- ContentType:
application/json
- Body: 格式见下面表格
参数 | 说明 | 数据类型 | 默认值 | 可否为空 | 可选值 | 备注 |
---|---|---|---|---|---|---|
to | 会话名 | String | N | 发群消息填群名,发给个人填昵称 | ||
isRoom | 是否发的群消息 | Boolean | false | Y |
|
|
type | 发送消息类型 | String | N |
|
||
content | 发送的消息 | String | N | 如果希望发多张图,type 指定为 img 同时,content 里填 url 以英文逗号分隔 |
更新内容参见 CHANGELOG