MadelineProtoDocs/old_docs/API_docs_v95/constructors/phoneCallProtocol.md

42 lines
1.1 KiB
Markdown
Raw Normal View History

2019-03-29 21:12:30 +01:00
---
title: phoneCallProtocol
2019-12-27 17:48:04 +01:00
description: Protocol info for libtgvoip
2019-03-29 21:12:30 +01:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: phoneCallProtocol
[Back to constructors index](index.md)
2019-12-27 17:48:04 +01:00
Protocol info for libtgvoip
2019-03-29 21:12:30 +01:00
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
2019-12-27 17:48:04 +01:00
|udp\_p2p|[Bool](../types/Bool.md) | Optional|Whether to allow P2P connection to the other participant|
|udp\_reflector|[Bool](../types/Bool.md) | Optional|Whether to allow connection to the other participants through the reflector servers|
|min\_layer|[int](../types/int.md) | Yes|Minimum layer for remote libtgvoip|
|max\_layer|[int](../types/int.md) | Yes|Maximum layer for remote libtgvoip|
2019-03-29 21:12:30 +01:00
### Type: [PhoneCallProtocol](../types/PhoneCallProtocol.md)
### Example:
```php
$phoneCallProtocol = ['_' => 'phoneCallProtocol', 'udp_p2p' => Bool, 'udp_reflector' => Bool, 'min_layer' => int, 'max_layer' => int];
```
Or, if you're into Lua:
```lua
phoneCallProtocol={_='phoneCallProtocol', udp_p2p=Bool, udp_reflector=Bool, min_layer=int, max_layer=int}
```