evolution-api icon indicating copy to clipboard operation
evolution-api copied to clipboard

Evolution não envia botão

Open jeanzulk opened this issue 7 months ago • 3 comments

Image

Eu configurei meu evolution com n8n, ta tudo certo, mais ele não envia o botao. Não da erro nenhum, simplesmente o botao não chega no WhatsApp. alguem pode me ajudar?

jeanzulk avatar May 28 '25 16:05 jeanzulk

Você está integrado ao WhatsApp pelo Baileys ou pela API oficial?

Daquisu avatar May 28 '25 18:05 Daquisu

Eu também não consigo: Integração Bayleys

Repare o log: Eu enviei botão e na sequência enviei um sendText "Testando..."

Cada evento desses manda 3 blocos [Evolution API] [zeusbot] v2.2.3 163 para o log (Sendo eles: VERBOSE [ChannelStartupService] [string] Sending || LOG [ChannelStartupService] [object] || LOG [ChannelStartupService] [string] Update messages

Repare que no caso do botão esse block Update messages não vai para meu log e o botão não aparece para o contato.

/////////////////// 1 (log do botão)
[Evolution API]  [zeusbot]  v2.2.3  163   -  Wed May 28 2025 15:32:39     VERBOSE   [ChannelStartupService]  [string]  Sending message to [email protected] 
/////////////////// 2 (log do botão)
[Evolution API]  [zeusbot]  v2.2.3  163   -  Wed May 28 2025 15:32:40     LOG   [ChannelStartupService]  [object]   

{

  key: {

    id: '3EB0F97B1D76A1B2133047',

    remoteJid: '[email protected]',

    participant: '[email protected]',

    fromMe: true

  },

  pushName: '',

  status: 'PENDING',

  message: { viewOnceMessage: FutureProofMessage { message: [Message] } },

  contextInfo: undefined,

  messageType: 'viewOnceMessage',

  messageTimestamp: 1748457159,

  instanceId: '33feff5f-dd2e-49af-9133-f248cb636b70',

  source: 'web'

} 
/////////////////// 1 (log do sendText)
[Evolution API]  [zeusbot]  v2.2.3  163   -  Wed May 28 2025 15:34:30     VERBOSE   [ChannelStartupService]  [string]  Sending message to [email protected] 

/////////////////// 2 (log do sendText)
[Evolution API]  [zeusbot]  v2.2.3  163   -  Wed May 28 2025 15:34:30     LOG   [ChannelStartupService]  [object]   

{

  key: MessageKey {

    remoteJid: '[email protected]',

    fromMe: true,

    id: '3EB02ACDA617070335AB26DCD5D3BF5EC990A395'

  },

  pushName: '',

  status: 'PENDING',

  message: { conversation: 'Testando ...' },

  contextInfo: null,

  messageType: 'conversation',

  messageTimestamp: 1748457270,

  instanceId: '33feff5f-dd2e-49af-9133-f248cb636b70',

  source: 'unknown'

} 
/////////////////// 3 (log do sendText)
[Evolution API]  [zeusbot]  v2.2.3  163   -  Wed May 28 2025 15:34:31     LOG   [ChannelStartupService]  [string]  Update messages [

  {


    "key": {

      "remoteJid": "[email protected]",

      "id": "3EB02ACDA617070335AB26DCD5D3BF5EC990A395",

      "fromMe": true

    },

    "update": {

      "status": 4

    }

  }

] 

osmarkozanjr avatar May 28 '25 18:05 osmarkozanjr

Os botões só funcionam pela API oficial do WhatsApp. Todas as grandes libs não oficiais (Baileys, WWebJS, open-wa, wppconnect, etc) decidiram parar de tentar implementar os botões.

Parece que a Meta fica bem brava quando eles tentam implementar, e pode rolar problemas jurídicos se eles insistirem.

Link relacionado: https://dev.to/purpshell/buttons-and-lists-get-deprecated-by-many-libraries-54h

Daquisu avatar May 28 '25 19:05 Daquisu

As listas ainda funcionam. o que eu percebi que não funciona da evolution 1 para 2 foram os botões e a confirmação de leitura.

osmarkozanjr avatar Jun 03 '25 20:06 osmarkozanjr

Image

https://doc.evolution-api.com/v2/en/configuration/available-resources

osmarkozanjr avatar Jun 11 '25 19:06 osmarkozanjr

Boa tarde.

Estou com a versão 2.3 do Evolution API e não está chegando LISTA no Whats. Sabem me dizer se nas versões posteriores isso está funcionando? (Botões eu já desisti, mas como vi o comentários sobre listas, estou tentando)

alexx2601 avatar Nov 12 '25 15:11 alexx2601