Links to Viber, Whatsapp, Telegram
How to insert links to Viber, Whatsapp and Telegram on the site, when you click on them, the application opens and immediately goes to the chat with the specified number. And, accordingly, considering mobile devices.
With Viber it turned out like this:
<a href="viber://forward?text=Номер телефона"</a>
Viber opens it writes the error "Action could not be performed".
Whatsapp with Telegram open the program but are silent at all
4 answers
For Viber
<a href="viber://add?number=номер телефона">
Phone number in the format +(country code) number. + replace with %2B
For Telegram
<a href="tg://resolve?domain=имя">
For Viber:
<a href="viber://chat?number=+38xxxxxxxxxx">
For Whatsapp
<a href="whatsapp://send?phone=79xxxxxxxxx">
For whatsapp with a message:
<a href="https://wa.me/79991573044?text=Здравствуйте%20Андрей!">Написать в WhatsApp</a>
(the number and the text that is immediately put in the input field, replace it with your own, %20 is a space) For telegram and Viber have already written answers. P.S.: It is still possible that you do not work for the reason that you write + before the phone number, you do NOT need to do this.