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

x/mtkruto/client/3_client.ts>ClientParams

[WIP] Cross-runtime JavaScript library for building Telegram clients
Go to Latest
interface ClientParams
import { type ClientParams } from "https://deno.land/x/mtkruto@0.0.982/client/3_client.ts";

Properties

optional
parseMode: ParseMode

Default parse mode. Defauls to ParseMode.None.

optional
transportProvider: TransportProvider

The transport provider to use. Defaults to webSocketTransportProvider.

optional
appVersion: string

The app_version parameter to be passed to initConnection when calling authorize.

optional
deviceModel: string

The device_version parameter to be passed to initConnection when calling authorize.

optional
langCode: string

The lang_code parameter to be passed to initConnection when calling authorize.

optional
langPack: string

The lang_pack parameter to be passed to initConnection when calling authorize.

optional
systemLangCode: string

The system_lang_cde parameter to be passed to initConnection when calling authorize.

optional
systemVersion: string

The system_version parameter to be passed to initConnection when calling authorize.

optional
publicKeys: PublicKeys

MTProto public keys to use in the [keyId, [key, exponent]][] format. Don't set this unless you know what you are doing.

optional
autoStart: boolean

Whether to automatically call start with no parameters in the first invoke call.