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.
client.Groups.ListAsync<TResponse>(request)
Lists groups with pagination.
{ Code, Success, Data.Groups[] } with pagination when applicable.
client.Groups.GetAsync<TResponse>(request)
Gets group metadata.
{ Code, Success, Data } with group metadata (Jid, Name, Topic, participants, etc.).
client.Groups.InviteLinkAsync<TResponse>(request)
Gets or resets the invite link.
{ Code, Success, Data.InviteLink }.
With reset:
client.Groups.SetPhotoAsync<TResponse>(request)
Changes the group photo. Accepts a public URL or base64 data URL.
{ Code, Success, Data.Details } confirming the change.
client.Groups.SetNameAsync<TResponse>(request)
Changes the group name.
{ Code, Success, Data.Details } confirming the change.
client.Groups.SetDescriptionAsync<TResponse>(request)
Changes the group description.
{ Code, Success, Data.Details } confirming the change.
client.Groups.SetSettingsAsync<TResponse>(request)
Changes group settings.
{ Code, Success, Data.Details } confirming the change.
client.Groups.CreateAsync<TResponse>(request)
Creates a group with participants.
{ Code, Success, Data } with created group fields.
client.Groups.AddAdminAsync<TResponse>(request)
Promotes participants to admin.
{ Code, Success, Data.Details } confirming the change.
client.Groups.RemoveAdminAsync<TResponse>(request)
Removes admins from the group.
{ Code, Success, Data.Details } confirming the change.
