mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Fixed promise bug
This commit is contained in:
@@ -134,7 +134,7 @@ Baileys is super easy to use:
|
||||
* To check if a given ID is on WhatsApp
|
||||
``` javascript
|
||||
client.isOnWhatsApp ("xyz@c.us")
|
||||
.then ((exists, id) => console.log(id + (exists ? " exists " : " does not exist") + "on WhatsApp"))
|
||||
.then (([exists, id]) => console.log(id + (exists ? " exists " : " does not exist") + "on WhatsApp"))
|
||||
```
|
||||
* To query chat history on a group or with someone
|
||||
``` javascript
|
||||
|
||||
Reference in New Issue
Block a user