Press-Ticket icon indicating copy to clipboard operation
Press-Ticket copied to clipboard

Como corrigir erro ao RESPONDER a GRUPOS.

Open isoazevedo opened this issue 2 years ago • 2 comments

Corrigido com a versão whatsap-web.js 1.17.1 da seguinte forma.

Arquivo: backend/src/helpers/SerializeWbotMsgId.ts

Adicionada a estrutura da constante SerializeWbotMsgId os seguintes valores.

const SerializeWbotMsgId = (ticket: Ticket, message: Message): string => {

  let SeGrupo = 'g.us_' + message.id + '_'+ message.contact.number + '@c.us';
  let SeIndiv = 'c.us_' + message.id;

  const serializedMsgId = `${message.fromMe}_${ticket.contact.number}@${
    ticket.isGroup ? SeGrupo : SeIndiv }`;

  return serializedMsgId;
};

isoazevedo avatar Aug 03 '22 16:08 isoazevedo

Boa tarde, esse erro que cita seria ocasionado como?

voltando hoje, meu PC tinha dado ruim

rtenorioh avatar Aug 11 '22 14:08 rtenorioh

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 31 '22 15:08 stale[bot]

Feita a correção usando a sua solução: https://github.com/rtenorioh/Press-Ticket/commit/9721da147cd7916c1b2577f20bdd549a1bd91edc

Obrigado pela contribuição.

rtenorioh avatar Sep 15 '22 19:09 rtenorioh