mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
docs: fix presence.update event in the example (#127)
This commit is contained in:
@@ -758,7 +758,7 @@ await sock.sendMessage(
|
||||
- To get someone's presence (if they're typing or online)
|
||||
``` ts
|
||||
// the presence update is fetched and called here
|
||||
sock.ev.on('presence-update', json => console.log(json))
|
||||
sock.ev.on('presence.update', json => console.log(json))
|
||||
// request updates for a chat
|
||||
await sock.presenceSubscribe("xyz@s.whatsapp.net")
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user