Skip to content

Port: Implementation of Teams batch APIs (#6655) #2180

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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

gandiddi
Copy link
Collaborator

Fixes #minor

Description

Porting changes from microsoft/botbuilder-dotnet#6655 to maintain parity with microsoft/botbuilder-dotnet.

This PR implements the new Teams batch APIs in TeamsOperations.

  • Send message to a list of users
  • Send message to all users in a tenant
  • Send message to all users in a team
  • Send message to a list of channels
  • Get Operation State
  • Get failed entries paginated
  • Cancel Operation

Specific Changes

  • Added batch operations models (BatchFailedEntry, BatchOperationState, BatchFailedEntriesResponse, TeamMember) to handle the operation responses and requests
  • Created RetryAction class to handle the retry logic of the operations
  • Implemented the new methods in TeamsOperations and TeamsInfo
  • Added unit test to cover the new methods.

Testing

The following images shows the related unit test passing.
teamsBatchAPI
image

@gandiddi gandiddi requested a review from a team as a code owner October 22, 2024 13:43
@gandiddi gandiddi requested a review from tracyboehrer October 22, 2024 13:47
@tracyboehrer tracyboehrer requested review from axelsrz and removed request for tracyboehrer March 25, 2025 17:25
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.

1 participant