Simple whatsapp api for only send message without any authentication.
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
source ~/.bashrc
nvm install --lts
git clone https://github.com/RenoXF/Whatsapp-Gateway.git
cd Whatsapp-Gateway
yarn install
ornpm install
yarn run build
ornpm run build
yarn run serve
ornpm run serve
- You must build this source code first
yarn install --production=true
ornpm install --omit=dev
yarn run serve
ornpm run serve
- then, you can setup your reverse proxy web server.
sudo apt-get install tmux
npm install -g nodemon
- type
tmux
in 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.us
and then enter - the value must be like this
[email protected][email protected]
- Your Group ID is
[email protected]
(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