EvotecIT / PSTeams

PSTeams is a PowerShell Module working on Windows / Linux and Mac. It allows sending notifications to Microsoft Teams via WebHook Notifications. It's pretty flexible and provides a bunch of options. Initially, it only supported one sort of Team Cards but since version 2.X.X it supports Adaptive Cards, Hero Cards, List Cards, and Thumbnail Cards. All those new cards have their own cmdlets and the old version of creating Teams Cards stays as-is for compatibility reasons.
MIT License
409 stars 41 forks source link

Support for uploading a file to a Teams message #32

Closed TechDufus closed 2 years ago

TechDufus commented 3 years ago

Is it possible to add a parameter -Attachment and point to a local file path to attach a file to the message?

PrzemyslawKlys commented 3 years ago

Don't think incoming webhooks support sending files. That would be great - if you find out that it supports this we can work it out.

TechDufus commented 3 years ago

Dadgummit.. I should have done a search before making this issue. It looks like it's not supported yet.

https://stackoverflow.com/questions/53982764/send-files-to-microsoft-teams-using-webhook#53984068

PrzemyslawKlys commented 3 years ago

I've found it too. But that's a very old thread and according to that Adaptive Cards are not supported either - yet here we are using Adaptive Cards in incoming webhook.

PrzemyslawKlys commented 2 years ago

Closing in favor of #36