Method: Viberroo::Input.url_button

Defined in:
lib/viberroo/input.rb

.url_button(params) ⇒ Object

A URL button, when tapped opens specified URL.

Examples:

button = Viberroo::Input.url_button({
  Columns: 4,
  Rows: 2,
  ActionBody: 'parrot.live',
  Text: 'Browse something weird'
}

See Also:



62
63
64
# File 'lib/viberroo/input.rb', line 62

def self.url_button(params)
  { ActionType: 'open-url' }.merge(params)
end