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

Fix to pairing code Baileys and adding some functions to Meta Provider #815

Merged
merged 5 commits into from
Aug 24, 2023
Merged

Conversation

ozzyoss77
Copy link
Collaborator

Que tipo de Pull Request es?

  • Mejoras
  • Bug
  • Docs / tests

Descripción

Bug Baileys pairing code

Se cambia la línea 74 del provider Baileys para corregir bug al tratar de vincular el bot con el codigo de emparejamiento de Whatsapp, se elimina la constante Browsers.

New function for Meta Provider

Se añade las funciones que mapean los siguientes tipos de mensaje:

  • sendTemplate: Permite enviar templates de Meta.
  • sendContacts: Permite enviar contactos.
  • sendButtonsText: Permite enviar mensaje interactivo con botones sin imagen.
  • sendButtonsMedia: Permite enviar mensaje interactivo con botones e imagenes o videos de cabecera.

Shopping cart event

Añadido el evento para captar en el ctx los datos de un pedido mediante el carrito de pedido de Whatsapp con la API de Meta.

leifermendez and others added 5 commits August 7, 2023 09:27
Fixing pairing code bug, doesn't  show the notification and pairing code doesn't work
Adding sendTemplate, sendContacts, sendButtonsText, sendButtonsMedia
Adding event "order" for capture shopping cart
"Removing the constant 'Browsers' and adding 'browser: ['Chrome (Linux)', '', '']' on line 74 to fix the WhatsApp pairing code bug."
@leifermendez leifermendez changed the base branch from main to dev August 24, 2023 07:22
@leifermendez leifermendez merged commit 22ebbb3 into codigoencasa:dev Aug 24, 2023
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.

2 participants