Skip to content

Commit

Permalink
fix: send message media in options object
Browse files Browse the repository at this point in the history
An inconsistency in variable names was preventing media sent through the options object from being processed
  • Loading branch information
pedroslopez committed Feb 9, 2020
1 parent 5fbd8dd commit 2607e6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class Client extends EventEmitter {
internalOptions.attachment = content;
content = '';
} else if(options.media instanceof MessageMedia) {
internalOptions.media = options.media;
internalOptions.attachment = options.media;
internalOptions.caption = content;
} else if(content instanceof Location) {
internalOptions.location = content;
Expand Down

0 comments on commit 2607e6d

Please sign in to comment.