Who was the real inventor of the telephone?

There are two important characters involved in this story: Antonio Meucci and Alexander Graham Bell. The former invented the telephone and the latter patented it. How is this possible?

Who was the real inventor of the telephone?
The true inventor of the telephone, who was he? Photo by Pawel Czerwinski / Unsplash