Corrigir utilização do linkPreview no WhatsApp Business API by onerrogus · Pull Request #1414 · EvolutionAPI/evolution-api · GitHub
Skip to content

Corrigir utilização do linkPreview no WhatsApp Business API#1414

Merged
DavidsonGomes merged 1 commit intoEvolutionAPI:developfrom
onerrogus:fix_link_preview
May 10, 2025
Merged

Corrigir utilização do linkPreview no WhatsApp Business API#1414
DavidsonGomes merged 1 commit intoEvolutionAPI:developfrom
onerrogus:fix_link_preview

Conversation

@onerrogus
Copy link
Copy Markdown
Contributor

@onerrogus onerrogus commented May 2, 2025

Descrição
Ao utilizar a opção linkPreview no envio de mensagens via WhatsApp Business API não é feito o carregamento da pré-visualização do link pois como true != false, é passado undefined no valor, no caso deveria passar true.

Problemas Resolvidos

  • Corrigido utilização da opção linkPreview via WhatsApp Business API para que seja carregado as pré-visualizações dos links nas mensagens.

Observações

  • Foi alterado apenas na Service do WhatsApp Business pois ele aceita apenas booleano, true e false.
  • Na Service do Baileys, deve-se manter igual pois o mesmo trata o undefined como true.

Summary by Sourcery

Bug Fixes:

  • Corrected link preview option processing to ensure proper link preview generation in WhatsApp Business API messages

@sourcery-ai
Copy link
Copy Markdown
Contributor

sourcery-ai Bot commented May 2, 2025

@DavidsonGomes DavidsonGomes merged commit c74eee8 into EvolutionAPI:develop May 10, 2025
1 check passed
@onerrogus onerrogus deleted the fix_link_preview branch May 27, 2025 19:24
@tvbrgamer
Copy link
Copy Markdown

@onerrogus estou tentando usar o linkPreview, mas não tem diferença entre o true ou false

@onerrogus
Copy link
Copy Markdown
Contributor Author

onerrogus commented Sep 24, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants