接收事件
conversation.updated
會話層級設定有變——靜音 / 取消靜音、封存、置頂或者標記已讀。
按設定類型嘅載荷
Muted until a time
{
"id": "evt_c1a7e4d9b2",
"type": "conversation.updated",
"provider": "whatsapp",
"account_id": "acc_8c21d0",
"occurred_at": "2026-06-08T12:40:00Z",
"data": {
"conversation": { "id": "8613912345678@s.whatsapp.net", "type": "user" },
"muted": true,
"mute_until": "2026-06-09T12:40:00Z",
"event": { "kind": "conversation_updated" }
}
}Pinned
{
"id": "evt_c2b8f5e0c3",
"type": "conversation.updated",
"provider": "whatsapp",
"account_id": "acc_8c21d0",
"occurred_at": "2026-06-08T12:42:30Z",
"data": {
"conversation": { "id": "8613912345678@s.whatsapp.net", "type": "user" },
"pinned": true,
"event": { "kind": "conversation_updated" }
}
}備註
- 會話層級本地狀態有變。data.conversation 標識會話;每條事件通常只會改一個設定欄位:muted / mute_until / mute_forever、archived、pinned 或者 read。
- 呢個係目前連線帳號本地聊天列表嘅狀態。例如 archived=false 代表呢個帳號取消封存該會話,read=false 代表標記為未讀。