TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/wppconnect-team/wa-js/llms.txt
Use this file to discover all available pages before exploring further.
WPP.community module provides access to WhatsApp Communities — a meta-group structure that links multiple groups under a single umbrella. Every community has one auto-generated announcement group that broadcasts updates to all members, plus any number of subgroups that members join individually. Community IDs use the same @g.us format as regular groups.
Communities are distinct from groups. A community’s ID (
@g.us) is the parent container. Its subgroups and announcement group each have their own @g.us IDs. Functions in WPP.group continue to work on community subgroups — WPP.community adds the cross-group coordination layer.WPP.community.create(name, desc, subGroupsIds)
Creates a new community with a name and description, then immediately links the given groups as subgroups.
The community name shown to all members.
A description for the community.
One or more existing group
@g.us WIDs to link as subgroups at creation time.WPP.community.deactivate(communityId)
Permanently deactivates (deletes) a community. Subgroups continue to exist as standalone groups after deactivation.
The
@g.us WID of the community to deactivate.WPP.community.addSubgroups(parentGroupId, subgroupIds)
Links one or more existing groups into a community.
The
@g.us WID of the community (parent group).One or more
@g.us WIDs of groups to link.WPP.community.removeSubgroups(parentGroupId, subgroupIds)
Unlinks one or more subgroups from a community. The groups themselves are not deleted — they become standalone groups again.
The
@g.us WID of the community.One or more
@g.us WIDs of subgroups to unlink.WPP.community.getSubgroups(communityId)
Returns the WIDs of all subgroups (including the announcement group) linked to a community. You can pass either the community’s own ID or the ID of any subgroup within it.
The
@g.us WID of the community or any of its linked subgroups.GroupMetadataStore and throws WPPError('group_not_exist') if the community metadata is not loaded.
WPP.community.getAnnouncementGroup(communityId)
Returns the WID of the community’s announcement group, or undefined if it cannot be found in the local store.
The
@g.us WID of the community or any of its linked subgroups.groupType === 'LINKED_ANNOUNCEMENT_GROUP'. Only admins can post to it; all community members receive its messages.
WPP.community.getParticipants(communityId)
Returns all participants across the entire community (aggregated from the announcement group).
The
@g.us WID of the community.WPP.community.promoteParticipants(communityId, participantsIds)
Promotes one or more community members to community admin.
The
@g.us WID of the community.One or more
@c.us WIDs to promote.WPP.community.demoteParticipants(communityId, participantsIds)
Removes admin status from one or more community participants.
The
@g.us WID of the community.One or more
@c.us WIDs to demote.How communities differ from groups
Structure
Structure
A community is a parent container with a mandatory announcement group and optional linked subgroups. Regular groups are flat — no hierarchy.
Membership
Membership
Joining a community’s announcement group makes you a community member. You can additionally join individual subgroups within the community. Subgroup membership is independent — you do not need to be in all subgroups to be a community member.
Admin scope
Admin scope
Community admins (set via
WPP.community.promoteParticipants) have admin rights across the entire community structure. Subgroup admins (set via WPP.group.promoteParticipants) only have admin rights in their specific group.Announcements
Announcements
Only community admins can post to the announcement group. All community members — even those not in a particular subgroup — receive announcement-group messages.