Я использую карту героя для отображения списка каруселей в мессенджере FB. Я хочу разместить URL-ссылку за изображением, которое я показываю, чтобы при выборе карусели пользователь перенаправлялся на страницу оплаты. Как этого добиться с последним Botframework v4. В версию 3 включены типы действий OpenUrl. но в V4 я не нашел пути к этому в документах.
Пожалуйста, помогите. Я добавляю свой код здесь.
// Create the hero cards. Add the carousels to it.
var heroCard = new HeroCard
{
Title = "We are a travel agency trusted over 30 years, with 95 % positive customer reviews. and ",
Subtitle = "Call us from anywhere, anytime.",
Text = "We have A+ rating from BBB",
Images = new List<CardImage> { new CardImage(CarouselResult.Data[0].ImageUrl.ToString()) },
Buttons = new List<CardAction> { new CardAction(ActionTypes.OpenUrl, "Search Results", value: CarouselResult.Data[0].ApiUrl.ToString()) },
};
var heroCard1 = new HeroCard
{
Title = "We are a travel agency trusted over 30 years, with 95 % positive customer reviews. and ",
Subtitle = "Call us from anywhere, anytime.",
Text = "We have A+ rating from BBB",
Images = new List<CardImage> { new CardImage(CarouselResult.Data[1].ImageUrl.ToString()) },
Buttons = new List<CardAction> { new CardAction(ActionTypes.OpenUrl, "Search Results", value: CarouselResult.Data[0].ApiUrl.ToString()) },
};
var heroCard2 = new HeroCard
{
Title = "We are a travel agency trusted over 30 years, with 95 % positive customer reviews. and ",
Subtitle = "Call us from anywhere, anytime.",
Text = "We have A+ rating from BBB",
Images = new List<CardImage> { new CardImage(CarouselResult.Data[2].ImageUrl.ToString()) },
Buttons = new List<CardAction> { new CardAction(ActionTypes.OpenUrl, "Search Results", value: CarouselResult.Data[0].ApiUrl.ToString()) },
};
/////convert the hero cards to attachments
var attachments = new List<Attachment>() {
{ heroCard.ToAttachment() },
{ heroCard1.ToAttachment() },
{ heroCard2.ToAttachment() }
};
////add attachments to carousels
var reply1 = MessageFactory.Carousel(attachments);
Пожалуйста, предложите подходящее решение. Заранее спасибо.