The Telegram Messenger MTProto proxy is a zero-configuration container that automatically sets up a proxy server that speaks Telegram's native MTProto.
This needs dockerhost
, install from here
Clone this repository and pull the docker image
git clone --depth=1 --single-branch https://github.com/ariadata/mtproxy-alpine.git dc-mtproxy
cd dc-mtproxy
docker compose pull
Generate atleast one secret key (Use one of these commands):
# use one of these commands to generate a secret key
echo $(head -c 16 /dev/urandom | xxd -ps)
echo $(openssl rand -hex 16)
echo $(docker run --rm -v /dev/urandom:/dev/urandom:ro --entrypoint=openssl alpine/openssl rand -hex 16)
Edit .env
file and set the secret key(s) and other variables:
Run the container and use bash file to generate links:
docker compose up -d
bash generate_links.sh