TeamsAttachmentDownloader class
Downloads attachments from Teams using the bots access token.
Constructors
Teams |
Creates a new instance of the |
Methods
download |
Download any files relative to the current user's input. |
Constructor Details
TeamsAttachmentDownloader<TState>(TeamsAttachmentDownloaderOptions)
Creates a new instance of the TeamsAttachmentDownloader
class.
new TeamsAttachmentDownloader(options: TeamsAttachmentDownloaderOptions)
Parameters
- options
- TeamsAttachmentDownloaderOptions
Options for the TeamsAttachmentDownloader
class.
Method Details
downloadFiles(TurnContext, TState)
Download any files relative to the current user's input.
function downloadFiles(context: TurnContext, state: TState): Promise<InputFile[]>
Parameters
- context
-
TurnContext
Context for the current turn of conversation.
- state
-
TState
Application state for the current turn of conversation.
Returns
Promise<InputFile[]>
Promise that resolves to an array of downloaded input files.