Saturday, March 4, 2017

Send Whatsapp Message

Get Registration Code
sudo yowsup-cli registration --requestcode sms --phone xx --cc 60 --mcc 502 --mnc 12
Get MMC: http://mcc-mnc.com/

Register
sudo yowsup-cli registration --register 000000 --phone xx --cc 60

CLI - Send Messsage
sudo yowsup-cli demos -l xx:pp -s 60165366568 "Test message"

PyWhatsapp - Send Message

from whatsapp import Client

phone_to = 'xxx'

client = Client(login='xx', password='pp')
client.send_message(phone_to, 'This is message 1')
client.send_media(phone_to, path='pathpathpath')


1 comment:

  1. This is really informative that the way you describe I’ll really appreciated your work.hope i’ll come back to get some more information . API Send Whatsapp Message

    ReplyDelete