我正在尝试将表情符号发送到团队传入的网络钩子,根据这个答案我应该能够使用带有
x
的十六进制代码 - 例如😀
,但它只是打印文本而不是将其转换为表情符号
{
"attachments": [{
"contentType": "application/vnd.microsoft.card.adaptive",
"content": {
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0",
"body": [{
"type": "TextBlock",
"text": "**Lead Converted** 😀",
"wrap": true
}],
}
}],
"type": "message"
}
这会导致我的卡片:
我尝试过使用和不使用
x
、unicode:\u1F600
,甚至
网络十六进制代码😀
(有或没有x
),但除了粘贴表情符号的实际图片(我不想这样做,因为你没有得到的动画)之外,似乎没有什么作用与团队表情符号)
有人知道如何让它发挥作用吗?
如此处所述,以下代码显示了带有表情符号的自适应卡片的示例:
{
"attachments": [{
"contentType": "application/vnd.microsoft.card.adaptive",
"content": {
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard", "version": "1.0",
"body": [ { "type": "Container", "items": [ { "type": "TextBlock", "text": "Publish Adaptive Card with emojis 🥰 ", "weight": "bolder", "size": "medium" } ] } ] }
}],
"type": "message"
}