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