Skip to main content

Update profile status

Change your WhatsApp status message (the text that appears below your name).
await sock.updateProfileStatus('Hello World!')
status
string
required
The new status message to display on your profile

Update profile name

Change your display name on WhatsApp.
await sock.updateProfileName('My name')
name
string
required
The new name to display on your profile

Update profile picture

Change your display picture or a group’s display picture.
await sock.updateProfilePicture(jid, { url: './new-profile-picture.jpeg' })
jid
string
required
The JID of the user or group whose picture to update
content
WAMediaUpload
required
The image to use as the new profile picture. Can be:
  • { url: string } - URL or file path to the image
  • { stream: Stream } - Readable stream of the image
  • Buffer - Raw image data
dimensions
object
Optional dimensions for the image
width
number
Image width in pixels
height
number
Image height in pixels
Like media messages, you can pass { stream: Stream } or { url: Url } or Buffer directly. See WAMediaUpload for more details.

Remove profile picture

Remove your display picture or a group’s display picture.
await sock.removeProfilePicture(jid)
jid
string
required
The JID of the user or group whose picture to remove

Build docs developers (and LLMs) love