自适应卡未在Teams移动应用上呈现

Jobinesh

我们有一个外部机器人,该机器人被配置为通过消息端点Web挂钩使用MS Teams频道。以下是外部漫游器发布到Ms Teams频道的消息。当通过Web浏览器或台式计算机上的MS Teams应用程序访问MS Teams时,将按预期方式呈现此响应。但是,当与Android手机上的Teams应用程序一起使用时,该卡未呈现(看到空行/无任何内容的块)。想知道这里出了什么问题吗?移动设备不支持此功能吗?还是我们错过了什么?

   "channelData":{ 
      "tenant":{ 
         "id":"xxxxxxxxxxxxxx"
      }
   },
   "attachments":[ 
      { 
         "contentType":"application/vnd.microsoft.card.adaptive",
         "content":{ 
            "fallbackText":"Adaptive card version not supported",
            "type":"AdaptiveCards",
            "body":[ 
               { 
                  "text":"Here is an adaptive card with a link to a task module",
                  "type":"TextBlock"
               },
               { 
                  "type":"Image",
                  "url":"http://adaptivecards.io/content/cats/1.png"
               }
            ],
            "version":"1.0",
            "actions":[ 
               { 
                  "type":"Action.OpenUrl",
                  "title":"Open Link",
                  "url":"https://teams.microsoft.com/l/task/xxxxx?url=https%3A%2F%2Fwww.wikipedia.com%0A&height=large&width=large&title=Wikipedia-Embed"
               }
            ]
         }
      }
   ],
   "replyToId":"xxxxxx",
   "serviceUrl":"https://smba.trafficmanager.net/amer/",
   "recipient":{ 
      "name":"xxxx xxxx",
      "aadObjectId":"xxxxx",
      "id":"xx:xxxxxxxx"
   },
   "localTimestamp":"2020-02-14T15:21:41.1360000-08:00",
   "channelType":"msteams",
   "from":{ 
      "name":"xxxxxx",
      "id":"xx:xxxxx"
   },
   "type":"message",
   "conversation":{ 
      "conversationType":"personal",
      "tenantId":"xxxxxx",
      "id":"x:xxxxxx"
   }
}```
凯尔·德莱尼(Kyle Delaney)

您需要确定卡的“类型”是"AdaptiveCard",不是"AdaptiveCards"

 { 
    "fallbackText":"Adaptive card version not supported",
    "type":"AdaptiveCard",
    "body":[ 
       { 
          "text":"Here is an adaptive card with a link to a task module",
          "type":"TextBlock"
       },
       { 
          "type":"Image",
          "url":"http://adaptivecards.io/content/cats/1.png"
       }
    ],
    "version":"1.0",
    "actions":[ 
       { 
          "type":"Action.OpenUrl",
          "title":"Open Link",
          "url":"https://teams.microsoft.com/l/task/xxxxx?url=https%3A%2F%2Fwww.wikipedia.com%0A&height=large&width=large&title=Wikipedia-Embed"
       }
    ]
 }

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

在iOS移动应用程序的MS Teams中,“中间”或“右”的自适应卡水平对齐属性不起作用

Microsoft Flow / Teams自适应卡

我们可以调整在 MS Teams 上呈现的自适应卡上的按钮大小吗

在 MS Teams 中部分呈现的自适应卡片图像

Microsoft Teams Webhook为自适应卡生成400

Microsoft Bot Framework自适应卡无法正确呈现

BotFramework自适应卡-不呈现容器动作

自适应卡的验证

MS Teams:自适应卡片

无法使用 Bot Framework SDK v4 在 MS Teams 中呈现自适应卡片

提交不适用于 Azure Bot 发布的 Teams 中的自适应卡

Microsoft Bot Framework-Teams和Skype for Business不支持自适应卡版本

轮播上的自适应卡的最大数量-Microsoft Teams

向MS Teams Channel发送主动式自适应卡消息

当机器人在Microsoft Teams中发送自适应卡时,如何更改通知文本?

增加适用于MS Teams通道的自适应卡的宽度

我们在 MS Teams 中有密码重置自适应卡吗?

自适应卡中的轮播

自适应卡:付款请求

highcharts 未在 jquery 移动选项卡内呈现图表

将超链接添加到要在MS Teams上显示的自适应卡1.0中的网页

MS Teams Bot Framework:本地化的自适应卡输入日期格式问题不同于英语

如何在MS Teams bot框架中使用滚动式自适应卡(如WhoBot)构建可搜索列表

已解决:使用 Bot Framework SDK 4 向 MS Teams 发送自适应卡时出现 onTurnError

自适应卡-DateInput和SubmitAction

使用NodeJS的QnAMaker自适应卡

BotFramework-WebChat-自适应卡

未触发自适应卡操作

提交中的自适应卡输入值