How to know if the user has blocked the bot in Teams ?

Shyam Parse 1 Reputation point

I have created a bot using Azure Bot Service

My bot is available for all the users in the organisation.

I want to know if someone blocked the bot.

Is there any API or any event from the bot to know the user ID if the Bot has been blocked?

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,268 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,925 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nivedipa-MSFT 2,806 Reputation points Microsoft Vendor

    When user send response to the bot status code 403 returns if the bot is blocked by user.


    Ref Doc: