Skip to content

Commit

Permalink
fix: media would stay stuck uploading when using the media option
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroslopez committed May 24, 2020
1 parent 7d2c89c commit 4d09a4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ class Client extends EventEmitter {
} else if (options.media instanceof MessageMedia) {
internalOptions.attachment = options.media;
internalOptions.caption = content;
content = '';
} else if (content instanceof Location) {
internalOptions.location = content;
content = '';
Expand Down

0 comments on commit 4d09a4b

Please sign in to comment.