mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
add high res picture fetch
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user