Skip to main content

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

  1. To get the list of members which can be tagged in a chatroom, call getTaggingList() provided by the client you initialised.
  2. 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()

VariableTypeDescriptionOptional
chatroomIdnumberChatroom Id
pagenumberPage
pageSizenumberPage size
searchNamestringSearch string

Get Tagging List Response

List of parameters in the response.

VariableTypeDescription
successbooleanAPI success status
error_messagestringError message in case of failure
group_tagsobjectList of groups tags that are available, these tags are available to Community Manager only
community_membersobjectList of member in that community, used in open chatroom
chatroom_participantsobjectList of chatroom_participants, used in secret chatroom