API hash from my.telegram.org
API ID from my.telegram.org
Cryptography provider to allow delegating crypto to native addon, worker, etc.
Optional
defaultPrimary DC to use for initial connection. This does not mean this will be the only DC used, nor that this DC will actually be primary, this only determines the first DC the library will try to connect to. Can be used to connect to other networks (like test DCs).
When session already contains primary DC, this parameter is ignored.
Optional
disableIf true, all API calls will be wrapped with tl.invokeWithoutUpdates
,
effectively disabling the server-sent events for the clients.
May be useful in some cases.
Optional
enablemtcute can send all unknown RPC errors to danog's error reporting service.
This is fully anonymous (except maybe IP) and is only used to improve the library
and developer experience for everyone working with MTProto. This is fully opt-in,
and if you're too paranoid, you can disable it by manually passing enableErrorReporting: false
to the client.
Optional
initAdditional options for initConnection call.
apiId
and query
are not available and will be ignored.
Omitted values will be filled with defaults
Optional
logSet logging level for the client.
Shorthand for client.log.level = level
.
See static members of LogManager for possible values.
Optional
loggerLogger instance for the client. If not passed, a new one will be created.
Optional
networkExtra parameters for NetworkManager
Optional
overrideEXPERT USE ONLY!
Override TL layer used for the connection.
Does not change the schema used.
Optional
readerEXPERT USE ONLY
Override reader map used for the connection.
Optional
reconnectionReconnection strategy.
Storage to use for this client.
Optional
storageAdditional options for the storage manager
Optional
testWhether to connect to test servers.
If passed, defaultDc defaults to Test DC 2.
Must be passed if using test servers, even if you passed custom defaultDc
Transport factory to use in the client.
Optional
updatesOptional
useWhether to use IPv6 datacenters (IPv6 will be preferred when choosing a DC by id) (default: false)
Optional
writerEXPERT USE ONLY
Override writer map used for the connection.
Options for MtClient