Language

M365AttachmentDownloader Class

Definition

Downloads attachments from M365/Teams using the configured Token Provider (from IConnections).

public class M365AttachmentDownloader : Microsoft.Agents.Builder.App.IInputFileDownloader
type M365AttachmentDownloader = class
    interface IInputFileDownloader
Public Class M365AttachmentDownloader
Implements IInputFileDownloader
Inheritance
M365AttachmentDownloader
Implements

Constructors

Name Description
M365AttachmentDownloader(IConnections, IHttpClientFactory, M365AttachmentDownloaderOptions, IOutboundHostValidator)

Creates the M365AttachmentDownloader

Methods

Name Description
DownloadFilesAsync(ITurnContext, ITurnState, CancellationToken)

Download any files relative to the current user's input.

Applies to