@@ -42,7 +42,7 @@ This is a comprehensive guide of all methods available for the Twitter API v2 on
4242 - [ Get users that retweeted a specific tweet] ( #get-users-that-retweeted-a-specific-tweet )
4343 - [ Retweet a tweet] ( #retweet-a-tweet )
4444 - [ Unretweet a tweet] ( #unretweet-a-tweet )
45- - [ List quoted replies of a tweet] ( #list-quoted-replies -of-a-tweet )
45+ - [ List quote tweets of a tweet] ( #list-quote-tweets -of-a-tweet )
4646 - [ Bookmarks] ( #bookmarks )
4747 - [ Bookmark a tweet] ( #bookmark-a-tweet )
4848 - [ Remove bookmark] ( #remove-bookmark )
@@ -268,7 +268,7 @@ console.log('Tweet', createdTweet.id, ':', createdTweet.text);
268268
269269### Reply to a tweet
270270
271- Alias to a ` .tweet ` with ` in_reply_to_tweet_id ` already set.
271+ Alias to ` .tweet() ` with ` reply: { in_reply_to_tweet_id: tweetId } ` already set.
272272
273273** Method** : ` .reply() `
274274
@@ -277,9 +277,9 @@ Alias to a `.tweet` with `in_reply_to_tweet_id` already set.
277277** Right level** : ` Read-write `
278278
279279** Arguments** :
280- - ` status: string `
281- - ` in_reply_to_status_id : string`
282- - ` payload?: SendTweetV2Params `
280+ - ` status: string ` – text of the reply.
281+ - ` tweetId : string` – ID of the tweet you want to reply to (sets ` in_reply_to_tweet_id ` in the payload).
282+ - ` payload?: SendTweetV2Params ` – optional additional parameters (e.g., media, geolocation).
283283
284284** Returns** : ` TweetV2PostTweetResult `
285285
@@ -607,9 +607,9 @@ Remove a retweet of a single tweet.
607607await client .v2 .unretweet (' 12' , ' 20' );
608608```
609609
610- ### List quoted replies of a tweet
610+ ### List quote tweets of a tweet
611611
612- List quoted replies of a tweets using a tweet paginator.
612+ Retrieve quote tweets for a single tweet using a paginator.
613613
614614** Method** : ` .quotes() `
615615
@@ -618,20 +618,24 @@ List quoted replies of a tweets using a tweet paginator.
618618** Right level** : ` Read-only `
619619
620620** Arguments** :
621- - ` tweetId: string ` : Tweet ID
622- - ` options: TweetV2PaginableTimelineParams ` : Tweet meta options
621+ - ` tweetId: string ` – ID of the tweet whose quote tweets you want.
622+ - ` options? : TweetV2PaginableTimelineParams ` – optional fields/expansions.
623623
624624** Returns** : ` QuotedTweetsTimelineV2Paginator ` : A tweet paginator
625625
626626** Example**
627627``` ts
628- const quotes = await client .v2 .quotes ({ expansions: [' author_id' ], ' user.fields' : [' username' , ' url' ] })
628+ // Fetch quote tweets for a given tweet ID
629+ const quotes = await client .v2 .quotes (' 1456789' , {
630+ expansions: [' author_id' ],
631+ ' user.fields' : [' username' , ' url' ],
632+ });
629633
630634for await (const quote of quotes ) {
631- const quotedTweetAuthor = bookmarks . includes . author ( quote )
632-
633- if (quotedTweetAuthor ) {
634- console .log (' Quote answer tweet ' , quote .id , ' has been made by ' , quotedTweetAuthor .username )
635+ // Access the author using the paginator’s includes helper
636+ const author = quotes . includes . author ( quote );
637+ if (author ) {
638+ console .log (` ${ quote .id } quoted by ${ author .username } ` );
635639 }
636640}
637641```
0 commit comments