Questions related to Viber HTTP REST API.
Questions tagged [viber-api]
46 questions
2
votes
1 answer
Viber setWebhook failed with error - The "data" argument must be one of type string, TypedArray, or DataView. Received type object
Trying to setup a viber webhook. I already have an express server setup. So I just add the bot as middleware. Everything is find and the server is up and running.
Once called bot.setWebhook(process.env.VB_WEBHOOK_URL), it throws error saying --> The…

Thet Htun
- 471
- 5
- 13
2
votes
1 answer
Viber Chatbot - Creating an echo bot
I was following the Viber Node.JS Bot Documentation and was creating an echo bot that would repeat the messages back to the user. But it does not work and the bot does not reply to my messages. Here is the code:
'use strict';
const ViberBot =…

HeinMin Thant
- 33
- 6
1
vote
0 answers
How to send welcome messages using the Viber API
I'm trying to send a welcome message to the particular contact number using Viber API. Can someone please help me to achieve this??
Here is what I have tried so far...
I did setup my webhook using this https://pipedream.com/
after that, I called…

Deshan-Charuka
- 96
- 1
- 9
1
vote
0 answers
How to automate creating a poll on Viber channel using Python?
I have a Viber channel where I want to create a weekly poll every Saturday to ask for attendance confirmation from the participants. The poll will have two options, "present" and "absent." I want to automate this process using Python. I have some…

Reda HAMZA
- 43
- 8
1
vote
2 answers
Python viber Bot is not working as described in the documentation. It doesn't give any respond in the viber mobile app
I have followed the official viber doc, using python:
https://developers.viber.com/docs/api/python-bot-api/
The server has been deployed properly (https) and the set_webhook…

Nikolaos Epitropakis
- 61
- 5
1
vote
0 answers
Is there any way to use a bot inside a viber channel?
I'm trying to figure out if there is any way to add a bot inside a viber channel which will then be use to send welcome messages and etc..
I have been reading their documentations but however I haven't been able to figure out how to send messages in…

Wisharl
- 11
- 3
1
vote
2 answers
How to send message to viber without input event?
I have a little problem, I have a php script for sending messages to viber. The problem is that bot sends message when I send some message with my profile, but I want only to run php script and send message to chat.
Check the script:

Alexander
- 51
- 2
- 8
1
vote
1 answer
How generate multilevel Viber keyboard
I'm trying to build keyboard for Viber bot using viber-bot-python and following code:
keyboard = {
"DefaultHeight": True,
"BgColor": self.background_color,
"Type": "keyboard",
"Buttons": [
{
"Columns": 2,
…

wowkin2
- 5,895
- 5
- 23
- 66
1
vote
0 answers
Viber REST api - receiving attachments / using keyboards
As per documentation, files sent by users should come in the form of a url in the "media" field of the "message" object. Instead, this here comes when I'm sending any kind of file:
{
"event": "message",
"timestamp": 1590699124661,
…

Andrew Jaginoff
- 71
- 5
1
vote
1 answer
How to setup a viberbot webhook for heroku deployed nodejs bot?
I have problem of setting up web hook for my chat bot i made using nodejs. Which is deployed on Heroku.
The app uses the following architecture :
const http = require('http');
const port = process.env.PORT || 8080;
// Viber will push messages sent…

Develop4Life
- 7,581
- 8
- 58
- 76
1
vote
1 answer
Viber Bot send files from Buffer
I am trying to use viber-bot to send pdf files to a client, but I don't have these files locally or as a url.I get required files from other requests, and I haven't found anything about buffers in viber-bot documentation.
Here is my code:
const…

Артем Дачевский
- 353
- 2
- 6
- 19
1
vote
1 answer
Launch Viber and send message with link, email, batch in desktop app
In the industrial environment, we have a SCADA system for monitoring temperatures, humidity, and other params. When an alarm comes, I cand send some variables from our software.
Currently, I have managed to make working with the SMS gateway…

Cemmac
- 11
- 4
1
vote
1 answer
How to get message by message_token using Viber REST API?
I'm building the Viber bot which will be served using different services. One of the problem is about getting the exact message which has been sent to the user.
The "received" event gives message_token, so I wonder if it's possible to use it in…

Matvii Strechen
- 13
- 2
1
vote
1 answer
How do i get the information of the subscribers subscribed to my public viber account?
I want user id of the subscribers. In the documentation, it only shows the callbacks like :
{
"event":"conversation_started",
"timestamp":1457764197627,
"message_token":4912661846655238145,
"type":"open",
"context":"context…

Prakriti Adhikari
- 11
- 2
0
votes
0 answers
Using Viber bot API to broadcast messages, all the iphones can not show the images of the rich messages
Using the Viber API and especially the "broadcast" feature (https://developers.viber.com/docs/api/rest-bot-api/#broadcast-message) all the rich messages on Android are sent and shown normally, although in all iphones that I have tested, the image of…

Nikolaos Epitropakis
- 61
- 5