Closed LewBr closed 2 years ago
Hey, you have to get the tweetId from the postTweet method (it returns something!).
Hello, thanks for the response, I have tried doing this:
TweetParameters tweetParameters = TweetParameters.builder()
.text("Hello this is a reply")
.reply(Reply.builder().inReplyToTweetId(TWITTER_CLIENT.postTweet("First tweet").getId()).build())
.build();
TWITTER_CLIENT.postTweet(tweetParameters);
and still doesn't work :/
Nevermind, it works actually, thanks.
Hello, i have the following question: How can I post a Tweet and reply to it? I'm trying to do it by getting the last tweet of the bot and trying to reply using that code:
Is that how I need to do it? But i don't know how to get the tweet variable correctly, please help me. Thanks :)