-
-
Notifications
You must be signed in to change notification settings - Fork 600
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
sendPoll is not working #3045
Comments
smashah
added a commit
that referenced
this issue
Feb 10, 2023
@github-actions run ⚡ Release! ⚡(async () => {
function exec(cmd) {
try {
execSync(cmd, {stdio: 'inherit'})
} catch (error) {
console.log(`Status Code: ${error.status} with '${error.message}'`);
}
}
//set the version type
process.env.VERS = "patch"
// Config
const gitUserEmail = "github-actions[bot]@users.noreply.github.com";
const gitUserName = "github-actions[bot]";
exec(`echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc`);
exec(`git config --global user.email "${gitUserEmail}"`);
exec(`git config --global user.name "${gitUserName}"`);
exec(`npm i -D`);
exec(`npm run release-ci $VERS`);
// types only package
exec('npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN')
exec(`npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN && npm run types:publish `);
exec(`git commit -a -m 'updated types-only package'`);
exec(`git push --force`);
//comment on the issue
var result = execSync(`npx auto-changelog -o ./tempchangelog.txt --commit-limit false --template ./compact-keepachangelog.hbs --stdout`).toString();
await postComment(result);
//create changelog image
exec(`npm run release-image`);
exec(`git commit -a -m 'updated release-image'`);
exec(`git push --force`);
})(); |
@manteguinha fixed. Now you can add a quoted message to the poll and by default it will only allow one response per user CleanShot_2023-02-11_at_01.08.06.mp4 |
smashah
added a commit
that referenced
this issue
Feb 10, 2023
@github-actions run ⚡ Release! ⚡(async () => {
function exec(cmd) {
try {
execSync(cmd, {stdio: 'inherit'})
} catch (error) {
console.log(`Status Code: ${error.status} with '${error.message}'`);
}
}
//set the version type
process.env.VERS = "patch"
// Config
const gitUserEmail = "github-actions[bot]@users.noreply.github.com";
const gitUserName = "github-actions[bot]";
exec(`echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc`);
exec(`git config --global user.email "${gitUserEmail}"`);
exec(`git config --global user.name "${gitUserName}"`);
exec(`npm i -D`);
exec(`npm run release-ci $VERS`);
// types only package
exec('npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN')
exec(`npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN && npm run types:publish `);
exec(`git commit -a -m 'updated types-only package'`);
exec(`git push --force`);
//comment on the issue
var result = execSync(`npx auto-changelog -o ./tempchangelog.txt --commit-limit false --template ./compact-keepachangelog.hbs --stdout`).toString();
await postComment(result);
//create changelog image
exec(`npm run release-image`);
exec(`git commit -a -m 'updated release-image'`);
exec(`git push --force`);
})(); |
Changelog🚀 Release 4.55.4 (2023-02-10)
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are you using the latest version of the library?
What type of session are you experiencing this issue on?
Multi-device and I have set multiDevice to true in my config OR am using the --multi-device flag
What type of host account are you experiencing this issue on?
Business account
Mode
My own code
Current Behavior
Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'id')
at b (https://web.whatsapp.com/lazy_loaded_low_priority_components.c4de6b8d051267e9fef1.js:2:44797)
at https://web.whatsapp.com/lazy_loaded_low_priority_components.c4de6b8d051267e9fef1.js:2:44528
at Generator.next ()
at t (https://web.whatsapp.com/vendor1~app.0c8e960e5dfd7020f562.js:2:66483)
at s (https://web.whatsapp.com/vendor1~app.0c8e960e5dfd7020f562.js:2:66694)
at https://web.whatsapp.com/vendor1~app.0c8e960e5dfd7020f562.js:2:66753
at Y (https://web.whatsapp.com/app.af1c9e40459f98eb9cf6.js:5:140402)
at new y (https://web.whatsapp.com/app.af1c9e40459f98eb9cf6.js:5:132969)
at https://web.whatsapp.com/vendor1~app.0c8e960e5dfd7020f562.js:2:66634
at y (https://web.whatsapp.com/lazy_loaded_low_priority_components.c4de6b8d051267e9fef1.js:2:44712)
at ExecutionContext._ExecutionContext_evaluate (/home/mantega/bots/MantegaBot/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:247:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ExecutionContext.evaluate (/home/mantega/bots/MantegaBot/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:125:16)
Expected Behavior
No response
Steps To Reproduce
await.client.sendPoll(chatId, "Title", ["Test", "test"])
create() code OR full CLI command + CONFIG
DEBUG INFO
Environment
Screenshots/Logs
No response
Anything else?
The text was updated successfully, but these errors were encountered: