Any railroad or street railway having tracks running along a street at the time of the proposed improvement as provided herein shall be required by the governing body to pave the width of its track and two (2) feet on each side thereof with the same materials and in the same manner as the rest of the street is to be paved, and such work shall be performed under the supervision and subject to the approval of the city's engineer, and if such railway shall not within a period of 30 days after the receipt by such railway of the notice to do such work agree in writing to comply with such order; or if the work is not completed to the satisfaction of the city's engineer within such time as may be determined by the governing body, said governing body may have such work done and charge the cost and expense thereof to such railway company, to be paid by it in cash; and the same until paid shall constitute a lien against all of the property of such railway company located in the municipality and the said lien shall have the same rank and priority and shall be enforced in the same manner as the liens provided for in section 9 [section 2-323]. The governing body may in its discretion require such paving to be of a different material and manner of construction.