How to get the Chat ID from dynamic Pages produced by members?

Hello everybody, I planned to provide a kind of interactive element where, as soon as you click on an icon, a chat channel is opened.I’ve already gone through the entire Velo reference forum, but despite the instructions, I was unable to write any code. As soon as I call up the chat ID, I always get the ID from the visitors themselves, but never the ID of the producer of the dynamic page.

Does somebody has any idea?

So far I've tried this:

import wixChatBackend from 'wix-chat-backend';
import wixData from 'wix-data';
import wixUsers from 'wix-users';

let channelInfo = $w(PrivatesMembersData).id
 $w("#myChatbox").getChannel(channelInfo)
.then((channel) => {
const channelImage = channel.displayData.image;
const lastMessageText = channel.messages[0].payload.text;
})
.catch((err) => {
console.log(err);
});

Hi! Any news?