2

Anyone implemented WhatsApp integration with odoo, by using yowsup library, we can send message to whatsapp from terminal...If anyone successfully implemented, please help me to implement.

Abdul Rahman
  • 29
  • 1
  • 3

1 Answers1

0

Requires Python 2.6+, or Python 3.0+

Required Python packages: python-dateutil

Required Python packages for yowsup-cli: argparse

sudo pip install yowsup2

sudo pip install pywhatsapp

(registering your mobile number)

yowsup-cli registration --requestcode sms --phone 49XXXXXXXX --cc 49 --mcc 123 --mnc 456

yowsup-cli registration --register 123456 --phone 49XXXXXXXX --cc 49

(after registration you received password on your screen)

Python script

from whatsapp import Client

phone_to = '9194xxxxxxxx'
client = Client(login='9188xxxxxxxx', password='secretpasswordbase64')
client.send_message(phone_to, 'Hello world')
client.send_media(phone_to, path='/home/synconics/Downloads/test.3gp')
sagar soni
  • 61
  • 8