Open alechkos opened 1 month ago
The PR fixes an issue where the getCountryCode function throws an error:
getCountryCode
Evaluation failed: TypeError: window.Store.NumberInfo.findCC is not a function
closes #3229
// client initialization... client.on('ready', async () => { const userId = 'XXXXXXXXXX@c.us'; console.log(await client.getCountryCode(userId)); console.log(await client.getFormattedNumber(userId)); });
npm install github:alechkos/whatsapp-web.js#fix-getCountryCode
yarn add github:alechkos/whatsapp-web.js#fix-getCountryCode
PR Details
Description
The PR fixes an issue where the
getCountryCode
function throws an error:Related Issue
closes #3229
How Has This Been Tested
You can try the fix by running one of the following commands:
Types of changes
Checklist