Set Group Profile Detail

To set the Profile detail of the group, send a request as described below. Once the request is made successfully, an groupProfileListener callback will be triggered and a updated profile response will be received for all group participants.

await SDK.setGroupProfile(`GROUP_JID`, `GROUP_NAME`, `GROUP_IMAGE`, `IS_HISTORY_ON`);

Request Params#

StatusDescriptionTypeRequired
GROUP_JIDGroup JIDJID Stringtrue
GROUP_NAMENickname of the GroupStringtrue
GROUP_IMAGEGroup Image - Upload an image file or image URLFile / Stringfalse
IS_HISTORY_ONisHistoryOn - Whether previous chat history is enabled or notBooleanfalse
note

The default value for IS_HISTORY_ON is false.