Sends Message on behalf of a user.
Documentation Index
Fetch the complete documentation index at: https://www.cometchat.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
| Item | Constraint | Notes |
|---|---|---|
| Maximum message size | 65 KB (~65,536 characters including metadata) | Total size limit for the entire message payload |
| File size per message | 100 MB | Applies to the uploaded file associated with the message |
| Message data object | 10 KB max (UTF8mb4) | Keys with special meaning: text, attachments, customData, metadata |
| Tags | Up to 25 tags, 100 characters each (UTF8mb4) | Tags can be in any language |
| User mentions | Up to 10 distinct users | Format: <@uid:{uid of the user}> |
| Reactions | Max 25 distinct reactions, 45 characters each (UTF8mb4) | Emoji supported (may use multiple code points) |
| Unread message count (groups) | Up to 300 members | Not updated for larger groups |
| Message receipts (groups) | Up to 300 online users | Delivery/read receipts disabled in large groups |
| For the complete error reference, see Error Guide. |
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
UID of the user on whose behalf the action is performed.
The receiver of the message.
The muid will be a unique Identifier of the message.
The receiverType of the message. either user or group
user, group Category of the message. The available categories are message and custom.
message Type of the message. The available values are text, image, file, audio, video.
text, image, file, audio, video JSON containing message attributes.
JSON containing array of UIDs and GUID for whom the message must be sent. Format for multiple receivers - {"uids": ["uid1","uid2"], "guids":["guid1"]}
A list of tags to identify specific messages.
Create Message