Connect and send messages as a whatsapp client directly from command line, this is only for experimental use.
npm i -g whats-cli
git clone https://github.com/jsdaniell/whats-cli.git
cd whats-cli
go install
whats-cli connect-qr
Download the release file of your system type on the Releases Page.
cd {downloadedRelease}
./whats-cli connect-qr
whats-cli connect-qr "sessionID"
whats-cli connect "sessionID"
whats-cli send "number" "message" "sessionID"
Sometimes if you want to reset the stored session you can erase the whatsappSession.gob
file, what's generated locally when logging a session.
rm whatsappSession-{sessionID}.gob