Megan Mullally has responded with disgust after Donald Trump shared a video of the two of them singing the theme song to American sitcom Green Acres.

The pair appeared alongside each other at the 2005 Emmys, when Trump was best known for appearing on The Apprentice and not for being President of the United States.

Wearing a straw hat and overalls, the future president hugs Mullally and sings with the actress — who is dressed in a gown with fur and earrings — in front of a screen showing imagery from Green Acres.

Trump shared a clip from the awards ceremony on Twitter in celebration of signing the Farm Bill, an $867bn package that received widespread bipartisan support in the US House of Representatives.

Mullally was less than impressed by the social media post, posting on Twitter: "omg... if you guys need me, i’ll be in a hole in the ground".

The Will and Grace actor also took to Instagram, posting an image of Trump's tweet, captioning the photo "no".

Fellow social media users later joked about the message, with comedian and Trump critic Kathy Griffin writing: Welcome to my life Megan Mullally".