我有一个针对MS Teams的消息扩展名(基于Bot Framework v3)。当我创建ThumbnailCard并将其返回给用户时,Teams会将我的应用程序的名称和徽标插入卡中。我可以以某种方式删除它们吗?
这是我创建卡片的方式
var card = new ThumbnailCard { Text = "some text", Title= "title"};
这是屏幕截图:
答案 0 :(得分:1)
否,该应用无法删除由消息传递扩展程序创建的卡片的归属信息。团队会自动显示它。
答案 1 :(得分:0)
ThumbnailCard对象具有构造函数:
selectedIds.map(id => books.find(b => b.id === id))
您是否尝试过/// <summary>
/// Initializes a new instance of the ThumbnailCard class.
/// </summary>
/// <param name="title">Title of the card</param>
/// <param name="subtitle">Subtitle of the card</param>
/// <param name="text">Text for the card</param>
/// <param name="images">Array of images for the card</param>
/// <param name="buttons">Set of actions applicable to the current
/// card</param>
/// <param name="tap">This action will be activated when user taps on
/// the card itself</param>
public ThumbnailCard(string title = default(string), string subtitle = default(string), string text = default(string), IList<CardImage> images = default(IList<CardImage>), IList<CardAction> buttons = default(IList<CardAction>), CardAction tap = default(CardAction))
{
Title = title;
Subtitle = subtitle;
Text = text;
Images = images;
Buttons = buttons;
Tap = tap;
CustomInit();
}
?按钮也一样