# `Unicom360.WhatsApp.TemplateButton`
[🔗](https://github.com/TechRode-Solution-Limited/unicom360-elixir/blob/v0.1.0/lib/unicom360/whatsapp/template_button.ex#L1)

A template recipient's button parameter.

    TemplateButton.url(0, "ZM-4821")         # the dynamic part of a URL button
    TemplateButton.quick_reply(0, "rate-5")  # a quick-reply button's payload

Sent as `{"index", "type", "value"}`. A recipient may also give a map in that shape.

# `t`

```elixir
@type t() :: %Unicom360.WhatsApp.TemplateButton{
  index: non_neg_integer(),
  type: String.t(),
  value: String.t()
}
```

# `quick_reply`

```elixir
@spec quick_reply(non_neg_integer(), String.t()) :: t()
```

A quick-reply button: `value` is the payload returned when it is tapped.

# `url`

```elixir
@spec url(non_neg_integer(), String.t()) :: t()
```

A URL button: `value` fills the button's URL variable.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
