skip to Main Content

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


  1. <a href="tg://msg?text=Hello&to=+42333" id="telegram_share" class="mobileShare" title="inviteFriends" alt="telegram_shareā€¯/>
    

    You can try redirecting above link in WebView.

    Login or Signup to reply.
  2. Any of the following formats should work:

    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}
    

    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

    Social Share URLs

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search