MadelineProtoDocs/old_docs/API_docs_v33/constructors/dcOption.md
2019-12-27 17:48:04 +01:00

41 lines
742 B
Markdown

---
title: dcOption
description: Data centre
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: dcOption
[Back to constructors index](index.md)
Data centre
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|id|[int](../types/int.md) | Yes|DC ID|
|ip\_address|[string](../types/string.md) | Yes|IP address of DC|
|port|[int](../types/int.md) | Yes|Port|
### Type: [DcOption](../types/DcOption.md)
### Example:
```php
$dcOption = ['_' => 'dcOption', 'id' => int, 'ip_address' => 'string', 'port' => int];
```
Or, if you're into Lua:
```lua
dcOption={_='dcOption', id=int, ip_address='string', port=int}
```