Open-source project
telemt/telemt avatar
telemt/telemt

telemt: an MTProxy server for Telegram in Rust and Tokio

MTProxy for Telegram on Rust + Tokio

5,822 stars282 forksRustLicense varies

At a glance

What is it?
A Rust and Tokio implementation of the Telegram MTProxy server, supporting all three official proxy modes with TLS fronting and optional traffic masking. The packaging files are where the detail is, including a cargo feature that exists only to mark a test as expected to fail and a compose file that mounts configuration as a directory so it can be replaced atomically.
Who is it for?
telemt suits someone running a Telegram proxy who wants the server side in one static binary with no garbage collector and a container definition that already drops its capabilities. Two things to know before deploying it.
Can I use it commercially?
Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
Is it still maintained?
Yes. The repository last received commits 10 days ago.
What is it written in?
Mainly Rust, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • telemt/telemt5,822 ★ · +124
Star history
Repository2026-09-242026-11-25
telemt/telemt5.7k5.8k

124 Stars in the last 62 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The package version is ahead of the newest release tag

The manifest records version 3.5.16, which matches the newest tag in the release history, dated 2026-10-31, with 3.5.15 the day before and 3.5.14 on 2026-10-05. The last push to the default branch is dated 2026-10-31, the same day as the 3.5.16 tag. The release titles are unusual for the project type, being German words rather than descriptions, with 3.5.16 named Verfassungsgericht and 3.5.15 Zukunftsbund. The language and edition settings are a higher floor than the project name suggests: edition 2024 and a minimum Rust version of 1.88.

One cargo feature exists only to mark a test as expected to fail

The features table has exactly one entry, a flag named redteam_offline_expected_fail, declared as an empty list with no dependencies attached to it. An empty feature adds no code, so the only thing enabling it can do is change behaviour at compile time inside the crate, or exist for a build script or test harness to detect. The name says what it is for: a red team test that runs offline and is expected to fail, and which therefore needs a way to be excluded from a pass criterion without deleting it. It is the kind of marker that is easy to leave behind, and its presence in a published manifest rather than only in a continuous integration configuration means anyone depending on the crate can see it. It is also the only feature, so the crate has no optional components at all beyond what its dependency tree pulls in.

Configuration is mounted as a directory so the file can be swapped by rename

The compose file mounts a path as a read-write directory rather than a single file, and the comment gives the reason: the API updates the configuration by writing a temporary file and renaming it, which only stays atomic if both paths are on the same filesystem. A single file bind mount cannot satisfy that, because the temporary file would land on a different filesystem and the rename would degrade into a copy. Two other details in the same block matter for an operational deployment. The working directory is a tmpfs of four megabytes with mode 1777, used to hold a cached proxy secret at runtime, so that value is not persisted to disk between restarts. And the port mapping publishes 443 on all interfaces but binds the two management ports to the loopback interface explicitly, which is the difference between a management API reachable from the network and one reachable only from the host.

The container runs read-only with every capability dropped but one

The hardening block in the compose file is unusually complete. All capabilities are dropped and a single one is added back, the capability to bind a service port, which is what allows an unprivileged process inside the container to listen on a port below 1024 while running as an ordinary user. The root filesystem is marked read only. A no-new-privileges option is set, so nothing inside can gain privileges it did not start with. There is a health check that does not shell out but invokes the binary itself with a healthcheck subcommand, passing the configuration path and a liveness mode, on a thirty second interval with a twenty second start period. File descriptor limits are raised well above the default, with a soft limit of 65536 against a hard limit of 262144, and container logging is capped at fifty megabytes across five files. For a proxy holding many concurrent connections, the descriptor limit is the setting that silently caps throughput if it is left at the default.

The image supports two architectures and verifies a checksum

The Dockerfile takes the architecture as a build argument and switches on it in the shell, mapping amd64 to one statically linked archive name and arm64 to another, and failing the build explicitly for anything else rather than falling back to a default. Both assets are musl builds, so the result does not depend on the libc of the base image. Alongside each archive it downloads a checksum file and runs a verification command against it, and only then extracts the binary, installs it with mode 0755, strips it with an option that tolerates failure, and deletes the downloads. That is a materially better supply chain story than a curl to shell installer, which is the other install path the readme offers. It is also only true for the container: the one-command installer pipes a script from a raw URL straight into a shell, so the two paths do not give the same assurance.

Three proxy modes, SNI fronting, and masking that forwards to a real site

All three official proxy modes are supported. The classic mode needs no prefix, the secure mode uses a dd prefix, and the fake TLS mode uses an ee prefix together with server name fronting. On the masking side there is an option to forward unrecognized connections to a real web server, which means a probe that connects and sends nothing recognisable gets a genuine website response rather than a connection reset. The readme makes a strong claim about how closely the TLS fronting behaves, describing it as almost behaviorally consistent to a real one and pointing at a validation and traces section in its FAQ as the evidence. Replay attack protection is listed alongside the modes. There are also configurable keepalives and timeouts, IPv6 support, a fast mode, graceful shutdown on interrupt, and logging controlled through an environment variable.

The release profile needs about a gigabyte of memory to build

The build section is a short sequence:

bash
# Cloning repo
git clone https://github.com/telemt/telemt
# Changing Directory to telemt
cd telemt
# Starting Release Build
cargo build --release

# Current release profile uses lto = "fat" for maximum optimization (see Cargo.toml).
# On low-RAM systems (~1 GB) you can override it to "thin".

# Move to /bin
mv ./target/release/telemt /bin
# Make executable
chmod +x /bin/telemt
# Lets go!
telemt config.toml

The one substantive comment sits under the build step, and it says the current release profile uses fat link time optimisation for maximum optimisation, with a pointer to the manifest, and that on a low memory system of around one gigabyte the profile can be overridden to thin. Fat LTO is the setting that determines whether this builds on a small virtual machine, and the readme tells you the number rather than leaving you to discover the out of memory failure. The stated reasons for choosing the language are mechanical ones: long running reliability and idempotent behaviour, deterministic resource management, no garbage collector, memory safety and a reduced attack surface, and the asynchronous architecture of the runtime.

Editorial conclusion

telemt suits someone running a Telegram proxy who wants the server side in one static binary with no garbage collector and a container definition that already drops its capabilities. Two things to know before deploying it. Bind ports 9090 and 9091 to loopback, because the compose file deliberately publishes only 443 broadly and pins the management ports to the local interface. And read the configuration directory arrangement, because the file is replaced by a rename from within the same filesystem, which means an editor that writes in place or a bind mount of a single file will not behave the way you expect. A team that needs the client side, or a protocol other than MTProto, is looking at the wrong project.

Frequently asked questions

What is telemt and what protocol does it implement?

It is a server written in Rust that fully implements the official Telegram proxy algorithm, built on the Tokio asynchronous runtime. It supports all three official proxy modes: classic, secure with a dd prefix, and fake TLS with an ee prefix plus server name fronting, along with replay attack protection.

How do I install telemt?

The readme offers a one-command installer that pipes a script from a raw URL into a shell, and also documents building from source with a release build, moving the binary into a bin directory, making it executable and running it against a configuration file. The Docker path avoids the pipe entirely and downloads a release archive together with a checksum file that it verifies before installing the binary.

Can telemt run in Docker with reduced privileges?

Yes. The compose file drops all capabilities and adds back only the capability to bind a service port, marks the root filesystem read only, sets a no-new-privileges option, mounts configuration as a directory so the API can replace it atomically by rename, and binds the two management ports to the loopback interface rather than publishing them.

What are the Rust version requirements for building telemt?

The manifest declares edition 2024 and a minimum Rust version of 1.88. The readme also notes that the release profile uses fat link time optimisation, and that on a system with roughly one gigabyte of memory the profile should be overridden to thin.

Does telemt support traffic masking and IPv6?

It supports optional traffic masking that forwards unrecognized connections to a real web server, configurable keepalives and timeouts, IPv6, a fast mode, graceful shutdown on interrupt, and logging through the RUST_LOG environment variable using trace and debug.

Official sources

  1. Issues
  2. README
  3. Releases
  4. telemt/telemt on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/telemt-telemt.svg)](https://hysenlabs.com/projects/telemt-telemt)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/telemt-telemt.svg)](https://hysenlabs.com/projects/telemt-telemt)

Was this useful?