接收事件
contact.updated
WhatsApp 通訊錄儲存名稱、暱稱或頭像更新。按 data.event.source 同 changed_fields 更新有提供嘅 address_book、push_name 或 avatar_url 欄位。空字串表示清空,省略就保留原值,null 無效。請及時下載有簽署嘅頭像 URL。contact.id 識別聯絡人,可能同 conversation_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 通訊錄儲存名稱、暱稱或頭像更新。按 data.event.source 同 changed_fields 更新有提供嘅 address_book、push_name 或 avatar_url 欄位。空字串表示清空,省略就保留原值,null 無效。請及時下載有簽署嘅頭像 URL。contact.id 識別聯絡人,可能同 conversation_id 唔一樣。