Zalo Nhóm by diginno.net icon

Zalo Nhóm by diginno.net

Quản lý nhóm Zalo by diginno.net

Nội Dung → Lấy Lịch Sử Chat

AI-generated

Summary

Fetches recent messages for a Zalo group, normalizes them into message records, and optionally keeps only messages at or after a Unix timestamp. Zalo returns only the requested number of recent messages; the timestamp filter runs afterward, so increase the limit to search farther back.

Inputs

  • ID Nhóm (groupId) (required) — ID of the group whose chat history to retrieve.
  • Giới Hạn (limit) — Maximum number of recent messages to fetch; defaults to 50. Must be at least 1; the source validator also rejects values above 1000.
  • Timestamp Bắt Đầu (timestamp) — Optional Unix timestamp in seconds. Keeps messages whose timestamp is at or after this time. Leave blank to keep all fetched recent messages.

Output shape

A single object per input item, containing the API response and a normalized messages array.

The object also includes totalMessages (after timestamp filtering), fetchedCount (before filtering), hasMore, lastActionId, and lastActionIdOther. Each normalized message includes IDs, thread and sender details, content, message and content types, media URLs, timestamp, self flag, mentions, quote, and TTL. Messages are sorted in descending order by message ID when numeric, otherwise by timestamp.

Links

Discussion