Sent messages using sendEndpointTextMessage() are not appearing in the chat

Hi! I am using sendEndpointTextMessage() to send a link to a participant, unfortunately the link I sent doesn’t appear in the chat box. I even set the openBridgeChannel to 'datachannel' or true. Am I missing something? Or any idea how to make it appear in the chat box? Thank you.

Here’s my code:

var to = $("#participantId").val();
var text = "";
jitsiAPI.executeCommand("sendEndpointTextMessage", to, text);