The bear referenced the "big post-Oscars Hollywood orgy," which Wahlberg said was "at Jack Nicholson's house."
Seth MacFarlane, who hosted the Academy Awards, voices Ted in the movie by the same name. The cantankerous bear is known for his off-color jokes and bizarrely human interest in females.
He also made a number of Jewish jokes, telling Wahlberg that he should pretend to be Jewish if he wants to continue to "work in this town."
"Ted" was a box office smash and raked in over $535 million dollars at the global box office. A sequel is confirmed, which makes sense given that the first film is seventh-highest grossing R-rated movie of all time.
The film also received an Oscar nomination for "Everybody Needs a Best Friend," though the Best Original Song nominee faced stiff competition from Adele's "Skyfall" theme.
"We will lose to Adele," MacFarlane said in pre-awards interviews. “Don't get me wrong, as cynical a guy as I sometimes appear to be, nothing would delight me more than to walk away with that [award], but I don't think there's a chance in hell that we will win."
The 85th Annual Academy Awards also featured performances from Barbra Streisand and Adele. A tribute to James Bond, a bit from "Les Miserables" and a "Chicago" reunion also took place. For much more on the Oscars, check out our news hub and the live blog that follows the gallery below.