MadelineProtoDocs/old_docs/API_docs_v44/constructors/phoneConnectionWebrtc.md

1.2 KiB

title description image
phoneConnectionWebrtc phoneConnectionWebrtc attributes, type and example https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: phoneConnectionWebrtc

Back to constructors index

Attributes:

Name Type Required
turn Bool Optional
stun Bool Optional
id long Yes
ip string Yes
ipv6 string Yes
port int Yes
username string Yes
password string Yes

Type: PhoneConnection

Example:

$phoneConnectionWebrtc = ['_' => 'phoneConnectionWebrtc', 'turn' => Bool, 'stun' => Bool, 'id' => long, 'ip' => 'string', 'ipv6' => 'string', 'port' => int, 'username' => 'string', 'password' => 'string'];

Or, if you're into Lua:

phoneConnectionWebrtc={_='phoneConnectionWebrtc', turn=Bool, stun=Bool, id=long, ip='string', ipv6='string', port=int, username='string', password='string'}