How to send message from Website To Telegram APP

iKamy picture iKamy · Jun 27, 2015 · Viewed 13.5k times · Source

I have a share button in my website and I want to send a specific message to Telegram APP contacts (when I open website in Mobile)

The Problem is I didnt find the complete code and it just open the APP in the mobile

my code is :

<a href="tg://" id="telegram_share" class="mobileShare" title="inviteFriends" alt="telegram_share"></a>

as you see I didnt find proper command for sending message in href property

for example I found something simillar for adding sticker like :

<a class="tgme_action_button" href="tg://addstickers?set=Saber2">Add Stickers</a>

Answer

iKamy picture iKamy · Jun 28, 2015

iT's called URI Scheme Hope this one save someone else's time :)

<a href="tg://msg?text=your MsG!" id="telegram_share" class="mobileShare" title="inviteFriends" alt="telegram_share"></a>

right Now it only works on IOS