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

feat: Poll implementation #1887

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

feat: Poll implementation #1887

wants to merge 14 commits into from

Conversation

PurpShell
Copy link
Sponsor Collaborator

@PurpShell PurpShell commented Dec 23, 2022

PR Details

Added the poll features to WWebJS. Receive polls, view their votes, and vote.

Description

I implemented the PollVote model class into WWebJS. Added methods & properties to Message + new PollVote Class representing the poll vote. I've also used the sendVote method that the UI uses to send the vote.

NOTE: I also took the chance to sort the Store object properties in alphabetical order, it is the right thing to do.

Usage

Reference example.js

How Has This Been Tested

I've tested everything locally in my development environment.

Types of changes

  • Dependency change
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • I have updated the documentation accordingly (index.d.ts).

@PurpShell PurpShell marked this pull request as draft December 23, 2022 13:36
@PurpShell
Copy link
Sponsor Collaborator Author

Improvements underway

@PurpShell PurpShell added this to the 1.19.0 milestone Dec 29, 2022
@MahmoudKarout
Copy link

MahmoudKarout commented Jan 7, 2023

@PurpShell Will it support poll creation ?

for example
message.createPoll({title:"Choose an option"},["option1","option2"...])

@PurpShell
Copy link
Sponsor Collaborator Author

@PurpShell Will it support poll creation ?

for example
message.createPoll({title:"Choose an option"},["option1","option2"...])

Working on that bit

@HiramNeto
Copy link

@PurpShell any updates on this feature? It also interests me...

@RC047
Copy link
Contributor

RC047 commented Mar 5, 2023

when this feature release? @PurpShell @pedroslopez

@CSFelix
Copy link

CSFelix commented Mar 8, 2023

It's sick!!!!

@diegofemello
Copy link

Any updates?

@Joabutt
Copy link

Joabutt commented Apr 25, 2023

does this work?

@Santosl2
Copy link

Any updates?

@PurpShell
Copy link
Sponsor Collaborator Author

Hi everyone! I'll get working again on this PR.

@codebossdev
Copy link
Collaborator

Hi, I'll take over.

@codebossdev codebossdev marked this pull request as ready for review June 25, 2023 01:42
@amiruldev20
Copy link

does this work, and can see console vote ?

@neb6la
Copy link

neb6la commented Jul 15, 2023

any updates??

@cleitonpin
Copy link

any updates?

@digitalsolitario
Copy link

Sending Method for poll option.

alechkos pushed a commit to alechkos/whatsapp-web.js that referenced this pull request Aug 7, 2023
This was referenced Aug 7, 2023
@diegofemello
Copy link

it's not working to me :(
image

@iamvinny
Copy link

How can I test this?

@alechkos alechkos mentioned this pull request Sep 13, 2023
1 task
@tuyuribr
Copy link
Collaborator

Hi @PurpShell Do you need help building the voted event and the vote function?

@alechkos alechkos mentioned this pull request Nov 11, 2023
7 tasks
@rbkayz
Copy link

rbkayz commented Jan 21, 2024

Hi there, any help required here to move this forward please? PollVote is a fantastic feature

@facosta0787
Copy link

Hi guys, is this PR the one for adding the feature to vote in polls that or is this to create polls??
I'm interested in the feature to vote in polls that are sent in chats and groups

@developerfromjokela
Copy link

Me too. Creating polls is already working, let's concentrate on voting in polls.

@developerfromjokela
Copy link

developerfromjokela commented Mar 7, 2024

This is now getting nowhere. Lets start a new merge on the vote feature.

@abimtekno
Copy link

any update? bcs last night whatsapp update and today this feature error and can't use

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

Successfully merging this pull request may close these issues.

None yet