I am working on sending messages from RasPi through Whatsapp. I have already installed yowsup
.
I have completed with the registration process using the following commands, and have stored it in a config file:
python yowsup-cli registration --requestcode sms --phone 39xxxxxxxxxx --cc 39 --mcc 222 --mnc 10
python yowsup-cli registration --register xxx-xxx --phone 39xxxxxxxxxx --cc 39
I am also able to send and receive messages from RasPi using the yowsup
command-line client using the following command:
yowsup-cli demos --yowsup --config config
But when I type the following command:
python yowsup-cli -c config -w -s 39xxxxxxxxxx "Message"
I get the following error:
Available commands are
demos versions registration
How can I directly send a message through a Python script, without going through the client?