I’m looking for a way to send message to telegram user from website with specific message. Something like WhatsApp’s
https://wa.me/12345678901?text=Custom+message
I’ve found just this:
https://t.me/username
This allows to start chat with custom user but with blank message field.
Is there any way to start a chat with custom user (even he is not in my phonebook or userlist) with fulfilled message field?
2
Answers
You can try redirecting above link in WebView.
Any of the following formats should work:
This means you will have as options:
url
: URL to share.text
: Text to share.The official documentation confirms as much.
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#whatsapp