Open telegram app from a link in a mobile web site
Asked Answered
V

3

7

Is there any way to open telegram application from a website being in a mobile? I know if you use telegram:// you can open telegram app, but how can I open telegram and create a new conversation with a given number? i know it is possible by whatsapp like this:

this is the link https://api.whatsapp.com/send?phone=359883378007, when the link loads it beign redirected to this link whatsapp://send/?phone=359883378007

Viral answered 29/1, 2020 at 12:10 Comment(0)
V
5

You can use this link to open conversation with telegram username:

https://telegram.me/telegramUsername

telegramUsername:

username without @

Varia answered 30/1, 2020 at 20:32 Comment(1)
yes it could be done but i like to know about the above question.Viral
C
4

To share with Telegram.me, you have the following URL options...

https://t.me/share/url?url={url}&text={text}
https://telegram.me/share/url?url={url}&text={text}
tg://msg_url?url={url}&text={text}

Take a look at the official API source: Core.Telegram.org: Widgets -> Sharing Button. They suggest the t.me format. It seems like telegramUsername format, or any format indicating a user or a phone number, is not supported according to the documentation.

You may share:

  • url : The URL you want to share.
  • text : Text to accompany the URL you want to share.

If you are interested in watching a project that keeps track of these URLs, then check us out!: https://github.com/bradvin/social-share-urls#telegramme

Social Share URLs

Commodus answered 12/5, 2020 at 16:20 Comment(0)
M
1

2022 Updates

YOU CAN'T DO THAT. But, you can do the same with username -

https://telegram.me/Telegram_Username_Here

For updating the information - telegram:// no longer works on the latest chrome browser of pc version, instead of this, use tg:// which works great on all devices.

Multitude answered 24/12, 2021 at 10:25 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.