Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mtkruto/client/0_client_abstract.ts>ClientAbstractParams

Cross-runtime JavaScript library for building Telegram clients
Latest
interface ClientAbstractParams
import { type ClientAbstractParams } from "https://deno.land/x/mtkruto@0.6.3/client/0_client_abstract.ts";

Properties

optional
initialDc: DC

The first DC to connect to. This is commonly used to decide whether to connect to test or production servers. It is not necessarily the DC that the client will directly connect to or is currently connected to. Defaults to the default initial DC.

optional
transportProvider: TransportProvider

The transport provider to use. Defaults to webSocketTransportProvider with its default options.

optional
cdn: boolean

Whether the connection is with a CDN server. Defaults to false.