wacli
Use wacli only when the user explicitly asks you to message someone on WhatsApp or to sync/search WhatsApp history.
Safety
- Require explicit recipient + message text.
- Confirm recipient + message before sending.
Auth + sync
wacli auth(QR login + initial sync)wacli sync --follow(continuous sync)wacli doctor
Find chats + messages
wacli chats list --limit 20 --query "name or number"wacli messages search "query" --limit 20 --chat <jid>
Send
- Text:
wacli send text --to "+14155551212" --message "Hello!" - File:
wacli send file --to "+14155551212" --file /path/agenda.pdf --caption "Agenda"
Notes
- Store dir:
~/.wacli(override with--store). - Use
--jsonfor machine-readable output.