Conversation (Chat)
Event Listeners
Listen for new messages
chat.onMessage((message) => {
//do something with message
})Field
Type
Description
Listen for message updated
chat.onMessageUpdated((message) => {
//do something with the updated message
})Field
Type
Description
Listen for message deleted
Field
Type
Description
Listen for typing started
Field
Type
Description
Listen for typing stopped
Field
Type
Description
Listen for message seen events
Field
Type
Description
Listen for user status changes (online/offline)
Field
Type
Description
Listen for AI Actions
Field
Type
Description
Functions
Get Messages
Field
Type
State
Description
Field
Type
Description
Send Message
Field
Type
State
Description
Field
Type
Description
Update Message
Field
Type
State
Description
Field
Type
State
Description
Field
Type
Description
Delete Message
Field
Type
Description
Get ID
Get Title
Get Conversation Avatar
Get recent message
Get Members
Get MemberIds
Get Metadata
Set Metadata
Field
Type
State
Description
Add member to group chat
Add member to group chat by ID
Remove member from group chat
Remove member from group chat by ID
Notify everyone typing started
Notify everyone typing stopped
Set Message Seen
Field
Type
State
Description
Last updated