Once a user is logged in, you can send text messages to other users (1:1) or to groups.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.
Message Flow
Send a User Message
Send a text message to a specific user by their UID.- Blueprint
- C++
- Get a reference to the CometChat Subsystem
- Call the Send Message Async node
- Wire the On Success and On Failure pins
| Parameter | Type | Description |
|---|---|---|
| Receiver Uid | FString | The UID of the user to send the message to |
| Text | FString | The message body |
FCometChatMessage with the sent message details (including the server-assigned Id and SentAt timestamp).Send a Group Message
Send a text message to a group by its GUID.- Blueprint
- C++
Call the Send Group Message Async node.
On Success returns an
| Parameter | Type | Description |
|---|---|---|
| Guid | FString | The unique identifier of the target group |
| Text | FString | The message body |
FCometChatMessage.The FCometChatMessage Struct
Both send operations return anFCometChatMessage on success. Here’s a quick reference of the key fields:
| Property | Type | Description |
|---|---|---|
Id | FString | Server-assigned unique message ID |
SenderUid | FString | UID of the sender (the logged-in user) |
ReceiverUid | FString | UID of the receiver (user UID or group GUID) |
Text | FString | The message body |
SentAt | int64 | Unix timestamp when the message was sent |
Type | FString | text for text messages |
ReceiverType | FString | user for 1:1, group for group messages |
ConversationId | FString | Unique conversation identifier |
Next Steps
Receive Messages
Fetch message history and listen for incoming messages in real time.
Groups
Create and manage groups before sending group messages.