Actions12
Group → Lấy Lịch Sử Chat Nhóm
AI-generatedSummary
Retrieve the chat history of a specified Zalo group by providing the group ID and optionally the number of messages to fetch.
Inputs
- ID Nhóm (required) — The ID of the Zalo group for which to get the chat history. For example, use {{ $json["data"]["data"]["idTo"] }} as a suggestion.
- Số Lượng Tin Nhắn — The number of chat messages to retrieve from the group history; defaults to 50 if not specified.
Output shape
a JSON object containing the group's chat messages up to the requested count
The output JSON corresponds to the API response for group chat history. The operation respects the provided groupId and count parameters and returns the messages in order. If an error occurs, an error message is returned unless the workflow is set to continue on fail.
Examples
Example 1: Fetch last 30 chat messages from a group with ID '12345'
Set 'ID Nhóm' to '12345' and 'Số Lượng Tin Nhắn' to 30