Home Arrow Icon Knowledge base Arrow Icon Global Arrow Icon Telegram mtproto proxy link generator


Telegram mtproto proxy link generator


Here is how to generate a Telegram MTProto proxy link:

MTProto Proxy Link Generator

To generate a Telegram MTProto proxy link, you need the following information:

- Server address: The domain or IP address of your MTProto proxy server
- Port: The port number your proxy is listening on
- Secret: A 32 character secret key for your proxy, consisting of hexadecimal digits 0-9 and a-f[1]

You can use the following command to generate a random MTProto secret key:

bash
openssl rand -hex 16

Once you have the server address, port, and secret, you can generate the proxy link in one of two formats:

1. tg://proxy link format:


tg://proxy?server=SERVER&port=PORT&secret=SECRET

Replace `SERVER`, `PORT`, and `SECRET` with your actual values.

2. https://t.me/proxy link format:


https://t.me/proxy?server=SERVER&port=PORT&secret=SECRET

Again, replace the placeholders with your real values.

Both link formats will work the same way in Telegram clients. The tg://proxy format is a bit shorter.

For example, with a server at `proxy.example.com`, port `443`, and secret `b0cbcef5a486d9636472ac27f8e11a9d`, the links would be:

- tg://proxy?server=proxy.example.com&port=443&secret=b0cbcef5a486d9636472ac27f8e11a9d
- https://t.me/proxy?server=proxy.example.com&port=443&secret=b0cbcef5a486d9636472ac27f8e11a9d

You can share these links with friends to allow them to easily add your MTProto proxy to their Telegram clients[1][5].

Citations:
[1] https://www.v2ray.com/en/configuration/protocols/mtproto.html
[2] https://v2how.github.io/post/2021-02-18-camouflage-telegram-mtproto-proxy-ubuntu-20-04/
[3] https://www.l1cafe.blog/2024/03/24/set-up-your-own-telegram-proxy.html
[4] https://github.com/seriyps/mtproto_proxy
[5] https://seriyps.ru/mtpgen.html
[6] https://core.telegram.org/mtproto/mtproto-transports
[7] https://mtpro.xyz
[8] https://github.com/TelegramMessenger/MTProxy/actions