Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node manages Zalo groups by interacting with the Zalo API. Specifically, for the "Lấy Danh Sách Thành Viên" (Get Group Members) operation under the Group resource, it retrieves a list of members in a specified Zalo group. This is useful for scenarios where you need to monitor or process group membership data, such as syncing group members with another system, auditing group composition, or managing group communications.

Practical examples:

  • Fetching up to 50 members of a specific Zalo group to display or analyze member information.
  • Retrieving admin and current member lists alongside total member count for group management dashboards.

Properties

Name Meaning
ID Nhóm The unique identifier of the Zalo group from which to retrieve members.
Giới Hạn The maximum number of group members to fetch (limit).

Output

The output JSON object contains the following fields:

  • members: An array of member IDs limited by the specified "Giới Hạn" value.
  • admins: An array of admin user IDs within the group.
  • currentMems: An array representing the current members of the group.
  • updateMems: An array representing updated members (likely recently changed or added).
  • totalMember: The total number of members in the group.

This structure provides comprehensive membership details, including both regular members and admins, along with metadata about membership updates.

Dependencies

  • Requires an API key credential to authenticate with the Zalo API.
  • Uses the zca-js library internally to interact with Zalo services.
  • Node configuration must include valid Zalo credentials containing cookie, IMEI, and user agent information for successful authentication.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials may cause authentication failures.
    • Providing an incorrect group ID will result in empty or error responses.
    • Exceeding API rate limits could lead to temporary blocking or errors.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node failed to authenticate with Zalo API. Verify that the API key credential is correctly configured and valid.
    • Errors related to invalid group ID or permissions typically come from the API response and should be checked against the provided group ID and user permissions.

Links and References

Discussion