Telegram data center switch
Asked Answered
C

1

6

Whatever I try, I get my user associated to the Telegram data center 4.

In this way I immediately receive the messages sent by users/channels on the same data center (Europe?), but I get messages sent by some other channels with 4-5 seconds of delay and I believe those messages are sent by users on the data center 1 (USA/America).

This is the documentation about data centers: https://core.telegram.org/api/datacenter

The client does not yet know which DC it will be associated with; therefore, it establishes an encrypted connection to a random address and sends its query to that address. Having received a phone_number from a client, we can find out whether or not it is registered in the system. If it is, then, if necessary, instead of sending a text message, we request that it establish a connection with a different DC first (PHONE_MIGRATE_X error). If we do not yet have a user with this number, we examine its IP-address. We can use it to identify the closest DC. Again, if necessary, we redirect the user to a different DC (NETWORK_MIGRATE_X error).

Now, besides some normal attempts, I have registered a new user via a US proxy, the nearestDC request returned 1 as nearest data center and US as country, but still the response to the auth.sendCode request was a migration to the data center 4. The same happens if I try to send any request to any other DC (except for files stored there).

How can I get a user registered or migrated to the data center 1? And, is it the different data center the reason for the delay on SOME CHANNELS messages?

I know that, by the docs, my user could be migrated to a different data center if I keep connecting from an IP address near to it, but given that it did not work with registration, I'm not eager to waste may be one month or more for this kind of attempt; I would rather get a fresh user directly on the data center 1.

Crossbar answered 26/8, 2017 at 13:49 Comment(0)
J
2
  1. Use text now app to get a number outside from your country like for DC1 choose Washington
  2. After that create a new account using that number in telegram.
  3. After using that account for a while, you can delete your personal account.
  4. Go to the settings of the new account and change the phone number to your own personal number. IE, data center won't change if u change phone number
Jeri answered 3/5, 2020 at 21:56 Comment(3)
soory i was late by 3 yearsJeri
If you read core.telegram.org/api/datacenter#registrationauthorization they only talk about using the ip address when a new number registers with telegram, to assign the data center. Why do you say the dc is chosen based on the country code?Gringo
@WalkingCorpse I'm not sure about it; perhaps something has changed. However, I personally made a new account in India using a phone number from a European nation, and I was given the address of DC, which is close to Europe.Jeri

© 2022 - 2024 — McMap. All rights reserved.