microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Samples/Samples.BotBuilder/Bot.cs
14lines · modecode
| 1 | using Microsoft.Bot.Builder; |
| 2 | using Microsoft.Bot.Schema; |
| 3 | |
| 4 | namespace Samples.BotBuilder |
| 5 | { |
| 6 | public class Bot : ActivityHandler |
| 7 | { |
| 8 | protected override async Task OnMessageActivityAsync(ITurnContext<IMessageActivity> turnContext, CancellationToken cancellationToken) |
| 9 | { |
| 10 | var replyText = $"hi from botbuilder..."; |
| 11 | await turnContext.SendActivityAsync(MessageFactory.Text(replyText, replyText), cancellationToken); |
| 12 | } |
| 13 | } |
| 14 | } |