Skype bot card images not showing up

1.1k Views Asked by At

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

There are 1 best solutions below

0
On

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