Forum Discussion

KalingaSomana's avatar
KalingaSomana
Copper Contributor
Nov 29, 2023

Replace Image files with bot using API in MS Teams

Hi Everyone,

We are developing an MS Teams bot where we have a use case to replace an Image file with another Image file. We have implemented the scenario using the SharePoint APIs. But there is an issue with it.
if we try to download the file from Teams Chat Preview, we can still download the original file, not the replaced one.

I have looked over the network logs, the image file is getting saved in two different endpoints (sharepoint and https://as-prod.asyncgw.teams.microsoft.com/v1/objects) and as-prod is used for previewing and downloading the file from teams chat.

 

Is there anyway where we can point the URL to the SharePoint image URL or can we replace the file in http://asyncgw.teams.microsoft.com/ endpoint

 

Thanks!

No RepliesBe the first to reply

Resources