pub fn decode_bind_single(body: &[u8]) -> Result<(), String>Expand description
Check a decrypted PFS bind response body for boolTrue. Telegram always wraps the Bool in an rpc_result container: rpc_result#f35c6d01 req_msg_id:long result:Bool (16 bytes total) But may also return a bare boolTrue in some implementations. Decode one bare MTProto message body for the auth.bindTempAuthKey response.
Returns Ok(()) if this message body contains boolTrue (success). Returns Err(msg) for real errors. Returns Err(“skip”.to_string()) for informational messages the caller should ignore (new_session_created, future_salts, msgs_ack, pong, etc.).