Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Group → Cập nhật cài đặt tự động xóa

AI-generated

Overview

This node operation updates the auto-delete chat settings for a specific Zalo conversation, either a group or a personal chat. It allows users to set the duration (in seconds) after which messages in the conversation will be automatically deleted, or disable the auto-delete feature by setting the time to zero. This is useful for managing chat privacy and message retention automatically.

Use Case Examples

  1. Automatically set a group chat to delete messages after 24 hours to maintain privacy.
  2. Disable auto-delete for a personal chat to keep all messages indefinitely.

Properties

Name Meaning
ID Cuộc Trò Chuyện The ID of the conversation to update the auto-delete setting for.
Thời Gian Tự Động Xóa (giây) The time in seconds after which messages will be auto-deleted. Set to 0 to disable auto-delete.
Loại Cuộc Trò Chuyện The type of conversation to update, either a group or a personal chat.

Output

JSON

  • status - Indicates success status of the update operation.
  • message - A message confirming the update of auto-delete settings.
  • response - The raw response from the Zalo API after updating the auto-delete settings.

Dependencies

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

Troubleshooting

  • Ensure valid Zalo API credentials are provided; otherwise, the node will throw an error indicating no API instance found.
  • If the conversation ID or thread type is incorrect, the update may fail or return an error from the Zalo API.
  • Network or API issues may cause the update to fail; check connectivity and API status.

Discussion