post image to teams channel programatically

%3CLINGO-SUB%20id%3D%22lingo-sub-2165522%22%20slang%3D%22en-US%22%3Epost%20image%20to%20teams%20channel%20programatically%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2165522%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EHi%2C%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%20class%3D%22thread-message-content-body-text%20thread-full-message%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20to%20post%20an%20image%20daily%20to%20teams%20channel%20programmatically.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethe%20file%20name%20is%20not%20static%20and%20will%20be%20changing%20every%20day.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22%22%3Ecan%20some%20one%20please%20help%20on%20how%20can%20i%20post%20the%20image%20thru%20c%23%20or%20powershell%26nbsp%3B%3C%2FP%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2165522%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3E.Net%20Core%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2167999%22%20slang%3D%22en-US%22%3ERe%3A%20post%20image%20to%20teams%20channel%20programatically%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2167999%22%20slang%3D%22en-US%22%3EYou%20will%20need%20to%20connect%20via%20a%20WebHook%20and%20then%20be%20able%20to%20use%20Windows%20PowerShell%20to%20send%20messages%20to%20Teams%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fwebhooks-and-connectors%2Fhow-to%2Fconnectors-using%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fwebhooks-and-connectors%2Fhow-to%2Fconnectors-using%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2170915%22%20slang%3D%22en-US%22%3ERe%3A%20post%20image%20to%20teams%20channel%20programatically%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2170915%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F790105%22%20target%3D%22_blank%22%3E%40farismalaeb%3C%2FA%3E%26nbsp%3Bwith%26nbsp%3B%3CSPAN%3EWebHook%20i%20am%20able%20to%20post%20text%20message%20but%20i%20am%20not%20able%20to%20post%20images%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
New 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