[英]Marking bot Message Important or bot to mention teams
我試圖通過bot rest api通過bot在團隊頻道上發送通知(bot也具有基本命令來獲取一些數據)。
我可以發送普通文字和/或卡片。
因為這將是一個通知。 我想偶爾將通過漫游器發送的消息標記為“重要”或提及團隊
對api端點https://smba.trafficmanager.net/amer/v3/conversations進行POST調用(授權已完成且工作正常)
我能夠發送普通的文本活動。 這樣的
{
"isGroup": true,
"activity" : {
"type": "message",
"text": "Hey check out this message"
},
"channelData": {
"teamsChannelId": "19:thisismyteamsid@thread.skype"
}
}
發送此消息只會使文本變為藍色,而實際上並沒有“提及”組,也沒有將其標記為“重要”
{
"isGroup": true,
"activity" : {
"importance": "high",
"type": "message",
"text": "Hey <at>test team</at> check out this message",
"entities": [
{
"type":"mention",
"mentioned":{
"id":"19:thisismyteamsid@thread.skype",
"name":"test team"
},
"text": "<at>test team</at>"
}
]
},
"channelData": {
"teamsChannelId": "19:thisismyteamsid@thread.skype"
}
}
有沒有辦法通過bot api做到這一點?
關於提及團隊和渠道,目前尚無法實現。 您可以在此處跟蹤進度。
就設置重要性而言,據我所知,目前尚不可能。 如果來自MS Teams團隊的人想加入,那將不勝感激(我來自機器人團隊)。
我通過Node和C#SDK以及REST API對這兩項進行了廣泛的測試。 我可能會丟失一些東西,但我可以肯定這目前是不可能的。 話雖如此,您應該能夠在獲取團隊中的用戶列表之后@提及每個用戶。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.