V
V
Vitaly2020-04-28 17:26:39
JavaScript
Vitaly, 2020-04-28 17:26:39

How to get context from deep links in Viber bot?

All the best!
Deep link in viber looks like this
viber://pa?chatURI=&context=&text= Tell me
how to get this context later?

Answer the question

In order to leave comments, you need to log in

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

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