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

Shyam Parse 1 Reputation point
2022-03-01T18:11:49.743+00:00

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
    2022-03-03T13:25:52.18+00:00

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

    179630-image.png

    Ref Doc: https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/conversations/conversation-messages?tabs=dotnet#status-code-responses