Layer 220
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
Flags # Flags, see TL conditional fields
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{
    Id: int64(0),
    Ip: "...",
    Ipv6: "...",
    Port: 0,
    Username: "...",
    Password: "...",

    // Optional fields:
    // Turn: true,
    // Stun: true,
}