This release contains important fixes for proper compatibility with WhatsApp Web v2.2146.9.
Change log
8a1f6f0 - chore: mark version v1.15.2
254ca88 - Update supported WhatsApp Web version to v2.2146.9 (#969)
3958105 - Fix WA 2.2146.9 (#990)
818bf48 - fix: convert button ids to string
d715445 - move links section in readme
187aa50 - Url updates for wwebjs.dev (#944)
v1.15.1
This is a hotfix to address issues with replying to messages with v1.15.0
Patch notes since last version didn't have them:
Patch notes for 1.15.0 and 1.15.1:
muteChat's duration parameter is now optional, it defaults to being infinite
GroupNotification.getChat() now gives you the group chat the notification occurred in, instead of the client's chat (bugfix)
Buttons and List messages are now added.
example usage
const { Buttons, List } = require('whatsapp-web.js');
// sending buttons
client.sendMessage(to, new Buttons('Body text/ MessageMedia instance', [{id:'customId',body:'button1'},{body:'button2'},{body:'button3'},{body:'button4'}], 'Title here, doesn't work with media', 'Footer here'), {caption: 'if you used a MessageMedia instance, use the caption here'})
// sending lists
client.sendMessage(to, new List('Body text/ MessageMedia instance', 'List message button text', [{title: 'sectionTitle', rows: [{id: 'customId', title: 'ListItem2', description: 'desc'}, {title: 'ListItem2'}]}] 'Title here, doesn't work with media', 'Footer here'), {caption: 'if you used a MessageMedia instance, use the caption here'})
//getting response
client.on('message', m => {
if (m.type == 'buttons_response') {
const {selectedButtonId: bid} = message;
if (bid == 'customId') m.reply('You chose button 1')
// this is a buttons message response
} else if (m.type == 'list_response' /* not sure */) {
const {selectedButtonId: bid} = message;
if (bid == 'customId') m.reply('You chose list item 2')
// this is a list message response
}
});
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps whatsapp-web.js from 1.14.0 to 1.15.2.
Release notes
Sourced from whatsapp-web.js's releases.
... (truncated)
Commits
8a1f6f0
chore: mark version v1.15.2254ca88
Update supported WhatsApp Web version to v2.2146.9 (#969)3958105
Fix WA 2.2146.9 (#990)818bf48
fix: convert button ids to stringd715445
move links section in readme187aa50
Url updates for wwebjs.dev (#944)e11e00d
chore: update docs for v1.15.1d9dd89c
chore: mark version v1.15.13aa0e4f
fix: dont modify id reference when serializing messaged82cf44
chore: mark version v1.15.0Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)