Saying bad words to a girl

I had a friend from Philippines on Facebook and we both started speaking to each other on the same day we both did video call too for 5mints and later I send a photo of her itself and told her u look good (photo was downloaded from her Facebook page itself.than we both started speaking later on I sent my pant photo which I was wearing and told her am wearing this color pant than she also sent me a photo in which she was wearing a shorts and a t-shirt I told its really nice than we both were speaking than I was in my night pants and I sent that photo to and told her to send me her photo too like what u wearing that's it. Than she was like good night I told am chating and you saying bye than I got angry and told of very bad bad words to her. Than she was like she will file a case on me from there so am asking what I did was wrong ? I know by saying bad words it's wrong but still am asking. I have not send her any sexual message nothing. She was kind of blackmailing me I have all your messages I will print out and send to your country and she was telling that she know many police men in her country and she was telling she works in a lower office as a Clark. And I had asked her sorrys and all more than 100 times but she was telling I know police and all that. So am kind of nrvs. Can you please help me out what is this and can she file and was I wrong ?