forked from Supositware/Haha-Yes
send image without text
This commit is contained in:
parent
cc3a34a50c
commit
ea5d0a50de
1 changed files with 5 additions and 1 deletions
|
@ -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…
Reference in a new issue