@@ -42,7 +42,7 @@ This is a comprehensive guide of all methods available for the Twitter API v2 on
42
42
- [ Get users that retweeted a specific tweet] ( #get-users-that-retweeted-a-specific-tweet )
43
43
- [ Retweet a tweet] ( #retweet-a-tweet )
44
44
- [ 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 )
46
46
- [ Bookmarks] ( #bookmarks )
47
47
- [ Bookmark a tweet] ( #bookmark-a-tweet )
48
48
- [ Remove bookmark] ( #remove-bookmark )
@@ -268,7 +268,7 @@ console.log('Tweet', createdTweet.id, ':', createdTweet.text);
268
268
269
269
### Reply to a tweet
270
270
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.
272
272
273
273
** Method** : ` .reply() `
274
274
@@ -277,9 +277,9 @@ Alias to a `.tweet` with `in_reply_to_tweet_id` already set.
277
277
** Right level** : ` Read-write `
278
278
279
279
** 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).
283
283
284
284
** Returns** : ` TweetV2PostTweetResult `
285
285
@@ -607,9 +607,9 @@ Remove a retweet of a single tweet.
607
607
await client .v2 .unretweet (' 12' , ' 20' );
608
608
```
609
609
610
- ### List quoted replies of a tweet
610
+ ### List quote tweets of a tweet
611
611
612
- List quoted replies of a tweets using a tweet paginator.
612
+ Retrieve quote tweets for a single tweet using a paginator.
613
613
614
614
** Method** : ` .quotes() `
615
615
@@ -618,20 +618,24 @@ List quoted replies of a tweets using a tweet paginator.
618
618
** Right level** : ` Read-only `
619
619
620
620
** 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.
623
623
624
624
** Returns** : ` QuotedTweetsTimelineV2Paginator ` : A tweet paginator
625
625
626
626
** Example**
627
627
``` 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
+ });
629
633
630
634
for 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 } ` );
635
639
}
636
640
}
637
641
```
0 commit comments