Reputation: 1041
I'm working on a web page that will opens in an Android Webview. I need to share some content with Telegram application, so I want to launch Telegram app (if it's installed) when user clicked on a button.
I found same functionality for sending email with mailto:?subject=Hi%20there&body=Hello%20there
or share in whatsapp with whatsapp://send?text=Hello%20there
and used them in web page like below:
<a href="whatsapp://send?text=Hello%20there"></a>
Is there any way to call Telegram application?
Answer:
tg:msg?text=Hello%20there
<a href="tg:msg?text=Hello%20there"></a>
Upvotes: 2
Views: 8450
Reputation: 8005
You can use tg:
protocol, but the better way is use t.me
link.
For instance: https://t.me/SeanChannel will redirect to
tg:resolve?domain=SeanChannel
Upvotes: 2