Method TryGetPrivateChatAsync
- Namespace
- Skyline.DataMiner.DcpChatIntegrationHelper.Teams
- Assembly
- Skyline.DataMiner.DcpChatIntegrationHelper.dll
TryGetPrivateChatAsync(string, CancellationToken)
Tries to fetch the private chat of the given user and the DataMiner Teams Bot.
Task<IChat> TryGetPrivateChatAsync(string email, CancellationToken cancellationToken = default)
Parameters
email
stringThe email addresses of the user (which is part of the tenant)
cancellationToken
CancellationToken
Returns
Remarks
The organizations Microsoft Teams tenant must be configured in the Admin App and the required permissions must be granted. Note that, if new features require more permissions than were granted before, you can easily refresh your configured tenant to update it's permissions in the Admin App.
Exceptions
- TeamsChatIntegrationException
If anything went wrong.