botbuilder-python
botbuilder-python copied to clipboard
Port: Implementation of Teams batch APIs (#6655)
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
andTeamsInfo
- Added unit test to cover the new methods.
Testing
The following images shows the related unit test passing.