Ah. The thing that I'm using is running some kind of headless Chrome that runs the WhatsApp Web: https://github.com/pedroslopez/whatsapp-web.js
From what I understand this might get killed by Facebook at some point as they never approved this method.