Skip to content

Commit

Permalink
fix: send animation (#843)
Browse files Browse the repository at this point in the history
 -required param is 'animation'
  • Loading branch information
satouriko committed Dec 10, 2020
1 parent 5d30b6a commit 3829e72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/telegram.js
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ class TelegramBot extends EventEmitter {
try {
const sendData = this._formatSendData('animation', animation, fileOptions);
opts.formData = sendData[0];
opts.qs.document = sendData[1];
opts.qs.animation = sendData[1];
} catch (ex) {
return Promise.reject(ex);
}
Expand Down

0 comments on commit 3829e72

Please sign in to comment.