feat: 新增 SafeW 出站通知渠道
通过 Bot API sendMessage 投递渲染后的通知,MarkdownV2 自动转义标题与正文。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -260,6 +260,23 @@ curl -X POST 'http://localhost:8080/api/v1/channels' \
|
||||
}'
|
||||
```
|
||||
|
||||
### 创建 Channel(SafeW)
|
||||
|
||||
```bash
|
||||
curl -X POST 'http://localhost:8080/api/v1/channels' \
|
||||
-H 'Authorization: Bearer admin-sk-change-me' \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{
|
||||
"name": "safew-ops",
|
||||
"type": "safew",
|
||||
"config": {
|
||||
"token": "<bot token>",
|
||||
"chat_id": "123456789"
|
||||
},
|
||||
"status": 1
|
||||
}'
|
||||
```
|
||||
|
||||
### 列出 Channel
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user