The Great Gatsby

In 1929, Nick Carraway, a World War I veteran, is receiving treatment for alcoholism at a psychiatric hospital. He talks about Jay Gatsby, the most hopeful man he had ever met. Nick's doctor suggests that he writes his thoughts down, since writing is Nick's passion.
In the summer of 1922, Nick moves from the Midwest to New York after abandoning writing. He rents a small house in the North Shore village of West Egg, next to the mansion of Gatsby, a mysterious business magnate who often holds extravagant parties. One day, while Nick has dinner with his cousin, Daisy Buchanan, and her husband, Tom, he is introduced to Jordan Baker by Daisy, who hopes to make a match between them. When Nick returns home, he sees Gatsby standing on the dock, reaching towards the green light coming from the Buchanan dock.
Jordan tells Nick that Tom has a mistress who lives in the "valley of ashes", an industrial dumping site between West Egg and New York City. Nick and Tom visit the valley and stop at a garage owned by George Wilson and his wife, Myrtle, who is Tom's mistress. Later, Nick receives an invitation to one of Gatsby's parties. Upon arrival, Nick learns he is the only one to receive an invitation and none of the guests have ever met Gatsby. Nick encounters Jordan, and both meet Gatsby. Gatsby offers Nick a ride to town for lunch. On the way, Gatsby tells Nick he is an Oxford graduate and war hero from a wealthy Midwestern family. They go to a speakeasy, where Gatsby introduces Nick to his business partner, Meyer Wolfsheim.
Jordan tells Nick that Gatsby had a relationship with Daisy years ago and is still in love with her, and that Gatsby threw parties in the hopes that Daisy would attend. Gatsby asks Nick to invite Daisy to tea. After an awkward reunion, Gatsby and Daisy begin an affair. Gatsby is dismayed when Daisy wants to run away with him and wants her to get a divorce. He asks Nick and Jordan to accompany him to the Buchanan home, where he and Daisy plan to tell Tom that Daisy is leaving him. During the luncheon, Tom becomes suspicious of Gatsby and Daisy, but Daisy stops Gatsby from revealing anything and suggests they all go to the Plaza Hotel. Tom drives Nick and Jordan in Gatsby's car, while Gatsby drives Daisy in Tom's car. Tom stops for gas at George's garage, where George tells him that he and Myrtle are moving and that he suspects Myrtle is unfaithful.
At the Plaza, Gatsby tells Tom of his affair with Daisy. Tom accuses Gatsby of having never attended Oxford and having made his fortune through bootlegging with mobsters. Daisy says she loves Gatsby but cannot bring herself to say she never loved Tom. Eventually, both Gatsby and Daisy leave. After a fight with George over her infidelity, Myrtle runs into the street and is fatally struck by Gatsby's car after mistaking it for Tom's. After learning about Myrtle's death, Tom tells George that the car belongs to Gatsby and that he suspects Gatsby was Myrtle's lover. Nick deduces Daisy was the driver, though Gatsby intends to take the blame. Nick overhears Daisy accepting Tom's promise to take care of everything, but he does not tell Gatsby. Gatsby admits to Nick that he was born penniless; his real name is James Gatz, and he had asked Daisy to wait for him until he had made something of himself.
The next morning, Gatsby hears the phone ringing and thinks it is Daisy. Before he can answer it, he is shot and killed by George, who then kills himself. Nick is the only person other than reporters to attend Gatsby's funeral, as Daisy and Tom are leaving New York. The media paints Gatsby as Myrtle's lover and killer. Disgusted with both the city and its inhabitants, Nick leaves after taking a final walk through Gatsby's deserted mansion and reflecting on Gatsby's ability to hope. In the sanatorium, Nick finishes typing his memoir and eventually titles it The Great Gatsby.

Question: who  tells Tom of his affair with Daisy?
Answer: Gatsby