Anthony Weiner is headed to federal court Friday morning, and it's possible the trip could result in him becoming a registered sex offender.
The charge carries up to 10 years in prison but prosecutors are calling for Weiner to be sentenced to between 21 and 27 months.
The official spoke to The Associated Press on condition of anonymity because the criminal charges had yet to be filed publicly with the court.
June 11: Weiner seeks a temporary leave of absence from the House while he seeks professional treatment.
August 29: Abedin says she is separating from Weiner.
Weiner apologized to "everyone I have hurt", including the girl he "mistreated so badly".
July 23: Weiner says he won't drop out of mayoral race, saying at a news conference: "This is entirely behind me".
Former U.S. Rep. Anthony Weiner will appear in federal court to face criminal charges in an investigation of his online communications with a teenage girl in North Carolina.
In a statement, attorney Arlo Devlin-Brown said his client had "apologized, offered no excuses and made a commitment to make amends". He said the plea agreement reflected a resolution "on terms far less severe than could have been sought" because the circumstances lacked the kind of aggravating factors often present in similar cases.
Abedin announced her separation from Weiner last summer, after tabloids reported the former Congressman had been involved in a third sexting scandal that included an image of him in bed with his son.
Weiner and Abedin, a longtime aide to Hillary Clinton, have been married for almost 7 years.
The investigation led FBI agents to seize his laptop computer, which led to the discovery of a new cache of emails that Democratic presidential candidate Hillary Clinton had sent to Huma Abedin, Weiner's wife. Federal authorities in NY and North Carolina had been investigating online communications between Weiner and a 15-year-old girl. After reopening the probe, the Federal Bureau of Investigation determined the emails on Weiner's computer did not change the agency's decision that no charges should be brought against Clinton.
Clinton, who was leading in national polls at the time, has blamed her loss to Republican Donald Trump in part on Comey's announcement, even though he said two days before the election in November that the review had uncovered no new evidence.
Weiner ran unsuccessfully for mayor of NY in 2013 in a campaign that collapsed when Weiner, using the alias "Carlos Danger", again was found to be sending explicit photographs.
Weiner also claimed at the time that he was "likely" the subject of a hoax.