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.
10,894 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.
3,827 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nivedipa-MSFT 3,611 Reputation points Microsoft External Staff
    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


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.