Lịch Sử Chat Zalo by diginno.net icon

Lịch Sử Chat Zalo by diginno.net

Lấy lịch sử tin nhắn từ Zalo (cá nhân & nhóm) by diginno.net

Lịch Sử Chat Nhóm

AI-generated

Overview

This node fetches the chat history of a specified group from Zalo, a popular messaging platform. It supports retrieving messages with options to fetch all messages with automatic pagination, limit the number of messages, include reactions, and filter messages by date range. The node is useful for scenarios where users want to analyze or archive group chat conversations from Zalo, such as customer support logs, team communications, or social group interactions.

Use Case Examples

  1. Fetch the latest 50 messages from a Zalo group by specifying the group ID.
  2. Retrieve all messages from a group chat, including reactions, with a delay between requests to avoid rate limiting.
  3. Get messages from a group chat within a specific date range, sorted from newest to oldest.

Properties

Name Meaning
ID Nhóm The ID of the group to fetch chat history from.
Chế Độ Lấy Dữ Liệu Whether to fetch all messages automatically with pagination.
Số Lượng Tin Nhắn Maximum number of messages to return when not fetching all.
Thời Gian Chờ Giữa Các Lần Lấy (Ms) Delay in milliseconds between requests when fetching all messages to avoid being blocked.
ID Tin Nhắn Cuối ID of the last message for pagination; leave empty to fetch the newest messages.
Bao Gồm Cảm Xúc Whether to include reactions for messages, which may slow down the process.
Sắp Xếp Sort order of messages by time.
Từ Ngày (Tùy Chọn) Start date to fetch messages from; leave empty for no limit.
ĐếN Ngày (Tùy Chọn) End date to fetch messages until; leave empty for no limit.

Output

JSON

  • success - Indicates if the fetch operation was successful.
  • operation - The operation performed, e.g., 'getGroupHistory'.
  • threadId - The ID of the group chat thread.
  • threadType - Type of thread, e.g., group or personal.
  • messages - Array of messages retrieved from the group chat.
  • hasMore - Boolean indicating if there are more messages to fetch (pagination).
  • lastMsgId - ID of the last message fetched, useful for pagination.
  • totalCount - Total number of messages available in the chat history.
  • error - Error message if the fetch operation failed.

Dependencies

  • Zalo API credentials and WebSocket listener for authentication and data fetching.

Troubleshooting

  • Ensure Zalo API credentials are correctly configured; otherwise, initialization will fail with an error.
  • If the WebSocket listener is not connected or times out, the node will throw a connection error; verify network and listener status.
  • Fetching reactions may slow down the process; disable if performance is an issue.
  • If pagination parameters like lastMsgId are incorrect, the node may not fetch the expected messages.
  • Common errors include authentication failures, network timeouts, and invalid group IDs; check error messages for guidance.

Links

Discussion