Telegraphy is the long distance transmission of written messages without physical transport of letters.…