Automatically discover WhatsApp groups the bot participates in by reading Baileys session cache files.
exec({ cmd: "node <skill_dir>/scripts/groups.js COMMAND [ARGS]" })
exec({ cmd: "node <skill_dir>/scripts/groups.js list" })
exec({ cmd: "node <skill_dir>/scripts/groups.js search \"Marketing\"" })
exec({ cmd: "node <skill_dir>/scripts/groups.js get-id \"Support\"" })
exec({ cmd: "node <skill_dir>/scripts/groups.js sync" })
Commands return JSON with group information:
{
"total": 3,
"groups": [
{
"id": "5551XXXXXXXX-TIMESTAMP@g.us",
"name": "Team Chat",
"isActive": true
}
]
}
共 1 个版本