miniproto.connection
miniproto.connection
Section titled “miniproto.connection”Public MTProto connection, sender, and transport primitives.
Public objects
Section titled “Public objects”MTProtoSender— Manage a concurrent encrypted MTProto session over a reconnecting transport.PendingRequest— Internal state retained for one unresolved request and its resend aliases.QuickAckReceipt— Early transport-acknowledgement metadata for one encrypted send attempt.SenderState— Snapshot of sender liveness and pending RPC capacity.ConnectionEndpoint— Validated TCP destination for an MTProto transport.StreamConnector— Public attributeminiproto.connection.transport.StreamConnector.Transport— Asynchronous MTProto framed-byte transport contract.TransportClosed— Raised when a transport operation is attempted on a closed connection.TransportError— Raised when an MTProto transport cannot complete an operation.TransportTimeout— Raised when a transport read or write exceeds its configured deadline.open_transport— Construct, connect, and return the transport matchingconfig.mode.