Optional
connectionConnection count for each connection kind. The function should be pure to avoid unexpected behavior.
Defaults to TDLib logic:
Non-zero value for main
is for advanced users only
as it may lead to unexpected behavior, and is generally not recommended
because of unnecessary extra load on both the server and the client as well as
increased possibility of encountering AUTH_KEY_DUPLICATED errors.
Optional
inactivityIdle timeout for non-main connections, in ms
Optional
middlewaresList of middlewares to use for the network manager
Note: these middlewares apply to outgoing requests only. If you need to handle incoming updates, use a Dispatcher instead.
Optional
useWhether to use PFS (Perfect Forward Secrecy) for all connections. This is disabled by default
Additional params passed into NetworkManager by the user that customize the behavior of the manager