我正在使用以下代码在我的回复中显示gif图像作为附件:
在Web Chat频道中,它显示(并播放)得很正常,但由于某种原因,在Microsoft Teams频道中它显示为静态图像。
请问,有什么想法吗?
Activity replyToConversation = (Activity)context.MakeMessage();
replyToConversation.Attachments = new List<Attachment>();
replyToConversation.Attachments.Add(new Attachment()
{
ContentUrl = "http://i.giphy.com/p3BDz27c5RlIs.gif",
ContentType = "image/gif"
});
await context.PostAsync(replyToConversation);
context.Wait(MessageReceivedAsync);
在Web Chat频道中,它显示(并播放)得很正常,但由于某种原因,在Microsoft Teams频道中它显示为静态图像。
请问,有什么想法吗?
reply.Attachments.Add(new AnimationCard { Title = "标题", Subtitle = "副标题", Text = "文本", Media = new List<MediaUrl> { new MediaUrl { Url = "Gif URL"} } }.ToAttachment());
- stuartd