diff --git a/webwhatsapi/js/wapi.js b/webwhatsapi/js/wapi.js index 74040ef6..9bc43e79 100755 --- a/webwhatsapi/js/wapi.js +++ b/webwhatsapi/js/wapi.js @@ -674,12 +674,17 @@ window.WAPI.ReplyMessage = function (idMessage, message, done) { if (done !== undefined) done(false); return false; } - messageObject = messageObject.value(); - + messageObject = messageObject.valueOf(); + let params = { + linkPreview : null, + mentionedJidList : null, + quotedMsg : messageObject, + quotedMsgAdminGroupJid : null + }; const chat = WAPI.getChat(messageObject.chat.id) if (chat !== undefined) { if (done !== undefined) { - chat.sendMessage(message, null, messageObject).then(function () { + chat.sendMessage(message, params, messageObject).then(function () { function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } @@ -708,7 +713,7 @@ window.WAPI.ReplyMessage = function (idMessage, message, done) { }); return true; } else { - chat.sendMessage(message, null, messageObject); + chat.sendMessage(message, params, messageObject); return true; } } else {