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

vote_update event #3256

Open
1 task done
momokang opened this issue Aug 25, 2024 · 4 comments
Open
1 task done

vote_update event #3256

momokang opened this issue Aug 25, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@momokang
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe.

After WhatsApp is updated, vote_update event is not able to trigger anymore, however I saw similar case #3207 but it's closed.

Is it not planned to be developed in future?
Is there any alternative solution to know someone voted in poll?

Describe the solution you'd like.

Vote_update event is working or alternative to know poll voted.

Describe an alternate solution.

No response

Additional context

No response

@momokang momokang added the enhancement New feature or request label Aug 25, 2024
@BenyFilho
Copy link
Contributor

BenyFilho commented Aug 25, 2024

Use this simple trick and the event will work, open the chat window just after sending a poll.

const poll = new Poll('Do you prefer?', ['Cat', 'Dog']);
const msgVote = await client.sendMessage('xxxxxxxxx@c.us', poll);
const chatWindow = await client.interface.openChatWindow('xxxxxxxxx@c.us');

@momokang
Copy link
Contributor Author

Use this simple trick and the event will work, open the chat window just after sending a poll.

const poll = new Poll('Do you prefer?', ['Cat', 'Dog']);
const msgVote = await client.sendMessage('xxxxxxxxx@c.us', poll);
const chatWindow = await client.interface.openChatWindow('xxxxxxxxx@c.us');

Because we have a lot of customers to send, maybe 100 customers, we can't open 100 chat window and wait for them to vote.

@BenyFilho
Copy link
Contributor

You don't need to open a chat and wait for the vote, is just open the chat at least once.

@harsh-im

This comment was marked as outdated.

@Lavyk Lavyk mentioned this issue Sep 26, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants