Viber

App · 5 actions

Send bot messages and read Viber bot and subscriber information.

Actions

ActionWhat it does
Get bot informationRead the connected Viber bot profile and its public chat member list.
Get subscriberRead the profile of a subscriber who has interacted with the bot.
Get subscriber online statusesCheck whether one or more known Viber subscribers are online.
Send pictureSend an image and caption to a Viber bot subscriber.
Send text messageSend a text message to a Viber bot subscriber.

Get bot information

Read the connected Viber bot profile and its public chat member list.

Inputs

None.

Outputs

dataobject
The response from Viber.
Example output
{
  "data": {
    "id": "example",
    "members": [
      {}
    ],
    "name": "example",
    "status": 1,
    "status_message": "example",
    "subscribers_count": 1,
    "uri": "example"
  }
}

Get subscriber

Read the profile of a subscriber who has interacted with the bot.

Inputs

Subscriber IDsubscriber_idtextRequired
Subscriber ID.

Outputs

dataobject
The response from Viber.
Example output
{
  "data": {
    "status": 1,
    "status_message": "example",
    "user": {}
  }
}

Get subscriber online statuses

Check whether one or more known Viber subscribers are online.

Inputs

Subscriber IDSsubscriber_idslistRequired
Subscriber IDS.

Outputs

dataobject
The response from Viber.
Example output
{
  "data": {
    "status": 1,
    "status_message": "example",
    "users": [
      {}
    ]
  }
}

Send picture

Send an image and caption to a Viber bot subscriber.

Inputs

Subscriber IDsubscriber_idtextRequired
Subscriber ID.
Sender namesender_nametextRequired
Sender name.
Image URLimage_urltextRequired
Image URL.
Captioncaptiontext
Caption.

Outputs

dataobject
The response from Viber.
Example output
{
  "data": {
    "message_token": 1,
    "status": 1,
    "status_message": "example"
  }
}

Send text message

Send a text message to a Viber bot subscriber.

Inputs

Subscriber IDsubscriber_idtextRequired
Subscriber ID.
Sender namesender_nametextRequired
Sender name.
MessagemessagetextRequired
Message.

Outputs

dataobject
The response from Viber.
Example output
{
  "data": {
    "message_token": 1,
    "status": 1,
    "status_message": "example"
  }
}

On this page