Wax.Messages.Interactive.Header (wax v1.1.4)

Summary

Types

t()

@type t() :: %Wax.Messages.Interactive.Header{
  document: Wax.Messages.Media.t(),
  image: Wax.Messages.Media.t(),
  sub_text: String.t(),
  text: String.t(),
  type: atom(),
  video: Wax.Messages.Media.t()
}

type()

@type type() :: :text | :document | :image | :video

Functions

new_header(atom, text, sub_text)

@spec new_header(type(), String.t() | Wax.Messages.Media.t(), String.t()) :: t()

Creates a new header

Depending the type, it will require a binary content or a Media content

Requires binary:

- text

Requires media:

- document
- image
- video