Amarula.Content.Contacts (amarula v0.3.0)

View Source

A received multi-contact card (content of a %Amarula.Msg{type: :contacts}).

  • :display_name — the array's group label (WhatsApp's displayName on the contacts-array message), distinct from each card's own display_name.
  • :contacts — the individual cards as %Amarula.Content.Contact{}.

Summary

Functions

Normalize a %Proto.Message.ContactsArrayMessage{} into a %Amarula.Content.Contacts{}.

Types

t()

@type t() :: %Amarula.Content.Contacts{
  contacts: [Amarula.Content.Contact.t()],
  display_name: String.t() | nil
}

Functions

from_proto(m)

@spec from_proto(struct()) :: t()

Normalize a %Proto.Message.ContactsArrayMessage{} into a %Amarula.Content.Contacts{}.