client.groups() for listing, metadata, invite links, settings, and group admin actions.
Common fields on every call:
| Field | Type | Required | Description |
|---|---|---|---|
instanceId | string | Yes | Instance ID. |
instanceToken | string | Yes | Instance token. |
groupId in the payload.
client.groups().list(...)
Lists groups with pagination.
{ code, success, data.groups[] } with pagination when applicable.
client.groups().get(...)
Gets group metadata.
{ code, success, data } with group metadata (jid, name, topic, participants, etc.).
client.groups().inviteLink(...)
Gets or resets the invite link.
{ code, success, data.invite_link }.
With reset:
client.groups().setPhoto(...)
Changes the group photo. Accepts a public URL or base64 data URL.
{ code, success, data.details } confirming the change.
client.groups().setName(...)
Changes the group name.
{ code, success, data.details } confirming the change.
client.groups().setDescription(...)
Changes the group description.
{ code, success, data.details } confirming the change.
client.groups().setSettings(...)
Changes group settings.
{ code, success, data.details } confirming the change.
client.groups().create(...)
Creates a group with participants.
{ code, success, data } with created group fields.
client.groups().addAdmin(...)
Promotes participants to admin.
{ code, success, data.details } confirming the change.
client.groups().removeAdmin(...)
Removes admins from the group.
{ code, success, data.details } confirming the change.
