Files
picoclaw/docs/channels/dingtalk/README.zh.md
T
Cytown 667fc85d54 refactor(config): make config.Channel to multiple instance support
add new field type to Channel struct
config.channels refactor to channel_list
update config version to 3
update the docs
2026-04-13 22:21:21 +08:00

1.1 KiB

返回 README

钉钉

钉钉是阿里巴巴的企业通讯平台,在中国职场中广受欢迎。它采用流式 SDK 来维持持久连接。

配置

{
  "channel_list": {
    "dingtalk": {
      "enabled": true,
      "type": "dingtalk",
      "client_id": "YOUR_CLIENT_ID",
      "client_secret": "YOUR_CLIENT_SECRET",
      "allow_from": []
    }
  }
}
字段 类型 必填 描述
enabled bool 是否启用钉钉频道
client_id string 钉钉应用的 Client ID
client_secret string 钉钉应用的 Client Secret
allow_from array 用户ID白名单,空表示允许所有用户

设置流程

  1. 前往 钉钉开放平台
  2. 创建一个企业内部应用
  3. 从应用设置中获取 Client ID 和 Client Secret
  4. 配置OAuth和事件订阅(如需要)
  5. 将 Client ID 和 Client Secret 填入配置文件中