I\'m working on a bot using the C# Microsoft Bot Framework and I\'d like to send messages with action buttons to Facebook Messenger. I\'ve successfully created the bot, depl
Updating solution for version 3.9.0 :
var actions = new List();
for (int i = 0; i < 3; i++)
{
actions.Add(new CardAction
{
Title = $"Button:{i}",
Text = $"Action:{i}"
});
}
reply.Attachments.Add(
new HeroCard
{
Title = "Choose option",
Buttons = actions
}.ToAttachment()
);
await context.PostAsync(reply);