Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 708 Bytes

File metadata and controls

26 lines (18 loc) · 708 Bytes

profile

Read when: setting the profile picture for the authenticated WhatsApp account.

wacli profile manages account-level WhatsApp profile settings for the linked account.

Command

wacli profile set-picture <image>

Notes

  • set-picture requires authentication, a live connection, and writable mode.
  • Input can be JPEG or PNG.
  • PNG transparency is flattened onto a white background before upload.
  • Images larger than 640 px on either side are resized before upload.
  • The command prints the picture ID returned by WhatsApp; use --json for machine-readable output.

Examples

wacli profile set-picture ./avatar.jpg
wacli profile set-picture ./avatar.png --json