-
-
Save ergoz/cd5cfaba1ac4722a3db01a22d0e191d3 to your computer and use it in GitHub Desktop.
Telegram Share Button in HTML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
This is a simple URL share button for Telegram application. | |
It's compatible with iOS/Android app, Telegram Desktop and uses its web mode for fallback. | |
--> | |
<a href="https://t.me/share/url?url={url_to_share}&text={caption_text}&to={phone_number}"> | |
Share Me | |
</a> | |
<!-- | |
Just replace {url_to_share}, {caption_text} and {phone_number} with your desired values. | |
Note that {caption_text} and {phone_number} are optional. You can remove those query parameters. | |
A working example: | |
<a href="https://t.me/share/url?url=http://amirreza.in&text=Find me here!"> | |
Share Me | |
</a> | |
You can use both https://t.me and https://telegram.me as base URL. | |
--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment