The 27-year-old actress first deleted the 'fake' tweet and told her fans she is not pregnant, reported Us magazine.
"Before this gets out to the media, I would like to announce to my fans that I am pregnant," the tweet read. It also bore a hashtag '#BabyBoy'.
A representative for Michele confirmed that her account had been hacked. Michele herself set the record straight on Twitter, first deleting the offending tweet and then joking about it in a follow-up message.
Chris Colfer's account had also been hacked by someone who wrote on his page, "Due to personal issues, I have been let go from the cast of Glee," a tweet on his account read. "Explanations will come shortly..."
Colfer, 24, was actually on a flight when the tweet happened and only found out about it upon landing.
"Apparently I missed quite the interesting day while aboard my flight. I'm just glad I wasn't 'killed by a fruit truck' again," he wrote.