2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-28 12:57:38 +00:00

fix: send animation (#843)

-required param is 'animation'
This commit is contained in:
砂糖梨子 2020-12-10 18:51:52 +08:00 committed by GitHub
parent 5d30b6a134
commit 3829e727aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}