Prerequisites
Before starting, ensure you have:- A deployed Evevps Linux VPS (Ubuntu 22.04 or Debian 12 is recommended).
- Connected to your server via SSH with
rootprivileges.
Step 1: Install Docker
The easiest and most secure way to run an MTProto Proxy is by using Docker. If you don’t have Docker installed on your VPS, run the following commands:Step 2: Generate a Secret Key
Your proxy needs a 32-character hexadecimal secret key to authenticate users. You can easily generate a random, secure key using the Linux terminal:Step 3: Deploy the Proxy Container
We will use the official Telegram MTProto proxy Docker image. Run the command below, replacingYOUR_SECRET_KEY with the 32-character string you generated.
You can also change the port -p 443:443 if you prefer to use a different port (like 8443), but 443 is recommended as it mimics standard HTTPS traffic.
Step 4: Retrieve Your Invite Link
To connect to your proxy, you need an invite link formatted specifically for Telegram. To view the connection link generated by your container, check the Docker logs:Step 5: Connect in Telegram
- Copy the
https://t.me/proxy?...link from your logs. - Send this link to your saved messages in Telegram, or paste it into a web browser on a device with Telegram installed.
- Telegram will prompt you to “Connect to Proxy”.
- Click Connect Proxy, and your app will instantly route its traffic through your Evevps server.