Unicom360.WhatsApp.ListSection (Unicom360 v0.1.0)

Copy Markdown View Source

A section of an interactive list message (Unicom360.WhatsApp.Session.list/5): rows of Unicom360.WhatsApp.ListRow, with an optional title. The builder also takes maps.

Summary

Functions

Builds a section, with an optional title.

Types

t()

@type t() :: %Unicom360.WhatsApp.ListSection{
  rows: [Unicom360.WhatsApp.ListRow.t() | map()],
  title: String.t() | nil
}

Functions

new(rows, title \\ nil)

@spec new([Unicom360.WhatsApp.ListRow.t() | map()], String.t() | nil) :: t()

Builds a section, with an optional title.