Skip to main content

phoneConnectionWebrtc

WebRTC connection parameters for a phone call.

type tg.PhoneConnectionWebrtc struct { /* ... */ }

Implements PhoneConnection.

Fields​

NameTypeRequiredDescription
Turnbool—Whether this is a TURN endpoint
Stunbool—Whether this is a STUN endpoint
IDint64yesEndpoint ID
IPstringyesIP address
Ipv6stringyesIPv6 address
PortintyesPort
UsernamestringyesUsername
PasswordstringyesPassword

References​