Messaging is one of the core features of CometChat. We've thoughtfully created APIs to help you send and retrieve message history.
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.
The following table lists the properties that the Message API supports.
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 inside formFields key mentioned above:
1. LabelElement
{
"elementType": "label",
"elementId": "",
"text": "Something to show"
}
JSON Property
Type
Description
text
String
Required, text to be displayed in the label element