Skip to content

Client Viber

Keith Sterling edited this page Jan 9, 2019 · 2 revisions

Viber is a cross-platform instant messaging and voice over IP (VoIP) application operated by Japanese multinational company Rakuten, provided as freeware for the Microsoft Windows, macOS, Linux, Android and iOS platforms. It requires a telephone computer to operate. In addition to instant messaging, it allows users to exchange media such as images and video records.

For a description on how to register your bot with Viber and access the necessary security tokens, please see the Viber Documentation

Viber configuration requires 2 settings in config.yaml as follows. This defines the name of your bot and the avatar it will display

viber:
  name: Servusai
  avatar: http://viber.com/avatar.jpg

In addition to need to make the security token given in the viber developer website as follows

VIBER_TOKEN = XXXXX

You can then run the viber client with the following shell script

#! /bin/sh

clear

export PYTHONPATH=../../src:.

python3 ../../src/programy/clients/viber_client.py --config ./config.yaml --cformat yaml --logging ./logging.yaml
Clone this wiki locally