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?
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.