There has been a specific legal battle about almost exactly this question. So far, the US court system disagrees with you.
> "These tweets are published by a public official clothed with the authority of the state using social media as a tool of governance and as an official channel of communication on an interactive public platform," [2nd circuit] appeals court Judge Barrington Parker wrote.
Trump is appealing that outcome though.
https://eu.usatoday.com/story/news/politics/2020/08/20/donal...