Layer 220
PhoneCallProtocol
Protocol info for libtgvoip
constructor
phoneCallProtocol#fc878fc8 flags:# udp_p2p:flags.0?true udp_reflector:flags.1?true min_layer:int max_layer:int library_versions:Vector<string> = PhoneCallProtocol;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| UdpP2P | flags.0?true | Whether to allow P 2 P connection to the other participant |
| UdpReflector | flags.1?true | Whether to allow connection to the other participants through the reflector servers |
| MinLayer | int | Minimum layer for remote libtgvoip |
| MaxLayer | int | Maximum layer for remote libtgvoip |
| LibraryVersions | Vector<string> | When using phone. request Call and phone. accept Call, specify all library versions supported by the client. The server will merge and choose the best library version supported by both peers, returning only the best value in the result of the callee's phone. accept Call and in the phone Call Accepted update received by the caller. |
Returns
PhoneCallProtocolGogram Example
// Creating PhoneCallProtocol constructor obj := &tg.PhoneCallProtocol{ MinLayer: 0, MaxLayer: 0, LibraryVersions: "...", // Optional fields: // UdpP2P: true, // UdpReflector: true, }