tulir / whatsmeow

Go library for the WhatsApp web multidevice API
https://go.mau.fi/whatsmeow
Mozilla Public License 2.0
2.29k stars 427 forks source link

Possible search user by number? #574

Closed refaldyrk closed 6 months ago

refaldyrk commented 6 months ago

Umm i mean, i want get detail user whatsapp from number, like photo, name, bio, etc?

SoursopID commented 6 months ago

There is a GetUserInfo() func to get basic info about the user

ref : https://github.com/tulir/whatsmeow/blob/350073db195c6b6fae832a5b420b5b67fd39f6be/user.go#L195-L229

and GetProfilePictureInfo() separately

ref : https://github.com/tulir/whatsmeow/blob/350073db195c6b6fae832a5b420b5b67fd39f6be/user.go#L381-L649

You probably need to check whether the phone IsOnWhatsApp().

https://github.com/tulir/whatsmeow/blob/350073db195c6b6fae832a5b420b5b67fd39f6be/user.go#L162

refaldyrk commented 6 months ago

is there anything i do using jid? or phone number?