"whatsapp-web.js": "^1.22.2-alpha.0" npm install github:alechkos/whatsapp-web.js#fix-contact ----------------------------------------------------------------------- 10/09/23 replace the line 175 in client.js with esto soluciona el problema de levantar la session const INTRO_IMG_SELECTOR = '[data-icon="search"]' ------------------------------------------------------------------------ se cambio la version de wspwebjs -----> npm install github:pedroslopez/whatsapp-web.js#webpack-exodus ------------------------------------------------------------------------ 7/5/24 deje comentada la linea 1212 en src/Client.js se reemplazo esa linea por: return await (window.WWebJS.compareWwebVersions(window.Debug.VERSION, '<', '2.3000.0') ? window.Store.ProfilePic.profilePicFind(chatWid) : window.Store.ProfilePic.requestProfilePicFromServer(chatWid)); ********************************************* 26/06/2025 cuando envias mensajes sale un error, se soluciona reemplazando en whatsapp-web.js\src\util\Injected\util await window.Store.SendMessage.addAndSendMsgToChat(chat, message); return window.Store.Msg.get(newMsgId._serialized); por: await window.Store.SendMessage.addAndSendMsgToChat(chat, message); const waitForMsg = async (msgId, attempts = 10, delay = 100) => { for (let i = 0; i < attempts; i++) { const msg = window.Store.Msg.get(msgId); if (msg) return msg; await new Promise(res => setTimeout(res, delay)); } return null; }; return await waitForMsg(newMsgId._serialized); ********************************************* PARA HACER EL MEDUSA UNIPERSONAL ES NECESARIO COMENTAR LA LOGICA DE BOT Y DEJAR LA DE UNIPERSONAL EN /Nodo/gestionMEnsajes.mjs TAMBIEN ES NECESARIO COMENTAR LA FUNCION controlDeHorarios.mjs de index.mjs, ESTO HACE QUE EL BOT CONTESTE AUTOMATICAMENTE SI EL OPERADOR TARDA EN RESPONDER ES NECESARIO COMENTAR LA LINEA 52 DE api/controllers/chatController.mjs npm install -g @socket.io/pm2 *********************************************** PARA INSTALAR sentence-transformers: 1- instalar python 2- pip install flask sentence-transformers 3- correr el archivo de python en backend/: python embedding_service.py