Zalo Tương Tác icon

Zalo Tương Tác

Tương tác Zalo: tin nhắn, bạn bè, nhóm, tài khoản và custom API qua zca-js

Group → Get All Groups

AI-generated

Summary

Retrieve a list of groups associated with the authenticated Zalo account, optionally including group names by performing additional batch queries.

Inputs

  • Limit — The maximum number of groups to return (default is 50).
  • Include Group Names — When enabled, calls an additional API to fetch the names of groups in batches of 50, augmenting the response with detailed group info instead of just group IDs.

Output shape

an object containing group identifiers and, optionally, a 'groupList' array with group names and basic info

The base API returns only group IDs. If 'Include Group Names' is enabled, it triggers batch calls (up to 50 groups per batch) to get detailed group names, included in 'groupList'. The total number of groups is limited by the 'Limit' parameter.

Links

Discussion