mukulhase / WebWhatsapp-Wrapper

An API for sending and receiving messages over web.whatsapp [Working as of 18th May 2018]
https://webwhatsapi.readthedocs.io/en/latest/
MIT License
2.03k stars 795 forks source link

Contact object with empty profilePicThumbObj #991

Open hchiapella opened 3 years ago

hchiapella commented 3 years ago

Hi there,

Since a few days ago when we receive a message the object CONTACT didn't have profilePicThumbObj with the url (variable eurl) of the profile picture.

Example:

"contact": {
            "formattedName": "+54 9 3755 24-7xxx", 
            "isWAContact": true, 
            "msgs": null, 
            "isEnterprise": false, 
            "statusMute": false, 
            "pushname": "Kate", 
            "verifiedLevel": null, 
            "isHighLevelVerified": null, 
            "id": {
                "user": "5493755247xxx", 
                "_serialized": "5493755247xxx@c.us", 
                "server": "c.us"
            }, 
            "isPSA": false, 
            "sectionHeader": null, 
            "privacyModeTs": null, 
            "isMyContact": false, 
            "type": "in", 
            "isVerified": null, 
            "actualActors": null, 
            "labels": [], 
            "hostStorage": null, 
            "verifiedName": null, 
            "shortName": null, 
            "isMe": false, 
            "name": null, 
            "profilePicThumbObj": {}, 
            "isBusiness": false, 
            "isUser": true
        }, 

Someone is getting same empty attribute?

Regards,

erm3nda commented 3 years ago

I guess that there are few attributes that had name changed. I would suggest you to run webwhatsapi inside Ipython manually then digg for that info inside the contact Arrays inside js_obj.

erm3nda commented 3 years ago

Today got to this again to solve by myself. Found that chat.js_obj has the same info, means no picture. Must digg in the wapi.js to find the function and try to get image back....

Looking inside javascript, window.Store.Contact._models[0], can't find any property containing profile pic url.

erm3nda commented 3 years ago

Found solutions and alternatives here: https://github.com/mukulhase/WebWhatsapp-Wrapper/issues/399