moltbot directory
为支持的频道查询目录(联系人/对等端、群组与自身)。
通用标志
--channel <name>:频道 id/别名(配置多频道时必填;仅一个时自动)--account <id>:账号 id(默认为频道默认)--json:输出 JSON
说明
directory帮你找到可粘贴到其他命令(尤其是moltbot message send --target ...)的 ID。- 对多数频道,结果由配置支持(白名单/已配置群组)而非实时提供商目录。
- 默认输出为
id(有时还有name),用 tab 分隔;脚本应使用--json。
与 message send 配合
moltbot directory peers list --channel slack --query "U0"
moltbot message send --channel slack --target user:U012ABCDEF --message "hello"ID 格式(按频道)
- WhatsApp:
+15551234567(DM)、1234567890-1234567890@g.us(群组) - Telegram:
@username或数字聊天 id;群组为数字 id - Slack:
user:U…与channel:C… - Discord:
user:<id>与channel:<id> - Matrix(插件):
user:@user:server、room:!roomId:server或#alias:server - Microsoft Teams(插件):
user:<id>与conversation:<id> - Zalo(插件):用户 id(Bot API)
- Zalo Personal /
zalouser(插件):来自zca的线程 id(DM/group,me、friend list、group list)
Self(自身)
moltbot directory self --channel zalouserPeers(联系人/用户)
moltbot directory peers list --channel zalouser
moltbot directory peers list --channel zalouser --query "name"
moltbot directory peers list --channel zalouser --limit 50Groups(群组)
moltbot directory groups list --channel zalouser
moltbot directory groups list --channel zalouser --query "work"
moltbot directory groups members --channel zalouser --group-id <id>最后更新于: