HTML Viber link to specific number

前端 未结 2 1349
悲哀的现实
悲哀的现实 2021-02-14 01:09

I need help to implement Viber number in my application. It should connect user directly with Viber chat option and it should add specific number where message need to be send.

相关标签:
2条回答
  • 2021-02-14 01:22

    To open viber chat with a user:

    <a href="viber://chat/?number=%2BPHONENUMBERWITHCOUNTRYCODE">Viber Chat</a>
    

    *IMPORTANT! the number should be with "%2B" instead of "+".

    You can also open Viber contact, so a user will be able to choose call or chat.

    EDIT: Looks like contact link stopped working on February 2019. Chat link still works

    <a href="viber://contact?number=%2BPHONENUMBERWITHCOUNTRYCODE">Viber Contact</a>
    
    0 讨论(0)
  • 2021-02-14 01:43

    You can add number:

    <a href="viber://add?number=12345678">Viber</a>
    

    or you can chat to:

    <a href="viber://chat?number=12345678">Viber</a>
    

    or you can send message to channel:

    <a href="viber://pa?chatURI=[public account URI]&text=[message text]"> some text </a>
    
    0 讨论(0)
提交回复
热议问题