We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
getProfilePicUrl cannot return the contact ID's profile picture URL
/** * Returns the contact ID's profile picture URL, if privacy settings allow it * @param {string} contactId the whatsapp user's ID * @returns {Promise} */ async getProfilePicUrl(contactId) { const profilePic = await this.pupPage.evaluate(async contactId => { try { const chatWid = window.Store.WidFactory.createWid(contactId); return await window.Store.ProfilePic.profilePicFind(chatWid); } catch (err) { if(err.name === 'ServerStatusCodeError') return undefined; throw err; } }, contactId);
return profilePic ? profilePic.eurl : undefined; }
window.Store.ProfilePic have no "profilePicFind"
As a user I expected get the contact ID's profile picture URL
as show
No response
Chromium
Standard
Yes, I am using Multi Device
OS: Mac
/** * Returns the contact ID's profile picture URL, if privacy settings allow it * @param {string} contactId the whatsapp user's ID * @returns {Promise<string>} */ async getProfilePicUrl(contactId) { const profilePic = await this.pupPage.evaluate(async contactId => { try { const chatWid = window.Store.WidFactory.createWid(contactId); return await window.Store.ProfilePic.profilePicFind(chatWid); } catch (err) { if(err.name === 'ServerStatusCodeError') return undefined; throw err; } }, contactId); return profilePic ? profilePic.eurl : undefined; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is there an existing issue for this?
Describe the bug
getProfilePicUrl cannot return the contact ID's profile picture URL
/**
* Returns the contact ID's profile picture URL, if privacy settings allow it
* @param {string} contactId the whatsapp user's ID
* @returns {Promise}
*/
async getProfilePicUrl(contactId) {
const profilePic = await this.pupPage.evaluate(async contactId => {
try {
const chatWid = window.Store.WidFactory.createWid(contactId);
return await window.Store.ProfilePic.profilePicFind(chatWid);
} catch (err) {
if(err.name === 'ServerStatusCodeError') return undefined;
throw err;
}
}, contactId);
window.Store.ProfilePic have no "profilePicFind"
Expected behavior
As a user I expected get the contact ID's profile picture URL
Steps to Reproduce the Bug or Issue
as show
Relevant Code
No response
Browser Type
Chromium
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
OS: Mac
Additional context
The text was updated successfully, but these errors were encountered: