Skip to content

miniproto.auth.bootstrap.UnencryptedAuthKeyTransport.send_unencrypted

miniproto.auth.bootstrap.UnencryptedAuthKeyTransport.send_unencrypted

Section titled “miniproto.auth.bootstrap.UnencryptedAuthKeyTransport.send_unencrypted”
send_unencrypted(body: bytes) -> bytes

Send one unencrypted MTProto body and return its response body.

Parameters:

  • body (bytes) – Serialized MTProto authorization request.

Returns:

  • bytes – The decoded unencrypted response body.

Raises:

  • ConnectionError – If the server sends a quick ACK instead of a response packet.