Sorry for my English. Hello, I want to get something like this:

Latex My level is not so high to do so. I tried to do it with the following code, but not sure it will help some.
He had thought titlesec modify the chapter and table of contents with minitoc, but are incompatible.
\documentclass[a4paper]{book}
\usepackage[a4paper]{geometry}
%\usepackage{minitoc}
\usepackage{titlesec}
\titleformat{\chapter}[hang]{\Huge\bfseries}{\thechapter}{50pt}{\Huge\bfseries}
%\titlespacing*{\chapter}{0pt}{0pt}{30pt}
\begin{document}
%\dominitoc[n]\nomtcrule
\tableofcontents
\chapter{Prueba}
\rule{\linewidth}{1mm}
%\minitoc
\section{otra prueba}
\subsection{probando subseccion}
\end{document}