{"id":28984315,"url":"https://github.com/internet-helper/mtproto-mtproxy-telegram","last_synced_at":"2026-05-19T07:08:43.083Z","repository":{"id":297257255,"uuid":"996181724","full_name":"Internet-Helper/MTProto-MTProxy-Telegram","owner":"Internet-Helper","description":"One-click script to install MTProto Proxy server on Debian and Ubuntu for Telegram. Скрипт для установки прокси-сервера MTProto в один клик на Debian и Ubuntu для Telegram.","archived":false,"fork":false,"pushed_at":"2025-06-16T22:38:07.000Z","size":94,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-24T17:06:22.999Z","etag":null,"topics":["debian","mtproto","mtproto-install","mtproto-proxy","mtprotoproxy","mtproxy","mtproxy-install","telegram","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Internet-Helper.png","metadata":{"files":{"readme":"README.en.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-04T15:15:36.000Z","updated_at":"2025-06-17T17:43:14.000Z","dependencies_parsed_at":"2025-06-04T22:03:48.418Z","dependency_job_id":"a0293672-3f6a-4fbf-8858-90918534e4da","html_url":"https://github.com/Internet-Helper/MTProto-MTProxy-Telegram","commit_stats":null,"previous_names":["internet-helper/mtproto-mtproxy-telegram"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Internet-Helper/MTProto-MTProxy-Telegram","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Internet-Helper%2FMTProto-MTProxy-Telegram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Internet-Helper%2FMTProto-MTProxy-Telegram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Internet-Helper%2FMTProto-MTProxy-Telegram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Internet-Helper%2FMTProto-MTProxy-Telegram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Internet-Helper","download_url":"https://codeload.github.com/Internet-Helper/MTProto-MTProxy-Telegram/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Internet-Helper%2FMTProto-MTProxy-Telegram/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279067612,"owners_count":26096351,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debian","mtproto","mtproto-install","mtproto-proxy","mtprotoproxy","mtproxy","mtproxy-install","telegram","ubuntu"],"created_at":"2025-06-24T17:03:07.738Z","updated_at":"2025-10-15T09:43:42.203Z","avatar_url":"https://github.com/Internet-Helper.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Installation for Debian 10-12 or Ubuntu 20.04-24.04\r\n\r\n\u003e [!IMPORTANT]\r\n\u003e This material is prepared for scientific and technical purposes. Using the provided materials for purposes other than familiarization may be a violation of applicable law.  \r\n\u003e The author is not responsible for any improper use of this material!\r\n\r\n***\r\n\r\nLike the project? Support the author via [CloudTips](https://pay.cloudtips.ru/p/8ec8a87c) or [Yoomoney](https://yoomoney.ru/to/41001945296522) for a cup of coffee ☕ \r\n\r\n***\r\n\r\n## About MTProxy\r\n\r\n**MTProxy** is the official proxy server from Telegram, based on MTProto.  \r\nThe official repository [TelegramMessenger/MTProxy](https://github.com/TelegramMessenger/MTProxy) is outdated as it has compilation issues.  \r\nThis script is designed to automate installation and resolve compatibility issues for modern systems, offering a number of improvements.\r\n\r\n## Main Script Features\r\n\r\n- Installs, reinstalls, or completely removes MTProxy.\r\n- Allows selection of external and internal ports during installation/reinstallation.\r\n- Sets up automatic daily configuration updates via `cron` for stable proxy operation.\r\n- Updates MTProxy secret with a single command.\r\n- Generates connection links after installation.\r\n\r\n## System Requirements\r\n\r\n- **OS**: Debian 10, 11, 12 or Ubuntu 20.04, 22.04, 22.10, 23.04, 24.04\r\n- **RAM**: 512 MB or more\r\n- **CPU**: 1 core or more\r\n- **Disk**: 1 GB\r\n- **Network**: Static public IP\r\n\r\n## Installation Instructions\r\n\r\nRun the following commands in the terminal:\r\n\r\n```\r\n# Download the script\r\nwget -O install_mtproxy_english.sh https://raw.githubusercontent.com/Internet-Helper/MTProto-MTProxy-Telegram/refs/heads/main/install_mtproxy_english.sh\r\n\r\n# Install dos2unix (if not already installed)\r\nsudo apt update \u0026\u0026 sudo apt install -y dos2unix\r\n\r\n# Fix line endings\r\ndos2unix install_mtproxy_english.sh\r\n\r\n# Grant execution permissions\r\nchmod +x install_mtproxy_english.sh\r\n\r\n# Run the script\r\nsudo /bin/bash ./install_mtproxy_english.sh\r\n```\r\n\r\nAfter updating and installing required packages, the script will prompt you to select external and internal ports:\r\n\r\n![image](https://github.com/user-attachments/assets/83ebe224-efcb-4d54-8424-431cb5e5c96d)\r\n\r\n## Setup and Usage\r\n\r\nAfter launching **MTProxy**, you will receive the following details:\r\n\r\n![image](https://github.com/user-attachments/assets/d1c6d77a-9f14-4190-83ef-1b22f493b3e4)\r\n\r\n## Proxy Setup Instructions:\r\n\r\n**For `https://t.me/proxy?server=...`**:\r\n1. Click the link or share it in any chat\r\n2. Telegram will prompt for connection confirmation\r\n3. Click «Connect»\r\n\r\n**For `tg://proxy?server=...`**:\r\n1. Copy the link and send it to «Saved Messages» or any chat\r\n2. Click the link\r\n3. Telegram will prompt for connection confirmation\r\n4. Click «Connect»\r\n\r\n**For for manual input in Telegram (Mobile)**:  \r\n1. Go to `Settings` → `Data and Storage` → `Proxy Settings` at the bottom\r\n2. Select `Add Proxy` → Choose `MTProto Proxy`\r\n3. Enter your server IP, external port, and secret\r\n4. Save and connect\r\n\r\n**For for manual input in Telegram (Desktop)**:  \r\n1. Go to `Settings` → `Advanced` → `Connection Type` → `Use Custom Proxy`\r\n2. Select `Add Proxy` → Choose `MTProto Proxy`\r\n3. Enter your server IP, external port, and secret\r\n4. Save and connect\r\n\r\n## Management Commands\r\n\r\n- Start:\r\n```\r\nsudo systemctl start mtproxy\r\n```\r\n- Stop:\r\n```\r\nsudo systemctl stop mtproxy\r\n```\r\n- Restart:\r\n```\r\nsudo systemctl restart mtproxy\r\n```\r\n- Status:\r\n```\r\nsudo systemctl status mtproxy\r\n```\r\n- Logs:\r\n```\r\nsudo journalctl -u mtproxy -f\r\n```\r\n- Update config:\r\n```\r\nsudo mtproxy-update\r\n```\r\n- Check external port:\r\n```\r\nsudo ss -tulnp | grep mtproto-proxy\r\n```\r\n- Change port:\r\n```\r\nsudo install_mtproxy_english.sh reinstall\r\n```\r\n- Update secret:\r\n```\r\nsudo install_mtproxy_english.sh update-secret\r\n```\r\n- Complete removal:\r\n```\r\nsudo install_mtproxy_english.sh delete\r\n```\r\n\r\n***\r\n\r\nLike the project? Support the author via [CloudTips](https://pay.cloudtips.ru/p/8ec8a87c) or [Yoomoney](https://yoomoney.ru/to/41001945296522) for a cup of coffee ☕\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finternet-helper%2Fmtproto-mtproxy-telegram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finternet-helper%2Fmtproto-mtproxy-telegram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finternet-helper%2Fmtproto-mtproxy-telegram/lists"}