DcOption

class pyrogram.raw.base.DcOption

Information for connection to data center.

Constructors:

This base type has 1 constructor available.

DcOption

Data center

TL Schema

dcOption#18b7a10d
flags:#
ipv6:flags.0?true
media_only:flags.1?true
tcpo_only:flags.2?true
cdn:flags.3?true
static:flags.4?true
this_port_only:flags.5?true
id:int
ip_address:string
port:int
secret:flags.10?bytes

= DcOption

Parameter Tree

DcOption
├── ipv6true (optional)
├── media_onlytrue (optional)
├── tcpo_onlytrue (optional)
├── cdntrue (optional)
├── statictrue (optional)
├── this_port_onlytrue (optional)
├── idint
├── ip_addressstring
├── portint
└── secretbytes (optional)

Example

DcOption(
    ipv6=None,
    media_only=None,
    tcpo_only=None,
    cdn=None,
    static=None,
    this_port_only=None,
    id=0,
    ip_address="text",
    port=0,
    secret=b"data",
)