title: Get MS Teams Channel Conversation ID
body: <p>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.</p>
  
  <p>Everything works fine so far but some of the information I'm using has to be set trough some detours.</p>
  
  <p>This Teams Conversation ID for example:</p>
  
  <pre><code>private string teamsThread = "19:22abc7ur64z8428kg592z33p993dhen3@thread.skype";
  </code></pre>
  
  <p>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 <code>@myBot anyMessage</code> and it would answer me because I have this in Code:</p>
  
  <pre><code>await turnContext.SendActivityAsync(MessageFactory.Text("Conversation.Id: " + turnContext.Activity.Conversation.Id.ToString()), cancellationToken);
  </code></pre>
  
  <p>And this is how I did find out about the Teams Channel_ConversationID.</p>
  
  <p>Is there a way to get the Conversation ID by just installing the bot on the Channel?</p>
  
  <p>Like: Install Bot to Channel -> Save Conversation ID <code>"19:22abc7ur64z8428kg592z33p993dhen3@thread.skype"</code> in Azure Cosmos Table</p>
  
  <p>Instead of: Install Bot -> Write message to the bot in Teams -> Save Conversation ID in Azure Cosmos Table</p>