Comments (3)
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('[email protected]', poll);
const chatWindow = await client.interface.openChatWindow('[email protected]');
from whatsapp-web.js.
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('[email protected]', poll); const chatWindow = await client.interface.openChatWindow('[email protected]');
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.
from whatsapp-web.js.
You don't need to open a chat and wait for the vote, is just open the chat at least once.
from whatsapp-web.js.
Related Issues (20)
- {{~DOWNLOAD``!!}} WHATSAPP WEB , WHATSAPP BUSINESS WEB & WHATSAPP DESKTOP WA WEB ((**UPDATED!! 2024)) - CLIENT.JS PULL REQUEST
- Login using whatsapp standlone app on windows
- Feature update story
- CreateGroupError: An unknown error occupied while creating a group HOT 1
- TypeError: Cannot read properties of undefined (reading 'pupPage')
- @sparticuz/chromium support
- error after scan. TypeError: Cannot read properties of undefined (reading 'mediaStage')
- message.delete() is not working
- Client.resetState() error caused by shiftTimer
- Send Message To Group Not Send HOT 1
- Getting remote session client is not Ready HOT 5
- Whatsapp Account Blocked because of Spam HOT 3
- getMessageById() Get Message ID(). If the message ID in the message I sent belongs to a message I sent to myself, an error occurs.
- Message not visible to sender but visible to receiver. HOT 2
- add user as new contact? HOT 2
- RemoteAuth saving an increasingly large file becoming unmaintainable in a short time
- sendMessage with quote will raise an exception
- Evaluation failed: a at ExecutionContext._ExecutionContext_evaluate
- client.sendMessage() not working.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whatsapp-web.js.