A Telegram proxy link is the quickest way to add an MTProto proxy. One tap opens Telegram, shows a Connect Proxy dialog, and fills in the server, port and secret for you. The generator above turns those three values into ready to use links. This page explains what each part means and how to use the tool.
TelegramProxy.xyz is an independent service, not affiliated with Telegram.
How to use the generator above
- Enter the server. This is a hostname or an IP address.
- Enter the port, for example
443. - Enter the secret you received from your proxy provider.
- The generator shows two links: a
tg://proxylink and ahttps://t.me/proxylink. - Copy the one you need, or open it on a device with Telegram installed.
Opening either link in any Telegram app shows the Connect Proxy dialog. Tap Connect, and Telegram uses that proxy.
The two link formats
Both formats carry the same information:
https://t.me/proxy?server=SERVER&port=PORT&secret=SECRET
tg://proxy?server=SERVER&port=PORT&secret=SECRET
https://t.me/proxy?...is a normal web address. You can paste it in a chat, an email or a note. When opened, it hands over to the Telegram app.tg://proxy?...is a deep link. It opens the Telegram app directly, but only on a device where Telegram is installed. Some apps do not maketg://links clickable.
If you are not sure which to use, the t.me link is usually the easier one to share.
The three parts of a proxy link
Server
The address of the proxy. It can be an IP address or a hostname. A hostname has an advantage: the provider can point it to a new IP without changing your link.
At TelegramProxy.xyz, every customer gets their own hostname, such as k7m2xq.<proxy domain>. If an IP gets blocked, we move your hostname to a new IP and the same link keeps working.
Port
The network port the proxy listens on. Many proxies use 443, which is the port normally used for HTTPS websites. Other ports work too, as long as the server is set up for them.
Secret
The secret is a key that your Telegram app uses to connect to the proxy. Its format also tells Telegram which mode to use.
Secret formats explained
There are three common kinds of MTProto secret:
- Plain secret: 32 hexadecimal characters. This is the original format. Traffic made with it has a recognizable pattern, so it can be easier for DPI filters to spot.
ddsecret:ddfollowed by 32 hex characters. This adds random padding to the traffic, which changes packet sizes.eesecret (Fake TLS):ee, then 32 hex characters, then a domain name encoded in hex. In this mode, the first bytes of the connection look like a normal TLS connection to that well known website. This makes detection by DPI harder.
All TelegramProxy.xyz proxies use ee secrets. Fake TLS makes blocking harder, but no proxy can be guaranteed to work on every network.
Reading a Fake TLS secret
If you look at the end of an ee secret, you will see a long string of hex characters. That part is the domain name, written in hexadecimal. You do not need to decode it. Telegram does that for you.
Common mistakes when building links
- Extra spaces. A space copied at the start or end of the secret breaks the link.
- Wrong port. The port must match the one the server uses.
- Shortened secret. Some chats cut long text. Make sure the full secret is there.
- Mixing up formats. Do not add
https://in front of atg://link.
If a link shows "Connecting..." for a long time, check these first. If everything looks right, the server may be offline or blocked on your network.
Sharing links safely
A proxy link contains everything needed to connect, including the secret. Anyone who has your link can try to use your proxy. Keep that in mind before posting it anywhere public.
- Personal links should stay personal. Our proxies work on one device at a time, so if someone else uses your link, it may block your own connection.
- Send links privately. If you move a link between your own devices, Saved Messages in Telegram is a simple way to do it.
- Public links are public. If you run your own server and want to share it widely, expect it to get crowded and to be found by network filters sooner.
If a friend needs a proxy, they can start their own free trial instead of using yours.
Adding a proxy without a link
You can also type the server, port and secret by hand:
- iPhone and iPad: Settings > Data and Storage > Proxy > Add Proxy.
- Android: Settings > Data and Storage > Proxy Settings > Add Proxy.
- Windows, macOS and Linux: Settings > Advanced > Connection type > Use custom proxy.
Choose MTProto as the type and paste each value into its field. Step by step guides are on our pages for iPhone, Android and desktop.
Getting a proxy to put in the generator
The generator only builds links. It does not create a proxy server. You still need a working server, port and secret.
You can get those in a few ways:
- run your own server (see managed vs self hosted proxy servers)
- use a link from a public list
- get a private proxy from a provider
If you choose TelegramProxy.xyz, our Telegram bot sends you a ready made link, so you do not need the generator at all. You can still paste the details in here if you want to see how the link is built.
What our links include
- MTProto with Fake TLS (
eesecret) - your own secret and your own hostname
- the same link even if we have to move you to a new IP
- no sponsored channel
- no data cap
- one device at a time
Plans are $3 per month for Shared, where your proxy runs on a server IP that a limited number of other customers also use, and $5 per month for Dedicated, with your own IPv4 address. You buy in the bot with USDT on BEP20, and the proxy activates about a minute after payment.
Try a link of your own
You can get a personal proxy link free for 24 hours. Start the trial in our Telegram bot, no payment needed, one trial per Telegram account. If you buy the Shared plan afterwards, you keep the same link.