get_nearest_dc()

async Client.get_nearest_dc()

Get the nearest data center based on client’s IP.

Usable by Users Bots
Returns:

NearestDc – The nearest data center info.

Example

dc = await app.get_nearest_dc()