by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Daniel A.
@dadenewyyt
and i m trying to use i18n locales but i dont use express ? How can i do this please ?
@zlatkos94 restart the server and your viber it will eventaully work.
@zlatkos94 restart the pc or make sure port is not in use or close it before you start your app.
carlosalinas
@carlosalinas
Hello Everyone! I'm trying to create a viber app and I need to hide the system keyboard and only display my custom keyboard. I've done most of the solution suggested here but it still doesn't work. I know that what I want to accomplish is doable seeing some viber apps able to present this. Can anyone lend a help with this? Thank you very much.
royal
@Royalprint
hi
l
Ilya
@izdesenko
Hello, i have problem with order of messages. Sometimes on our project we need to send several messages one by one. On our side i see correct ,messages order. But when they comes to user order is confused. What can i do to ensure correct order of messages?
Daniel A.
@dadenewyyt
llya use asyc library for TextMessage
royal
@Royalprint
HI
fyodorovandrei
@fyodorovandrei

Hi,

I'm Andrei Fiodorov and I'm try to write a Viber bot. During development I encountered several problems and I would like to understand some things.

In the official documentation of the Keyboards if setup this config for the button {ActionType: 'open-url', ActionBody: 'https://google.com', OpenURLType: 'internal' } , in theory it should open in the internal viber browser, but for me not work.

My source code:
await response.send(new Viber.Message.Keyboard({ Type: "keyboard", Buttons: [ { ActionType: "open-url", OpenURLType: "internal", ActionBody: "https://fyodorovandrei.com", Text: " Open url " } ] }));
May be I'm doing something wrong..
Second answer is :
How draw in message buttons. I'm find this feature in Aviasales viber bot.
It is a business solution and need to buy the developer licence ?
In official documentation it's possible to send only pure text message.

Maybe I missed something.

fyodorovandrei
@fyodorovandrei
..... after 6 hours of debugging and analyze the soruce code of node js bot I'm undertand how pass api min version for open url internal...
😣🔫
BLifeMM
@BLifeMM
Hi Everyone.
Any idea of closing the internal browser or what action need to use.
window.close .... that wouldn't work in viber so .. any one?
royal
@Royalprint
]]
Mihail Slavchev
@slavchev
Hi guys! Where can I find more details on InternalBrowser object? Especially more details about ActionButton and ActionReplyData properties.
Mihail Slavchev
@slavchev
@BLifeMM I had the same problem. See my answer on SO https://stackoverflow.com/a/61857905
meashsim
@meashsim
Hi everyone
Viber's bot can't not join group chat similar concept to LINE Messenger and Telegram Chat ?
Peshomir Peshomirov
@runn0001
How do I get a UserProfile object from it's ID?
carlosalinas
@carlosalinas
Hi everyone, I've made a viber bot app but I am thinking of putting in a community group chat. Is it possible to integrate it inside like other community groups as well as post using the viber bot app in the community group?
carlosalinas
@carlosalinas
Additionally, I've been trying to run my viber bot app in a goDaddy server. When I try to launch the server, code runs and shows the "opening request to url" up until the "response data". I get a status_message : ok, and then it says in my logs "Request Ended Successfully". After this, my logs don't continue, in Heroku usually, the logs continue showing a "validating signature", but here in my goDaddy server, it didn't show. I tried testing the bot but there was no response on my logs or the bot itself. Can anyone help me with this?
Peshomir Peshomirov
@runn0001
does anybody even answer the questions sent here
golo
@vxzry
Has anyone encountered an issue with the ios app where the html tags are displayed on text? It works fine on the Android and Desktop app
1 reply
Mohamed Afzal
@pixelatedpic
how to create a keyboard with non clickable buttons and clickable ones? i need one button set as an image and non clickable
golo
@vxzry
can you try setting the actionType to "none"?
Mohamed Afzal
@pixelatedpic
yes i did and it gives error
golo
@vxzry
Mohamed Afzal
@pixelatedpic
@vxzry i did try this "ActionType": "none" but it seems its not working
Mohamed Afzal
@pixelatedpic
@vxzry did you tried it
ranwa
@Ranwa96
hey everyone , does anyone know how to make a clickable keyboard to send custom rich media? also the keyboard is not stable if i clicked more than one button at same time it is gone :( .thanks in advance
Ha Doan
@doanha1982
bot.on(BotEvents.SUBSCRIBED, (response) => {
console.log([BotEvents.SUBSCRIBED] User ${response.userProfile.name} subscribe.);
this event never fire. does anybody know how to fix this?
ranwa
@Ranwa96
hey @doanha1982 try to write on subscribe event in this way bot.onSubscribe(response => console.log(Subscribed: ${response.userProfile.name}));
9 replies
ranwa
@Ranwa96
hey everyone i wanna make rich media with location-picker action but this error still appear :
rich_media is not valid. [instance value ("location-picker") not found in enum (possible values: ["reply","open-url","","none"])]' .
note: i defined minappversion new RichMedia(location,"","","",{},"",4);
oliapanidou
@oliapanidou
I sent a message to someone that it was delivered. And the next morning once it was read, the message bubble turned into red. What does that mean?
vladyjaiz
@vladyjaiz
I just wanna ask is there a send message limit? I've been trying to send at least 15 messages to different users (11 at the moment) but some people don't receive the same amount of messages. Some didn't receive anything at all. I've resorted to put delays for each message to send for about 30 seconds. These messages are also Rich Media Messages with 4 carousels. Am I doing something wrong?
Vitaliy
@scorpioRED
Hi!
Anyone have a tried to use ‘’’bot.onConversationStarted’’’ ?
With a deeplink?
Sameera Piyadigamage
@samma89
optionalTrackingData never get sent or received
is this intentional?
has to be a mistake isnt it?
Turentkm
@Turentkm
just started building a bot in node.js.
got couple of problems:
1) the only one who can send messages to the bot is me, as an administrator!
2) my message objects does not contains sender.id or user.id?
3) how to set up a subcription?
anyone knows how to fix this?
(running on node.js with ngrok hookup).
Turentkm
@Turentkm
two last problems solved, one problem left, how to let people start conversation from phone
IDONTSUDO
@IDONTSUDO
test exampel dont work
(node:10436) UnhandledPromiseRejectionWarning: #<Object> (node:10436) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:10436) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
WTF? this is generally a bug at the Express level

`
user@WIN-O975L0V8NGO MINGW64 ~/Desktop/azure/sample-bot-isitup (master)
$ npm run start

isitup-bot@1.0.1 start C:\Users\user\Desktop\azure\sample-bot-isitup
node src/index.js

[2020-08-03 17:54:52.241] [DEBUG] Could not find the now.sh/Heroku environment variables. Trying to use the local ngrok server.[2020-08-03 17:54:52.268] [INFO] Sending 'setWebhook' request for url: https://a0ea5a4abb17.ngrok.io, isInline: undefined
[2020-08-03 17:54:52.304] [DEBUG] Opening request to url: 'https://chatapi.viber.com/pa/set_webhook' with data
url: https://a0ea5a4abb17.ngrok.io
is_inline: undefined
event_types:

- subscribed
- unsubscribed
- conversation_started
- message
- delivered
- seen

[2020-08-03 17:54:55.773] [ERROR] Response error
status: 1
status_message: Result[HttpRequest[POST / HTTP/1.1]@5dc9c455 > HttpResponse[HTTP/1.1 502 Bad Gateway]@3ed656c2] null
chathostname: SN-CHAT-08
`

IDONTSUDO
@IDONTSUDO
sorry bad english :D