Okay, it happened like an hour ago and i'll try to explain this: they were just casual as usually, then i started a conversation at our groupchat, regular talking at some random topic. But then my other friend was acting kinda weird, and i asked her whats wrong. She said she doesn't want to talk to me because i am not the right person to talk to, (even though she said a few weeks earlier the opposite) and she only wants to talk to her best friends. (she also said i was almost her closest friend some time earlier)
Well, then she started talking about how she doesn't stand me anymore or doesn't have the strenght for it and how she "does not want to trust" me and doesn't want to be social or comfort people. At this point my other friend had almost the same problems as her, but she didn't have anyone to trust or talk to (even the other friend, and they are very close to each other, and have been really long)

ok, i understand her point for the comfort thing because everyone has that same problem sometimes, but then she said that "too many things are happening to me at the same time" and she just wants to talk to other people because they aren't annoying and are easy to talk to.

Ok, now the conversation just becomes weird and does not have any direction or purpose, but the main thing here was that how she changed the opinion of me so quickly, and cannot stand me anymore. I was at a camp week before this, and we didn't talk almost at all, so i couldn't have done anything wrong in that time period.

Of course she said like 2 times that its not my fault, and she is just stressed, but i know her well. And i mean it. The reason isn't just that, there's just a deeper thing in the background.

Okay, and the final conversations was just that she left our groupchat and said that i am just a difficult person mentally and yeah thats it, i made some kind of understanding with the other friend, and said that we could be maybe friends in the future when the anxiety isn't that bad anymore and we have grown more.

Okay, so i just wonder what should i do next? Wait or try to talk to them later or what, i am pretty upset right now, and tomorrow is gonna be a mentally painful day, because i have a party and a social day overall, and im pretty bad at controlling my anxiety at events. 
But here is some info if it tells something about the situation : 

we are teens, i am a guy and my both friends are girls who have known each other for years, and i have known them just a few months, they are usually pretty positive and kind to anyone, we haven't actually seen ever because they live in a different city and we have just spoke with phone calls and in the groupchat. 
And also they said earlier that i am very close to them, even though we have known just months.

Well, i guess thats it, its a miracle if someone read that whole story. Please don't laugh because we are just "teens who doesn't know anything about feelings" and "we don't even know each other" but instead of that, you could advice me somehow. Tq and good night!