Get a profile picture of a chat or user
Explore this if you need to know about contact and chat avatars
Last updated
Explore this if you need to know about contact and chat avatars
Last updated
Very often developers and businesses need to retrieve details about a contact, including a profile image. It is quite easy to do it via API. To get chat or profile images in requests such as Get Chats, Get Contacts, Get Messages, you need to enable the init_avatars
setting in the channel and re-authorize.
Setting init_avatars: true
allows you to get chat avatars after channel authorization. Thus, you will need to reconnect to the channel again. Or set this setting before connecting. This setting requires only one-time activation and the channel remembers this setting.
The fact is that uploading contacts and handling profile pictures for WhatsApp is a massive activity, as you are actively getting to know many contacts in a short period of time. To reduce the risks for new fresh numbers, we decided to introduce this setting.
This way, you will be out of risk when you connect. However, if your number is already stable with the API, you can safely automatically get profile images of all contacts and chats using this setting.
The previous setting is only relevant for chats that are present in your app. However, you can also get this information about any contact outside of your phonebook and without corresponding with them. The cell phone user is not made aware of this!
This script allows users to bulk retrieve WhatsApp profile pictures by phone numbers. It leverages the Whapi.Cloud API to automate WhatsApp interactions. After connecting your phone to the API and obtaining a token, you can use the script to download profile pictures by providing a list of phone numbers in a CSV file.
For more information and instructions, click here.