Coup plotters’ use of ‘amateur’ messaging app helped Turkish authorities map their network