Group Information
groupMetadata
Fetch the metadata for a group.The JID of the group
Returns the group metadata including:
id: Group JIDsubject: Group namecreation: Creation timestampowner: Group creator JIDparticipants: Array of group membersdesc: Group descriptionannounce: Whether only admins can send messagesrestrict: Whether only admins can edit group info- And more properties
groupFetchAllParticipating
Fetch all groups you are participating in.Returns an object mapping group JIDs to their metadata
Group Creation & Management
groupCreate
Create a new WhatsApp group.The name of the group
Array of participant JIDs to add to the group
Returns the metadata of the newly created group
groupLeave
Leave a group.The group JID to leave
groupUpdateSubject
Update the group name/subject.The group JID
The new group name
groupUpdateDescription
Update the group description.The group JID
The new description, or undefined to remove it
Participant Management
groupParticipantsUpdate
Add, remove, promote, or demote group participants.The group JID
Array of participant JIDs to modify
The action to perform:
'add', 'remove', 'promote', or 'demote'Returns an array of results for each participant with status code and JID
groupRequestParticipantsList
Get list of users requesting to join the group (when join approval is enabled).The group JID
Returns an array of participant objects with their JIDs
groupRequestParticipantsUpdate
Approve or reject participant join requests.The group JID
Array of participant JIDs to approve or reject
Whether to approve or reject the requests
Returns an array of results for each participant
Group Settings
groupSettingUpdate
Update group settings for announcements or edit permissions.The group JID
announcement: Only admins can send messagesnot_announcement: All members can send messageslocked: Only admins can edit group infounlocked: All members can edit group info
groupToggleEphemeral
Enable or disable disappearing messages in a group.The group JID
Expiration duration in seconds (e.g., 86400 for 24 hours), or 0 to disable
groupMemberAddMode
Control who can add members to the group.The group JID
admin_add: Only admins can add membersall_member_add: All members can add members
groupJoinApprovalMode
Enable or disable join approval mode for the group.The group JID
Whether to enable or disable join approval
Group Invites
groupInviteCode
Get the invite code for a group.The group JID
Returns the group invite code
groupRevokeInvite
Revoke the current invite code and generate a new one.The group JID
Returns the new invite code
groupAcceptInvite
Join a group using an invite code.The group invite code
Returns the JID of the joined group
groupGetInviteInfo
Get information about a group from its invite code without joining.The group invite code
Returns the group metadata
groupAcceptInviteV4
Accept a v4 group invite message.The message key or JID of the person who sent the invite
The group invite message object
Returns the group JID
groupRevokeInviteV4
Revoke a v4 invite for a specific person.The group JID
The JID of the person whose invite to revoke
Returns true if successful