TGVless — это неофициальный форк официального Android-клиента Telegram с добавленной поддержкой VLESS-прокси для подключения через Xray-совместимый транспорт.
В этом форке не изменяется протокол Telegram и не подменяется его сетевая логика. Клиент, как и раньше, работает с Telegram-серверами, а VLESS добавлен как отдельный транспортный слой для проксирования трафика.
- новый тип прокси
VLESSрядом сSOCKS5иMTProto - поддержка
VLESS + TCP + TLS - поддержка
VLESS + WebSocket + TLS - локальный bridge-механизм: Telegram подключается к локальному порту, а дальше трафик передаётся через VLESS/Xray
Для создания VLESS-профиля используются:
Server/ адрес сервераPortUUIDTLSSNI/Server NameTransport:TCPилиWebSocketWS Pathдля режимаWebSocketInsecure modeтолько для тестов
- Подними VPS с публичным IP-адресом.
- Установи
xray-core. - Создай inbound
VLESSв одном из режимов:TCP + TLSWebSocket + TLS
- Открой нужный порт в firewall.
- Если используется домен, направь его на VPS и укажи этот домен в
SNI. - Если домена нет, можно использовать IP сервера, а в
SNIуказать нейтральное имя хоста для TLS-проверки, если это требуется твоей схемой. - Перенеси параметры сервера в раздел
VLESSвнутри приложения.
Для быстрого развёртывания VLESS на VPS есть отдельный GUI-конфигуратор:
- исходники: VLESS Server Configurator
- готовый релиз: VlessServerConfigurator.zip
Конфигуратор умеет:
- собрать VLESS TCP + TLS или WS + TLS
- подключиться к VPS по SSH
- установить и настроить Xray
- сгенерировать client JSON,
vless://URI и QR
- Это форк, а не официальный клиент Telegram.
- Для собственной сборки лучше использовать свои
api_idиapi_hash. - Не рекомендуется включать
insecure modeв обычной эксплуатации. - Ниже сохранён оригинальный README официального проекта.
Telegram is a messaging app with a focus on speed and security. It’s superfast, simple and free. This repo contains the official source code for Telegram App for Android.
We welcome all developers to use our API and source code to create applications on our platform. There are several things we require from all developers for the moment.
- Obtain your own api_id for your application.
- Please do not use the name Telegram for your app — or make sure your users understand that it is unofficial.
- Kindly do not use our standard logo (white paper plane in a blue circle) as your app's logo.
- Please study our security guidelines and take good care of your users' data and privacy.
- Please remember to publish your code too in order to comply with the licences.
Telegram API manuals: https://core.telegram.org/api
MTproto protocol manuals: https://core.telegram.org/mtproto
Note: In order to support reproducible builds, this repo contains dummy release.keystore, google-services.json and filled variables inside BuildVars.java. Before publishing your own APKs please make sure to replace all these files with your own.
You will require Android Studio 3.4, Android NDK rev. 20 and Android SDK 8.1
- Download the Telegram source code from https://github.com/DrKLO/Telegram ( git clone https://github.com/DrKLO/Telegram.git )
- Copy your release.keystore into TMessagesProj/config
- Fill out RELEASE_KEY_PASSWORD, RELEASE_KEY_ALIAS, RELEASE_STORE_PASSWORD in gradle.properties to access your release.keystore
- Go to https://console.firebase.google.com/, create two android apps with application IDs org.telegram.messenger and org.telegram.messenger.beta, turn on firebase messaging and download google-services.json, which should be copied to the same folder as TMessagesProj.
- Open the project in the Studio (note that it should be opened, NOT imported).
- Fill out values in TMessagesProj/src/main/java/org/telegram/messenger/BuildVars.java – there’s a link for each of the variables showing where and which data to obtain.
- You are ready to compile Telegram.
We moved all translations to https://translations.telegram.org/en/android/. Please use it.