"id": "a:17I0kl8EkpE1O9PH5TWrzrLNwnWWcfrU7QZjKR0WSfOpzbfcAg2IaydGElSo10tVr4C7Fc6GtieTJX663WuJCc1uA83n4CSrHSgGBj5XNYLcVlJAs2ZX8DbYBPck201w-", Protected override async Task OnMessageActivityAsync(ITurnContext turnContext, CancellationToken cancellationToken)Īwait turnContext.SendActivityAsync(MessageFactory.Text($"Echo: ") The following code shows an example of receiving a message: In the bot's activity handler, use the turn context object's Activity to read a single message request. To receive a text message, use the Text property of the Activity object. Your bot receives messages from Teams using the Text property and it sends single or multiple message responses to the users.
0 Comments
Leave a Reply. |