GOWA - WhatsApp REST API with support for UI, Multi Account, Webhooks, and MCP, and Chatwoot. Built with Golang for efficient memory use.
Go botgogolanggolang-whatsappgolang-whatsapp-apirestrest-apiwhatsappwhatsapp-apiwhatsapp-api-gowhatsapp-multi-devicewhatsapp-web-multi-device
docs: Clarify WhatsApp group listing limitation across code, OpenAPI, and README, and update Go and whatsmeow versions.
Aldino Kemald3554d7d973d
diff --git a/docs/openapi.yaml b/docs/openapi.yamlindex 6d4014b8..ef2f5ff2 100644--- a/docs/openapi.yaml+++ b/docs/openapi.yaml@@ -677,6 +677,18 @@ paths:tags:- usersummary: User My List Groups+ description: |+ Get all groups that the authenticated user has joined.++ ⚠️ **Known Limitation**: This endpoint returns a maximum of 500 groups due to a WhatsApp protocol limitation.+ The underlying whatsmeow library's `GetJoinedGroups()` function sends a single query to WhatsApp servers,+ which enforces this limit. This is not a bug in this API - it's a constraint imposed by WhatsApp's+ multi-device protocol. Users with more than 500 groups will only receive the first 500 groups.++ For more details, see: https://github.com/tulir/whatsmeow/blob/main/group.go+ externalDocs:+ description: WhatsApp protocol limitation reference (whatsmeow source)+ url: https://github.com/tulir/whatsmeow/blob/main/group.goparameters:- $ref: '#/components/parameters/DeviceIdHeader'responses:diff --git a/readme.md b/readme.mdindex a33a43b4..d5bb659a 100644--- a/readme.md+++ b/readme.md@@ -498,7 +498,7 @@ You can fork or edit this source code !| ✅ | User Avatar | GET | /user/avatar || ✅ | User Change Avatar | POST | /user/avatar || ✅ | User Change PushName | POST | /user/pushname |-| ✅ | User My Groups | GET | /user/my/groups |+| ✅ | User My Groups* | GET | /user/my/groups || ✅ | User My Newsletter | GET | /user/my/newsletters || ✅ | User My Privacy Setting | GET | /user/my/privacy || ✅ | User My Contacts | GET | /user/my/contacts |@@ -555,8 +555,12 @@ You can fork or edit this source code !```✅ = Available❌ = Not Available Yet+* = Has known limitations (see notes below)```+**Notes:**+- `*User My Groups`: Returns a maximum of 500 groups due to WhatsApp protocol limitation. This is enforced by WhatsApp servers, not this API. See [whatsmeow source](https://github.com/tulir/whatsmeow/blob/main/group.go) for details.+## User Interface### MCP UIdiff --git a/src/go.mod b/src/go.modindex a86f92e1..03e3bdc6 100644--- a/src/go.mod+++ b/src/go.mod@@ -1,6 +1,6 @@module github.com/aldinokemal/go-whatsapp-web-multidevice-go 1.24.0+go 1.25.6require (github.com/PuerkitoBio/goquery v1.11.0@@ -21,7 +21,7 @@ require (github.com/stretchr/testify v1.11.1github.com/valyala/fasthttp v1.69.0go.mau.fi/libsignal v0.2.1- go.mau.fi/whatsmeow v0.0.0-20260116142645-06f473759141+ go.mau.fi/whatsmeow v0.0.0-20260126173513-4dbbef8d4d4agolang.org/x/image v0.35.0google.golang.org/protobuf v1.36.11)@@ -35,7 +35,7 @@ require (github.com/beeper/argo-go v1.1.2 // indirectgithub.com/buger/jsonparser v1.1.1 // indirectgithub.com/clipperhouse/stringish v0.1.1 // indirect- github.com/clipperhouse/uax29/v2 v2.3.0 // indirect+ github.com/clipperhouse/uax29/v2 v2.4.0 // indirectgithub.com/coder/websocket v1.8.14 // indirectgithub.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirectgithub.com/elliotchance/orderedmap/v3 v3.1.0 // indirectdiff --git a/src/go.sum b/src/go.sumindex 7a4f2940..ea50c557 100644--- a/src/go.sum+++ b/src/go.sum@@ -23,8 +23,8 @@ github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMUgithub.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0=github.com/clipperhouse/stringish v0.1.1 h1:+NSqMOr3GR6k1FdRhhnXrLfztGzuG+VuFDfatpWHKCs=github.com/clipperhouse/stringish v0.1.1/go.mod h1:v/WhFtE1q0ovMta2+m+UbpZ+2/HEXNWYXQgCt4hdOzA=-github.com/clipperhouse/uax29/v2 v2.3.0 h1:SNdx9DVUqMoBuBoW3iLOj4FQv3dN5mDtuqwuhIGpJy4=-github.com/clipperhouse/uax29/v2 v2.3.0/go.mod h1:Wn1g7MK6OoeDT0vL+Q0SQLDz/KpfsVRgg6W7ihQeh4g=+github.com/clipperhouse/uax29/v2 v2.4.0 h1:RXqE/l5EiAbA4u97giimKNlmpvkmz+GrBVTelsoXy9g=+github.com/clipperhouse/uax29/v2 v2.4.0/go.mod h1:Wn1g7MK6OoeDT0vL+Q0SQLDz/KpfsVRgg6W7ihQeh4g=github.com/coder/websocket v1.8.14 h1:9L0p0iKiNOibykf283eHkKUHHrpG7f65OE3BhhO7v9g=github.com/coder/websocket v1.8.14/go.mod h1:NX3SzP+inril6yawo5CQXx8+fk145lPDC6pumgx0mVg=github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=@@ -153,8 +153,8 @@ go.mau.fi/libsignal v0.2.1 h1:vRZG4EzTn70XY6Oh/pVKrQGuMHBkAWlGRC22/85m9L0=go.mau.fi/libsignal v0.2.1/go.mod h1:iVvjrHyfQqWajOUaMEsIfo3IqgVMrhWcPiiEzk7NgoU=go.mau.fi/util v0.9.5 h1:7AoWPCIZJGv4jvtFEuCe3GhAbI7uF9ckIooaXvwlIR4=go.mau.fi/util v0.9.5/go.mod h1:g1uvZ03VQhtTt2BgaRGVytS/Zj67NV0YNIECch0sQCQ=-go.mau.fi/whatsmeow v0.0.0-20260116142645-06f473759141 h1:pa4WhVPKTubDgPnsza/UOKWP4eC1d8kLxNw69O/Npk8=-go.mau.fi/whatsmeow v0.0.0-20260116142645-06f473759141/go.mod h1:jDLOQLLiYXcm4vMB6vtPcBLU387sRY+P3vOElxX8srA=+go.mau.fi/whatsmeow v0.0.0-20260126173513-4dbbef8d4d4a h1:NYDCB/nhr4JBe9d15vzPe8GzRXRJAvEms2nESWQ0Wbg=+go.mau.fi/whatsmeow v0.0.0-20260126173513-4dbbef8d4d4a/go.mod h1:jDLOQLLiYXcm4vMB6vtPcBLU387sRY+P3vOElxX8srA=go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc=go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=diff --git a/src/usecase/user.go b/src/usecase/user.goindex d27fda7e..dd235a23 100644--- a/src/usecase/user.go+++ b/src/usecase/user.go@@ -140,6 +140,15 @@ func (service serviceUser) Avatar(ctx context.Context, request domainUser.Avatarreturn response, nil}+// MyListGroups returns all groups the user has joined.+//+// ⚠️ KNOWN LIMITATION: This endpoint returns a maximum of 500 groups due to a WhatsApp protocol limitation.+// The underlying whatsmeow library's GetJoinedGroups() function sends a single "participating" IQ query+// to WhatsApp servers, which enforces this limit server-side. This is not a bug - it's a constraint+// imposed by WhatsApp's multi-device protocol. Pagination is not supported by WhatsApp for this query.+//+// For more details, see: https://github.com/tulir/whatsmeow/blob/main/group.go+// Related issue: https://github.com/aldinokemal/go-whatsapp-web-multidevice/issues/553func (service serviceUser) MyListGroups(ctx context.Context) (response domainUser.MyListGroupsResponse, err error) {client := whatsapp.ClientFromContext(ctx)if client == nil {