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
ReadonlycryptoCrypto provider taken from MtClientOptions.crypto
ReadonlylogReadonlynetworkReadonlyonReadonlyonReadonlyonReadonlyonReadonlyparamsReadonlystopReadonlystorageStorage 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
Optionalparams: 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.
Close all connections and finalize the client.
Note: must be called after disconnect
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.