接收事件
account.history.synced
一次 WhatsApp 历史同步批次已结束;data.summary 给出已投递的会话与消息数量。
事件载荷
{
"id": "evt_wa_history_synced_10001",
"type": "account.history.synced",
"provider": "whatsapp",
"account_id": "acc_8c21d0",
"occurred_at": "2026-06-08T13:22:00Z",
"data": {
"summary": {
"conversations": 12,
"messages": 184
}
}
}备注
- WhatsApp HistorySync 批次的收尾事件。data.summary.conversations 是本批次投递出的 conversation.history 事件数;data.summary.messages 是这些事件里消息对象的总数。
- 该收尾事件只对应一个 parser 批次 / chunk。若 WhatsApp 连续发送多个 HistorySync chunk,你可能收到多个 account.history.synced,应按 conversation id 与 message id 合并。