im.chats manages direct and group conversations. im.groups handles group-specific operations like renaming, adding participants, and changing icons.
Chats
Create a chat
sendReceipt is present only when an initial message was provided.
CreateChatOptions
| Option | Type | Description |
|---|---|---|
message | string | Initial message text to send |
service | "iMessage" | "SMS" | "RCS" | Service to use |
subject | string | Subject line |
effectId | string | Send effect ID |
clientMessageId | string | Idempotency key |
Get a chat
Chat object contains:
Count chats
Typing indicators
Share contact info
Get participants
Leave a chat
Mark as read
Real-time chat events
| Type | Extra fields |
|---|---|
chat.created | chatGuid |
chat.left | chatGuid |
chat.readStatusChanged | chatGuid, isRead |
chat.typingIndicator | chatGuid, isTyping, displayName? |
Groups
Rename a group
Manage participants
Group icons
Group backgrounds
Group events
Group changes are emitted as a singlegroup.changed event with a discriminated change field: