NearestDc

class pyrogram.raw.types.NearestDc

Nearest data center, according to geo-ip.

Constructor of NearestDc.

Details:
  • Layer: 223

  • ID: 8E1A1775

Parameters:
  • country (str) – Country code determined by geo-ip

  • this_dc (int 32-bit) – Number of current data center

  • nearest_dc (int 32-bit) – Number of nearest data center

Functions:

This object can be returned by 1 function.

help.GetNearestDc

Returns info on data center nearest to the user.

TL Schema

nearestDc#8e1a1775
country:string
this_dc:int
nearest_dc:int

= NearestDc

Parameter Tree

NearestDc
├── countrystring
├── this_dcint
└── nearest_dcint

Example

NearestDc(
    country="text",
    this_dc=0,
    nearest_dc=0,
)