API ID from my.telegram.org
OptionalcryptoCryptography provider to allow delegating crypto to native addon, worker, etc.
OptionaldefaultPrimary 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.
OptionaldisableIf 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.
Optionalenablemtcute 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.
OptionalinitAdditional options for initConnection call.
apiId and query are not available and will be ignored.
Omitted values will be filled with defaults
OptionalloggerLogger instance for the client. If not passed, a new one will be created.
OptionallogSet logging level for the client.
Shorthand for client.log.level = level.
See static members of LogManager for possible values.
OptionalnetworkExtra parameters for NetworkManager
OptionaloverrideEXPERT USE ONLY!
Override TL layer used for the connection.
Does not change the schema used.
OptionalplatformOptionalreaderEXPERT USE ONLY
Override reader map used for the connection.
OptionalreconnectionReconnection strategy.
OptionalstorageStorage to use for this client.
If a string is passed, it will be used as a name for an SQLite database file.
OptionalstorageAdditional options for the storage manager
OptionaltestWhether 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
OptionaltransportTransport to use in the client.
OptionalupdatesOptionaluseWhether to use IPv6 datacenters (IPv6 will be preferred when choosing a DC by id) (default: false)
OptionalwriterEXPERT USE ONLY
Override writer map used for the connection.
API hash from my.telegram.org