From 3829e727aae9dc5752286c985bab4fc5224404cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96=E6=A2=A8=E5=AD=90?= <18373361+satouriko@users.noreply.github.com> Date: Thu, 10 Dec 2020 18:51:52 +0800 Subject: [PATCH] fix: send animation (#843) -required param is 'animation' --- src/telegram.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/telegram.js b/src/telegram.js index 7c04112..f885ae8 100644 --- a/src/telegram.js +++ b/src/telegram.js @@ -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); }