Tag Member in Conversation
You can get the list of all the tags present in the community by calling the getTaggingList()
method present in LMChatClient
class and passing the request object.
Steps to tag member in a conversation
- To get the list of members which can be tagged in a chatroom, call
getTaggingList()
provided by the client you initialised. - Process the response as per your requirement.
const payload: any = {
chatroomId: 89899, // Your chatroom id
page: 1, // The required page
pageSize: 10, // The page size
searchName: "", // Search string
};
const response = await lmChatClient.getTaggingList(payload);
if (response.success) {
// your function to process the response data
processResponse(response);
} else {
// your function to process error message
processError(response);
}
Get Tagging List Payload
List of parameters provided by the getTaggingList()
Variable | Type | Description | Optional |
---|---|---|---|
chatroomId | number | Chatroom Id | |
page | number | Page | |
pageSize | number | Page size | |
searchName | string | Search string |
Get Tagging List Response
List of parameters in the response.
Variable | Type | Description |
---|---|---|
success | boolean | API success status |
error_message | string | Error message in case of failure |
group_tags | object | List of groups tags that are available, these tags are available to Community Manager only |
community_members | object | List of member in that community, used in open chatroom |
chatroom_participants | object | List of chatroom_participants, used in secret chatroom |