-
Notifications
You must be signed in to change notification settings - Fork 91
Improve targeted activity usage and add quoted replies #612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Rodrigo Brandão (rodrigobr-msft)
merged 10 commits into
main
from
users/robrandao/send-targeted
Oct 1, 2026
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
b1dd055
Small send_targeted_activity refactor
rodrigobr-msft a5317bb
Setting the recipient
rodrigobr-msft 6489c9e
Updating sample
rodrigobr-msft 2d768f1
Fixing issues with quoted replies
rodrigobr-msft ceca046
Targeted handling in ConnectorClient
rodrigobr-msft 8827948
Fixing boolean condition
rodrigobr-msft 5cbc19b
ADdressing PR feedback
rodrigobr-msft bf7ef5b
Addressing more PR feedback
rodrigobr-msft 67f3f30
Fixing merge conflict
rodrigobr-msft f532830
Minor improvement to readability
rodrigobr-msft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...ries/microsoft-agents-hosting-msteams/microsoft_agents/hosting/msteams/models/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. | ||
|
|
||
| from .quoted_reply import QuotedReply, QuotedReplyData | ||
| from .targeted_message_info import TargetedMessageInfo | ||
|
|
||
| __all__ = ["QuotedReply", "QuotedReplyData", "TargetedMessageInfo"] |
24 changes: 24 additions & 0 deletions
24
.../microsoft-agents-hosting-msteams/microsoft_agents/hosting/msteams/models/quoted_reply.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. | ||
|
|
||
| from typing import Literal | ||
| from microsoft_agents.activity import AgentsModel, Entity | ||
|
|
||
|
|
||
| class QuotedReplyData(AgentsModel): | ||
| """Represents a quoted reply in a Teams activity.""" | ||
|
|
||
| message_id: str | ||
| sender_id: str | None = None | ||
| sender_name: str | None = None | ||
| preview: str | None = None | ||
| time: str | None = None | ||
| is_reply_deleted: bool | None = None | ||
| validated_message_reference: bool | None = None | ||
|
|
||
|
|
||
| class QuotedReply(Entity): | ||
| """Contains the metadata for a quoted Teams message.""" | ||
|
|
||
| type: Literal["quotedReply"] = "quotedReply" | ||
| quoted_reply: QuotedReplyData | None = None |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.