vault backup: 2025-02-13 09:47:21

Affected files:
Haina/分享&培训/Untitled.md
main
Lei OT 5 months ago
parent 7975f052c8
commit e5ceb210a7

@ -0,0 +1,29 @@
``` ts
await sock.sendPresenceUpdate('available', id)
```
This lets the person/group with ``` id ``` know whether you're online, offline, typing etc.
``` presence ``` can be one of the following:
``` ts
type WAPresence = 'unavailable' | 'available' | 'composing' | 'recording' | 'paused'
```
The presence expires after about 10 seconds.
**Note:** In the multi-device version of WhatsApp -- if a desktop client is active, WA doesn't send push notifications to the device. If you would like to receive said notifications -- mark your Baileys client offline using `sock.sendPresenceUpdate('unavailable')`
Loading…
Cancel
Save