Change profile status for yourself (#1796)

* Update README.md

* Update chats.ts

* Update chats.ts
This commit is contained in:
Pedro Dias
2022-07-01 08:27:04 -03:00
committed by GitHub
parent d00aed7ff5
commit a2054d8efa
2 changed files with 26 additions and 1 deletions

View File

@@ -688,6 +688,11 @@ await sock.sendMessage(
const status = await sock.fetchStatus("xyz@s.whatsapp.net")
console.log("status: " + status)
```
- To change your profile status
``` ts
const status = 'Hello World!'
await sock.updateProfileStatus(status)
```
- To get the display picture of some person/group
``` ts
// for low res picture