From bafb1ec44278c086412e54c08c009c07b1120f9c Mon Sep 17 00:00:00 2001 From: Andrey Malyshkin mac Date: Wed, 8 Nov 2023 09:51:38 +0600 Subject: [PATCH] fix --- src/utils/MessageAPI.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/utils/MessageAPI.js b/src/utils/MessageAPI.js index 5b27da9..5456e62 100644 --- a/src/utils/MessageAPI.js +++ b/src/utils/MessageAPI.js @@ -41,7 +41,7 @@ class MessageAPI { * @param {String} message - text message * @param {array} options - array of objects * @param {boolean} multipleAnswers - allow answers - * @param {String} quotedMessageId - id of message + * @param {String} quotedMessageId - id of message */ async sendPoll(chatId, phoneNumber, message, options, multipleAnswers, quotedMessageId) { @@ -59,9 +59,8 @@ class MessageAPI { if (multipleAnswers !== null) { postData['multipleAnswers'] = multipleAnswers; } - if (quotedMessageId !== null) { - postData['qotedMessageId' = quotedMessageId]; + postData['quotedMessageId'] = quotedMessageId; } this.addChadIdParam(postData, chatId);