mtprotoproxy

Async MTProto proxy for Telegram

Github stars Tracking Chart

Async MTProto Proxy

Fast and simple to setup MTProto proxy written in Python.

Starting Up

  1. git clone -b stable https://github.com/alexbers/mtprotoproxy.git; cd mtprotoproxy
  2. (optional, recommended) edit config.py, set PORT, USERS and AD_TAG
  3. docker-compose up -d (or just python3 mtprotoproxy.py if you don't like Docker)
  4. (optional, get a link to share the proxy) docker-compose logs

Demo

Channel Advertising

To advertise a channel get a tag from @MTProxybot and put it to config.py.

Performance

The proxy performance should be enough to comfortably serve about 4 000 simultaneous users on
the VDS instance with 1 CPU core and 1024MB RAM.

More Instructions

Advanced Usage

The proxy can be launched:

  • with a custom config: python3 mtprotoproxy.py [configfile]
  • several times, clients will be automaticaly balanced between instances
  • with uvloop module to get an extra speed boost
  • with runtime statistics exported to Prometheus

Main metrics

Overview
Name With Owneralexbers/mtprotoproxy
Primary LanguagePython
Program languagePython (Language Count: 2)
Platform
License:MIT License
所有者活动
Created At2018-05-27 10:09:13
Pushed At2024-11-11 20:09:02
Last Commit At2024-11-12 01:08:57
Release Count14
Last Release Namev1.1.1 (Posted on )
First Release Namev0.9 (Posted on )
用户参与
Stargazers Count1.6k
Watchers Count63
Fork Count367
Commits Count306
Has Issues Enabled
Issues Count251
Issue Open Count101
Pull Requests Count22
Pull Requests Open Count6
Pull Requests Close Count26
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private