Share via

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 | Development
Microsoft Teams | Development

Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs

Microsoft Teams | Microsoft Teams for business | Other

1 answer

Sort by: Most helpful
  1. Nivedipa-MSFT 3,991 Reputation points Microsoft External Staff Moderator
    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://dori-uw-1.kuma-moon.com/en-us/microsoftteams/platform/bots/how-to/conversations/conversation-messages?tabs=dotnet#status-code-responses


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.