botbuilder-python icon indicating copy to clipboard operation
botbuilder-python copied to clipboard

Port: Implementation of Teams batch APIs (#6655)

Open gandiddi opened this issue 4 months ago • 0 comments

Fixes #minor

Description

Porting changes from https://github.com/microsoft/botbuilder-dotnet/pull/6655 to maintain parity with microsoft/botbuilder-dotnet.

This PR implements the new Teams batch APIs in TeamsOperations.

  • [x] Send message to a list of users
  • [x] Send message to all users in a tenant
  • [x] Send message to all users in a team
  • [x] Send message to a list of channels
  • [x] Get Operation State
  • [x] Get failed entries paginated
  • [x] 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 avatar Oct 22 '24 13:10 gandiddi