devlikeapro / waha

WAHA - WhatsApp HTTP API (REST API) that you can configure in a click! Two engines: chromium-based WEBJS and pure-websocket NOWEB
https://waha.devlike.pro/
Apache License 2.0
943 stars 283 forks source link

[feature] Implement Security for group info GET option #232

Closed ijro closed 10 months ago

ijro commented 11 months ago

Hello!

My suggestion is to create the Get method on the Security for group info endpoint, so we can check whether a group is currently enabled for admins only or not. In many cases in groups where we enable and disable the option daily, it would be interesting to be able to know if it is enabled at any given time.

GET /api/{session}/groups/{groupId}/settings/security/info-admin-only
allburov commented 10 months ago

@ijro hi! Does PUT /api/default/groups/{GROUPID}/settings/security/info-admin-only work for you? I was trying to test it and looks it doesn't work.

allburov commented 10 months ago

Added new GET /api/default/groups/{GROUPID}/settings/security/info-admin-only to get the current state of the setting. We'll release it on 02-04 December!