Documentation - v1.2.0-alpha.10
    Preparing search index...

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

    Hierarchy (View Summary)

    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.