ameybh / ww-wra

Whatsapp Web bot to query and get results to and from WolframAlpha API
5 stars 2 forks source link

Bump whatsapp-web.js from 1.14.0 to 1.15.2 #5

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps whatsapp-web.js from 1.14.0 to 1.15.2.

Release notes

Sourced from whatsapp-web.js's releases.

v1.15.2

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 } });

docs: https://docs.wwebjs.dev/List.html https://docs.wewbjs.dev/Buttons.html

  • Incoming payment message type (no sending) supported:
client.on('message', async m => {
</tr></table> 

... (truncated)

Commits
  • 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)
  • e11e00d chore: update docs for v1.15.1
  • d9dd89c chore: mark version v1.15.1
  • 3aa0e4f fix: dont modify id reference when serializing message
  • d82cf44 chore: mark version v1.15.0
  • Additional commits viewable in compare view


Dependabot compatibility score

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)