.fetchAttenderImage()
This API allows you to fetch the image of a chat's attender programmatically using the attendee ID of a chat. The boolean is used to specify if the default image is to be fetched via the API incase the attendee has not uploaded an image.
Parameters:
| Name | Description |
| attenderID | Unique ID for each attender |
| fetchDefaultImage | To fetch the default image of the attender or the bot if the image is not set |
Callbacks:
| Name | Description |
| error | Error is returned if an error occurs while using the API. The list of possible error codes returned by the API is listed below. |
| image | Base64 String |
​Error Codes:
| Code | Message |
| 500 | mobilisten not initialized |
| 605 | mobilisten disabled |
| 606 | invalid attender id |
| 607 | image loading failed |