Baileys API icon

Baileys API

Interact with Baileys API Manager

Grupo → Sair Do Grupo

AI-generated

Summary

Makes the Baileys bot leave the specified group.

Inputs

  • instanceName (required) — Nome da instância Baileys a usar.
  • groupJid (required) — ID do grupo (JID) do WhatsApp do qual o bot sairá.

Output shape

A JSON array containing the API response from the leave-group endpoint.

Both parameters are required strings as declared in the node's properties. The execute function reads them via getNodeParameter and passes them to the underlying Baileys operation function, then returns the result wrapped in an array via returnJsonArray.

Examples

Example 1: Leave a group named 'My Group' with JID '1203631234567890@g.us' using instance 'myInstance'.

instanceName: 'myInstance', groupJid: '1203631234567890@g.us'

Discussion