Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexbers/mtprotoproxy
Async MTProto proxy for Telegram
https://github.com/alexbers/mtprotoproxy
async-mtproto-proxy docker mtproto mtproxy proxy python telegram
Last synced: about 23 hours ago
JSON representation
Async MTProto proxy for Telegram
- Host: GitHub
- URL: https://github.com/alexbers/mtprotoproxy
- Owner: alexbers
- License: mit
- Created: 2018-05-27T10:09:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-11-11T20:09:02.000Z (about 1 month ago)
- Last Synced: 2024-12-04T12:37:44.680Z (8 days ago)
- Topics: async-mtproto-proxy, docker, mtproto, mtproxy, proxy, python, telegram
- Language: Python
- Homepage:
- Size: 368 KB
- Stars: 1,596
- Watchers: 66
- Forks: 351
- Open Issues: 104
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-freedom - Official Python
README
# 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](https://alexbers.com/mtprotoproxy/install_demo_v2.gif)
## 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 ##
- [Running without Docker](https://github.com/alexbers/mtprotoproxy/wiki/Running-Without-Docker)
- [Optimization and fine tuning](https://github.com/alexbers/mtprotoproxy/wiki/Optimization-and-Fine-Tuning)## 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](https://prometheus.io/)