接收事件
contact.updated
WhatsApp 通訊錄名稱更新(唔包括 whatsapp-protocol)。只更新 data.contact.address_book 有提供嘅欄位:空字串表示清空,省略就保留原值,null 無效。唔會覆蓋對方暱稱或帳號本人資料。contact.id 識別聯絡人資源,唔一定係對話識別碼。
事件載荷
{
"id": "0000000000000000000000000000000000000000000000000000000000000191",
"type": "contact.updated",
"provider": "whatsapp",
"account_id": "acc_example",
"occurred_at": "2026-09-20T03:00:00Z",
"data": {
"contact": {
"id": "15550000002@s.whatsapp.net",
"conversation_id": "100000000000002@lid",
"address_book": {
"full_name": "Example customer",
"first_name": "Example"
}
},
"event": {
"kind": "contact_updated",
"source": "address_book",
"changed_fields": ["address_book.full_name", "address_book.first_name"],
"changed_at": "2026-09-20T03:00:00Z"
}
}
}備註
- WhatsApp 通訊錄名稱更新(唔包括 whatsapp-protocol)。只更新 data.contact.address_book 有提供嘅欄位:空字串表示清空,省略就保留原值,null 無效。唔會覆蓋對方暱稱或帳號本人資料。contact.id 識別聯絡人資源,唔一定係對話識別碼。