Brazilian president Jair Bolsonaro has pneumonia, the Albert Einstein hospital in Sao Paulo said in a statement on Thursday.