How to quit first job?

I was hired at a fast food place but I just got a job offer from a place that's a lot closer to my home. I've only been working for four days and I feel bad about quitting because the manager was really nice and gave me a job even though I had no experience. I was planning on texting her something along the lines of, "I won't be able to work at fast food place because I've received and accepted a job offer from a place closer to home. Thank your for the opportunity." Should I write something else? Will I be forced to work the remainder of my shifts? I have another shift tomorrow.

2021-04-07T06:55:04Z

Is it better to quit in person at the beginning/end of my shift?

2017-04-11T00:37:33.809Z