使用 WebHook 将文件发送到 Microsoft Teams

Send Files to Microsoft Teams using WebHook

前段时间我编写了一个 Powershell 模块来向 Microsoft Teams 发送通知:

https://github.com/mhouston100/PSMicrosoftTeams

很有魅力。从一开始,请求最多的功能之一就是将文件附加到通知。

有没有人知道通过 'Incoming Webhook' 连接器附加文件的想法、信息、文档等?

我试过直接在通知等中嵌入 Base64 编码的内容,但它似乎不是正确的 wau

连接器仅支持 MessageCard format. Attachments are not supported. You can use Bots to send or receive files 给用户。