twitter-openapi-typescript icon indicating copy to clipboard operation
twitter-openapi-typescript copied to clipboard

How to quote a tweet?

Open darkmasta opened this issue 2 years ago • 5 comments

How can we quote a tweet instead of retweeting? It would be nice if you added this feature too. 🙏🙏

image

darkmasta avatar Jan 21 '24 14:01 darkmasta

I figured out how to do it...

darkmasta avatar Jan 22 '24 04:01 darkmasta

This is currently not supported But you may be able to do it by using extraParam and specifying attachment_url.

fa0311 avatar Jan 22 '24 04:01 fa0311

This solved my problem. I am able to quote a tweet this way.

const tweetUrl = `https://twitter.com/elonmusk/status/1748595664131363231`;
const status = `HELLO QUOTE TWEET ${tweetUrl}`;

const response = await client.getPostApi().postCreateTweet({
  tweetText: status,
  mediaIds: [],
})

darkmasta avatar Jan 22 '24 04:01 darkmasta

This solved my problem. I am able to quote a tweet this way.

The Twitter API v2 implemented quote RT in the same way, but the current GraphQL client seems to implement it differently. I don't know why the v2 way of writing works fine for graphQL endpoints.

fa0311 avatar Jan 22 '24 05:01 fa0311

The Twitter API v2 implemented quote RT in the same way, but the current GraphQL client seems to implement it differently. I don't know why the v2 way of writing works fine for graphQL endpoints.

I am not sure but they extract info from tweet text and update the tweet with that info. You can post an image url from twitter and it becomes tweet media as well. There is a tweet text processing going on.

darkmasta avatar Jan 22 '24 05:01 darkmasta