接收事件
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 合併。