Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Telegram link to chat with text

Tags:

telegram

Can I create telegram link with preset text just like Whatsapp did?

https://wa.me/whatsappphonenumber?text=urlencodedtext

I couldn't find any of tips on the net.

I had tried this. It only open up telegram without text

tg://to=@username&text=presettext
like image 946
luca ditrimma Avatar asked Oct 25 '25 01:10

luca ditrimma


2 Answers

I don't know if this worked before, and I couldn't find any official description of such a format, but now the format that works is similar to the one used in WhatsApp:

https://t.me/contact?text=text

This works both using the username (without @) and using the phone number (with +).

like image 165
Ivan Timashov Avatar answered Oct 27 '25 00:10

Ivan Timashov


Now you can use draft_text param

https://core.telegram.org/api/links#public-username-links

like image 39
yurisnk Avatar answered Oct 26 '25 23:10

yurisnk