Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>PhoneCallProtocol_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class PhoneCallProtocol_
import { PhoneCallProtocol_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Protocol info for libtgvoip

Constructors

new
PhoneCallProtocol_(params: { udp_p2p?: true; udp_reflector?: true; min_layer: number; max_layer: number; library_versions: Array<string>; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
library_versions: Array<string>

When 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.

max_layer: number

Maximum layer for remote libtgvoip

min_layer: number

Minimum layer for remote libtgvoip

optional
udp_p2p: true

Whether to allow P2P connection to the other participant

optional
udp_reflector: true

Whether to allow connection to the other participants through the reflector servers

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc