Skip to content

Viber ​

Viber is a messaging app and bot platform. Protocol Launcher allows you to generate Viber URL scheme links for bot and Chat Extension workflows.

Usage ​

There are two ways to use this library:

  • On-Demand import from subpaths enables tree-shaking and keeps bundles small.
  • Full Import from the root package is convenient but includes all app modules.

Pick On-Demand for production builds; Full Import is fine for quick scripts or demos.

Select Installation Method

On-Demand
Recommended. Optimized for production.
Full Import
Convenient. Good for quick scripts.

Open Bot Chat ​

Viber documents context and text as optional parameters for bot chat deeplinks.

{{currentMethod}}
ts
import { openBotChat } from 'protocol-launcher/viber'

const url = openBotChat({
  chatURI: 'examplebot',
  context: 'checkout',
  text: 'Hi there!',
})

Open Bot Info ​

Viber documents the bot info screen deeplink as supported on Android and iOS, and not supported on Desktop.

{{currentMethod}}
ts
import { openBotInfo } from 'protocol-launcher/viber'

const url = openBotInfo({
  uri: 'examplebot',
})

Open Bot QR Scanner ​

Viber documents the bot QR scanner deeplink for mobile users. The official limitations list Viber 17.1.0.6 and above on Android, Viber 17.2 and above on iOS, and no Desktop support.

{{currentMethod}}
ts
import { openBotQrScanner } from 'protocol-launcher/viber'

const url = openBotQrScanner({
  chatURI: 'examplebot',
})

Open Chat Extension ​

Viber documents three Chat Extension deeplink scenarios: open the default screen, open a service, or open a service with a search term.

{{currentMethod}}
ts
import { openChatExtension } from 'protocol-launcher/viber'

const defaultUrl = openChatExtension()

const serviceUrl = openChatExtension({
  service: 'example',
})

const searchUrl = openChatExtension({
  service: 'example',
  search: 'coffee',
})

Official Docs ​