Skype机器人卡图像不显示



我正在发送这个帖子请求和所有的卡,如缩略图,carousel,英雄显示,但卡图像没有显示。我试了很多不同的方法,但都没用。

我正在用python创建一个bot,一切都很好,接受这个问题。

这些是我寻找的一些链接。但似乎我做的一切都是正确的。任何帮助吗?

https://docs.botframework.com/en-us/skype/chat/navtitle

{
'text': 'testinglookssuccessful',
'type': 'message/card.carousel',
'attachments': [{
    'content': {
        'images': [{
            'image': 'https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/Seattlenighttimequeenanne.jpg/320px-Seattlenighttimequeenanne.jpg',
            'alt': 'hello'
        }],
        'text': 'cardtext',
        'buttons': [{
            'type': 'imBack',
            'value': 'testingsuccess',
            'title': 'test1'
        }],
        'subtitle': 'herocardsubtitle',
        'title': 'herocardtest'
    },
    'contentType': 'application/vnd.microsoft.card.hero'
}],
'summary': 'thisismyfirstskypebot'}

这是我通过bot发送到skype时显示的结果。

英雄卡Skype测试机器人截图

问题解决:

问题是在https://docs.botframework.com/en-us/skype/chat/#navtitle文档中错误地提到了'image'键。我将image键替换为url键

最新更新