Contracts made by telegraph shall be deemed to be contracts in writing; and all communications sent by telegraph and signed by the person or persons sending the same, or by his, her, or their authority, shall be held and deemed to be communications in writing.