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>PhoneConnection_

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

Identifies an endpoint that can be used to connect to the other user in a phone call

Constructors

new
PhoneConnection_(params: { tcp?: true; id: bigint; ip: string; ipv6: string; port: number; peer_tag: Uint8Array; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
id: bigint

Endpoint ID

ip: string

IP address of endpoint

ipv6: string

IPv6 address of endpoint

peer_tag: Uint8Array

Our peer tag

port: number

Port ID

optional
tcp: true

Whether TCP should be used

Static Properties

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