GithubHelp home page GithubHelp logo

yudas1337 / whatsapp-bot-js Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 68 MB

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

JavaScript 63.85% HTML 34.15% Shell 2.01%
express node-js whatsapp-bot whatsapp-web-js

whatsapp-bot-js's Introduction

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/

whatsapp-bot-js's People

Contributors

yudas1337 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.