Quick, simple script to send Whatsapp text messages directly to a contact number without having to save the contact. Can be implement in a website.
Both Mobile and Desktop browser are supported.
Demo: https://afzafri.github.io/Whatsapp-Express/
Drag and drop the files to your web
- Browse the page that host this script with your mobile phone browser
- Fill in the form and hit send.
- What this script
process.js
does is actually just executing the Whatsapp's URL Scheme. - Read:
- The URL is:
- Mobile:
- whatsapp://send?text=
MESSAGE
&phone=CONTACT
- whatsapp://send?text=
- Desktop:
- https://web.whatsapp.com/send?text=
MESSAGE
&phone=CONTACT
- https://web.whatsapp.com/send?text=
MESSAGE
= Your text message to sendCONTACT
= Your receipient contact number. MUST include with the country code (without+
sign). Ex: 60125678964
- Mobile:
- Whatsapp: https://www.whatsapp.com
- JSON List of Phone dial code for each Country Courtesy of "Goles" : https://gist.github.com/Goles/3196253
- Materialize: http://materializecss.com/
- Detect mobile browsers script: http://detectmobilebrowsers.com/
This library is under MIT license
, please look at the LICENSE file