-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Catalog #3597
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
base: main
Are you sure you want to change the base?
Catalog #3597
Conversation
Added functionality to send read and delivery confirmations in parallel. Integrated new methods to handle delivery confirmations. Improved error handling in the confirmation sending process.
…js y Utils.js Se realizaron ajustes en la indentación y el formato del código para mejorar la legibilidad. Se eliminaron líneas en blanco innecesarias y se unificó el estilo de las asignaciones de opciones en varias funciones.
Se ajustó la indentación y se eliminaron líneas en blanco innecesarias para optimizar la claridad del código. Se unificó el estilo de las asignaciones de opciones en la función de procesamiento de medios.
- Implement complete catalog system with PersonalCatalog and ExternalCatalog classes - Add Collection class for managing product collections - Extend Product class with catalog-specific fields and methods - Add getCatalog() method to Client for retrieving business catalogs - Integrate WAWebCatalogCollection.CatalogCollection for native WhatsApp catalog access - Add catalog commands to example.js (!catalog, !catalogof, !collections) - Implement product sharing via images with detailed captions - Add robust error handling with retry logic for catalog operations - Include automatic catalog testing on client ready event - Update Store.js and Utils.js with catalog-related utility functions - Add obfuscated folder to .gitignore This implementation provides full catalog management capabilities including: - Personal catalog access and management - External catalog retrieval from other businesses - Product collection organization - Product image sharing with formatted information - Comprehensive error handling and stability improvements
…example.js - Implementar la detección y respuesta a mensajes citados que contienen información de productos. - Extraer y enviar detalles del producto, incluyendo nombre, ID, descripción y precio. - Manejar mensajes de pedidos citados con información detallada sobre el pedido y productos. - Mejorar la gestión de errores al acceder a catálogos y enviar información de productos. - Incluir lógica para enviar imágenes de productos si están disponibles.
Se eliminaron emojis de los mensajes y se ajustó el formato para una presentación más limpia y consistente. Se mejoró el manejo de errores y se optimizó la lógica de respuesta para mensajes citados, asegurando que la información del producto y del pedido se envíe de manera clara y concisa.
…os en example.js - Implementar el comando '!resendmedia' para reenviar medios de mensajes citados. - Agregar manejo específico para audio al reenviar medios. - Incluir el comando '!isviewonce' para enviar medios como visualización única. - Mejorar la presentación de mensajes de confirmación de pedidos, eliminando emojis y ajustando el formato para mayor claridad.
…os en example.js - Implementar el comando '!resendmedia' para reenviar medios de mensajes citados. - Agregar manejo específico para audio al reenviar medios. - Incluir el comando '!isviewonce' para enviar medios como "ver una vez". - Mejorar la presentación de mensajes de confirmación de pedidos, eliminando emojis y ajustando el formato para mayor claridad.
…ple.js - Se eliminó la lógica de reintentos para la inicialización del cliente, simplificando el proceso de conexión. - Se mejoró el manejo de eventos, asegurando que la información de carga y autenticación se registre correctamente. - Se optimizó la gestión de eventos para el cliente, manteniendo la funcionalidad de mensajes y errores.
Catalog and Order Documentation - WhatsApp Web.jsTable of Contents
Catalog FunctionalityOverviewThe catalog system allows access and display of WhatsApp Business products, both from personal catalogs and external catalogs from other businesses. Main Features
Catalog Commands1.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are combining two PRs in one: Client.sendseen
and Catalog
.
They have to be in two separate PRs.
Also please revert all formatting changes.
This reverts commit 84ce0a6.
Thanks for the correction, the commit "feat: implement dual confirmation system in sendSeen" has been reverted. |
WhatsApp Catalog System Implementation
Overview
This PR implements a comprehensive catalog system for WhatsApp Web.js, allowing users to access and manage business catalogs, collections, and products. The implementation follows WhatsApp's native catalog structure while providing a clean and intuitive API.
Key Features
Catalog Management
Collection System
Product Handling
Client Integration
getCatalog()
method in Client classTechnical Implementation
New Classes
PersonalCatalog
: Handles personal catalog operationsExternalCatalog
: Manages external business catalogsCollection
: Represents a product collectionProduct
class with catalog-specific functionalityCore Functionality
WAWebCatalogCollection.CatalogCollection
Example Implementation
Added catalog commands to example.js:
!catalog
: Display personal catalog!catalogof
: Show external business catalog!collections
: List available collectionsTesting
Documentation
Security
Performance
Breaking Changes
None. This is a purely additive feature that maintains backward compatibility.
Dependencies
No new external dependencies were added.
Testing Instructions
!catalog
to view personal catalog!catalogof <number>
to view external catalog!collections
to view available collectionsFuture Improvements
Checklist