send image without text

merge-requests/4/head
loicbersier 5 years ago
parent cc3a34a50c
commit ea5d0a50de

@ -122,11 +122,15 @@ class tweetCommand extends Command {
status: text
};
if (data) {
if (data && args.text) {
options = {
status: text,
media_ids: new Array(data.media_id_string)
};
} else if (data) {
options = {
media_ids: new Array(data.media_id_string)
};
}
T.post('statuses/update', options, function (err, response) {

Loading…
Cancel
Save