diff --git a/docs/FAQ.en.md b/docs/FAQ.en.md index 81ac8f2..12505a4 100644 --- a/docs/FAQ.en.md +++ b/docs/FAQ.en.md @@ -157,6 +157,24 @@ Keep-Alive: timeout=60 ### Why do you need a middle proxy (ME) https://github.com/telemt/telemt/discussions/167 +## How clients interact with Telegram DCs +When you register a Telegram account, it gets permanently bound to one of Telegram's data centers (DCs). +It is deciced beforehand by Telegram based on the phone number's region. +This DC becomes your **home DC**: all content you upload (photos, videos, files, messages) is stored there. +Your client authenticates on it with every connection. + +For example, if your account is registered on **DC2**, your client will always connect to DC2 first. +When you open a chat with another user whose home DC is **DC5**, your client opens an additional connection to DC5 to download their media. +Those cross-DC requests are normal and happen constantly. + +> [!WARNING] +> Because every session is anchored to your home DC, an outage there causes other DCs to be unavaliable. +> If your home DC is DC2 and DC2 goes down, you **cannot** reach DC5 even though DC5 itself is perfectly healthy. +> The client has no valid session to route the request through. + +This is also why an MTProxy only needs to reach Telegram's DC infrastructure as a whole. +The proxy itself doesn't care which DC your account lives on. The client negotiates the correct DC through the proxy after connecting. + ### How many people can use one link By default, an unlimited number of people can use a single link. However, you can limit the number of unique IP addresses for each user: @@ -164,7 +182,8 @@ However, you can limit the number of unique IP addresses for each user: [access.user_max_unique_ips] hello = 1 ``` -This parameter sets the maximum number of unique IP addresses from which a single link can be used simultaneously. If the first user disconnects, a second one can connect. At the same time, multiple users can connect from a single IP address simultaneously (for example, devices on the same Wi-Fi network). +This parameter sets the maximum number of unique IP addresses from which a single link can be used simultaneously. If the first user disconnects, a second one can connect. +At the same time, multiple users can connect from a single IP address simultaneously (for example, devices on the same Wi-Fi network). ### How to create multiple different links 1. Generate the required number of secrets using the command: `openssl rand -hex 16`. diff --git a/docs/FAQ.ru.md b/docs/FAQ.ru.md index ab33845..73a2ba4 100644 --- a/docs/FAQ.ru.md +++ b/docs/FAQ.ru.md @@ -155,6 +155,23 @@ Keep-Alive: timeout=60 ## Зачем нужен middle proxy (ME) https://github.com/telemt/telemt/discussions/167 +## Как клиенты взаимодействуют с дата-центрами Telegram +При регистрации аккаунта Telegram он навсегда привязывается к одному из дата-центров (DC). +Telegram заранее определяет к какому DC привязать аккаунт исходя из региона, к которому относиться номер телефона. +Этот DC становится вашим **домашним**: именно там хранится весь контент, который вы загружаете (фото, видео, файлы, сообщения). +И именно на нем клиент авторизуется при каждом подключении. + +Например, если ваш аккаунт зарегистрирован на **DC2**, клиент всегда будет подключаться в первую очередь к DC2. +Когда вы открываете переписку с пользователем, чей домашний DC — **DC5**, клиент устанавливает доп. соединение с DC5, чтобы загрузить его контент. +Такие кросс-запросы к DC — это нормальная часть работы Telegram. + +> [!WARNING] +> Поскольку аккаунт всегда привязан к домашнему DC, при его падении контент с других DC будет недоступен. +> Если ваш домашний DC — DC2, и DC2 лежит, вы **не сможете** достучаться и до DC5, даже если сам DC5 полностью исправен. +> У клиента просто нет валидной сессии, через которую можно было бы направить запрос. + +По той же причине MTProxy достаточно иметь доступ к инфраструктуре Telegram в целом. +Cамому MTProxy всё равно, на каком DC живёт ваш аккаунт. Клиент cам договаривается о нужном DC через прокси уже после подключения. ## Что такое dd и ee в контексте MTProxy?