Open zulfio opened 1 month ago
+1 Will be perfect if you could add label directly to incoming message JSON.
Knowing the labels from incoming message JSON would help separate personal messages from business ones. It would also allow us to better organize customer messages based on their labels.
Also, it gives ability to create diverse workflows with automations.
Engine: whatsapp-web.js Additional information: https://docs.wwebjs.dev/Client.html#getLabels
Is your feature request related to a problem? I need this feature to retrieve available labels and get contacts within those labels.
A clear and concise description of what the problem is. We can use this method to get labels. https://docs.wwebjs.dev/Client.html#getLabels And this method to get contacts by label id. https://docs.wwebjs.dev/Client.html#getChatsByLabelId
A clear and concise description of what you want to happen. NEW ENDPOINT: Get Labels: method: GET URL: /labels
Get Contacts by Label ID: method: GET URL: /label/:label_id