title: Sending an MS Teams message using the Microsoft Graph API or BOT API
body: <p>I'm trying to implement the following solution: a web application that subscribes to all MS teams chat messages. If a message contains forbidden text, the application should somehow warn the user (Ideally by replying to the same message, or, if not possible, initiate a conversation with the user).</p>
  <p>I'm able to receive all chat webhooks and process them, but I could not find any way to post a message back to the Teams channel using the Graph API (the operation described in <a href="https://docs.microsoft.com/en-us/graph/api/channel-post-messagereply?view=graph-rest-beta&amp;tabs=http" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/graph/api/channel-post-messagereply?view=graph-rest-beta&amp;tabs=http</a><br />
  is not supported for Application permissions - only delegated ones which isn't suitable for our case). <p>
  So I'm trying to send proactive messages using the Bot framework, However, the bot framework requires a teams conversation ID which I don't have (the graph API webhook provides the team, channel and user IDs, none of which are accepted by the Bot API).</p>
  <p>Does anyone know of a way I can retrieve the teams conversation ID using the team ID and channel ID provided by the graph API?</p>
  <p>Thanks,
  Dan</p>