playing with whatsapp api
Whatsapp is a realy popular instatnt messaging platform. but unlike many other platforms - this platform is realy bounded to a phone and phone number, in the last year they enabled
Today I played a little bit with whatsapp, and found few url’s (web addresses) to play and interact with whatsapp. Each url has two forms: one that looks like a web address, and the other is in the form of whatsapp://command. The official commands are documented in whatsapp click to chat help page, but some aren’t documented there - and can be found here.
|command||whatsapp - web link||whatsapp - direct link||whatsapp web link|
|Just open the app||https://api.whatsapp.com/||whatsapp://chat||https://web.whatsapp.com|
|open chat||https://api.whatsapp.com/send?phone=316123456||whatsapp://send? phone=972526783413||https://web.whatsapp.com/send?phone=316123456|
|open chat with text||https://api.whatsapp.com/send?phone=316123456&text=I’m%20interested%20in%20your%20car%20for%20sale||whatsapp://send? phone=972526783413 &text=I’m interested in your car for sale||https://web.whatsapp.com/send?phone=316123456&text=I’m%20interested%20in%20your%20car%20for%20sale|
|open or join group||https://chat.whatsapp.com/1uOhVhVGhdOHuGZ9Lckxkp ||whatsapp://chat? code=1uOhVhVGhdOHuGZ9Lckxkp||can’t find one|
Few more resources:
A. to create more costumised url’s (e,g: https://whatsapp.oodi.co.il/), use this tool (haven’t tested).
D. apiwha seems to have a public api to integrate whatsapp with other tools, it seems they reversed whatsapp web protocol - and you can get some functionality from it.
G. projects that seems maintained:
franz - multi messaging desktop app (this is the only desktop project here that not seems to depend on selenium!)
Whatsapp Spammer - uses autogui (instead of selenium)
 to use this links in your website, use the following html code:
<a href="whatsapp://chat">click me</a>
 to get the group code (like
1uOhVhVGhdOHuGZ9Lckxkp in this example), look at the group invite link. keep in mind that the links are going to expire with the invite link!