Skip to content

UpdateGroupSettings function exists but no route is registered #42

@developer6v

Description

@developer6v

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions