Search code examples
c#botsmicrosoft-teams

TeamsBot SendActivityAsync with ActivityTypes.Typing no longer works


We've been using a Teams Bot to send back a typing reply in OnMessageActivityAsync. It worked until recently, doing it in this manner

protected override async Task OnMessageActivityAsync(ITurnContext<IMessageActivity> turnContext, CancellationToken cancellationToken)
{
    await turnContext.SendActivityAsync(new Activity { Type = ActivityTypes.Typing }, cancellationToken);
}

As of recently, in new Teams, this no longer works. Does anyone have any idea why?


Solution

  • There seems to be an issue at the moment - see also this question from 2 weeks ago: Bot Framework Typing indicator is not working in new MS Team ( Work or School ) . I'm seeing it my side as well.