Skip to content
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

How to get a profile name for any wid? #1012

Closed
Gethin0321 opened this issue Mar 29, 2023 · 2 comments
Closed

How to get a profile name for any wid? #1012

Gethin0321 opened this issue Mar 29, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@Gethin0321
Copy link

Hi,If I have a wid, which function should I call to obtain the profile name of this wid?

@Gethin0321 Gethin0321 added needs triage question Further information is requested labels Mar 29, 2023
@vphelipe
Copy link
Contributor

vphelipe commented Apr 1, 2023

WPP.whatsapp.ContactStore.get('[number]@c.us').displayName

or

WPP.whatsapp.ContactStore.get('[number]@c.us').notifyName

@edgardmessias edgardmessias added enhancement New feature or request and removed question Further information is requested needs triage labels Apr 3, 2023
@edgardmessias
Copy link
Contributor

WPP.whatsapp.ContactStore.get is the pure way to do that, but I will create a wrap like WPP.contact.get

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants