A police sergeant who made lewd remarks about children was caught in an undercover sting.
Paul Bucknall believed he was communicating with two parents of young children.
This was said to have occurred at Cathcart Police Station in Glasgow and at his home in Cumbernauld, North Lanarkshire.
Prosecutors said the 52-year-old repeatedly sent messages that were “grossly offensive or of an indecent, obscene or menacing character”.
The charges state he thought he was in contact with someone called Gemma and another parent called Lee.
However, they were instead an undercover colleague posing as the pair.
Bucknall is said to have made lewd remarks about children with reference to “sexual activity” in connection with them.
The incidents spanned between September and December 2019.
Bucknall pleaded guilty to two charges under the Communications Act during a hearing at Glasgow Sheriff Court on Friday.
The case was adjourned until next month when it is expected further information will be heard.
Police Scotland confirmed Bucknall is currently suspended from duty.
Follow STV News on WhatsApp
Scan the QR code on your mobile device for all the latest news from around the country