Skype bot card images not showing up

倾然丶 夕夏残阳落幕 提交于 2020-01-24 19:40:12

问题


I am sending this post request and all cards like thumbnail, carousel, hero showing up, but the card image is not showing. I tried many different things but nothing worked yet.

I am creating a bot in python, everything is working fine accept this issue.

These are some links I looked for finding issue. But it seems I am doing everthing correctly. Any help?

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'}

This is what showing up when I send it to skype through bot.

screenshot for Skype test bot for hero card


回答1:


Problem Solved :

the issue was with the 'image' key which was mentioned wrongly in the https://docs.botframework.com/en-us/skype/chat/#navtitle documentation. I replaced the 'image' key with 'url' key



来源:https://stackoverflow.com/questions/38872278/skype-bot-card-images-not-showing-up

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!