mirror of
https://github.com/cheveguerra/whatsapp-api-tutorial.git
synced 2026-04-18 03:39:27 +00:00
Update readme.md
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
Hi, this is the implementation example of <a href="https://github.com/pedroslopez/whatsapp-web.js">whatsapp-web.js</a>
|
Hi, this is the implementation example of <a href="https://github.com/pedroslopez/whatsapp-web.js">whatsapp-web.js</a>
|
||||||
|
|
||||||
Watch the tutorials:
|
Watch the tutorials:
|
||||||
|
|
||||||
- <a href="https://youtu.be/IRRiN2ZQDc8">Whatsapp API Tutorial: Part 1</a>
|
- <a href="https://youtu.be/IRRiN2ZQDc8">Whatsapp API Tutorial: Part 1</a>
|
||||||
- <a href="https://youtu.be/hYpRQ_FE1JI">Whatsapp API Tutorial: Part 2</a>
|
- <a href="https://youtu.be/hYpRQ_FE1JI">Whatsapp API Tutorial: Part 2</a>
|
||||||
- <a href="https://youtu.be/uBu7Zfba1zA">Whatsapp API Tutorial: Tips & Tricks</a>
|
- <a href="https://youtu.be/uBu7Zfba1zA">Whatsapp API Tutorial: Tips & Tricks</a>
|
||||||
@@ -12,21 +13,25 @@ Watch the tutorials:
|
|||||||
- <a href="https://youtu.be/Cq8ru8iKAVk">Whatsapp API Tutorial: Multiple Device | Part 2</a>
|
- <a href="https://youtu.be/Cq8ru8iKAVk">Whatsapp API Tutorial: Multiple Device | Part 2</a>
|
||||||
|
|
||||||
### How to use?
|
### How to use?
|
||||||
|
|
||||||
- Clone or download this repo
|
- Clone or download this repo
|
||||||
- Enter to the project directory
|
- Enter to the project directory
|
||||||
- Run `npm install`
|
- Run `npm install`
|
||||||
- Run `npm run start`
|
- Run `npm run start:dev`
|
||||||
- Open browser and go to address `http://localhost:8000`
|
- Open browser and go to address `http://localhost:8000`
|
||||||
- Scan the QR Code
|
- Scan the QR Code
|
||||||
- Enjoy!
|
- Enjoy!
|
||||||
|
|
||||||
### Notes
|
### 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.
|
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
|
### 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.
|
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):
|
Here the way to get the groups info (including ID & name):
|
||||||
|
|
||||||
- Send a message to the API number `!groups`
|
- Send a message to the API number `!groups`
|
||||||
- The API will replying with the groups info
|
- The API will replying with the groups info
|
||||||
- Use the ID to send a message
|
- Use the ID to send a message
|
||||||
|
|||||||
Reference in New Issue
Block a user