DcOption

class pyrogram.raw.types.DcOption

Data centre.

Constructor type of DcOption.

Details
  • Layer: 126

  • ID: 0x18b7a10d

Parameters
  • id (int 32-bit) – DC ID.

  • ip_address (str) – IP address of DC.

  • port (int 32-bit) – Port.

  • ipv6 (bool, optional) – Whether the specified IP is an IPv6 address.

  • media_only (bool, optional) – Whether this DC should only be used to download or upload files.

  • tcpo_only (bool, optional) – Whether this DC only supports connection with transport obfuscation.

  • cdn (bool, optional) – Whether this is a CDN DC.

  • static (bool, optional) – If set, this IP should be used when connecting through a proxy.

  • secret (bytes, optional) – If the tcpo_only flag is set, specifies the secret to use when connecting using transport obfuscation.