Join a WhatsApp group from an invite
join_groupPreview a WhatsApp group from an invite link or invite message, then confirm to join and get the chat ID or pending approval status.
Instructions
Join a group from an invite: a link (https://chat.whatsapp.com/, or the code alone) as invite, or the message_id of an invite message someone sent (type "invite"). Exactly one of invite / message_id.
Without confirm: true it joins nothing and returns the group's name, description, member count and whether an admin must approve new members. Show that to the user and wait for an explicit yes, then call again with the same invite or message_id and confirm: true. Every member sees the account join. The answer is the group's chat_id, or pending_approval when an admin must let the account in first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invite | No | A https://chat.whatsapp.com/ link, or its code | |
| confirm | No | true joins, only after the user said yes to the preview; omit to preview | |
| account_id | No | Registry account id (default, work, …). Omit to resolve from chat_id or message_id, or the default account. | |
| message_id | No | An invite message (type "invite") from read_messages |