A Wigan teenager has pleaded guilty to two charges of sending offensive messages.