Hi,
You can test this code :
string text="Hello , do you see it ??";
string html="<span class='MySystemMessage'>Hello , do you see it ??</span>";
ChatPortal portal=ChatSystem.Instance.GetCurrentPortal();
lock(portal)
{
ChatChannel[] channels=portal.GetStartedChannels();
foreach(ChatChannel channel in channels)
{
ChatLobbyChannel lobby=channel as ChatLobbyChannel;
if(lobby==null)
continue;
ChatPlaceUser[] pus=lobby.GetAllUsers();
foreach(ChatPlaceUser pu in pus)
{
lobby.Manager.PushSTCMessage(pu.Connection,"SYS_ANNOUNCEMENT",null,text,html);
}
}
}
Regards,
Terry