openclaw directory¶
Qo‘llab-quvvatlaydigan kanallar uchun katalog qidiruvlari (kontaktlar/peers, guruhlar va “me”).
Umumiy flaglar¶
--channel <name>: kanal id/aliasi (bir nechta kanallar sozlangan bo‘lsa majburiy; faqat bitta kanal sozlangan bo‘lsa avtomatik)--account <id>: akkaunt idsi (standart: kanal bo‘yicha standart)--json: JSON chiqishini beradi
Eslatmalar¶
directoryboshqa buyruqlarga qo‘yib ishlatishingiz mumkin bo‘lgan IDlarni topishga yordam beradi (ayniqsaopenclaw message send --target ...).- Ko‘plab kanallarda natijalar jonli provayder katalogidan emas, balki konfiguratsiyaga asoslangan (ruxsat ro‘yxatlari / sozlangan guruhlar) manbadan olinadi.
- Standart chiqish
id(va ba’zanname) bo‘lib, ular tab bilan ajratiladi; skriptlash uchun--jsondan foydalaning.
Using results with message send¶
openclaw directory peers list --channel slack --query "U0"
openclaw message send --channel slack --target user:U012ABCDEF --message "hello"
ID formats (by channel)¶
- WhatsApp:
+15551234567(DM),1234567890-1234567890@g.us(group) - Telegram:
@usernameor numeric chat id; groups are numeric ids - Slack:
user:U…andchannel:C… - Discord:
user:<id>andchannel:<id> - Matrix (plugin):
user:@user:server,room:!roomId:server, or#alias:server - Microsoft Teams (plugin):
user:<id>andconversation:<id> - Zalo (plugin): user id (Bot API)
- Zalo Personal /
zalouser(plugin): thread id (DM/group) fromzca(me,friend list,group list)
Self (“me”)¶
openclaw directory self --channel zalouser
Peers (contacts/users)¶
openclaw directory peers list --channel zalouser
openclaw directory peers list --channel zalouser --query "name"
openclaw directory peers list --channel zalouser --limit 50
Groups¶
openclaw directory groups list --channel zalouser
openclaw directory groups list --channel zalouser --query "work"
openclaw directory groups members --channel zalouser --group-id <id>