Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyMalyshkin committed Nov 8, 2023
1 parent 4625eb4 commit bafb1ec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/utils/MessageAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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);
Expand Down

0 comments on commit bafb1ec

Please sign in to comment.