Readonly
_configPrimary DCs taken from MtClientOptions.defaultDcs, loaded from session or changed by other means (like redirecting).
Readonly
_layerTL layer used by the client
Readonly
_readerTL readers map used by the client
Protected
Readonly
_test"Test mode" taken from MtClientOptions.testMode
Readonly
_writerTL writers map used by the client
Readonly
cryptoCrypto provider taken from MtClientOptions.crypto
Readonly
logReadonly
networkReadonly
onReadonly
onReadonly
onReadonly
onReadonly
paramsReadonly
stopReadonly
storageStorage manager
Make an RPC call.
The connection must have been connect-ed before calling this method.
This method is still quite low-level and you shouldn't use this
when using high-level API provided by @mtcute/client
.
RPC method to call
Optional
params: RpcCallOptionsAdditional call parameters
Initialize the connection to the primary DC.
You shouldn't usually call this method directly as it is called implicitly the first time you call call.
ADVANCED
Do all the preparations, but don't connect just yet. Useful when you want to do some preparations before connecting, like setting up session.
Call connect to actually connect.
Basic MTProto client implementation, only doing the bare minimum to make RPC calls and receive low-level updates, as well as providing some APIs to manage that.