Anu.Event.Status (Anu v0.2.1)

Copy Markdown View Source

Represents a message status update received via webhook.

Fields

  • :id - the message ID (wamid)
  • :status - one of :sent, :delivered, :read, or :failed
  • :timestamp - Unix timestamp as a string
  • :recipient_id - the recipient's phone number
  • :phone_number_id - the receiving phone number ID (from payload metadata)
  • :display_phone_number - the receiving display phone number (from payload metadata)
  • :raw - the raw status map from Meta's webhook payload

Summary

Types

t()

@type t() :: %Anu.Event.Status{
  display_phone_number: String.t() | nil,
  id: String.t(),
  phone_number_id: String.t() | nil,
  raw: map(),
  recipient_id: String.t(),
  status: :sent | :delivered | :read | :failed,
  timestamp: String.t()
}