1

I want to create a thread using twitter-api-v2 package. What i'm currently doing is as follows

Create A tweet ==> Get the tweet id of the newly created tweet ==> Replay to the tweet ==> Repeat

But, i feel this is not an efficient way. Any method to create a thread and post it at once ranther than tweeting again and again?

ProHeh
  • 77
  • 1
  • 6
  • 1
    The [available actions](https://github.com/plhery/node-twitter-api-v2/blob/HEAD/doc/v2.md) for `twitter-api-v2` include [post a thread of tweets](https://github.com/plhery/node-twitter-api-v2/blob/HEAD/doc/v2.md#Postathreadoftweets). Is this what you're looking for? – D M May 11 '22 at 17:03

1 Answers1

2

Your approach is correct, Twitter API doesn't provide a way to create threads with a single request.

You can use tweetThread method as suggested by D M in the comment. If you look at the source code, you can see it does exactly what you already implemented.

jnv
  • 882
  • 10
  • 18