Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(sdk): list memberAddMode in the group settings docs

Yudhi Armyndharisc243ed5a4323
diff --git a/sdk/go/groups.go b/sdk/go/groups.go
index b3db82a58..218758e2e 100644
--- a/sdk/go/groups.go
+++ b/sdk/go/groups.go
@@ -65,8 +65,8 @@ func (s *GroupsService) JoinGroup(ctx context.Context, sessionID string, body Jo
return &out, nil
}
-// GetGroupSettings returns the group's announce / locked / ephemeral-timer
-// settings.
+// GetGroupSettings returns the group's announce / locked / ephemeral-timer /
+// member-add-mode settings.
func (s *GroupsService) GetGroupSettings(ctx context.Context, sessionID, groupID string) (*GroupSettings, error) {
var out GroupSettings
err := s.client.do(ctx, "GET", s.base(sessionID)+"/"+pathEscape(groupID)+"/settings", nil, nil, &out)
diff --git a/sdk/java/src/main/java/com/rmyndharis/openwa/resources/GroupsResource.java b/sdk/java/src/main/java/com/rmyndharis/openwa/resources/GroupsResource.java
index 7510cda4d..dc75da224 100644
--- a/sdk/java/src/main/java/com/rmyndharis/openwa/resources/GroupsResource.java
+++ b/sdk/java/src/main/java/com/rmyndharis/openwa/resources/GroupsResource.java
@@ -148,7 +148,7 @@ public final class GroupsResource {
SuccessResult.class);
}
- /** Get the group settings (announce / locked / ephemeral timer). */
+ /** Get the group settings (announce / locked / ephemeral timer / member-add mode). */
public GroupSettings getGroupSettings(String sessionId, String groupId) {
return client.request(
HttpMethod.GET,
diff --git a/sdk/javascript/src/resources/groups.ts b/sdk/javascript/src/resources/groups.ts
index 71b6a559c..9308a74d0 100644
--- a/sdk/javascript/src/resources/groups.ts
+++ b/sdk/javascript/src/resources/groups.ts
@@ -140,7 +140,7 @@ export class GroupsResource {
});
}
- /** Get the group settings (announce / locked / ephemeral timer). */
+ /** Get the group settings (announce / locked / ephemeral timer / member-add mode). */
getGroupSettings(sessionId: string, groupId: string): Promise<GroupSettingsResponse> {
return this.client.request<GroupSettingsResponse>({
method: 'GET',
diff --git a/sdk/python/openwa/resources/groups.py b/sdk/python/openwa/resources/groups.py
index 3b6bc0692..b656b877f 100644
--- a/sdk/python/openwa/resources/groups.py
+++ b/sdk/python/openwa/resources/groups.py
@@ -131,13 +131,13 @@ class GroupsResource:
return self._http.request("POST", f"/api/sessions/{quote_segment(session_id)}/groups/join", body=body)
def get_group_settings(self, session_id: str, group_id: str) -> GroupSettings:
- """Read the group's announce/locked/ephemeral settings."""
+ """Read the group's announce/locked/ephemeral/memberAddMode settings."""
return self._http.request(
"GET", f"/api/sessions/{quote_segment(session_id)}/groups/{quote_segment(group_id)}/settings"
)
def update_group_settings(self, session_id: str, group_id: str, body: GroupSettings) -> SuccessResult:
- """Update group settings — at least one of announce/locked/ephemeralSeconds is required.
+ """Update group settings — at least one of announce/locked/ephemeralSeconds/memberAddMode is required.
Requires an OPERATOR-level key. ``ephemeralSeconds`` is unsupported on the
whatsapp-web.js engine (the request then fails with 501).