Questions tagged [viber-api]

Questions related to Viber HTTP REST API.

46 questions
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
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
0
votes
0 answers

How to get Bot Id in webhook while receiving messages from Viber User

I have multiple Bot linked with same webhook but I cant identify the message is for which bot while receiving messages from viber user. any way to get bot id? I have also checked the headers as well there is not have any id for bot. Json I am…
Fazila
  • 1
  • 1
0
votes
0 answers

Viber Callback Signature with HMAC

I have been following the documentation in the Viber REST API to create a signature with HMAC using SHA256 Callack Section. The key is authentication token and the value is a json. I tried to create the signature using hash_hmac in PHP language but…
MiniDr
  • 191
  • 1
  • 11
0
votes
2 answers

I'm making a webView for my app, but everytime when I try launch links like (whatsaap, twitter, viber) then whatsaap link work properly

only whtatsaap work but not twitter or viber. Also when I click other links on my app it open in browser not in app. Also When I remove twitter or viber linking code then then it open in app, but as soon as I app twitter linking code it again open…
0
votes
1 answer

Adjust heigh for buttons in Viber bot

I need to display buttons in Viber bot using rich_media message type and Viber REST API. When buttons are rendered the Rich Media element has a fixed height (see on screenshot). If there is five buttons in Rich Media element some empty place appear…
user2976612
  • 145
  • 1
  • 8
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

Doesn't work Welcome message to New User in Viber Bot 'conversation_started'

I try to send a welcome message to a new unsigned user, but it doesn't work. Please, help how solve this problem? This code doesn't work: elseif($input['event'] == 'conversation_started') { // "tracking_data" = "tracking data", …
0
votes
0 answers

Viber Api bot keyboard bug

I have a problem sending messages with the keyboard. Bug reproduction: The user starts a dialogue with the bot The user disconnects the network on the phone The bot sends a message with the keyboard The bot sends a message without a keyboard The…
0
votes
1 answer

Can't set webhook to viber bot

I have some troubles with setting webhook to my viber bot. Every time I wanna set my url viber api returns error. So I am trying to use this in postman: Url: https://chatapi.viber.com/pa/set_webhook { "url": "https://gutapi.ml/api/viber/post", …
Lacky RyDar
  • 61
  • 1
  • 7
0
votes
1 answer

Viber Node.JS Bot API - RichMediaMessage object - doesn't work

Without min api version - const message = new RichMediaMessage(SAMPLE_RICH_MEDIA); With min api version - const message = new RichMediaMessage(SAMPLE_RICH_MEDIA, null, [], undefined, undefined, null, 7); Both doesn't work while…
WHY
  • 258
  • 1
  • 8
0
votes
1 answer

Send "welcome message" with keyboard to Viber bot

Viber API allows to send some message on conversation_started event type to allow user to subscribe. From documentation about "welcome message", I see following code, that successfully sends text and image: { "sender": { "name": "John…
wowkin2
  • 5,895
  • 5
  • 23
  • 66
0
votes
1 answer

Viber Rest Api Cannot open Internal browser

I'm writing a Viber "keyboard" and I want to create a button which opens a link in the internal browser, which according to this doc doc should be done by sending JSON post to https://chatapi.viber.com/pa/send_message . I'm setting buttons'…
Stoyan
  • 51
  • 1
  • 8
0
votes
1 answer

Send message from telegram bot to viber bot

I have a bot working on Laravel Framework, there is a need to send a message to Viber bot. Is it possible?