Layer 220
PhoneConnection
Identifies an endpoint that can be used to connect to the other user in a phone call
constructor
phoneConnection#9cc123c7 flags:# tcp:flags.0?true id:long ip:string ipv6:string port:int peer_tag:bytes = PhoneConnection;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Tcp | flags.0?true | Whether TCP should be used |
| Id | long | Endpoint ID |
| Ip | string | IP address of endpoint |
| Ipv6 | string | IPv 6 address of endpoint |
| Port | int | Port ID |
| PeerTag | bytes | Our peer tag |
Returns
PhoneConnectionGogram Example
// Creating PhoneConnection constructor obj := &tg.PhoneConnection{ Id: int64(0), Ip: "...", Ipv6: "...", Port: 0, PeerTag: []byte{}, // Optional fields: // Tcp: true, }