Wax.Messages.Interactive.Header (wax v1.1.4)
Summary
Functions
Creates a new header
Types
@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() :: :text | :document | :image | :video
Functions
@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