Elon Musk has put the current value of Twitter at $20 billion (€18.6bn), less than half the $44 billion he paid for the social media platform just five months ago, according to an internal e-mail seen by American news media.

The e-mail to employees referred to a new stock compensation programme in the San Francisco-based company and the allocation of shares to employees of X Holdings, Twitter's umbrella company since Musk purchased it in late October.

The compensation plan values the platform at $20 billion, slightly more than Snapchat's parent company Snap ($18.2 billion) or Pinterest ($18.7 billion), both of which are publicly traded, unlike Twitter. 

Musk, who is also the chief executive of Tesla Inc. and aerospace group SpaceX, said that Twitter would allow its employees to cash in shares every six months. 

A query from AFP e-mailed to Twitter's communications department generated an automatic response in the form of a poop emoji.

In the internal e-mail, Musk describes the brutal contraction in Twitter's value. He says the platform faced such grave financial difficulties that at one point it was on the verge of bankruptcy.

In the internal e-mail, Musk says the platform faced such grave financial difficulties that at one point it was on the verge of bankruptcy

"Twitter was trending to lose ~$3B/year," Musk said in a message posted on Saturday on the platform. He cited a revenue drop of $1.5 billion a year and a debt-servicing burden of the same amount – leaving it with "only 4 months of money".

Musk, Twitter's majority shareholder, added simply: "Extremely dire situation." But he then said that "It looks like we will break even" in the second quarter of the year, with advertisers – many of whom fled the platform after the mercurial billionaire bought it – now beginning to return.

Since taking control, Musk has sharply cut the group's payroll from 7,500 employees to fewer than 2,000.

He said in the e-mail that he sees a "clear but difficult path" to a valuation of $250 billion, without specifying how long that might take.

However, in another setback for the company, fragments of Twitter's source code were published on the development platform GitHub, the latter told AFP on Sunday, confirming a report by the New York Times.

GitHub removed the files from its site at Twitter's request, but their brief exposure could allow hackers to identify flaws in Twitter's original software.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.