Delivery summary
history.message.upsert and history.message.received
These are the events for the messages fetched by the backfill.
The message data follows the same format as
messages.received (id, from, to,
type, timestamp, etc.), except that it is:
- without media — media is filtered out during the sync;
- with normalized JIDs.
history.messages.sent
These are the messages sent from another device identified during the
history sync.
In the webhook, this event does not arrive with the name
history.messages.sent.
Messages sent from another device are only delivered if they are
recent (less than 5 minutes old), and they are converted into the
messages.received event with fromMe: true.Via RabbitMQ, the event keeps its original name history.messages.sent.data.isMetaAI is always false: history sync does not carry
the Meta AI signal.
history_sync
Delivered normally to the webhook. It is the backfill’s completion/summary signal,
with the synced aggregates.
Synced chats. Each item follows the format of
chats.update.Synced contacts. Each item follows the format of
contacts.update.