vault backup: 2025-02-13 15:52:22
Affected files: Haina/Weekly/2024/2024-W33.md Haina/Weekly/2024/2024-W45.md Haina/分享&培训/Untitled.md Haina/项目/GHH/价格平台/WebHT 二期.mdmain
parent
e5ceb210a7
commit
8cf3d29649
@ -1,29 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
``` 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…
Reference in New Issue