Layer 224
PhoneConnectionWebrtc
Web RTC connection parameters
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
PhoneConnectionGogram Example
// Creating PhoneConnectionWebrtc constructor obj := &tg.PhoneConnectionWebrtc{ Id: int64(1234567890), Ip: "Hello, World!", Ipv6: "Hello, World!", Port: 42, Username: "Hello, World!", Password: "Hello, World!", // Optional fields: // Turn: true, // Stun: true, }