AbstractOptionalconnection: ConnectionDisconnects all senders and removes all handlers Disconnect is safer as it will not remove your event handlers
Runs when the main transport connects; account sign-in may still be required.
Runs when the main sender starts connecting, including reconnections.
Runs once after client resources and subscriptions have been released.
Runs when the main transport disconnects, manually or during recovery.
Runs after automatic reconnection, the client probe and a catch-up attempt; does not await application handlers.
Runs once when an automatic reconnect cycle starts.
The current teleproto version.
Optional_Centralised pts/qts/seq tracker and gap recovery driver.
The in-memory entity cache. Exposes
size,has,deleteandclearso stale peers can be invalidated without touching internals. See TelegramClientParams.entityCache for bounding it.