A reply can now be posted a tweet using the tweet.tweet method (the same method used to post a tweet), using a third optional parameter, as follows:
import { Rettiwt } from 'rettiwt-api';
// Creating a new Rettiwt instance using the given 'API_KEY'
const rettiwt = new Rettiwt({ apiKey: API_KEY });
// Posting a simple text reply, to a tweet with id "1234567890"
rettiwt.tweet.tweet('Hello!', undefined, "1234567890")
.then(res => {
console.log(res);
})
.catch(err => {
console.log(err);
});
The same can be done from CLI using an option -r <target_tweet_id> or --reply <target_tweet_id> while posting a tweet using the post command.
A reply can now be posted a tweet using the
tweet.tweet
method (the same method used to post a tweet), using a third optional parameter, as follows:The same can be done from CLI using an option
-r <target_tweet_id>
or--reply <target_tweet_id>
while posting a tweet using thepost
command.Closes #449 Closes #448