- Users can send messages to a user or group.
- No limit to the number of unread messages per user.
- No limit to the number of unread messages per group.
- Soft deleted messages will be available in the database but permanently deleted messages will not be available.
Properties and constraints:
- The maximum File size that can be uploaded per message is 100MB.
- For a group with more than 300 members, the conversations and unread message counts are not updated.
- Delivery and read receipts will be sent for a group of up to 300 online users.
- Data is an arbitrary JSON structure. It accepts utf8mb4. It can have any user defined properties. but the below properties have meaning for CometChat: text, attachments, custome_data, metadata
Note: The attachment size is separate. Here, the attachment is only the attachment properties (such as URL, size, etc.). The size must not exceed 10KB for the data object. - A message can have up to 25 tags with 100 characters per tag. The tags can be in any language. The character set must be UTF8mb4.
Parameters | Type | Description |
---|---|---|
appId | String | Unique identifier for the app |
apiKey | String | Authentication key for the app |
region | String | Geographic region for the app |
baseUrl | String | Base URL for API requests |
Interactive Messages:
Element List:
The following mentioned elements will come insideformFields
key mentioned above:
1. LabelElement
JSON Property | Type | Description |
---|---|---|
text | String | Required, text to be displayed in the label element |
2. TextInputElement
JSON Property | Type | Description | Default Value |
---|---|---|---|
optional | boolean | Optional, will be validated when doing the submission based on this | true |
3. ButtonElement
a. apiAction
b. urlNavigation(both fields are mandatory)
JSON Property | Type | Description | Default Value |
---|---|---|---|
url | String | Required, | |
actionType | String | required | urlNavigation |
c. DeepLinking(both fields are mandatory)
JSON Property | Type | Description | Default Value |
---|---|---|---|
url | String | Required, | |
actionType | String | required | deepLinkAction |
d. CustomAction (only actionType is mandatory):
4. CheckboxElement
JSON Property | Type | Description | Default Value |
---|---|---|---|
optional | boolean | optional, | true |
label | String | required | |
defaultValue | Array of string | optional |