Actions36
- User Actions
- Chấp nhận lời mời kết bạn
- Gửi lời mời kết bạn
- Chặn người dùng
- Bỏ chặn người dùng
- Thay đổi cài đặt tài khoản
- Lấy thông tin người dùng
- Lấy danh sách bạn bè
- Tìm kiếm người dùng
- Đổi tên gợi nhớ
- Thu hồi tin nhắn
- Xóa tin nhắn
- Chặn/Bỏ chặn xem bài viết
- Thay đổi ảnh đại diện
- Lấy danh sách avatar
- Xóa avatar
- Sử dụng lại avatar cũ
- Cập nhật cài đặt người dùng
- Cập nhật thông tin cá nhân
- Thay đổi ngôn ngữ
- Lấy danh sách nhãn
- Cập nhật nhãn
- Tắt thông báo cuộc trò chuyện
- Lấy danh sách cuộc trò chuyện đã tắt thông báo
- Ghim/Bỏ ghim cuộc trò chuyện
- Lấy danh sách cuộc trò chuyện đã ghim
- Ẩn cuộc trò chuyện
- Lấy danh sách cuộc trò chuyện đã ẩn
- Cập nhật mã PIN cho cuộc trò chuyện ẩn
- Đặt lại mã PIN cho cuộc trò chuyện ẩn
- Lấy danh sách lời mời kết bạn đã nhận
- Lấy danh sách lời mời kết bạn đã gửi
- Hủy lời mời kết bạn đã gửi
- Gửi báo cáo
- Xem thời gian hoạt động gần nhất
- Lấy thông tin tài khoản
- Tag Actions
User → Xóa tin nhắn
AI-generatedOverview
This node operation allows users to delete a specific message in a Zalo chat conversation. It supports deleting messages in both personal and group chats by specifying the thread ID, message ID, client message ID, and the sender's user ID. Users can choose to delete the message only for themselves or for all participants (with a note that deleting for all requires using the 'undo message' feature). This operation is useful for managing chat content, removing unwanted or sensitive messages from conversations.
Use Case Examples
- Deleting a message from a personal chat by providing the thread ID, message ID, client message ID, and setting 'Only Me' to true to remove the message only from the user's view.
- Deleting a message from a group chat by specifying the group thread ID and message details, with the option to delete only for the user or for everyone (using the undo feature).
Properties
| Name | Meaning |
|---|---|
| Thread ID | ID of the user or group chat where the message to be deleted is located. |
| Loại cuộc trò chuyện | Type of conversation, either personal (Cá nhân) or group (Nhóm). |
| Message ID | ID of the message to be deleted. |
| Client Message ID | Client-side message ID of the message to be deleted. |
| Only Me | Boolean flag indicating whether to delete the message only for the user (true) or for all participants (false). Note: To delete a message for everyone, the 'undo message' feature should be used instead. |
| User ID From | ID of the user who sent the message to be deleted. |
Output
JSON
status- Status of the delete operation, e.g., 'Thành công' for success or 'Lỗi' for error.response- Response data from the delete message API call.error- Error message if the delete operation fails.hint- Hint message suggesting to use the 'undo message' feature if deletion for all participants is attempted incorrectly.
Dependencies
- Zalo API credentials including cookie, IMEI, and user agent for authentication.
Troubleshooting
- If the error message includes 'use undo api instead', it indicates that deleting the message for all participants is not allowed via this operation. The user should use the 'undo message' feature instead to delete the message for everyone.
- Errors related to invalid or expired credentials (cookie, IMEI, user agent) may prevent the API from authenticating and performing the delete operation.
- Network or API errors may cause the operation to fail; ensure stable internet connection and valid API access.