Frameworks 带有WebChat和Messenger的Microsoft bot框架问题

Frameworks 带有WebChat和Messenger的Microsoft bot框架问题,frameworks,bots,Frameworks,Bots,我将我的机器人部署到azure和messenger频道。 该机器人在emulator上运行良好,而视频卡在网络聊天和messenger上不起作用 此外,我还创建了一个自适应表单卡,用户可以发送数据,它在emulator上运行良好,但是 网络聊天和messenger显示,但在尝试提交时显示代码错误 以下是我的视频卡的代码: public static VideoCard GetVideoCard() { var videoCard = new Video

我将我的机器人部署到azure和messenger频道。 该机器人在emulator上运行良好,而视频卡在网络聊天和messenger上不起作用

此外,我还创建了一个自适应表单卡,用户可以发送数据,它在emulator上运行良好,但是 网络聊天和messenger显示,但在尝试提交时显示代码错误

以下是我的视频卡的代码:

  public static VideoCard GetVideoCard()
        {
            var videoCard = new VideoCard
            {
                Title = "Big Buck Bunny",
                Subtitle = "by the Blender Institute",
                Text = "Big Buck Bunny (code-named Peach) is a short computer-animated comedy film by the Blender Institute",
                //Image = new ThumbnailUrl
                //{
                //    Url = "https://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Big_buck_bunny_poster_big.jpg/220px-Big_buck_bunny_poster_big.jpg",
                //},
                Media = new List<MediaUrl>
                {
                    new MediaUrl()
                    {
                        Url = "http://techslides.com/demos/sample-videos/small.mp4",
                    },
                },
                Buttons = new List<CardAction>
                {
                    new CardAction()
                    {
                        Title = "Learn More",
                        Type = ActionTypes.OpenUrl,
                        Value = "https://peach.blender.org/",
                    },
                },
            };

            return videoCard;
        } .

对于视频卡,我已经修复了它,唯一的问题是facebook没有按照设想的方式渲染视频卡:

FB上的样本:

webchat上的示例

{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.0",
    "body": [
        {
            "type": "ColumnSet",
            "columns": [
                {
                    "type": "Column",
                    "width": 2,
                    "items": [
                        {
                            "type": "TextBlock",
                            "text": "Get In Touch",
                            "weight": "Bolder",
                            "size": "Medium"
                        },
                        {
                            "type": "TextBlock",
                            "text": "We are interested in advenced technology, we are interested in your business, we are interested in you.\n",
                            "isSubtle": true,
                            "wrap": true
                        },
                        {
                            "type": "TextBlock",
                            "text": "Don't worry, we'll never share or sell your information.",
                            "isSubtle": true,
                            "wrap": true,
                            "size": "Small"
                        },
                        {
                            "type": "TextBlock",
                            "text": "Your name",
                            "wrap": true
                        },
                        {
                            "type": "Input.Text",
                            "placeholder": "Full name",
                            "id": "name",
                            "spacing": "Medium"
                        },
                        {
                            "type": "TextBlock",
                            "text": "Your email",
                            "wrap": true
                        },
                        {
                            "type": "Input.Text",
                            "id": "email",
                            "placeholder": "youremail@example.com",
                            "style": "Email"
                        },
                        {
                            "type": "TextBlock",
                            "text": "Subject"
                        }
                    ]
                }
            ]
        },
        {
            "type": "Input.Text",
            "placeholder": "message",
            "id": "message",
            "isMultiline": true
        }
    ],
    "actions": [
        {
            "type": "Action.Submit",
            "title": "Submit",
            "id": "submitid"
        }
    ]
}