Rishikant181 / Rettiwt-API

A CLI tool and an API for fetching data from Twitter for free!
https://rishikant181.github.io/Rettiwt-API/
MIT License
363 stars 34 forks source link

Ability to "efficiently" quote tweet #470

Closed Jeto143 closed 6 months ago

Jeto143 commented 7 months ago

At the moment, it's possible to quote tweet by appending a tweet's URL at the end of the tweet's body. However, this URL counts toward the tweet's length and therefore makes it impossible to write quote tweets exceeding ~235 chars (using a short URL such as https://x.com/_/status/<tweetId>).

It would be nice to be able to use something akin to attachment_url in the documentation link below: https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-statuses-update

I may have missed another way to quote tweet, though!

Rishikant181 commented 7 months ago

I'll have to dig in to Rettiwt-Core to check if there exists some variable which might be able to help us do this. I'll get back if I find something.

Rishikant181 commented 7 months ago

@Jeto143 Yes it's possible using an optional field called attachment_url in the payload while creating a tweet. I'm working on implementing it.

Jeto143 commented 7 months ago

@Jeto143 Yes it's possible using an optional field called attachment_url in the payload while creating a tweet. I'm working on implementing it.

Sounds great! My app needs to quote tweet quite a bit so this will help a bunch.