AUSTIN, Texas -- A former math teacher was arrested last week for allegedly having an improper relationship with two of her students, reports CBS affiliate KEYE.

Haeli Noelle Wey, 28, was reportedly charged with two counts of improper relationship between educator and student. Wey had been teaching at Westlake High School in Austin, Texas, until Oct. 30 of this year.

According to court documents obtained by the station, Wey had been communicating with one of the victims through social media since the beginning of the current school year.

Get Breaking News Delivered to Your Inbox

The arrest affidavit listed a series of texts between Wey and the victim that alleged she invited the victim on a hike in September and then asked him to delete the conversation from his phone.

Court documents also say a juvenile witness found the exchanges on the victim's phone and alerted authorities. The victim then provided details on the alleged encounter to investigators during an interview, reports KEYE.

The alleged incident with the second student occurred during the summer, according to the station. The affidavit reportedly states that Wey invited the victim to her home, where they had sex. The alleged relationship lasted several months and authorities were notified after the victim told their parents.

Wey bonded out of jail Thursday night and has been ordered by the court not to have contact with the two alleged victims. According to the Texas Education Agency, she had voluntarily surrendered her teaching certification on Dec. 15.

In October, school officials released a statement to parents and staff of Westlake High School following the initial report of inappropriate behavior, according to the station. The district released a second statement on Thursday.

"This incident is shocking and upsetting," Eanes ISD Superintendent Dr. Tom Leonard wrote.

The district is reportedly making counselors available for staff and students that have been affected by the incident.