Can we utilize OnTeamsReadReceiptAsync method in the TeamsActivityHandler to check weather user has seen adaptive card or not after sending card to user?

Nageshwar Patil, Rohini 20 Reputation points
2024-02-06T11:38:59.4066667+00:00

We have developed Bot and sends Adaptive card to the user. We wanted to add the functionality to check weather user has seen the delivered Adaptive Card or not. So is it possible to implement it with the help of OnTeamsReadReceiptAsync method in TeamsActivityHandler?

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
{count} votes

1 answer

Sort by: Most helpful
  1. Prasad-MSFT 10,361 Reputation points Microsoft External Staff Moderator
    2024-02-07T08:24:19.8533333+00:00

    Yes, it is possible to implement the functionality to check whether a user has seen the delivered Adaptive Card using the OnTeamsReadReceiptAsync method in the TeamsActivityHandler class.

    The OnTeamsReadReceiptAsync method is a part of the TeamsActivityHandler class, which is a base class for handling Teams-specific activities in your bot. This method is called when a user has read a message or an Adaptive Card.

    To implement the functionality, you can override the OnTeamsReadReceiptAsync method in your bot's activity handler class.

    FYI, Read receipts for bots doesn’t support team, channel, and group chat scopes.

    Ref: https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/conversations/conversation-messages?tabs=dotnet1%2Capp-manifest-v112-or-later%2Cdotnet2%2Cdotnet3%2Cdotnet4%2Cdotnet5%2Cdotnet#receive-a-read-receipt

    Thanks,  Prasad Das *************************************************************************  If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

    0 comments No comments

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.