Iran never claimed to not have long range missiles; quite the opposite, they have been quite keen to point out the US territories are within their effective range. Also they were quite effective bombing US bases throughout the mideast.
Those aren’t long range missiles. There regional medium range arms.
Their attempts at launching long range icbms, which they claimed they didn’t have, all failed miserably.