Skip to content

Instantly share code, notes, and snippets.

@vman
Created July 10, 2021 22:49
cardJson = await ApproveAsset(turnContext.Activity.Conversation.Id, turnContext.Activity.From);
var attachment = new Attachment
{
ContentType = AdaptiveCard.ContentType,
Content = JsonConvert.DeserializeObject(cardJson),
};
var messageActivity = MessageFactory.Attachment(attachment);
messageActivity.Id = turnContext.Activity.ReplyToId;
await turnContext.UpdateActivityAsync(messageActivity);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment