Skip to content

Simple basic usage whatsapp bot to send message using express.js

Notifications You must be signed in to change notification settings

Yudas1337/whatsapp-bot-js

Repository files navigation

Whatsapp Bot Js

Just a basic usage whatsapp bot to send simple message using express.js

Technologies :

  • "dotenv": "^16.0.3"
  • "express": "^4.18.2"
  • "express-basic-auth": "^1.2.1"
  • "http": "^0.0.1-security"
  • "nodemon": "^2.0.20"
  • "qrcode": "^1.5.1"
  • "qrcode-terminal": "^0.12.0"
  • "socket.io": "^4.6.0"
  • "whatsapp-web.js": "^1.19.3"

Basic Usage :

  1. git clone https://github.com/Yudas1337/whatsapp-bot-js.git

  2. rename file .env.example to .env

  3. run npm install

  4. run nodemon index.js

  5. the service is running now open http://localhost:8000

  6. enter the username and password for the basic auth. You can change it in .env file.

  7. you will be redirected to main page, whatsapp will generate a qr code. Scan it using whatsapp mobile apps.

  8. wait for moment until your whatsapp connected automatically, if fail just restart the service and try again.

  9. Now, let's test it using postman. Click send button.

  10. The success response will be like below. And do not forget to add basic authorization headers.

  11. As you can see here, the message sent successfully to receiver.

There are more features from this library. You can get it here.. https://github.com/pedroslopez/whatsapp-web.js/

About

Simple basic usage whatsapp bot to send message using express.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published