Skip to content

Telegram proxy: MTProto, SOCKS5 and HTTP explained, with setup steps

By the DataImpulse team · 25 Nov 2026 · 5 min read

Telegram has proxy support built in, and three proxy types that are easy to confuse. This guide explains each, where it works, how to set it up, and what stays private.

Telegram has proxy support built into its apps. You do not need extra software: the app accepts a proxy's details and sends its traffic through it. What causes confusion is that there are three proxy types and not every app accepts every one.

This guide explains the three, shows the setup, and is clear about what a proxy operator can and cannot see.

What a proxy does for Telegram

With a proxy, the app connects to the proxy server and the proxy connects to Telegram. Telegram's servers see the proxy's address. Your network sees a connection to the proxy and not to Telegram.

People use this on networks where Telegram is unreachable, to keep their home address from being the one Telegram records, and for bots and tools that run on servers.

The three proxy types

MTProto proxy is Telegram's own kind. It is built only for Telegram and identified by a server, a port and a secret. Telegram publishes the server software as MTProxy, so anyone can run one.

SOCKS5 proxy is a general-purpose proxy that carries any connection. It is identified by a server and a port, with an optional username and password.

HTTP proxy is the ordinary web proxy. Telegram Desktop accepts it. The phone apps do not offer it.

Telegram's developer documentation lists the link formats for the first two under proxy links: one form for MTProxy servers and one for SOCKS5.

Which app supports which

  • Telegram for Android and iPhone: MTProto and SOCKS5.
  • Telegram Desktop for Windows, macOS and Linux: MTProto, SOCKS5 and HTTP.

This matters when choosing a proxy. A proxy sold with an HTTP port works in Telegram Desktop and not in the phone apps.

Set up a proxy in Telegram Desktop

  1. Open Settings and go to Advanced.
  2. Open Connection type.
  3. Choose to use a custom proxy and add a new one.
  4. Select the type: SOCKS5, HTTP or MTProto.
  5. Enter the host and port, then the username and password, or the secret for MTProto.
  6. Save. The app shows whether the proxy is online and how long it takes to answer.

Menu names move a little between versions. If you cannot find Connection type, search the settings for proxy.

Set up a proxy on a phone

On Android, open Settings, then Data and Storage, then Proxy Settings, and add a proxy. On iPhone, open Settings, then Data and Storage, then Proxy. Choose SOCKS5 or MTProto and enter the details.

A proxy link does the same in one tap. Opening a link of the documented form asks the app whether to add and enable that proxy. Check who gave you the link before accepting, for the reasons in the next sections.

What the proxy operator can see

Telegram encrypts its traffic with its own protocol, described in the MTProto documentation, before it reaches any proxy. A proxy carries that encrypted stream and cannot read your messages, your contacts or your media.

What the operator can see is metadata: your IP address, when you connect, and how much data moves. An MTProto or SOCKS5 proxy operator therefore knows that your address uses Telegram and when.

Ordinary cloud chats are encrypted between your device and Telegram's servers. Secret chats are encrypted end to end between the two devices. A proxy changes neither.

Free proxies shared in channels

Lists of free MTProto proxies circulate widely. They work, and they come with costs.

  • The operator sees your address and your usage pattern, and you do not know who they are.
  • The software lets an operator register the proxy with Telegram and attach a tag, which is used to show a promoted channel to people connected through it.
  • Free proxies are crowded and disappear without notice, so calls and media are slow.

For anything beyond occasional use, run your own or use one from a provider you can identify.

Running your own

Because the server software is public, a small rented server is enough to run a private MTProto proxy for yourself and people you trust. You get a server, a port and a secret that you share as a link. Nobody else has the secret, so nobody else uses your proxy.

A SOCKS5 server on your own machine works equally well with Telegram and is useful for other programs too.

Using a paid proxy

A rented proxy gives you a private address in a country you choose. Check the protocol before buying, because of the app differences above.

Our proxies are delivered with an HTTP proxy port, a host, a username and a password. That works with Telegram Desktop when you choose HTTP as the type. It does not work in the phone apps, which accept only MTProto and SOCKS5. If you need SOCKS5, contact support before ordering so we can tell you what is available. SOCKS5 vs HTTP proxy explains the difference, and the FAQ has the current answer on protocols.

A fixed address suits Telegram best. An account that appears from a new country every few minutes can trigger security checks, so choose a datacenter or ISP proxy that stays the same and keep it. Types of proxy servers compares the options.

Proxies for bots

Bots talk to Telegram through the Bot API, which is plain HTTPS. A bot running on a server uses an HTTP proxy the same way any other program does, by setting the proxy on its HTTP client. The setup pages for Python requests and curl show the form.

This is the common reason developers need a proxy for Telegram: the bot's hosting cannot reach Telegram directly, or the bot's requests should leave from a fixed address.

Troubleshooting

  • The proxy shows as unavailable. Check the host and port, and confirm the type matches what the proxy provides.
  • It asks for a password again and again. The username or password is wrong, or the proxy expects a different type.
  • Messages send and media does not load. The proxy is too slow or limits traffic. Try another.
  • It works on Wi-Fi and not on mobile data. One of the networks blocks the proxy's port. Why ports are blocked explains how to test this.

Rules and limits

A proxy does not change Telegram's terms or the law where you are. Some countries restrict Telegram or the tools used to reach it, and it is your responsibility to know the rules that apply to you. Do not use proxies to operate fake accounts, to send spam or to return after a ban. Those break Telegram's terms regardless of the address they come from.

Try it yourself

Create an account, add funds from US$1 and order a proxy in the country you need.

Keep reading