The meaning of gtg is gotta go, or "I have to leave". Another definition is "I'm bored, I don't want to text you anymore so I'm gonna leave."
"Hey sally!" "Hey John" "What's up Sally?" "Oh look at the time, gtg bye"