Raw.PhoneCallProtocol
Protocol info for libtgvoip
phoneCallProtocol#fc878fc8 flags:# udp_p2p:flags.0?true udp_reflector:flags.1?true min_layer:int max_layer:int library_versions:Vector<string> = PhoneCallProtocol;
export namespace Raw {
export class PhoneCallProtocol {
constructor(params: {
udpP2p?: boolean;
udpReflector?: boolean;
minLayer: number;
maxLayer: number;
libraryVersions: Array<string>;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0xfc878fc8
Property
udpP2p
: boolean or undefinedWhether to allow p2p connection to the other participant
udpReflector
: boolean or undefinedWhether to allow connection to the other participants through the reflector servers
minLayer
: numberMinimum layer for remote libtgvoip
maxLayer
: numberMaximum layer for remote libtgvoip
libraryVersions
: Array of stringWhen using phone.requestcall and phone.acceptcall, 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.acceptcall and in the phonecallaccepted update received by the caller.