openclaw tg多agent配置的方法

因?yàn)槲沂桥渲米觓gent的時(shí)候才配置tg的導(dǎo)致出現(xiàn)問題,經(jīng)過反復(fù)摸索知道了規(guī)律。

此時(shí),主agent的robot是 botToken這個(gè),而非默認(rèn)agent 他的配置能根據(jù)數(shù)字編號(hào)識(shí)別。

"bindings": [
    {
      "agentId": "articlepublish",
      "match": {
        "channel": "telegram",
        "accountId": "8732***"
      }
    }
  ],
  "channels": {
    "telegram": {
      "enabled": true,
      "dmPolicy": "allowlist",
      "botToken": "86xxxxx:xxxxxx",
      "allowFrom": [
        "*"
      ],
      "groupPolicy": "allowlist",
      "streaming": "partial",
      "accounts": {
        "default": {
          "dmPolicy": "pairing",
          "groupPolicy": "allowlist",
          "streaming": "partial"
        },

        "873xxx": {
          "enabled": true,
          "dmPolicy": "pairing",
          "botToken": "873xxx:xxx",
          "groupPolicy": "allowlist",
          "streaming": "partial"
        }
      }
    },
image.png
image.png
  Workspace: C:\Windows\System32\UsersAdministrator.openclawworkspace\UsersAdministrator.openclawworkspace
  Agent dir: ~\.openclaw\agents\main\agent
  Model: ollamaqwen35lastest/qwen3.5:latest
  Routing rules: 0
  Routing: default (no explicit rules)
  Providers:
    - Telegram 873262****: configured
    - Telegram default: configured
    - QQ Bot default: configured
- articlepublish (articlePublish)
  Workspace: ~\.openclaw\workspace-articlepublish
  Agent dir: ~\.openclaw\agents\articlepublish\agent
  Model: ollamaqwen35lastest/qwen3.5:latest
  Routing rules: 1
  Routing: Telegram 873262****
  Providers:
    - Telegram 873262****: configured
Routing rules map channel/account/peer to an agent. Use --bindings for full rules.
Channel status reflects local config/creds. For live health: openclaw channels status --probe.

C:\Users\Administrator>




最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容