Anthony Weiner has pleaded guilty to sending obscene material to a minor, and he could get years in prison for it.
Authorities have been investigating a report by The Daily Mail from last year that alleged Weiner had a monthslong online relationship with a 15-year-old girl.
Among other things, cached images show Weiner sent the teen semi-nude photos and sexually explicit and suggestive messages. The messages also indicate Weiner knew she was underage.
Pleading guilty to the charge could mean up to 10 years behind bars. Weiner said he wouldn't appeal a sentence between 21 and 27 months.
The judge overseeing the case also ruled Weiner has to register as a sex offender.