Questions tagged [viber-bot-python]

This is a python library that wraps around the viber-api Bot HTTP API. It is compatible with Python versions 2.6 and up (including python-3.x).

This is a library that wraps around the bot HTTP API. It is compatible with Python versions 2.6 and up (including ).

Viber Bot API

The Viber Bot API is an HTTP-based interface created for developers keen on building bots for Viber.

18 questions
3
votes
0 answers

Subscribe and communication with Viber Bot

I followed the Viber Python Bot Tutorial to create a bot: https://developers.viber.com/docs/api/python-bot-api/ I have deployed a local server using Ngrok, following this…
stavroszaf
  • 51
  • 4
3
votes
1 answer

Is there a way to generate URLs for local files?

I'm trying to create a Viber chat-bot that is able to send some pictures. I am required to send URL of an image as a parameter, but the images I want to send are on my desktop and I do not know how to get their URLs. I tried using requests: image =…
2
votes
2 answers

How to create a custom connector in rasa for Viber connectivity

How to create a custom connector in rasa for Viber connectivity • This is my current custom connector file. the file name is viber.py and I am using rasa 2.8 ( I had to hide the hostname in webhook) from http.client import HTTPResponse from…
2
votes
2 answers

How do I make the corners of a button rounded? Viber bot

{ "viber": { "type": "keyboard", "inputFieldState": "hidden", "buttons": [ { "ActionBody": "/test", "ActionType": "reply", "BgColor": "#FF0000", "Frame.CornerRadius": "4", …
Dorogan
  • 21
  • 2
2
votes
1 answer

are there any ways to send viber branded/buisness messages without partners api?

does viber api allows you any way to send branded messages throw your application and get answers without partners mentioned on this page https://info.viber.com/Viber-Business-Messages-Partners.html ? Or maybe is it possible to make your bot…
2
votes
2 answers

How to send markdown or HTML message via Viber bot

Is it possible to send formatted message from Viber Bot with Markdown or HTML tags? If yes - then how? What attributes to specify?
wowkin2
  • 5,895
  • 5
  • 23
  • 66
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…
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

No default language could be detected for this app during deploy of Viber bot to Heroku

Does anyone know the reason for this error which came when I tried to upload my Viber bot to Heroku ? No default language could be detected for this app. I couldn’t find it in the given link also. What should I do ?
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
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
1 answer

How to can I add to many numbers to viber group

I have 50 thousand of phone numbers and I want to add all of them together to a viber community group. How can I do it? Please answer me
0
votes
1 answer

Viber Bot does not start

I run my Viber bot through gunicorn and flask on server. But when I do curl request I get error * Curl_http_done: called premature == 0 * Connection #0 to host chatapi.viber.com left intact {"status":1,"status_message":"Result[HttpRequest[POST /…
ivff
  • 23
  • 3
1
2