A student who allegedly slept with a married teacher has denied "threatening her with the loss of her family and her job".
Kandice Barber, 35, is accused of having sex with the 15-year-old teenager in a local field as well as sending him topless Snapchats.
Their suspected affair was revealed after her headteacher came across the nude pictures, which had been widely circulated among the school.
Barber, who has denied all charges including breaching a position of trust, told detectives her Snapchat must have been hacked.
At Aylesbury Crown Court, prosecutor Richard Milne said that when pictures of Barber had circulated between pupils at Princes Risborough School, Buckinghamshire, the headteacher asked the boy about the rumours of the affair.
A jury heard that the teenager had lied to the headteacher in January 2019 because Barber had allegedly told him she was pregnant with his child.
It was not until March when he finally told the principle what had happened, the court was told.
The student, who cannot be identified for legal reasons, said that Barber picked hm up and they went to a field and had sex after school.
Barber, who has school aged children her self, has denied the accusations.
Barrister Nadia Chbat, defending Barber, asked the boy whether he remembered sending a message to Barber in March 2019 which said "If you don't speak to me watch what happens, you will lose your job and your family".
Giving evidence in court via videolink, he replied: "No, I never said that."
Ms Chbat said the boy had tried to resume communication with Barber in February and March 2019 by requesting to be added to her Snapchat, to which he replied: "No, not necessarily."
He again replied "no" when Ms Chbat asked: "What I'm suggesting is you were obsessed with Ms Barber and you started threatening her to resume contact with you. Did you do that?"
He said Barber had added herself to his Snapchat, and he changed her name on the app "straight away" as "Charles" and took screenshots of some of the conversations.
The teenager was asked whether a fake account could be created on Snapchat to which he replied it was possible, but he said he did not make a bogus account and invent the conversation when it was suggested by Ms Chbat.
The boy said Barber threatened him that if he told anyone about the affair she "was going to bring me down with her".
Barber, of Wendover, Buckinghamshire, has denied three counts of causing or inciting a child aged under 16 years to engage in a sexual act, one count of sexual communication with a child, one count of causing or inciting a child to engage in sexual
activities while in a position of trust and one count of causing a child to watch a sexual act by a person in a position of trust.
The hearing continues.