- 
                Notifications
    
You must be signed in to change notification settings  - Fork 888
 
PR For Shared Channel Events #1772
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a comprehensive C# sample demonstrating how Microsoft Teams bots can handle shared channel events, specifically transitive member add/remove events in shared channels. The sample showcases bot functionality that responds to channel sharing/unsharing events and membership changes with visual feedback through adaptive cards.
Key Changes
- Implements 
SharedChannelDataBotwith event handlers for channel shared/unshared and member add/remove events - Creates adaptive card UI components for visualizing different event types with appropriate styling
 - Establishes comprehensive logging and debugging capabilities for shared channel event data
 
Reviewed Changes
Copilot reviewed 25 out of 46 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description | 
|---|---|
samples/bot-shared-channel-events/csharp/SharedChannelEvents/Bots/SharedChannelDataBot.cs | 
Core bot implementation with event handlers and adaptive card creation | 
samples/bot-shared-channel-events/csharp/SharedChannelEvents/Models/SharedChannelModel.cs | 
Data models for shared channel events and membership information | 
samples/bot-shared-channel-events/csharp/SharedChannelEvents.csproj | 
Project configuration with required NuGet packages | 
samples/bot-shared-channel-events/csharp/README.md | 
Comprehensive documentation for setup and usage | 
README.md | 
Updates to main repository documentation with new sample entry | 
.github/workflows/build-complete-samples.yml | 
CI/CD configuration for building the new sample | 
| "This sample shows how to build a Microsoft Teams bot using the Bot Framework SDK that responds to transitive member changes in shared channels. When a member is added to or removed from a parent team that shares a channel, Teams automatically updates the membership of the shared channel. The bot receives these transitive member add and remove events and can process them to track membership changes, maintain rosters, or trigger custom workflows." | ||
| ], | ||
| "creationDateTime": "2025-10-09", | ||
| "updateDateTime": "2024-10-09", | 
    
      
    
      Copilot
AI
    
    
    
      Sep 15, 2025 
    
  
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The updateDateTime (2024-10-09) is earlier than the creationDateTime (2025-10-09). The updateDateTime should be equal to or later than the creationDateTime.
| "updateDateTime": "2024-10-09", | |
| "updateDateTime": "2025-10-09", | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
| } | ||
| 
               | 
          ||
| .header-text { | ||
| font-size: 40x; | 
    
      
    
      Copilot
AI
    
    
    
      Sep 15, 2025 
    
  
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing 'p' in font-size value. Should be '40px' instead of '40x'.
| font-size: 40x; | |
| font-size: 40px; | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
| ```bash | ||
| git clone https://github.com/OfficeDev/Microsoft-Teams-Samples.git | ||
| 
               | 
          ||
| - Navigate to `samples/meetings-events/csharp` | 
    
      
    
      Copilot
AI
    
    
    
      Sep 15, 2025 
    
  
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incorrect path reference. Should be 'samples/bot-shared-channel-events/csharp' instead of 'samples/meetings-events/csharp'.
| - Navigate to `samples/meetings-events/csharp` | |
| - Navigate to `samples/bot-shared-channel-events/csharp` | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
….com/OfficeDev/Microsoft-Teams-Samples into v-mfurquan/Bot_Shared_Channel_Events
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks correct, Please fix copilot comments before merging

No description provided.