any advice?

so basically there's this girl i've known for 3 months, and i recently developed a crush on her

i dont know when i should talk to her, since she spends all her time with her friends and each time i try to approach her, her friends give me a bad look and i lose my confidence

i know i got a chance because one of her friends (which is my friend too) said she said i am cute to her so i know i can try to take action

what should i do? should i message her instead of talking to her irl?