|
|
7 vuotta sitten | |
|---|---|---|
| client | 7 vuotta sitten | |
| config | 7 vuotta sitten | |
| mtproto | 7 vuotta sitten | |
| obfuscated2 | 7 vuotta sitten | |
| proxy | 7 vuotta sitten | |
| scripts | 8 vuotta sitten | |
| stats | 7 vuotta sitten | |
| telegram | 7 vuotta sitten | |
| utils | 7 vuotta sitten | |
| wrappers | 7 vuotta sitten | |
| .gitignore | 7 vuotta sitten | |
| .gometalinter.json | 8 vuotta sitten | |
| .travis.yml | 8 vuotta sitten | |
| Dockerfile | 7 vuotta sitten | |
| Gopkg.lock | 7 vuotta sitten | |
| Gopkg.toml | 7 vuotta sitten | |
| LICENSE | 8 vuotta sitten | |
| Makefile | 7 vuotta sitten | |
| README.md | 7 vuotta sitten | |
| main.go | 7 vuotta sitten | |
| run-mtg.sh | 7 vuotta sitten |
Bullshit-free MTPROTO proxy for Telegram
There are several available proxies for Telegram MTPROTO available. Here are the most notable:
Almost all of them follow the way how official proxy was build. This includes support of multiple secrets, support of promoted channels etc.
mtg is an implementation in golang which is intended to be:
This proxy supports 2 modes of work: direct connection to Telegram and promoted channel mode. If you do not need promoted channels, I would recommend you to go with direct mode: this is way more robust.
To run proxy in direct mode, all you need to do is just provide a secret. If you do not provide ADTag as a second parameter, promoted channels mode won’t be activated.
To get promoted channel, please contact @MTProxybot and provide generated adtag as a second parameter.
$ make
If you want to build for another platform:
$ make crosscompile
If you want to build Docker image (called mtg):
$ make docker
$ docker pull nineseconds/mtg
Basically, to run this tool you need to configure as less as possible.
First, you need to generate a secret:
$ openssl rand -hex 16
or
$ head -c 512 /dev/urandom | md5sum | cut -f 1 -d ' '
Now run the tool:
$ mtg <secret>
This tool will listen on port 3128 by default with the given secret.
$ docker run --name mtg --restart=unless-stopped -p 3128:3128 -p 3129:3129 -d nineseconds/mtg $(openssl rand -hex 16)
You will have this tool up and running on port 3128. Now curl
localhost:3129 to get tg:// links or do docker logs mtg. Also,
port 3129 will show you some statistics if you are interested in.
Also, you can use run-mtg.sh script