openclaw directory
為支援此功能的頻道提供目錄查詢(聯絡人/peers、群組,以及「me」)。
常用旗標
--channel <name>:頻道 ID/別名(當設定了多個頻道時為必填;僅設定一個時會自動選取)--account <id>:帳戶 ID(預設:頻道預設值)--json:輸出 JSON
注意事項
directory旨在協助你找到可貼到其他指令中的 ID(特別是openclaw message send --target ...)。- 對於許多通道,結果是基於設定(允許清單 / 已設定的群組),而非即時的供應商目錄。
- 預設輸出為以定位字元分隔的
id(有時還包含name);進行腳本處理時請使用--json。
使用結果搭配 message send
ID formats(依頻道)
- WhatsApp:
+15551234567(DM)、[email protected](群組) - Telegram:
@username或數字型聊天 ID;群組為數字 ID - Slack:
user:U…與channel:C… - Discord:
user:<id>與channel:<id> - Matrix(plugin):
user:@user:server、room:!roomId:server或#alias:server - Microsoft Teams(plugin):
user:<id>與conversation:<id> - Zalo(plugin):使用者 ID(Bot API)
- Zalo Personal/
zalouser(plugin):來自zca的執行緒 ID(DM/群組)(me、friend list、group list)