Skip to main content

decode_bind_single

Function decode_bind_single 

Source
pub fn decode_bind_single(body: &[u8]) -> Result<(), String>
Expand description

Decode one bare MTProto message body for the auth.bindTempAuthKey response.

Returns Ok(()) if this message body contains boolTrue (success). Returns Err("skip") for informational messages the caller should ignore (new_session_created, future_salts, msgs_ack, pong, etc.). Returns Err(msg) for real errors.