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

x/mtkruto/mod.ts>ClientParams

[WIP] Cross-runtime JavaScript library for building Telegram clients
Go to Latest
interface ClientParams
implements ClientPlainParams
Re-export
import { type ClientParams } from "https://deno.land/x/mtkruto@0.1.118/mod.ts";

Properties

optional
parseMode: ParseMode

A parse mode to use when the parseMode parameter is not specified when sending or editing messages. Defauls to ParseMode.None.

optional
appVersion: string

The app_version parameter to be passed to initConnection when calling authorize. It is recommended that this parameter is changed if users are authorized. Defaults to "MTKruto" followed by this version of MTKruto.

optional
deviceModel: string

The device_version parameter to be passed to initConnection when calling authorize. The default varies by the current runtime.

optional
langCode: string

The lang_code parameter to be passed to initConnection when calling authorize. Defaults to the runtime's language or "en".

optional
langPack: string

The lang_pack parameter to be passed to initConnection when calling authorize. Defaults to an empty string.

optional
systemLangCode: string

The system_lang_cde parameter to be passed to initConnection when calling authorize. Defaults to the runtime's language or "en".

optional
systemVersion: string

The system_version parameter to be passed to initConnection when calling authorize. The default varies by the current runtime.

optional
autoStart: boolean

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

optional
defaultHandlers: boolean

Whether to use default handlers. Defaults to true.

optional
ignoreOutgoing: boolean

Whether to ignore outgoing messages. Defaults to true for bots, and false for users.