I'm currently creating an Azure QnA-bot that can send a message from the webchat to Teams and from Teams back to the webchat.
Everything works fine so far but some of the information I'm using has to be set trough some detours.
This Teams Conversation ID for example:
private string teamsThread = "19:[email protected]";
The way I find out about this, would be to install the bot on a Teams Channel.
Then message the bot in the Teams Channel like @myBot anyMessage
and it would answer me because I have this in Code:
await turnContext.SendActivityAsync(MessageFactory.Text("Conversation.Id: " + turnContext.Activity.Conversation.Id.ToString()), cancellationToken);
And this is how I did find out about the Teams Channel_ConversationID.
Is there a way to get the Conversation ID by just installing the bot on the Channel?
Like: Install Bot to Channel -> Save Conversation ID "19:[email protected]"
in Azure Cosmos Table
Instead of: Install Bot -> Write message to the bot in Teams -> Save Conversation ID in Azure Cosmos Table