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

[Request] Set Label for Whatsapp Business #152

Open
masbudikusuma opened this issue Feb 1, 2024 · 7 comments
Open

[Request] Set Label for Whatsapp Business #152

masbudikusuma opened this issue Feb 1, 2024 · 7 comments

Comments

@masbudikusuma
Copy link

I've found the getLabel feature, but I haven't found the setLabel feature. Maybe it can be added in the next feature update.

Thank You

@chrishubert
Copy link
Owner

It will come in the next release: 2f034a8

@MarksEliel
Copy link

@chrishubert
I'm following your GIT, the work is very good, I just saw that the Add and Remove Label to Chat function is already done.
Please don't forget to set the option so that when a tag is added, it sends this information via webhook.

@chrishubert
Copy link
Owner

@MarksEliel, this is not a standard event from the original library :
https://github.com/pedroslopez/whatsapp-web.js/blob/ef2f725bce1bd1afd8491f9de0cd2ed06a6febc3/src/util/Constants.js#L40
So it will not be sent to the webhook

@MarksEliel
Copy link

I believe it would be very important to have events that listen to labels, when to add a new label, when to remove it, when to assign it to a conversation...

Repository owner deleted a comment from MarksEliel Feb 11, 2024
@chrishubert
Copy link
Owner

@MarksEliel indeed it would be a good feature, do keep in mind it would need to be triggered in WhatsappWeb, which I believe is not available.
I would advise you to look into the original repository, https://github.com/pedroslopez/whatsapp-web.js, see if it would be possible to implement.

@MarksEliel
Copy link

Got it, same case as Baileys and WppConnect Server

@chrishubert
Copy link
Owner

@masbudikusuma Can you please try it in the new release?

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

No branches or pull requests

3 participants