# Viber

> Send bot messages and read Viber bot and subscriber information.

App · 5 actions. Web page: https://docs.lodol.com/docs/integrations/viber

## Actions

### Get bot information

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

**Inputs**: None.

**Outputs**

- `data` (object): The response from Viber.

**Example output**

```json
{
  "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 ID (`subscriber_id`, text, required): Subscriber ID.

**Outputs**

- `data` (object): The response from Viber.

**Example output**

```json
{
  "data": {
    "status": 1,
    "status_message": "example",
    "user": {}
  }
}
```

### Get subscriber online statuses

Check whether one or more known Viber subscribers are online.

**Inputs**

- Subscriber IDS (`subscriber_ids`, list, required): Subscriber IDS.

**Outputs**

- `data` (object): The response from Viber.

**Example output**

```json
{
  "data": {
    "status": 1,
    "status_message": "example",
    "users": [
      {}
    ]
  }
}
```

### Send picture

Send an image and caption to a Viber bot subscriber.

**Inputs**

- Subscriber ID (`subscriber_id`, text, required): Subscriber ID.
- Sender name (`sender_name`, text, required): Sender name.
- Image URL (`image_url`, text, required): Image URL.
- Caption (`caption`, text): Caption.

**Outputs**

- `data` (object): The response from Viber.

**Example output**

```json
{
  "data": {
    "message_token": 1,
    "status": 1,
    "status_message": "example"
  }
}
```

### Send text message

Send a text message to a Viber bot subscriber.

**Inputs**

- Subscriber ID (`subscriber_id`, text, required): Subscriber ID.
- Sender name (`sender_name`, text, required): Sender name.
- Message (`message`, text, required): Message.

**Outputs**

- `data` (object): The response from Viber.

**Example output**

```json
{
  "data": {
    "message_token": 1,
    "status": 1,
    "status_message": "example"
  }
}
```
