Question: The official docs for Microsoft bot-framework [SDK v4](https://learn.microsoft.com/en-us/azure/bot-service/?view=azure-bot-service-4.0) do not demonstrate how to send a typing indicator (whereas [v3 has these instructions](https://learn.microsoft.com/en-us/azure/bot-service/nodejs/bot-builder-nodejs-send-typing-indicator?view=azure-bot-service-3.0)). I'm using DirectLine and botframework-webchat. 

How do I do this? Thanks!

Answer: 
I believe you should do something like this

```
await context.sendActivities([
    { type: 'typing' },
    { type: 'delay', value: 2000 },
    { type: 'message', text: 'Your message here' }
]);

```
I think you can just add in OnTurnAsync function before await base.OnTurnAsync(turnContext, cancellationToken); :

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

```