Forum Discussion
rosrene
Jan 28, 2022Brass Contributor
Action Card Teams wrap text button
hello, I have a bot in teams that sends an action card with options on buttons, the problem is that the texts of the buttons are cut off: hello, I have a bot in teams that sends an acti...
fmolina5656
Copper Contributor
Hello, try to place the code above and continue in the same way.
The code I used was:
var heroCard = new HeroCard
{
Title = "Hero Card",
Text = "from text/sms to Skype, Slack, Office 365 mail and other popular services.",
Buttons = new List<CardAction> { new CardAction(ActionTypes.OpenUrl, "Learn More", value: "http://www.devenvexe.com"), new CardAction(ActionTypes.OpenUrl, "C# Corner", value: "http://www.c-sharpcorner.com/members/suthahar-j"), new CardAction(ActionTypes.OpenUrl, "MSDN", value: "https://social.msdn.microsoft.com/profile/j%20suthahar/"), new CardAction(ActionTypes.OpenUrl, "Remove subscription button don't take any action when user pressed enter via ", value: "https://social.msdn.microsoft.com/profile/j%20suthahar/") }
};
var reply = MessageFactory.Attachment(heroCard.ToAttachment());
await stepContext.Context.SendActivityAsync(reply, cancellationToken);
However, the images and cards look like this:
Sayali-MSFT
Feb 02, 2022Microsoft
fmolina5656 - Your issue has resolved with above suggestion or still looking for any help?