All railroad and telegraph companies to which the United States has granted any subsidy in lands or bonds or loan of credit for the construction of either railroad or telegraph lines, which, by the acts incorporating them, or by any act amendatory or supplementary thereto, are required to construct, maintain, or operate telegraph lines, and all companies engaged in operating said railroad or telegraph lines shall, by and through their own respective corporate officers and employees, maintain, and operate, for railroad, governmental, commercial, and all other purposes, telegraph lines, and exercise by themselves alone all the telegraph franchises conferred upon them and obligations assumed by them under the acts making the grants as aforesaid.