Summary
pkg/group/service/group_service.go defines UpdateGroupSettings (wrapping whatsmeow.SetGroupAnnounce, SetGroupLocked, SetGroupJoinApprovalMode, SetGroupMemberAddMode), but the function
has no @Router annotation and no HTTP route appears to register it. The related GetGroupRequestParticipants and UpdateGroupRequestParticipants also seem to be dead code with no route.
This means there is no way for API consumers to toggle announcement mode ("only admins can send"), locked info mode, join approval, or member-add mode on a group — even though the underlying
whatsmeow support is already wired.
Reproduction
curl -sS -X POST -H "apikey: $KEY" -H "Content-Type: application/json" \
https://<host>/group/settings \
-d '{"groupJid":"120363...@g.us","announce":true}'
# → 404 page not found
Also tried /group/announce, /group/updateSettings, /group/lock — all 404. /swagger/doc.json confirms they aren't in the route table.
Expected
Either:
- Register a
POST /group/settings route (matching the UpdateGroupSettings signature) so consumers can toggle these settings
- Or clarify in docs that these ops are not exposed yet, and remove the dead code
Extra note — swagger also misses /group/description
Unrelated but worth mentioning: POST /group/description is registered and working (verified via live probe, 200 OK), but it's missing from /swagger/doc.json. Regenerating swagger would help
API consumers discover it.
Environment
- evolution-go v0.7.0 (
evoapicloud/evolution-go:0.7.0)
- Hit via live server deployment
Summary
pkg/group/service/group_service.godefinesUpdateGroupSettings(wrappingwhatsmeow.SetGroupAnnounce,SetGroupLocked,SetGroupJoinApprovalMode,SetGroupMemberAddMode), but the functionhas no
@Routerannotation and no HTTP route appears to register it. The relatedGetGroupRequestParticipantsandUpdateGroupRequestParticipantsalso seem to be dead code with no route.This means there is no way for API consumers to toggle announcement mode ("only admins can send"), locked info mode, join approval, or member-add mode on a group — even though the underlying
whatsmeow support is already wired.
Reproduction
Also tried
/group/announce,/group/updateSettings,/group/lock— all 404./swagger/doc.jsonconfirms they aren't in the route table.Expected
Either:
POST /group/settingsroute (matching theUpdateGroupSettingssignature) so consumers can toggle these settingsExtra note — swagger also misses
/group/descriptionUnrelated but worth mentioning:
POST /group/descriptionis registered and working (verified via live probe,200 OK), but it's missing from/swagger/doc.json. Regenerating swagger would helpAPI consumers discover it.
Environment
evoapicloud/evolution-go:0.7.0)