microsoft/teams.net

Public

mirrored fromhttps://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
87729f780a04a94c40e3816a99f39edf8c0379b7

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

Samples/Samples.BotBuilder/Bot.cs

14lines · modecode

1using Microsoft.Bot.Builder;
2using Microsoft.Bot.Schema;
3
4namespace 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}