Buttons

Buttons can be used in Structure messages. Viber Business Messages only allows one button per message and the button can only contain a link to a webpage.

Url Button

The Url Button opens a browser with given address.

...
buttons: [
  {
    "type": "url",
    "title": "Freedom",
    "payload": "https://en.wikipedia.org/wiki/Liberty"
  }
]
...

Parameter

Type

Description

type*

string

Must be set to url.

title*

string

Title of the button. It is displayed on one line and the text is truncated with ellipsis (three dots in the end) if exceeds the line. You can fit usually up to 18 characters.

payload*

string

Url to be opened.