Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node manages Zalo groups, specifically allowing users to remove one or more members from a specified group. It is useful in scenarios where group administrators want to maintain or moderate their group membership by removing inactive or unwanted users.

Practical example:

  • An admin wants to remove several users who are spamming the group. They provide the group ID and a comma-separated list of user IDs to be removed. The node processes this request and updates the group membership accordingly.

Properties

Name Meaning
ID Nhóm (groupId) The unique identifier of the Zalo group from which users will be removed.
ID Người Dùng (nếu nhiều người dùng vui lòng phân cách bằng dấu phẩy) (userIds) Comma-separated list of user IDs to be removed from the group.

Output

The output JSON contains the response from the Zalo API after attempting to remove the specified users from the group. This typically includes status information about the operation's success or failure and any relevant details returned by the API.

Example output structure:

{
  "response": {
    // API-specific response data confirming removal or detailing errors
  }
}

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for authenticating with the Zalo API.
  • The node depends on the zca-js library to interact with the Zalo service.
  • Proper configuration of credentials including cookie, IMEI, and user agent is necessary for successful API calls.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials may cause authentication failures.
    • Incorrect group ID or user IDs can lead to errors or no changes applied.
    • Network connectivity problems might prevent communication with the Zalo API.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Resolution: Verify that the API key credential is correctly configured and valid.
    • Errors related to invalid parameters usually indicate incorrect group or user IDs; double-check these values.
    • If the node throws errors about processing user IDs, ensure the input string is properly formatted as comma-separated values without extra spaces or invalid characters.

Links and References

Discussion