Bailey (WhatsApp) icon

Bailey (WhatsApp)

Interact with WhatsApp via Baileys WebSocket API

Actions122

Group → Revoke Invite Code

AI-generated

Summary

Revoke a WhatsApp group’s invite code and return the replacement code and invite link. Provide the group’s JID, such as 123456789@g.us.

Inputs

  • jid (required) — Group JID to revoke the invite code for (for example, 123456789@g.us).

Output shape

A single item with a JSON object containing code and link.

code is the code returned by WhatsApp, or null if none is returned. link is https://chat.whatsapp.com/<code>, or null when there is no code. Revoking regenerates the invite link, so the previous link is replaced.

Links

Discussion