builderbot
builderbot copied to clipboard
feat(core) detect vcard(contact)
Que tipo de Pull Request es?
- [x] Mejoras
- [ ] Bug
- [ ] Docs / tests
Descripción
detect when a user sends a contact or vCard to our WhatsApp bot. The implemented feature analyses the content of the message and intelligently extracts the data associated with the contact, providing a richer experience for users interacting with our bot.
tomar en cuenta, modificación para que no cierre el programa
if (match && match.length > 1) {
const waid = match[1];
const details={
contact:{
nameCard,
waid}
};
payload = { ...payload, body: generateRefprovider('_event_contact_'),details };
}