Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zcong1993/actions-qywx-bot
企业微信 actions
https://github.com/zcong1993/actions-qywx-bot
Last synced: about 23 hours ago
JSON representation
企业微信 actions
- Host: GitHub
- URL: https://github.com/zcong1993/actions-qywx-bot
- Owner: zcong1993
- License: mit
- Created: 2020-07-15T08:22:31.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-12T23:30:59.000Z (about 2 years ago)
- Last Synced: 2023-10-15T20:38:31.995Z (about 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 154 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# actions-qywx-bot
> 企业微信机器人
## Usage
| option | required | description |
| ------ | -------- | ---------------------------------------------------- |
| key | true | 企业微信 key |
| body | true | 企业微信 API 支持的合法 body, 和扩展 message, 见下文 |## Example
### send markdown
```json
{
"msgtype": "markdown",
"markdown": {
"content": "实时新增用户反馈132例,请相关同事注意。\n> 类型:用户反馈\n> 普通用户反馈:117例\n> VIP用户反馈:15例"
}
}
```## 扩展 message
### imageFile 发送图片文件
body 参数:
| option | required | description |
| -------- | -------- | ---------------- |
| msgtype | true | 写死 `imageFile` |
| filePath | true | 图片路径 |```json
{ "msgtype": "imageFile", "filePath": "./static/image.jpg" }
```### fileByName 发送文件
body 参数:
| option | required | description |
| -------- | -------- | ----------------- |
| msgtype | true | 写死 `fileByName` |
| filePath | true | 文件路径 |
| filename | false | 文件名, 可选 |```json
{ "msgtype": "fileByName", "filePath": "./README.md", "filename": "README.md" }
```## License
MIT © zcong1993