我正在使用以下代码在回复中将 gif 图像显示为附件:
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 聊天频道中,它按预期显示(和播放),但由于某种原因,它在 Microsoft Teams 频道中显示为静态图像。
请问,有什么想法吗?