Create a Group
Groups is the simplest way to chat with multiple user at any given time.
caution
If GroupChat feature is unavailable for your plan, then the below methods will not be able to access and throw 403 exception
#
Create GroupTo create a new group use below method. Once the request is made successfully, an groupProfileListener callback will be triggered. Response will be of two types, one is for successfull adding of participant with both party details and other one is for group profile udpate.
While creating the group, we can set whether the users joining in the group can see the history of messages. This can be achieved through an optional parameter IS_HISTORY_ON
.
#
Request ParamsStatus | Description | Type | Required |
---|---|---|---|
GROUP_NAME | Group Name | String | true |
USER_JID | Array of User JID | JID String | true |
GROUP_IMAGE | Profile Image - Upload an image file or image URL | File / String | false |
IS_HISTORY_ON | isHistoryOn - Whether previous chat history is enabled or not | Boolean | false |
note
The default value for IS_HISTORY_ON
is false.