Set the linked WhatsApp profile picture
set_profile_pictureChange the WhatsApp account's own profile photo from a local file path or public URL. Confirm first, since it updates instantly and is visible to all contacts.
Instructions
Set the linked WhatsApp account's own profile picture from a local path on the machine running wazap or from a public URL. Exactly one of file_path / url. JPEG, PNG or WebP only, at most 10 MB. DESTRUCTIVE and visible to every contact. Show the image and wait for a yes first. This call hits WhatsApp immediately; there is no draft.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public http(s) URL to fetch and use as the photo | |
| file_path | No | Absolute path of a local JPEG, PNG or WebP | |
| account_id | No | Registry account id (default, work, …). Omit to resolve from chat_id or message_id, or the default account. |