Antibiotics are the main method of treating pneumonia. If you can't breath properly, then the doctor will admit you to hospital to get breathing support with.
Attribution: Avallain