Chat Modification
chatModify
Modify chat settings such as archive, pin, mute, mark read, etc.The modification to apply (see examples below)
The chat JID (use empty string for global settings)
Applies the modification via app state patch
Archive/Unarchive Chat
Pin/Unpin Chat
Mute/Unmute Chat
Mark Read/Unread
Clear Chat
Delete Chat
Message Operations
readMessages
Mark messages as read.Array of message keys to mark as read
star
Star or unstar messages.The chat JID
Array of message identifiers
Whether to star (true) or unstar (false)
Presence Management
sendPresenceUpdate
Update your presence status in a chat.Presence type:
'unavailable', 'available', 'composing', 'recording', or 'paused'The chat JID (required for composing/recording/paused states)
presenceSubscribe
Subscribe to presence updates for a user.The user JID to subscribe to
Profile Management
updateProfilePicture
Update your profile picture or a group’s picture.Your JID or the group JID
The image file (Buffer, path, or URL)
Optional dimensions for the image
removeProfilePicture
Remove your profile picture or a group’s picture.Your JID or the group JID
updateProfileStatus
Update your profile status/about.The new status text
updateProfileName
Update your profile name.The new profile name
profilePictureUrl
Fetch the profile picture URL for a user or group.The user or group JID
preview: Low resolution pictureimage: High resolution picture
Optional timeout in milliseconds
Returns the profile picture URL
Status & Business
fetchStatus
Fetch the status/about of one or more users.Array of user JIDs
Returns array of status information
getBusinessProfile
Get the business profile for a WhatsApp Business account.The business account JID
Returns the business profile with:
wid: WhatsApp IDdescription: Business descriptionwebsite: Website URLsemail: Contact emailcategory: Business categoryaddress: Business addressbusiness_hours: Operating hours
Contacts
addOrEditContact
Add or update a contact.The contact JID
The contact information
removeContact
Remove a contact.The contact JID
Labels
addLabel
Create a new label.Empty string for creating labels
The label information
addChatLabel
Add a label to a chat.The chat JID
The label ID to add
removeChatLabel
Remove a label from a chat.The chat JID
The label ID to remove
addMessageLabel
Add a label to a message.The chat JID
The message ID
The label ID to add
removeMessageLabel
Remove a label from a message.The chat JID
The message ID
The label ID to remove
Quick Replies
addOrEditQuickReply
Add or edit a quick reply message.The quick reply data
removeQuickReply
Remove a quick reply.The timestamp of the quick reply to remove
Utilities
fetchDisappearingDuration
Fetch the default disappearing message duration for users.Array of user JIDs
Returns array of disappearing message settings
updateDefaultDisappearingMode
Update your default disappearing message duration.Duration in seconds (0 to disable)
updateDisableLinkPreviewsPrivacy
Enable or disable link previews.Whether to disable link previews
cleanDirtyBits
Clean dirty bits for account sync or groups.The type of dirty bits to clean
Optional timestamp to clean from