/whatsapp-api-service

Primary LanguagePythonMIT LicenseMIT

Replica Chat API

Free partial implementation of https://chat-api.com

Known issues

  • accepting file from replica instance to odoo is not implemented
  • sending file from odoo to replica instance is not implemented

Configuration

  1. Create whatsapp account. It will be used as a bot
  2. Run:
docker-compose up -d firefox
  1. 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

  2. In VNC client run:

    firefox -P

  3. Press Create Profile -> Next -> Enter any profile name -> Press Finish

  4. Choose new created profile and press Start Firefox

  5. In address bar enter https://web.whatsapp.com

  6. Scan QR code

  7. In address bar enter http://127.0.0.1:5000/admin

  8. Choose profile, that you have created some steps ago

  9. Press "Generate access token"

  10. Use this access token to access it's api