Viber Bot channel properties

There are Viber Bot channel-specific properties that can be used when making calls to the Conversation API. These properties can be listed under channel_properties in the message request.

For example, below is the code for adding the channel specific property VIBER_SENDER_NAME and VIBER_SENDER_AVATAR to a Conversation API call:

Copy
Copied
{
  "app_id": "{{APP_ID}}",
  "recipient": {
    "contact_id": "{{CONTACT_ID}}"
  },
  "message": {
    "text_message": {
      "text": "Text message from Sinch Conversation API."
    }
  },
  "channel_priority_order": ["VIBER"],
  "channel_properties": {
    "VIBER_SENDER_NAME": "John Doe",
    "VIBER_SENDER_AVATAR": "https://1vxc0v12qhrm1e72gq1mmxkf-wpengine.netdna-ssl.com/wp-content/uploads/2018/12/favicon.png"
  }
}

The relevant Viber Bot channel properties are detailed in the table below:

Property name Property value
VIBER_SENDER_NAME Viber Bot sender’s name to display. Max 28 characters.
VIBER_SENDER_AVATAR Viber Bot sender’s avatar URL. Avatar size should be no more than 100 kb. Recommended 720x720.
Was this page helpful?