Profile management functions aligned with Baileys chats.ts.
Summary
Functions
Fetch profile status text for one or more JIDs via USync.
Fetch the business profile for a given JID.
Fetch the profile-picture URL for a user or group.
Remove the profile picture for yourself or a group.
Update the display name via the Baileys pushNameSetting app-state patch.
Update the profile picture for yourself or a group.
Update the profile status text for the current account.
Types
Functions
Fetch profile status text for one or more JIDs via USync.
Fetch the business profile for a given JID.
@spec picture_url(term(), String.t(), picture_type(), keyword()) :: {:ok, String.t() | nil} | {:error, term()}
Fetch the profile-picture URL for a user or group.
@spec remove_picture(term(), String.t(), keyword()) :: {:ok, BaileysEx.BinaryNode.t()} | {:error, term()}
Remove the profile picture for yourself or a group.
Update the display name via the Baileys pushNameSetting app-state patch.
@spec update_picture(term(), String.t(), term(), map() | nil, keyword()) :: {:ok, BaileysEx.BinaryNode.t()} | {:error, term()}
Update the profile picture for yourself or a group.
Mirrors Baileys updateProfilePicture. The image bytes are obtained from
opts[:picture_generator] when supplied. Without a generator, the function
returns an explicit dependency error rather than silently inventing a local
transform.
@spec update_status(term(), String.t(), keyword()) :: {:ok, BaileysEx.BinaryNode.t()} | {:error, term()}
Update the profile status text for the current account.