我的机器人具有以下 FormBuilder:
public static IForm<BasicForm> BuildForm()
{
return new FormBuilder<BasicForm>()
.Field(new FieldReflector<BasicForm>(nameof(Os))
.SetType(null)
.SetPrompt(new PromptAttribute("Please tell me the {&} {||}"))
.SetDefine(async (state, field) =>
{
List<string> list = new List<string> { "ANDROID" , "IOS" };
foreach (string item in list)
{
switch (item)
{
case "ANDROID":
field
.AddDescription(item, item, image: "<android-logo.jpg>")
.AddTerms(item, item);
break;
case "IOS":
field
.AddDescription(item, item, image: "<ios-logo.jpg>")
.AddTerms(item, item);
break;
}
}
return true;
}))
.AddRemainingFields()
.OnCompletion(async (context, state) =>
{
await context.PostAsync("Your request has been submitted. I am tracking your link. I will send you the result as soon as possible");
})
.Build();
}
问题是 HeroCard 似乎拉伸了图像:图像的原始尺寸是 200x200。有没有办法从 FormBuilder 中定义 HeroCard 图像的宽度和高度?
否则可以使用 ThumbnailCard 代替 HeroCard 吗?
谢谢。