Changes the message thread name.
connection.changeChatThreadName({chatThreadId: 'chatThreadId',name: 'name'})
The message thread ID.
The message thread name.
Creates a message thread.
connection.createChatThread({parentId: 'parentId',name: 'threadName',messageId: 'messageId'})
The ID of the parent message.
The name of the new message thread.
The group ID to which the message thread belongs.
Destroy the message thread.
Only the owner and admins of the group to which the message thread belongs can call this method.
connection.destroyChatThread({chatThreadId: 'chatThreadId'})
The ID of the message thread to delete.
Gets the details of the message thread.
connection.getChatThreadDetail({chatThreadId: 'chatThreadId'})
The message thread ID.
Gets the last threaded reply in the specified message threads.
connection.getChatThreadLastMessage({chatThreadIds: ['chatThreadId1','chatThreadId2']})
The array of message thread IDs to query. You can pass a maximum of 20 message thread IDs each time.
Gets members in the message thread with pagination.
connection.getChatThreadMembers({chatThreadId: 'chatThreadId',pageSize:20,cursor:'cursor'})
The message thread ID.
The position from which to start getting data. At the first method call, if you set cursor
to an empty string, the SDK will get data in the chronological order of when members join the message thread.
The number of members that you expect to get on each page. The value range is [1,50] and the default value is 20
.
Use the pagination to get the list of message threads that the current user has joined in the specified group.
connection.getChatThreads({parentId: 'parentId, cursor:'cursor' ,pageSize: 50})
The position from which to start getting data. At the first method call, if you set cursor
to an empty string, the SDK will get data in the reverse chronological order of when the user joins the message threads.
The number of message threads that you expect to get on each page. The value range is [1,50] and the default value is 20
.
The group ID to which the message thread belongs.
Uses the pagination to get the message threads that the current user has joined.
connection.getJoinedChatThreads({parentId: 'parentId',cursor: 'cursor',pageSize: 50})
The position from which to start getting data. At the first method call, if you set cursor
to an empty string, the SDK will get data in the reverse chronological order of when the user joins the message threads.
The number of message threads that you expect to get on each page. The value range is [1,50] and the default value is 20
.
The group ID to which the message thread belongs. If this parameter is set, the SDK returns the message threads that the current user has joined in a specified group.
Joins a message thread.
connection.joinChatThread({chatThreadId: 'chatThreadId'})
The message thread ID.
Leaves the message thread.
connection.leaveChatThread({chatThreadId: 'chatThreadId'})
The ID of the message thread that the current user wants to leave.
Removes a member from the message thread.
connection.removeChatThreadMember({chatThreadId: 'chatThreadId',username:'username'})
The message thread ID.
The user ID of the member to remove.
Generated using TypeDoc
Thread contains the APIs for thread operations.