Questions tagged [viber-bot]

The Bot API is an HTTP-based interface created for developers keen on building bots for Viber which is an instant-messaging app with documented API. Use this tag if you're writing a Viber bot and have a specific question regarding the Bot API.

Links:

47 questions
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
1 answer

I got messages from Viber maximum free messages from Bot exceeded

I got this answer when sending 500 messages in batches by 300 (chatapi.viber.com/pa/broadcast_message - sending REST URL). It was working until last week i start getting this as response: ( [status] => 23 [status_message] => maximum free…
publikz.com
  • 931
  • 1
  • 12
  • 22
1
vote
1 answer

User matching query does not exist. Viber bot Python

Bot problem. When sending data, the bot gives an error related to the absence of a user match in the database. In this case, indeed, the user is not added to the base in the proceed_request() function. What could be the problem? Thanks. def…
1
vote
1 answer

How to animate response "viber bot is typing" ? Node.js

I want to give a more realistic experience to user by showing the text "Bot is typing" under chatbox, before viber bot sends the message (even simulated with a delay). It is already implemented by viber but i could'n find any callback for that. Also…
George Gotsidis
  • 426
  • 4
  • 15
1
vote
2 answers

Display map in Viber bot response

The response to a query is a list of local addresses. I am returning this list as a keyboard. It would be more helpful to the user if I could display the addresses on a Google map or an Open Street Map (this is preferred). Is this possible with the…
sudhir shakya
  • 827
  • 1
  • 9
  • 21
1
vote
0 answers

Viber bot messages triggered multiple times when send within a for loop though REST API

Many thanks for reading. I have an open source bot presenting for each day the timetable of a school. Days are chosen from a Viber keyboard: function createWeekdayMenu() { $keyboard_array['Type']='keyboard'; …
1
vote
1 answer

My Viber bot working very slow(Python) How can I make it faster

Here is part of my code, db.users_vi() is a list file. When the program comes to def viber_not, it starts working very slow, it send 1 message per 30 sec or even slower. How can I make it work faster, and why it's so slow? def viber_not(): users…
Nikolas
  • 77
  • 9
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
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

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…
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…
0
votes
0 answers

Silent mode is not work at viber app in desktop

I use RichMediaButtons with silent mode true. In phone, silent mode is ok but silent mode is not working on desktop. How to hide message in viber chat .Please answer me.
Cyrus
  • 23
  • 1
  • 11
0
votes
0 answers

How can I request uer to share their phone number with my Viber-bot

Hi I am currently developing a viber bot and i want to request the user to share their phone number with my bot. I went through docs but was unable to find the answer. Is it possible to ask user to share their phone number if yes how?
0
votes
1 answer

Why InputFieldState does not work in viberbot 1.0.12

I expected the field to disappear from the user interface, but it remains How do I remove the field for input field? def handle_message(sender_id): message = KeyboardMessage(keyboard=create_menu()) viber_api.send_messages(sender_id,…
0
votes
0 answers

When i downloaded a viber file via url which was send by webhook - file downloading without format

When i downloaded a viber file via url which was send by webhook - file downloading without format. Json example which i received from viber: $VAR1 = { 'message' => { 'media' =>…
Alex
  • 1