Free partial implementation of https://chat-api.com
- accepting file from replica instance to odoo is not implemented
- sending file from odoo to replica instance is not implemented
- Create whatsapp account. It will be used as a bot
- Clone this repo and dependencies:
git clone https://github.com/itpp-labs/whatsapp-api.git
git clone https://github.com/itpp-labs/whatsapp-api-service.git
cd whatsapp-api-service
- Run:
docker-compose up -d firefox
- Using VNC client connect to 127.0.0.1:5900. Password is
secret
. Note, if you are running this on remote machine, consider to make SSH tunnel to that machine:
ssh -L 5900:127.0.0.1:5900 user@your_server
In VNC client run:
firefox -P
Press
Create Profile
->Next
-> Enter any profile name -> PressFinish
Choose new created profile and press
Start Firefox
In address bar enter
https://web.whatsapp.com
Scan QR code
In address bar enter
http://127.0.0.1:5000/admin
Choose profile, that you have created some steps ago
Press "Generate access token"
Use this access token to access it's api
In VNC client run to disable screen saver:
echo "xset -dpms s off" >> ~/.fluxbox/startup