#Get who voted in a poll

13 messages · Page 1 of 1 (latest)

gaunt sun
#

Hi guys...
Is there a way to get a list of people who voted for an option in a poll made by someone in a group?

For example:
User1: create a poll

Me: reply the poll mentioning the bot or typing a command like !getresult

Then the bot sends a message with a list containing the result

woeful grove
peak crater
#

Hello guys I wonder to know if there is any solution about it. The current version is 1.25 and It doesn't have any method for getting votes from old polls.Any suggestion or branch?

runic crown
#

Use event vote_update but there is a trick to make it work, after sending a poll open the chat window

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

Thank you for your kind response @runic crown. What I mean is how to get votes from all Polls created by admins long time ago.
I need to create a report which count all group votes not to create new ones and listen them by vote_update event.
Not sure if i was clear enough. If you hace any guide I really appreciate it.

runic crown
#

You can't do it, answers were given and the only way to get the vote is the event vote_uodate

lucid ermine
#

@runic crown you mean, the old poll we can't handle it right? because I try openChatWindow after connection is READY, but on vote_poll not capture any poll.

runic crown
lucid ermine
peak crater
#

@runic crown thank you again for the explanation. That was what I thought. Do you know if that is possible in future features I mean do you think it is something that can be developed. Because I saw some chrome addons can do it. Maybe use the best of both?

runic crown
#

Idk

lusty rapids