Method: Viberroo::Message.contact

Defined in:
lib/viberroo/message.rb

.contact(params = {}) ⇒ Hash

Contact message.

Parameters:

  • params (Hash) (defaults to: {})

Options Hash (params):

  • contact (Hash)
  • contact.name (Float)

    Required. Name of the contact. Max 28 characters.

  • contact.phone_number (Float)

    Required. Phone number of the contact. Max 18 characters.

Returns:

  • (Hash)

See Also:



160
161
162
# File 'lib/viberroo/message.rb', line 160

def self.contact(params = {})
  { type: :contact }.merge(params)
end