Layer 227
constructor
phoneConnectionWebrtc#635fe375 flags:# turn:flags.0?true stun:flags.1?true id:long ip:string ipv6:string port:int username:string password:string = PhoneConnection;

Parameters

Name Type Description
Turn flags .0? true Whether this is a TURN endpoint
Stun flags .1? true Whether this is a STUN endpoint
Id long Endpoint ID
Ip string IP address
Ipv6 string IPv 6 address
Port int Port
Username string Username
Password string Password

Returns

PhoneConnection

Gogram Example

// Creating PhoneConnectionWebrtc constructor
obj := &tg.PhoneConnectionWebrtc{
    Turn: nil,
    Stun: nil,
    Id: int64(1234567890),
    Ip: "Hello, World!",
    Ipv6: "Hello, World!",
    Port: 42,
    // ... more required fields
}