MadelineProtoDocs/docs/API_docs/constructors/phoneConnectionWebrtc.md
2024-05-01 14:53:46 +02:00

1.2 KiB

title description nav_exclude image
phoneConnectionWebrtc WebRTC connection parameters true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: phoneConnectionWebrtc

Back to constructors index

WebRTC connection parameters

Attributes:

Name Type Required Description
turn Bool Optional Whether this is a TURN endpoint
stun Bool Optional Whether this is a STUN endpoint
id long Yes Endpoint ID
ip string Yes IP address
ipv6 string Yes IPv6 address
port int Yes Port
username string Yes Username
password string Yes Password

Type: PhoneConnection

Example:

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