Documentation - v1.5.0-beta.6
    Preparing search index...

    Use @microsoft/agents-hosting.M365AttachmentDownloader instead. Downloads attachments from Teams using the bots access token.

    Hierarchy

    • M365AttachmentDownloader
      • TeamsAttachmentDownloader
    Index

    Constructors

    • Parameters

      • OptionalstateKey: string

      Returns TeamsAttachmentDownloader

    Methods

    • Downloads files from the attachments in the current turn context and stores them in state.

      Parameters

      • context: TurnContext

        The turn context containing the activity with attachments.

      • state: TurnState

        The turn state to store the files in.

      Returns Promise<void>

      A promise that resolves when the downloaded files are stored.

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

      Parameters

      • context: TurnContext

        Context for the current turn of conversation.

      Returns Promise<InputFile[]>

      Promise that resolves to an array of downloaded input files.