The EDGES experiment has recently measured an anomalous global 21-cm spectrum due to hydrogen absorptions at redshifts of about z ∼ 17. Model independently, the unusually low temperature of baryons probed by this observable sets strong constraints on any physical process that transfers energy into the baryonic environment at such redshifts. Here, we make use of the 21-cm spectrum to derive bounds on the energy injection due to a possible population of Oð1-100ÞM ⊙ primordial black holes, which induce a wide spectrum of radiation during the accretion of the surrounding gas. After calculating the total radiative intensity of a primordial black hole population, we estimate the amount of heat and ionizations produced in the baryonic gas and compute the resulting thermal history of the Universe with a modified version of RECFAST code. Finally, by imposing that the temperature of the gas at z ∼ 17 does not exceed the indications of EDGES, we constrain the possible abundance of primordial black holes. Depending on uncertainties related to the accretion model, we find that Oð10ÞM ⊙ primordial black holes can only contribute to a fraction f PBH < ð1-10 −3 Þ of the total dark matter abundance.