MadelineProtoDocs/old_docs/API_docs_v13/constructors/nearestDc.md
2020-06-16 17:50:25 +02:00

901 B

title description image
nearestDc Nearest data centre, according to geo-ip. https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: nearestDc

Back to constructors index

Nearest data centre, according to geo-ip.

Attributes:

Name Type Required Description
country string Yes Country code determined by geo-ip
this_dc int Yes Number of current data centre
nearest_dc int Yes Number of nearest data centre

Type: NearestDc

Example:

$nearestDc = ['_' => 'nearestDc', 'country' => 'string', 'this_dc' => int, 'nearest_dc' => int];

Or, if you're into Lua:

nearestDc={_='nearestDc', country='string', this_dc=int, nearest_dc=int}