Skip to content
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

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

Open
wants to merge 7 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
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