import { type ClientParams } from "https://deno.land/x/mtkruto@0.6.3/mod.ts";
Properties
The storage provider to use. Defaults to memory storage. Passing a string constructs a memory storage with the string being the auth string.
App's API ID from my.telegram.org/apps. Required if no account was previously authorized.
App's API hash from my.telegram.org/apps. Required if no account was previously authorized.
A parse mode to use when the parseMode
parameter is not specified when sending or editing messages. Defaults to ParseMode.None
.
The app_version parameter to be passed to initConnection. It is recommended that this parameter is changed if users are authorized. Defaults to MTKruto.
The device_version parameter to be passed to initConnection. The default varies by the current runtime.
The lang_code parameter to be passed to initConnection. Defaults to the runtime's language or "en"
.
The lang_pack parameter to be passed to initConnection. Defaults to an empty string.
The system_lang_cde parameter to be passed to initConnection. Defaults to the runtime's language or "en"
.
The system_version parameter to be passed to initConnection. The default varies by the current runtime.
What types of outgoing messages should be received. business
is only valid for bots. Defaults to business
for bots, and all
for users.
Default command prefixes. Defaults to "/"
for bots and "\"
for users. This option must be set separately for nested composers.
Whether to guarantee that order-sensitive updates are delivered at least once before delivering next ones. Useful mainly for clients providing a user interface à la Telegram Desktop. Defaults to false
.
Whether to not handle updates received when the client was not running. Defaults to true
for bots, and false
for users.
Whether to persist cache to the provided storage, and not memory. Defaults to false
.
Explicitly setting this option to true
is highly recommended if:
- User accounts are authorized.
- Less memory usage is demanded.
- The client does not usually have a large uptime.
When the provided storage takes advantage of memory, nothing changes, even if set to true
.
Whether to disable receiving updates. UpdateConnectionState and UpdatesAuthorizationState will always be received. Defaults to false
.