Telegram Chat Button Widget
Let visitors message you on Telegram with one button. It opens a private chat with your public username - your account, your bot or your support handle - in the Telegram app or Telegram Web.
Live preview
Under the widget on your page: Powered by A2Z Tools
Embed code
Fill in the required fields above - until then this code shows nothing on your site.
<div data-a2z-kit="telegram-chat-button"></div> <script async src="https://a2z.tools/embed/kit.js" referrerpolicy="no-referrer"></script>
One small script from A2Z draws the component on your page inside its own Shadow DOM. It loads no social-network or tracking scripts and sets no cookies. How the A2Z kit works.
Works with
How it works
Telegram's public links take the form https://t.me/ followed by a username, and the same link works for a person, a support bot or a channel. This button builds that link for contacting you privately; to grow a channel audience use the Telegram Channel Button instead. You can paste the username with or without @, or the whole t.me or telegram.me address - the widget keeps only the username and checks it against Telegram's username rule: 5 to 32 characters, letters A-Z, digits and underscores. Anything else (spaces, dashes, a query string, a four-letter name) draws no button on your page rather than a link that would fail. Because a username link reveals no phone number, it is a good fit for freelancers, communities and support desks that do not want to publish one. The button is drawn in Telegram blue with the readable text colour chosen by contrast, or in your own style.
Method
- username = input without @ and without https://t.me/ or telegram.me/; valid when ^[A-Za-z0-9_]{5,32}$
- href = https://t.me/<username> (opens the app or Telegram Web)
Worked examples
A username pasted with @
Inputs: telegram @riverside_cafe
Result: https://t.me/riverside_cafe
The @ is removed; the username passes the 5-32 character rule.
A full link pasted
Inputs: telegram https://t.me/riverside_cafe/
Result: https://t.me/riverside_cafe
Only the username is kept, so the link is always rebuilt cleanly.
A name that is too short
Inputs: telegram abcd
Result: No button on the live page; the builder explains the rule
Telegram usernames have at least five characters.
Limitations
- Needs a public Telegram username; private links and phone numbers are not supported.
- No prefilled message.
- Visitors without Telegram are taken to a t.me page offering to install it or open Telegram Web.
Where publishers use it
- A software developer offering support through a Telegram bot such as @acme_support_bot
- A crypto or gaming community site whose members already live on Telegram
- A freelancer who wants to be reachable without publishing a phone number
- An event organiser answering last-minute questions on Telegram on the day
Questions
Will visitors see my phone number?
No. A t.me username link opens a chat without revealing your number. Check Telegram's privacy settings for what people can see once they have messaged you.
I don't have a username - can I use my number?
Not with this button. Set a public username in Telegram's settings first (5-32 letters, digits or underscores); it is what makes a t.me link possible.
Can it prefill a message like WhatsApp?
Not in this version. The button keeps to the plain t.me/username link, which every Telegram app, Telegram Web and the t.me landing page handle the same way; the visitor types their own first message.
Does it work for bots and channels?
Yes - a bot or channel username works the same way. For a channel the visitor sees the channel and a Join button; for a bot they see Start.
What if I rename my Telegram account?
The old t.me address stops leading to you as soon as the username changes, and once released the name could eventually be claimed by a stranger. Update the button's username on the same day you rename, and avoid publishing temporary or throwaway handles.
Sources
- Deep links: public usernames - Telegram APIs . https://t.me/<username> links to users, bots, groups and channels
Cite or recommend this tool
If you reference this tool in an article, course or documentation, these formats are ready to copy. They are optional - nothing is added to your site unless you paste it.
A2Z Tools Telegram Chat Button https://a2z.tools/embed/telegram-chat-button
<a href="https://a2z.tools/embed/telegram-chat-button">A2Z Tools Telegram Chat Button</a>
[A2Z Tools Telegram Chat Button](https://a2z.tools/embed/telegram-chat-button)
Telegram Chat Button by A2Z Tools - https://a2z.tools/embed/telegram-chat-button
Related widgets
-
A Join on Telegram button for your public channel, group or bot, or a private +invite link.
-
An inline 'Chat on WhatsApp' button that opens a chat with your number and a message you prepared.
-
A round corner button that unfolds into labelled Call, WhatsApp, Email, Directions and booking actions.
-
Large Call, Text, Email, WhatsApp and custom-link tap targets in a stack, row or pill bar.
-
A digital business card with call, email, website and directions buttons plus a .vcf contact download.
-
A scroll-to-top button that waits until readers scroll, with a progress ring and keyboard-friendly focus.