附件在Microsoft Team中不起作用:Bot framework v3

时间:2016-12-13 09:33:35

标签: c# botframework botconnector microsoft-teams

我正在使用C#编写一个机器人,我可以在模拟器中看到一个png图像,但在Microsoft Teams聊天中,它显示为未找到的图像路径。

这是简单的回复附件机器人代码:

message.Attachments = new List<Attachment>();
                            message.Attachments.Add(
                                new Attachment()
                                {
                                    ContentUrl = "https://docs.botframework.com/en-us/images/faq-overview/botframework_overview_july.png",
                                    ContentType = "image/png",
                                    Name = filteredPolicy.Filename
                                }
                            );
                            await context.PostAsync(message);    

参考:我的Bot Emulator和Microsoft't Team的屏幕截图

Bot Emulator showing image

Microsoft team not displaying image

注意:即使对于PDF附件,模拟器也会显示pdf文件链接,但不显示Microsoft Team。

0 个答案:

没有答案