feat: Add DingTalk channel support via Stream Mode

- Add pkg/channels/dingtalk.go with WebSocket Stream Mode
- Add DingTalkConfig to config.go
- Register DingTalk in manager.go
- Update README with DingTalk setup instructions
- Add open-dingtalk/dingtalk-stream-sdk-go v0.9.1 dependency
This commit is contained in:
w0x7ce
2026-02-10 21:33:55 +08:00
parent 9936dbce52
commit c5f6bec44b
6 changed files with 269 additions and 1 deletions

View File

@@ -177,12 +177,13 @@ That's it! You have a working AI assistant in 2 minutes.
## 💬 Chat Apps
Talk to your picoclaw through Telegram
Talk to your picoclaw through Telegram, Discord, or DingTalk
| Channel | Setup |
|---------|-------|
| **Telegram** | Easy (just a token) |
| **Discord** | Easy (bot token + intents) |
| **DingTalk** | Medium (app credentials) |
<details>
<summary><b>Telegram</b> (Recommended)</summary>
@@ -261,6 +262,39 @@ nanobot gateway
</details>
<details>
<summary><b>DingTalk</b></summary>
**1. Create a bot**
- Go to [Open Platform](https://open.dingtalk.com/)
- Create an internal app
- Copy Client ID and Client Secret
**2. Configure**
```json
{
"channels": {
"dingtalk": {
"enabled": true,
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET",
"allow_from": []
}
}
}
```
**3. Run**
```bash
picoclaw gateway
```
</details>
## ⚙️ Configuration
Config file: `~/.picoclaw/config.json`