Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mensagem não é exibida em novas versões do WhatsApp quando a mensagem possui botões #2080

Closed
mhanelia opened this issue Mar 4, 2024 · 1 comment
Labels
bug Something isn't working needs triage

Comments

@mhanelia
Copy link

mhanelia commented Mar 4, 2024

Description

Ao enviar mensagem com botão, não exibe mensagem com os botões nas novas versões do WhatsApp

Environment

  • WPPConnect version(s): 1.29.0
  • WA-JS version(s): 2.28.1
  • WhatsApp version: 2.2409.2 e 2.2407.10
  • Plataforma: Web, mobile e aplicativo PC

Steps to Reproduce

  1. Enviar mensagem com botões
  2. Verificar em uma versão anterior do WhatsApp
  3. Verificar em uma versão nova do WhatsApp

Your Code

 await session.sendText(isValidNumber.id._serialized, content,  {
        useTemplateButtons: true, // False for legacy
        buttons: [
          {
            url: 'https://wppconnect.io/',
            text: 'WPPConnect Site'
          },
          {
            phoneNumber: '+55 11 22334455',
            text: 'Call me'
          },
          {
            id: 'your custom id 1',
            text: 'Some text'
          },
          {
            id: 'another id 2',
            text: 'Another text'
          }
        ],
        title: 'Title text', // Optional
        footer: 'Footer text' // Optional
      }); 
      return response.status(200).json({
        status: true,
        message: 'Sua mensagem foi enviada com sucesso.',
        status_code: 200
      });

Additional context / Screenshot

Versão 2.2409.2
image

Versão 2.2407.10
image

@mhanelia mhanelia added bug Something isn't working needs triage labels Mar 4, 2024
@icleitoncosta
Copy link
Contributor

Olá @mhanelia , os botões foram descontinuados, não tem como envia-los mais.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

2 participants