如何在 Teams 传入 webhook 中设置传递选项

问题描述 投票:0回答:1

我正在尝试通过传入的 Webhook 向 Teams 频道发送消息,如下所示

curl --location 'https://vivij.webhook.office.com/webhookb2/asdff1234' \
--header 'Content-Type: application/json' \
--data '{
    "text": "my test message"
}'

现在我想设置此消息的传递选项(重要,紧急) 我该怎么做?

是否可以使用 webhook 来实现,如果可以,参数名称和值是什么?

在文档中找不到任何内容 https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-using?tabs=cURL

microsoft-teams microsoft-teams-js
1个回答
0
投票

目前不支持此功能,我们无法为通过传入的 webhook 自适应卡发送的消息设置优先级(重要、紧急)。

请注意,这可以通过使用 Graph 发送聊天消息来实现。您需要利用“重要性”属性。可能的值为:正常、高、紧急。
https://learn.microsoft.com/en-us/graph/api/chatmessage-post?view=graph-rest-1.0&tabs=http

© www.soinside.com 2019 - 2024. All rights reserved.