internal async Task PostToOmnichannelAsync(
DirectLineClient client,
string message,
string omnichannelId,
string fromUser)
{
var userMessage = new Activity
{
From = new ChannelAccount(fromUser),
Text = message,
Type = ActivityTypes.Message
};
await client.Conversations.PostActivityAsync(
omnichannelId, userMessage);
}
The current code is capable of sending messages to the chat but only from the client side.
The goal is to make it appear as if the messages are being sent from the operator's side.
Does anybody know how to do it?