post image to teams channel programatically

Copper Contributor

 

Hi,

 

I want to post an image daily to teams channel programmatically.

 

the file name is not static and will be changing every day.

 

can some one please help on how can i post the image thru c# or powershell 

3 Replies
You will need to connect via a WebHook and then be able to use Windows PowerShell to send messages to Teams
https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-u...

@farismalaeb with WebHook i am able to post text message but i am not able to post images

Ok, I am not sure exactly, but based on what I know that the Webhook is used to send Message Card. for more advanced control you might need to use Bots to send and receive images.
Anyway, I guess you can also post this question in the Microsoft Teams community as they can assist you in this point.
https://docs.microsoft.com/en-us/microsoftteams/platform/bots/what-are-bots