client.Groups for WhatsApp group operations on an instance.
Common fields on every call:
| Field | Type | Required | Description |
|---|---|---|---|
InstanceID | string | Yes | Instance ID. |
InstanceToken | string | Yes | Instance token. |
GroupID in the payload.
Groups.List(ctx, req)
Lists groups with pagination.
{ code, success, data.groups[] } with pagination when applicable.
Groups.Get(ctx, req)
Gets group metadata.
{ code, success, data } with group metadata (jid, name, topic, participants, etc.).
Groups.InviteLink(ctx, req)
Gets or resets the invite link.
{ code, success, data.invite_link }.
With reset:
Groups.SetPhoto(ctx, req)
Changes the group photo. Accepts a public URL or base64 data URL.
{ code, success, data.details } confirming the change.
Groups.SetName(ctx, req)
Changes the group name.
{ code, success, data.details } confirming the change.
Groups.SetDescription(ctx, req)
Changes the group description.
{ code, success, data.details } confirming the change.
Groups.SetSettings(ctx, req)
Changes group settings.
{ code, success, data.details } confirming the change.
Groups.Create(ctx, req)
Creates a group with participants.
{ code, success, data } with created group fields.
Groups.AddAdmin(ctx, req)
Promotes participants to admin.
{ code, success, data.details } confirming the change.
Groups.RemoveAdmin(ctx, req)
Removes admins from the group.
{ code, success, data.details } confirming the change.
