N
N
Neuro2019-04-08 10:54:57
JavaScript
Neuro, 2019-04-08 10:54:57

How to send viber deep link to bot?

Do I understand correctly that a deeplink viber bot is passed through viber://pa?NameBot=value
and how can I get this value in the code?
maybe someone here has already worked with a viber bot and can tell?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly, 2020-04-28
@Scorpiored88

viber://pa?chatURI=&context=&text=

viberBot.onConversationStarted((userProfile, isSubscribed, context, onFinish)=>{
    console.log('context -> ', context)
    onFinish(new TextMessage(`Hi, ${userProfile.name}! ${context}`))
})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question