You shouldn't lie when texting someone.
James' friend invited him out to dinner, but James felt very tired.
James wants to stay in tonight.
James texts his friend that he's really tired and not up for going out.
James texts his friend he'll come, then texts twenty minutes later to say he's stuck in traffic and can't make it.
James' friend argues a bit but eventually agrees to leave James alone.
James' friend becomes annoyed at his flaky behavior and confronts James the next time they meet.