Skip to main content

Module dc_pool

Module dc_pool 

Source
Expand description

Multi-DC connection pool.

Maintains one authenticated DcConnection per DC ID and routes RPC calls to the correct DC automatically. Auth keys are shared from the home DC via auth.exportAuthorization / auth.importAuthorization.

Structs§

DcConnection
A single encrypted connection to one Telegram DC.
DcPool
Pool of per-DC authenticated connections.