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
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,464 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,404 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Prasad-MSFT 7,326 Reputation points Microsoft Vendor
    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 Answers by the question author, which helps users to know the answer solved the author's problem.