Simple whatsapp api for only send message without any authentication.
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bashsource ~/.bashrcnvm install --lts
git clone https://github.com/GMDP-Developers/Whatsapp-Gateway.gitcd Whatsapp-Gatewayyarn installornpm installyarn run buildornpm run buildyarn run serveornpm run serve
- You must build this source code first
yarn install --production=trueornpm install --omit=devyarn run serveornpm run serve- then, you can setup your reverse proxy web server.
sudo apt-get install tmuxnpm install -g nodemon- type
tmuxin terminal to run terminal session - make sure you are in the directory Whatsapp-Gateway
- run script with nodemon
nodemon start
- run in new terminal
tmux attach -t 0
- open https://web.whatsapp.com/
- open the Group Profile
- on your keyboard press CTRL + SHIFT + I (Developer Tools / Inspect Element)
- go to Elements TAB
- find value with press CTRL + F
- type
@g.usand then enter - the value must be like this
false_123456789xxx@g.us_BAE5AB1xxxx_62xxxxx@c.us - Your Group ID is
123456789xxx@g.us(just the number)
-
Scan QR Code
if you use local PC. typelocalhost:3000/qrcode
and if you use VPS. type(ip address):3000/qrcode -
Send Message
if you use local PC. typelocalhost:3000/sendMessage?number=(number phone or group id)&message=TEST
and if you use VPS. type(ip address):3000/sendMessage?number=(number phone or group id)&message=TEST