What WhatsApp reports beside messages (Effect's @effect/chat-whatsapp/WhatsAppUpdate):
delivery statuses, a user's changed id, and the link between a phone number and
a business-scoped user id. They go to the on_update of
whatsapp_chat.layer_webhook and WhatsAppChatService.receive, not to the
ChatHandler.
Values#
| Attribute | Type | Description |
|---|---|---|
WHATSAPP_UPDATE | S.Bottom[WhatsAppUpdate] | The schema of any update. |
Types#
| Type | Definition | Description |
|---|---|---|
StatusValue | type StatusValue = Literal['sent', 'delivered', 'read', 'failed'] | |
AliasStatus | type AliasStatus = Literal['sent', 'delivered', 'read'] | |
Change | type Change = Literal['user_changed_number', 'user_changed_user_id'] | |
WhatsAppUpdate | type WhatsAppUpdate = Status | UserIdChanged | Alias | Any update. |