Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Poll → Khóa bình chọn

AI-generated

Overview

This node operation locks a poll in a Zalo group by its poll ID. It is useful for scenarios where you want to prevent further voting or changes to a poll after a certain point, ensuring the poll results remain final. For example, after a voting deadline, you can use this operation to lock the poll to stop additional votes.

Use Case Examples

  1. Lock a poll by providing its poll ID to prevent further votes.
  2. Use in group management workflows to finalize poll results automatically.

Properties

Name Meaning
ID bình chọn The unique numeric ID of the poll to be locked, required for identifying which poll to lock.

Output

JSON

  • success - Indicates if the poll was successfully locked (true/false).
  • response - The response object from the Zalo API after locking the poll, containing details about the operation.
  • poll_id - The ID of the poll that was locked.

Dependencies

  • Requires Zalo API credentials including cookie, IMEI, and user agent for authentication.

Troubleshooting

  • If the node throws 'Zalo API not initialized', it means the API instance was not created due to invalid or missing credentials. Verify the Zalo API credentials are correctly set.
  • Errors related to invalid poll ID indicate the poll does not exist or the ID is incorrect. Double-check the poll ID input.
  • Network or API errors may occur if the Zalo service is unreachable or the credentials have expired. Ensure network connectivity and refresh credentials if needed.

Discussion