This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reply to the activity we received with an activity. | |
var reply = turnContext.Activity.CreateReply(); | |
var heroCard = new HeroCard | |
{ | |
Title = "BotFramework Hero Card", | |
Subtitle = "Microsoft Bot Framework", | |
Text = "Build and connect intelligent bots to interact with your users naturally wherever they are," + | |
" from text/sms to Skype, Slack, Office 365 mail and other popular services.", | |
Images = new List<CardImage> { new CardImage("https://sec.ch9.ms/ch9/7ff5/e07cfef0-aa3b-40bb-9baa-7c9ef8ff7ff5/buildreactionbotframework_960.jpg") }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reply to the activity we received with an activity. | |
var reply = turnContext.Activity.CreateReply(); | |
// combine path for cross platform support | |
string[] paths = { ".", "Resources", "adaptiveCard.json" }; | |
var adaptiveCardJson = File.ReadAllText(Path.Combine(paths)); | |
var adaptiveCardAttachment = new Attachment() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reply to the activity we received with an activity. | |
var reply = turnContext.Activity.CreateReply(); | |
var heroCard = new ThumbnailCard | |
{ | |
Title = "BotFramework Thumbnail Card", | |
Subtitle = "Microsoft Bot Framework", | |
Text = "Build and connect intelligent bots to interact with your users naturally wherever they are," + | |
" from text/sms to Skype, Slack, Office 365 mail and other popular services.", | |
Images = new List<CardImage> { new CardImage("https://sec.ch9.ms/ch9/7ff5/e07cfef0-aa3b-40bb-9baa-7c9ef8ff7ff5/buildreactionbotframework_960.jpg") }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Send typing activity to User | |
var typing = turnContext.Activity.CreateReply(); | |
typing.Type = ActivityTypes.Typing; | |
await turnContext.SendActivityAsync(typing); |