Skip to main content

messageApproved

When the Q&A mode or pre-approved mode is on and a message has been approved by moderator or admin this event is triggered

JavaScript

frame1.on("messageApproved", (message) => {
console.log("messageApproved", message);
});

Properties

PropertiesDescriptionType
_idid of the messageString
likesarray of likesArray
createdwhen the chat message was createdString
chatRoomchat room idString
messagemessage that was sentString
useruser idString
Customercustomer idString
JSON Sample Response
{
"_id": "632a1497f0357f1c648791ec",
"likes": [],
"created": "2022-09-20T19:29:27.319Z",
"chatRoom": "631794a83671700c713b1ce6",
"message": "hjksdh",
"user": "63233015c3aa3508a4c8fc34",
"customer": "631794a83671700c713b1ce5",
"__v": 0
}