MadelineProtoDocs/old_docs/API_docs_v103/constructors/phoneConnection.md

43 lines
947 B
Markdown
Raw Normal View History

2019-08-15 20:25:16 +02:00
---
title: phoneConnection
description: Phone connection
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: phoneConnection
[Back to constructors index](index.md)
Phone connection
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|id|[long](../types/long.md) | Yes|ID|
|ip|[string](../types/string.md) | Yes|Ip|
|ipv6|[string](../types/string.md) | Yes|Ipv6|
|port|[int](../types/int.md) | Yes|Port|
|peer\_tag|[bytes](../types/bytes.md) | Yes|Peer tag|
### Type: [PhoneConnection](../types/PhoneConnection.md)
### Example:
```php
$phoneConnection = ['_' => 'phoneConnection', 'id' => long, 'ip' => 'string', 'ipv6' => 'string', 'port' => int, 'peer_tag' => 'bytes'];
```
Or, if you're into Lua:
```lua
phoneConnection={_='phoneConnection', id=long, ip='string', ipv6='string', port=int, peer_tag='bytes'}
```