Joan Sagué Flo
Joan Sagué Flo

Reputation: 411

How to create a link to contact specific phone number via Telegram?

So I found out I could use a link like this in HTML:

<a href="https://api.whatsapp.com/send?phone={{phone_number}}" target="_blank">WhatsApp</a>

in order to let a user contact {{phone_number}} directly from a webpage (via WhatsApp web).

My question is: how to do the same but instead of WhatsApp, via Telegram?

Upvotes: 40

Views: 77302

Answers (4)

kitesurfdaniel
kitesurfdaniel

Reputation: 1

For WhatsApp the next link will work:

https://wa.me/1xxxxxxxxx 

avoid the + or 00 at the beginning

Upvotes: 0

Feuermurmel
Feuermurmel

Reputation: 9952

It is possible to create links to Telegram, WhatsApp and Signal accounts using their associated phone numbers using these URLs:

https://t.me/+41794997040
https://wa.me/+41794997040
https://signal.me/#p/+41794997040

Upvotes: 17

major sam
major sam

Reputation: 580

You should create a link like https://telegram.me/YourUsername for that purpose.

Check Telegram blog for more info.

Upvotes: 27

Ali Hashemi
Ali Hashemi

Reputation: 3408

Update (2022):

Links to phone numbers such as https://t.me/+1XXXXXXX will lead you to a web page the same as username links do, but you can only start chatting with the user if their privacy settings allows you.

Old answer:

It's NOT possible to link to Telegram like this for a phone numbers so far, because every user MUST add the phone number to their contact list before they can send a message to them by phone number. This limitation is because of Telegram privacy policy and abuse prevention. In more details, if Telegram allow this type of linking, a malicious party can fetch a web page like https://t.me/+1XXXXXXX for every possible number without passing authentication. That's most probably why Telegram doesn't have such linking feature.

However, you can link to @username of a Telegram user if he/she has any:

https://t.me/username

Upvotes: 43

Related Questions