Skip to content

Add support for Targeted Messages#443

Merged
heyitsaamir merged 5 commits into
microsoft:mainfrom
ShanmathiMayuramKrithivasan:shmayura/targeted-messages-v2
Jan 28, 2026
Merged

Add support for Targeted Messages#443
heyitsaamir merged 5 commits into
microsoft:mainfrom
ShanmathiMayuramKrithivasan:shmayura/targeted-messages-v2

Conversation

@ShanmathiMayuramKrithivasan

Copy link
Copy Markdown
Contributor

Adds support for targeted messages that only a specific recipient can see in a conversation.

Usage

// Target the sender from context
await send(new MessageActivity('Only you see this').withTargetedRecipient(true));

// Target a specific user
await send(new MessageActivity('Private').withTargetedRecipient('user-id'));

Key Changes

  • SDK appends ?isTargetedActivity=true to API calls, so backend services handles the messages accordingly
  • Supports create, update, delete, and reply operations
  • Includes tests and example bot

Comment thread packages/api/src/activities/message/message.ts Outdated
Comment thread packages/api/src/clients/conversation/index.ts Outdated
Comment thread packages/apps/src/contexts/activity.ts Outdated
Comment thread packages/apps/src/contexts/activity.ts Outdated
Comment thread packages/apps/src/contexts/activity.ts Outdated
@heyitsaamir
heyitsaamir merged commit 98db271 into microsoft:main Jan 28, 2026
6 checks passed
@heyitsaamir heyitsaamir mentioned this pull request Mar 25, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants