MS Teams:从 ThumbnailCard 中删除扩展名称
MS Teams: remove an extension name from a ThumbnailCard
我有一个用于 MS Teams 的消息扩展(基于 Bot Framework v3)。当我创建一个 ThumbnailCard 并将其 return 提供给用户时,Teams 会将我的应用程序的名称和徽标插入到卡片中。我能以某种方式删除它们吗?
这就是我创建卡片的方式
var card = new ThumbnailCard { Text = "some text", Title= "title"};
截图如下:
ThumbnailCard 对象具有构造函数:
/// <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();
}
你试过 images = new List<CardImage>()
了吗?按钮也一样
不,应用程序无法删除消息扩展创建的卡片上的属性。 Teams 会自动显示它。
我有一个用于 MS Teams 的消息扩展(基于 Bot Framework v3)。当我创建一个 ThumbnailCard 并将其 return 提供给用户时,Teams 会将我的应用程序的名称和徽标插入到卡片中。我能以某种方式删除它们吗?
这就是我创建卡片的方式
var card = new ThumbnailCard { Text = "some text", Title= "title"};
截图如下:
ThumbnailCard 对象具有构造函数:
/// <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();
}
你试过 images = new List<CardImage>()
了吗?按钮也一样
不,应用程序无法删除消息扩展创建的卡片上的属性。 Teams 会自动显示它。