问题
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