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

feat: Preview URL #1060

Open
wants to merge 2 commits into
base: builderbot
Choose a base branch
from
Open

Conversation

juanmartin
Copy link

Que tipo de Pull Request es?

  • Mejoras
  • Bug
  • Docs / tests

Descripción

Agrega un argumento de tipo boolean al objeto de opciones de addAnswer: preview_url.

image

Con esta opción podemos especificar si queremos que al enviar una URL en nuestra respuesta, el bot ponga el contenido embebido en el mensaje. Si se pone en true el bot embebe un preview/thumbnail de la URL, false queda como estaba antes (es el default), y no embebe contenido de links.

Por ejemplo, sí envía un link de YouTube, podría verse sin salir de WhatsApp:

image

Aguardo comentarios :D
Saludos!

Forma parte de este proyecto.

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.

None yet

1 participant