From 4431a669ceedf2c77be905eaf3f6913d0005ed5d Mon Sep 17 00:00:00 2001 From: Nur Muhammad Date: Mon, 11 Jan 2021 08:40:22 +0800 Subject: [PATCH] Update readme.md --- readme.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index f114608..6e3ebe0 100644 --- a/readme.md +++ b/readme.md @@ -3,6 +3,7 @@ Hi, this is the implementation example of whatsapp-web.js Watch the tutorials: + - Whatsapp API Tutorial: Part 1 - Whatsapp API Tutorial: Part 2 - Whatsapp API Tutorial: Tips & Tricks @@ -12,22 +13,26 @@ Watch the tutorials: - Whatsapp API Tutorial: Multiple Device | Part 2 ### How to use? + - Clone or download this repo - Enter to the project directory - Run `npm install` -- Run `npm run start` +- Run `npm run start:dev` - Open browser and go to address `http://localhost:8000` - Scan the QR Code - Enjoy! ### Notes + As mentioned in the video above, you have to install `nodemon` to run the start script. You can install nodemon globally with `npm i -g nodemon` command. ### Send message to group + I was added an example to send a message to groups, but before that we must know the group ID (chat ID). Don't worry, I also add the functionality to help you to get that groups ID. Here the way to get the groups info (including ID & name): + - Send a message to the API number `!groups` - The API will replying with the groups info - Use the ID to send a message -- Here the endpoint: `/send-group-message` \ No newline at end of file +- Here the endpoint: `/send-group-message`