30 police detained over coup-linked messaging app