Layer 224
PhoneConnectionObj
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 |
|---|---|---|
| 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 PhoneConnectionObj constructor obj := &tg.PhoneConnectionObj{ Id: int64(1234567890), Ip: "Hello, World!", Ipv6: "Hello, World!", Port: 42, PeerTag: []byte{0x01, 0x02, 0x03}, // Optional fields: // Tcp: true, }