Files
Auto_Bangumi/docs/config/notifier.md

34 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 通知配置
## WebUI 配置
![notification](../image/config/notifier.png){width=500}{class=ab-shadow-card}
<br/>
- **Enable** 为是否启用通知,如果不启用通知,下面的配置项将不会生效。
- **Type** 为通知类型,目前支持:
- Telegram
- Wecom
- Bark
- ServerChan
- **Chat ID** 仅在使用 `telegram` 通知时需要填写。[Telegram Bot 获取 Chat ID][1]
- **Wecom**chat_id参数框填写自建推送的url地址同时需要在服务端增加[图文消息][2]类型。[Wecom酱配置说明][3]
## `config.json` 中的配置选项
在配置文件中对应选项如下:
配置文件部分:`notification`
| 参数名 | 参数说明 | 参数类型 | WebUI 对应选项 | 默认值 |
|---------|------------|------|------------|----------|
| enable | 是否启用通知 | 布尔值 | 通知 | false |
| type | 通知类型 | 字符串 | 通知类型 | telegram |
| token | 通知 Token | 字符串 | 通知 Token |
| chat_id | 通知 Chat ID | 字符串 | 通知 Chat ID |
[1]: https://core.telegram.org/bots#6-botfather
[2]: https://github.com/umbors/wecomchan-alifun
[3]: https://github.com/easychen/wecomchan