Forum Discussion

Anonymous's avatar
Anonymous
Apr 15, 2020
Solved

[Microsoft Teams] Cannot access images from clipboard

Hi people, I am working on a bot who receives messages from Teams and sends them to another application. So far everything works fine, I can move texts, emojis, files etc. But I have a problem w...
  • Anonymous's avatar
    Anonymous
    Apr 20, 2020

     

    Answered in https://github.com/MicrosoftDocs/msteams-docs/issues/1561

    One can use the MicrosoftAppCredentials to receive a JWT Token to access the images.

    var token = await new MicrosoftAppCredentials("appId", "password").GetTokenAsync();httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);