Typing indicator while BOT is processing

Kokul Jose 321 Reputation points
2020-08-16T09:38:25.583+00:00

How to add Typing Indicator whenever BOT have received a message and is processing?

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
941 questions
0 comments No comments
{count} votes

Accepted answer
  1. Destin Joy 1,871 Reputation points
    2020-08-16T14:14:05.167+00:00

    Add the following code at OnTurnAsync function before await base.OnTurnAsync(turnContext, cancellationToken); :

    await turnContext.SendActivityAsync(new Activity { Type = ActivityTypes.Typing }, cancellationToken);

    6 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.