Open wilburforce83 opened 5 years ago
I was having the same issue. The solution I came up with was:
tweet: function (status, callback = this.stdCallback) {
var params = {
status: status
}
twit.post('statuses/update', params, callback)
}
getFullTweetURL: function (idTweet) {
var params = {
id: idTweet
}
return new Promise((resolve, reject) => {
function callback(err, data, response) {
if (err) {
console.log(`Algo deu errado!\n\n${err}`);
reject(err);
}
else {
var url = `https://twitter.com/${data.user.screen_name}/status/${idTweet}`
return resolve(url);
}
}
twit.get('statuses/show', params, callback);
})
},
quoteTweet: function (idTweet) {
this.getFullTweetURL(idTweet).then(url => {
var param = `🤙🏻 eh nois mano ${url}`
this.tweet(param);
})
},
Hi I was wondering if I could get an exmaple of how to add a comment on a retweet:
I'mnotsurehowto add the parameter and message inside this?
many thanks!!!