add high res picture fetch

This commit is contained in:
Adhiraj Singh
2021-10-23 10:07:55 +05:30
parent 466cb614e6
commit d0b11dadbf
2 changed files with 10 additions and 4 deletions

View File

@@ -496,8 +496,11 @@ await conn.sendMessage(
```
- To get the display picture of some person/group
``` ts
// for low res picture
const ppUrl = await conn.profilePictureUrl("xyz@g.us")
console.log("download profile picture from: " + ppUrl)
// for high res picture
const ppUrl = await conn.profilePictureUrl("xyz@g.us", 'image')
```
- To change your display picture or a group's
``` ts